Exponential probability distribution object
ExponentialDistribution object consists of parameters, a
model description, and sample data for an exponential probability
The exponential distribution is used to model events that occur randomly over time, and its main application area is studies of lifetimes. It is a special case of the gamma distribution with the shape parameter a = 1.
The exponential distribution uses the following parameters.
There are several ways to create a
probability distribution object.
Mean of the exponential distribution, specified as a positive scalar value.
|Cumulative distribution function|
|Inverse cumulative distribution function|
|Mean of probability distribution|
|Median of probability distribution|
|Negative loglikelihood of probability distribution|
|Confidence intervals for probability distribution parameters|
|Probability density function|
|Profile likelihood function for probability distribution|
|Standard deviation of probability distribution|
|Truncate probability distribution object|
|Variance of probability distribution|
Create an exponential distribution object using the default parameter values.
pd = makedist('Exponential')
pd = ExponentialDistribution Exponential distribution mu = 1
Create an exponential distribution object by specifying the parameter values.
pd = makedist('Exponential','mu',2)
pd = ExponentialDistribution Exponential distribution mu = 2
Compute the variance of the distribution.
v = var(pd)
v = 4
Usage notes and limitations:
You must create a probability distribution object by fitting a
probability distribution to sample data from the
fitdist function. For the usage notes and limitations of
fitdist, see Code Generation of
For more information on code generation, see Introduction to Code Generation and Code Generation for Probability Distribution Objects.