Respondida
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...

más de 13 años hace | 2

| aceptada

Respondida
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 ...

más de 13 años hace | 0

| aceptada

Respondida
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...

más de 13 años hace | 0

Respondida
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)

más de 13 años hace | 0

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

más de 13 años hace | 0

| aceptada

Respondida
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...

más de 13 años hace | 0

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

más de 13 años hace | 2

| aceptada

Respondida
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. ...

más de 13 años hace | 0

| aceptada

Respondida
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. ...

más de 13 años hace | 0

| aceptada

Respondida
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 =...

más de 13 años hace | 0

Respondida
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, ...

más de 13 años hace | 0

| aceptada

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

más de 13 años hace | 0

| aceptada

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

más de 13 años hace | 0

Respondida
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...

más de 13 años hace | 0

| aceptada

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

más de 13 años hace | 1

| aceptada

Respondida
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...

más de 13 años hace | 0

Respondida
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...

más de 13 años hace | 0

Respondida
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(:...

más de 13 años hace | 3

| aceptada

Respondida
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...

más de 13 años hace | 0

| aceptada

Respondida
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...

más de 13 años hace | 0

Respondida
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...

más de 13 años hace | 1

| aceptada

Respondida
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.

más de 13 años hace | 2

| aceptada

Respondida
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...

más de 13 años hace | 1

| aceptada

Respondida
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 ...

más de 13 años hace | 1

Respondida
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.*(...

más de 13 años hace | 1

Respondida
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 ...

más de 13 años hace | 0

Respondida
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...

más de 13 años hace | 0

| aceptada

Respondida
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 ...

más de 13 años hace | 0

Respondida
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...

más de 13 años hace | 0

Respondida
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...

más de 13 años hace | 1

Cargar más