binofit
Binomial probability estimate
📝Syntax
pHat = binofit(x, n)
[pHat, pCI] = binofit(x, n, alpha)
📥Input Arguments
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.
📤Output Arguments
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.
📄Description

binofit estimates binomial probabilities from observed successes and trial counts.

💡Examples
x = [0 2 5 8 10];
n = 10;
[pHat, pCI] = binofit(x, n);
🔗See Also
binolikebinopdfbinocdfbinornd
🕔Version History
Version Description
2.0.0 initial version
Edit this page on GitHub