Beantwortet
bimodal Gaussian distribution function
One more try. Check this out: mu=[6;14]; space=[0:.1:20]; x = repmat(space,201,1); y = repmat(space',1,201); L = .5 * (1/(2...

mehr als 13 Jahre vor | 2

| akzeptiert

Beantwortet
What is the order of the regression parameters for a full quadratic model in Matlab?
"help regstats" in my version points to "help x2fx" for the order of terms. The latter confirms that your order is correct, and ...

mehr als 13 Jahre vor | 0

| akzeptiert

Beantwortet
constructing a multilevel regression with random effects
Currently anovan is the only Statistics Toolbox function (aside from a couple aimed at nonlinear fitting) that supports random e...

mehr als 13 Jahre vor | 0

Beantwortet
bimodal Gaussian distribution function
Is this what you want? F = (1/sqrt(2*pi)) * .5*(exp(-.5*(space-mu(1)).^2) + exp(-.5*(space-mu(2)).^2)); plot(space,F)

mehr als 13 Jahre vor | 0

Beantwortet
How to fit the best line
Would it be reasonable to compare norm(a-c) with norm(b-c)?

mehr als 13 Jahre vor | 0

| akzeptiert

Beantwortet
Differentiating a cumulative distribution function
You just need to fix your parentheses. Change this int(exp(-(x-mu)^2)./(2.*(sigma^2)) to this int(exp(-(1/2)*((x-mu...

mehr als 13 Jahre vor | 0

Beantwortet
fitdist - How does it work?
The fitdist function uses maximum likelihood. The exceptions are the normal and lognormal distributions. For the normal distribu...

mehr als 13 Jahre vor | 2

| akzeptiert

Beantwortet
How to create a Coefficent table for regression analysis
What error message? You didn't define the variable stats in the code you provided, so I could imagine that might be a problem. ...

mehr als 13 Jahre vor | 0

| akzeptiert

Beantwortet
What is the algorithm to estimate model coefficients in a Central Composite Rotatable Design?
You could use backlash if you first form an array A of the constant, linear, interaction, and squared terms. Then compute A\Y. ...

mehr als 13 Jahre vor | 0

| akzeptiert

Beantwortet
How to use mhsample or slicesample with ksdensity?
Suppose you have data "mydata" and you want to base the ksdensity on that: mydata = [randn(100,1); 6+randn(150,1)]; a1 =...

mehr als 13 Jahre vor | 0

Beantwortet
Differentiating a cumulative distribution function
The Statistics Toolbox functions normpdf and normcdf don't accept symbolic inputs. You might be able to use functions like erf, ...

mehr als 13 Jahre vor | 0

| akzeptiert

Beantwortet
Non-linear piecewise fit using fittype() and fit().
How about replacing (x/R)^2 by min(1,(x/R)^2)

mehr als 13 Jahre vor | 0

| akzeptiert

Beantwortet
Exponential random generator broken
Works for me. Try which exprnd dbtype exprnd 1

mehr als 13 Jahre vor | 0

Beantwortet
How to obtain Nakagami random variable from CDF plot?
The inv function computes a matrix inverse. If you want to invert the function using the Symbolic Toolbox, something like this m...

mehr als 13 Jahre vor | 0

| akzeptiert

Beantwortet
Confidence interval using binofit
The binofit function computes confidence intervals using the Clopper-Pearson method. I believe what you're seeing is because ...

mehr als 13 Jahre vor | 1

| akzeptiert

Beantwortet
which point corresponds to which cluster in kemans function
If you are using kmeans from the Statistics Toolbox, it sounds like the first output is what you want: >> [a,b] = kmeans([0...

mehr als 13 Jahre vor | 0

Beantwortet
How to use fittype and fit to get a logarithmic fit to some data
If you want to fit y as a linear function of log(x), you can just apply linear methods. For example, here's how to use backslash...

mehr als 13 Jahre vor | 0

Beantwortet
Surface fitting tool. What does center and scale do?
If you have the Statistics Toolbox, the following commands will reproduce the sftool results: [X,Y,Z] = peaks; x2fx([X(:...

mehr als 13 Jahre vor | 3

| akzeptiert

Beantwortet
Undefined function 'mtimes' for input arguments of type 'nominal'.
Try putting a break in the crossfun function and using "whos" to see what the y value is. If it's a nominal variable, then it lo...

mehr als 13 Jahre vor | 0

| akzeptiert

Beantwortet
Question on error variance in multiple linear regression
The fourth element of the temp output is an estimate of the variance of the residuals. This depends on the noise rather than the...

mehr als 13 Jahre vor | 0

Beantwortet
Model fitting and hypothesis testing
The GeneralizedLinearModel interface is intended to be a step forward over glmfit, though the latter is still there. The new ver...

mehr als 13 Jahre vor | 1

| akzeptiert

Beantwortet
How can I compute the Multivariate normal cumulative distribution from vector a to vector b?
Try "help mvncdf" again and read down to the syntax Y = mvncdf(XL,XU,MU,SIGMA) This sounds like what you want.

mehr als 13 Jahre vor | 2

| akzeptiert

Beantwortet
How does matlab cftool (curve fitting toolbox) determine StartPoint for Sum of Sin fit?
It's not that proprietary. It's implemented in MATLAB code that's shipped with the product, in particular in the @fittype/privat...

mehr als 13 Jahre vor | 1

| akzeptiert

Beantwortet
Repeated measures ANOVA in built-in function?
There's not a repeated measures anova function in the Statistics Toolbox. You may find something on the File Exchange. There ...

mehr als 13 Jahre vor | 1

Beantwortet
how to fit a curve by splitting it into linear region and quadratic region?
Maybe you can get somewhere by trying this and imitating it: x = linspace(0,10)'; y = 2 + x - (x-5).*(x>5) - (x-5).^2.*(...

mehr als 13 Jahre vor | 1

Beantwortet
I would like to be able to export fit residual values. Is this possible? If so how?
That's hard to read (consider formatting it as code), but it appears to create a variable named "residual" in the workspace. Is ...

mehr als 13 Jahre vor | 0

Beantwortet
fitting implicit functions with NLINFIT
NLINFIT wants a response vector Y and a function with unknown parameters. You could try supplying the response vector Y = z...

mehr als 13 Jahre vor | 0

| akzeptiert

Beantwortet
Fitting Histogram Data to a Normal Distribution - How to incorporate chi-sq?
The normfit function estimates mu and sigma from the raw data. It's possible to estimate mu and sigma from the histogram bin ...

mehr als 13 Jahre vor | 0

Beantwortet
Least-squares method in normfit with censoring?
If I test a bunch of lightbulbs for a month and see how long they last, maybe half of them will burn out and I will be able to o...

mehr als 13 Jahre vor | 0

Beantwortet
How to use CurveFitting coefficients in the rest of the code?
Although I don't understand what coeffvalues(f) doesn't work, nor why f(t2) doesn't work, nor where the a1 error message comes f...

mehr als 13 Jahre vor | 1

Mehr laden