Generates beta distribution parameter estimates and confidence intervals. |
||
Syntax |
a, b, aCI, bCI = BetaFit(Points) |
|
Argument |
Name |
Description |
Points |
A vector of data points in the interval (0,1). Needs at least 3 distinct points. |
|
Outputs |
Name |
Description |
a |
Estimate of the first shape parameter. A scalar. |
|
b |
Estimate of the second shape parameter. A scalar. |
|
aCI |
95% confidence interval of the estimate of a. A two element row vector containing the lower and upper bounds of the confidence interval. |
|
bCI |
95% confidence interval of the estimate of b. A two element row vector containing the lower and upper bounds of the confidence interval. |
|
Example |
For a given data set, find a, b, and the confidence intervals, assuming a beta distribution. |
|
Syntax |
|
|
a, b, aCI, bCI = BetaFit(data) |
||
Results |
|
|
a is the maximum likelihood estimate of the first shape parameter. |
||
b is the maximum likelihood estimate of the second shape parameter. |
||
aCI is a two element vector containing the 95% confidence interval of a. |
||
bCI is a two element vector containing the 95% confidence interval of b. |
||
See Also: |