| Statistics Toolbox | ![]() |
Parameter estimates for uniformly distributed data
Syntax
Description
[ahat,bhat] = returns the maximum likelihood estimates (MLEs) of the parameters of the uniform distribution given the data in unifit(X)
X.
also returns 95% confidence intervals, [ahat,bhat,ACI,BCI] = unifit(X)
ACI and BCI, which are matrices with two rows. The first row contains the lower bound of the interval for each column of the matrix X. The second row contains the upper bound of the interval.
[ahat,bhat,ACI,BCI] = unifit(X,alpha)
allows control of the confidence level alpha. For example, if alpha = 0.01 then ACI and BCI are 99% confidence intervals.
Example
r = unifrnd(10,12,100,2);[ahat,bhat,aci,bci] = unifit(r)ahat =10.0154 10.0060bhat =11.9989 11.9743aci =9.9551 9.946110.0154 10.0060bci =11.9989 11.974312.0592 12.0341
See Also
betafit, binofit, expfit, gamfit, normfit, poissfit, unifcdf, unifinv, unifpdf, unifrnd, unifstat, weibfit
| unifinv | unifpdf | ![]() |