NegativeBinomialDistribution
Negative binomial distribution object
Description
A NegativeBinomialDistribution
object consists of
parameters, a model description, and sample data for a negative binomial probability
distribution.
The negative binomial distribution models the number of failures x before a specified number of successes, R, is reached in a series of independent, identical trials. This distribution can also model count data, in which case R does not need to be an integer value.
The negative binomial distribution uses the following parameters.
Parameter | Description | Support |
---|---|---|
R | Number of successes | |
P | Probability of success |
Creation
There are several ways to create a NegativeBinomialDistribution
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