Statistics Toolbox    
normfit

Parameter estimates and confidence intervals for normal data

Syntax

Description

[muhat,sigmahat,muci,sigmaci] = normfit(X) returns estimates muhat and sigmahat of the normal distribution parameters µ and , given the matrix of data X. muci and sigmaci are 95% confidence intervals and have two rows and as many columns as matrix X. The top row is the lower bound of the confidence interval and the bottom row is the upper bound.

[muhat,sigmahat,muci,sigmaci] = normfit(X,alpha) gives estimates and 100(1-alpha)% confidence intervals. For example, alpha = 0.01 gives 99% confidence intervals.

Example

In this example the data is a two-column random normal matrix. Both columns have µ = 10 and  = 2. Note that the confidence intervals below contain the "true values."

See Also

normcdf, norminv, normlike, normpdf, normplot, normrnd, normspec, normstat, betafit, binofit, expfit, gamfit, poissfit, unifit, weibfit


  normcdf norminv