Statistics Toolbox | ![]() ![]() |
Exponential probability density function (pdf)
Syntax
Description
exppdf(X,MU)
computes the exponential pdf at each of the values in X
using the corresponding parameters in MU. Vector or matrix inputs for X and MU must be the same size. A scalar input is expanded to a constant matrix with the same dimensions as the other input. The parameters in MU must be positive.
The exponential pdf is the gamma pdf with its first parameter equal to 1.
The exponential distribution is appropriate for modeling waiting times when the probability of waiting an additional period of time is independent of how long you've already waited. For example, the probability that a light bulb will burn out in its next minute of use is relatively independent of how many minutes it has already burned.
Examples
y = exppdf(5,1:5) y = 0.0067 0.0410 0.0630 0.0716 0.0736 y = exppdf(1:5,1:5) y = 0.3679 0.1839 0.1226 0.0920 0.0736
See Also
expcdf
, expfit
, expinv
, exprnd
, expstat
, pdf
![]() | expinv | exprnd | ![]() |