Statistics Toolbox | ![]() ![]() |
Parameter estimates and confidence intervals for Weibull data
Syntax
Description
phat =
returns the maximum likelihood estimates, weibfit(x)
phat
, of the parameters of the Weibull distribution given the values in vector x
, which must be positive. phat
is a two-element row vector: phat(1)
estimates the Weibull parameter a, and phat(2)
estimates the Weibull parameter b in the pdf
also returns 95% confidence intervals in the two-row matrix [phat,pci] = weibfit(x)
pci
. The first row contains the lower bound of the confidence interval, and 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.7832
pci =
0.3851 0.6367
0.5641 0.9298
See Also
betafit
, binofit
, expfit
, gamfit
, normfit
, poissfit
, unifit
, weibcdf
, weibinv
, weiblike
, weibpdf
, weibplot
, weibrnd
, weibstat
![]() | weibcdf | weibinv | ![]() |