Binomial Distribution
Statistics and Machine Learning Toolbox™ offers several ways to work with the binomial distribution.
Create a probability distribution object
BinomialDistribution
by fitting a probability distribution to sample data or by specifying parameter values. Then, use object functions to evaluate the distribution, generate random numbers, and so on.Work with the binomial distribution interactively by using the Distribution Fitter app. You can export an object from the app and use the object functions.
Use distribution-specific functions with specified distribution parameters. The distribution-specific functions can accept parameters of multiple binomial distributions.
Use generic distribution functions (
cdf
,icdf
,pdf
,random
) with a specified distribution name ('Binomial'
) and parameters.
To learn about the binomial distribution, see Binomial Distribution.
Objects
BinomialDistribution | Binomial probability distribution object |
Apps
Distribution Fitter | Fit probability distributions to data |
Functions
Topics
- Bernoulli Distribution
The Bernoulli distribution is a discrete probability distribution with only two possible values for the random variable.
- Binomial Distribution
The binomial distribution models the total number of successes in repeated trials from an infinite population under certain conditions.