Statistics: exppdf

### Function Reference: `exppdf`

statistics: y = exppdf (x)
statistics: y = exppdf (x, mu)

Exponential probability density function (PDF).

For each element of x, compute the probability density function (PDF) of the exponential distribution with mean parameter mu. The size of y is the common size of x and mu. A scalar input functions as a constant matrix of the same size as the other inputs.

Default value for mu = 1.

A common alternative parameterization of the exponential distribution is to use the parameter λ defined as the mean number of events in an interval as opposed to the parameter μ, which is the mean wait time for an event to occur. λ and μ are reciprocals, i.e. μ = 1 / λ.

Further information about the exponential distribution can be found at https://en.wikipedia.org/wiki/Exponential_distribution

See also: expcdf, expinv, exprnd, expfit, explike, expstat

Source Code: exppdf

### Example: 1

     ## Plot various PDFs from the exponential distribution
     x = 0:0.01:5;
     y1 = exppdf (x, 2/3);
     y2 = exppdf (x, 1.0);
     y3 = exppdf (x, 2.0);
     plot (x, y1, "-b", x, y2, "-g", x, y3, "-r")
     grid on
     ylim ([0, 1.5])
     legend ({"μ = 2/3", "μ = 1", "μ = 2"}, "location", "northeast")
     title ("Exponential PDF")
     xlabel ("values in x")
     ylabel ("density")