binofit
Binomial parameter estimates
Description
returns the maximum likelihood estimates (MLEs) of the probability of success in a given
binomial trial based on the number of successes pHat = binofit(r,n)r observed in
n independent trials.
Note
When r is a vector, binofit, unlike most
distribution fitting functions, treats r as a collection of
measurements from separate samples. To treat r as a single sample
and compute a single parameter estimate for it, use
binofit(sum(r),sum(n)) when n is a vector,
or binofit(sum(r),n*length(r)) when n is a
scalar.
Examples
Input Arguments
Output Arguments
Alternative Functionality
binofit is a function specific to the binomial distribution.
Statistics and Machine Learning Toolbox™ also offers the generic functions mle, fitdist, and paramci and the Distribution Fitter app, which support various
probability distributions.
mlereturns MLEs and the confidence intervals of MLEs for the parameters of various probability distributions. You can specify the probability distribution name or a custom probability density function.Create a
BinomialDistributionprobability distribution object by fitting the distribution to data using thefitdistfunction or the Distribution Fitter app. The object propertypstores the probability of success parameter estimate. To obtain the confidence interval for the parameter estimate, pass the object toparamci.
References
[1] Johnson, N. L., S. Kotz, and A. W. Kemp. Univariate Discrete Distributions. Hoboken, NJ: Wiley-Interscience, 1993.
Extended Capabilities
Version History
Introduced before R2006a