Generates estimates of the mean and standard deviation along with their 95% confidence intervals for a given set of normally distributed data. |
||
Syntax |
Mean, Std, MeanCof, StdCof = NormFit(Data) |
|
Argument |
Name |
Description |
|
Data |
A vector of data. |
Outputs |
Name |
Description |
|
Mean |
Estimation of the mean of the data. |
|
Std |
Estimation of the Standard Deviation of the data. |
|
MeanCof |
95% confidence interval of the estimate of the Mean. A two element column vector with the first and the second being the lower and upper bound of the confidence interval, respectively. |
|
StdCof |
95% confidence interval of the estimate of the Standard Deviation. A two element column vector with the first and the second being the lower and upper bound of the confidence interval, respectively. |
Example |
For a given dataset (stored in vector data), find the Mean, Standard Deviation and their confidence intervals assuming normal distribution: |
|
Syntax |
||
mu, sigma, mucof, sigmacof = NormFit(data) |
||
Result |
||
Mu and sigma contain estimates of the Mean and Standard Deviation, respectively mucof is a 2x1 vector with mucof(1) being the lower and mucof(2) being the upper interval of the 95% confidence interval of the Mean. sigmacof is a 2x1 vector with sigmacof(1) being the lower and sigmacof (2) being the upper interval of the 95% confidence interval of the Standard Deviation. |
||
See Also: |