BinomialDistribution
Binomial probability distribution object
Description
A BinomialDistribution
object consists of parameters, a
model description, and sample data for a binomial probability
distribution
The binomial distribution models the total number of successes in repeated trials from an infinite population under the following conditions:
Only two outcomes are possible for each of n trials.
The probability of success for each trial is constant.
All trials are independent of each other.
The binomial distribution uses the following parameters.
Parameter | Description | Support |
---|---|---|
N | Number of trials | positive integer |
p | Probability of success |
Creation
There are several ways to create a BinomialDistribution
probability
distribution object.
Create a distribution with specified parameter values using
makedist
.Fit a distribution to data using
fitdist
.Interactively fit a distribution to data using the Distribution Fitter app.
Properties
Object Functions
cdf | Cumulative distribution function |
gather | Gather properties of Statistics and Machine Learning Toolbox object from GPU |
icdf | Inverse cumulative distribution function |
iqr | Interquartile range of probability distribution |
mean | Mean of probability distribution |
median | Median of probability distribution |
negloglik | Negative loglikelihood of probability distribution |
paramci | Confidence intervals for probability distribution parameters |
pdf | Probability density function |
plot | Plot probability distribution object |
proflik | Profile likelihood function for probability distribution |
random | Random numbers |
std | Standard deviation of probability distribution |
truncate | Truncate probability distribution object |
var | Variance of probability distribution |
Examples
Extended Capabilities
Version History
Introduced in R2013a