| Statistics Toolbox | Search  Help Desk |
| weibfit | Examples See Also |
Parameter estimates and confidence intervals for Weibull data.
Syntax
phat = weibfit(x) [phat,pci] = weibfit(x) [phat,pci] = weibfit(x,alpha)
Description
phat =weibfit(x) returns the maximum likelihood estimates, phat, of the parameters of the Weibull distribution given the data in the vector, x. phat is a two-element row vector. phat(1) estimates the Weibull parameter, a, and phat(2) estimates b in the pdf:
[phat,pci] = weibfit(x) also returns 95% confidence intervals in a matrix, pci, with 2 rows. The first row contains the lower bound of the confidence interval. The second row contains the upper bound. The columns of pci correspond to the columns of phat.
[phat,pci] = weibfit(x,alpha) allows control over the confidence interval returned (100(1-alpha)%).
Example
r = weibrnd(0.5,0.8,100,1);[phat,pci] = weibfit(r)phat =0.4746 0.7832pci =0.3851 0.63670.5641 0.9298
See Also
betafit,binofit,expfit,gamfit,normfit,poissfit,unifit