wblfit
Fits a Weibull distribution to a data sample.
Syntax
[ahat,bhat,aci,bci] = wblfit(x)
Inputs
- x
- Data sample.
Outputs
- ahat
- An estimate of the scale parameter a.
- bhat
- An estimate of the shape parameter b.
- aci
- A confidence interval for a. A two-element vector containing the lower and upper bounds of the interval.
- bci
- A confidence interval for b. A two-element vector containing the lower and upper bounds of the interval.
Example
x = [13.22 9.41 8.58 7.98 4.12 16.1 5.62 2.28 9.69 28.2 13.84 5.62 5.26 6.91 8.92 9.0
7 9.83 1.86 12.66 5.44]
[a,b,aci,bci] = wblfit(x)
a = 10.411
b = 1.7397
aci = [Matrix] 2 x 1
7.974
13.594
bci = [Matrix] 2 x 1
1.2667
2.3893