All formulas

Probability distributions

Exponential probability density

prob.exponential-pdfAlso called exponential pdf, exponential density, expon pdf, exp pdf

f(x)=λe−λxf(x) = \lambda e^{-\lambda x}

Density of the exponential distribution with rate λ, for x ≥ 0. The mean is 1/λ.

Notation

xx

the point, x ≥ 0

x ≥ 0

λ\lambda

rate

λ > 0

f(x)f(x)

Result: the density at x

scalar

Worked examples

Each result is solved exactly and confirmed by two independent computations.

  1. Given

    x=0,λ=2x = 0, \lambda = 2

    Result

    f(x)=2\displaystyle f(x) = 2
  2. Given

    x=1,λ=1x = 1, \lambda = 1

    Result

    f(x)=e−1\displaystyle f(x) = e^{-1}

    ≈ 0.367879441171

  3. Given

    x=2,λ=0.5x = 2, \lambda = 0.5

    Result

    f(x)=12e\displaystyle f(x) = \frac{1}{2 e}

    ≈ 0.183939720586

Common mistakes

  • Uses the scale parameterization

    The code treats λ as the scale (the mean) instead of the rate; SciPy's expon takes scale = 1/λ.

    Fix: Use λe−λx with λ the rate, or pass scale=1/λ to SciPy.

Source

  • NIST/SEMATECH e-Handbook, §1.3.6.6.7

    NIST/SEMATECH e-Handbook of Statistical Methods. https://www.itl.nist.gov/div898/handbook/ Last updated 2022-04-27. doi:10.18434/M32189

    doi.org