pHat = binofit(x, n)
[pHat, pCI] = binofit(x, n, alpha)
| Parameter | Description |
|---|---|
| x | nonnegative integer finite real nonempty array: observed successes. |
| n | nonnegative integer finite real nonempty array or scalar: trial counts. Each value must be greater than or equal to the corresponding value in x. |
| alpha | scalar in the range [0, 1]: significance level. Default is 0.05. |
| Parameter | Description |
|---|---|
| pHat | array: estimated binomial probabilities. |
| pCI | array: confidence intervals for the estimates. The first column contains lower bounds and the second column contains upper bounds. |
binofit estimates binomial probabilities from observed successes and trial counts.
x = [0 2 5 8 10];
n = 10;
[pHat, pCI] = binofit(x, n);
| Version | Description |
|---|---|
| 2.0.0 | initial version |