Exponential Distribution#

Definition#

Definition 112 (Exponential Distribution (PDF))

\(X\) is a continuous random variable with an exponential distribution if the probability density function is given by:

(144)#\[\begin{split} \pdf(x) = \begin{cases} \lambda e^{-\lambda x} & \text{if } x \geq 0 \\ 0 & \text{otherwise} \end{cases} \end{split}\]

where \(\lambda > 0\) is the rate parameter (rate of decay).

Some conventions:

  1. We write \(X \sim \exponential(\lambda)\) to indicate that \(X\) has an exponential distribution with rate parameter \(\lambda\).

Remark 38 (Exponential Distribution (PDF))

When \(\lambda = 0\), we have,

\[ \pdf(x) = \pdf(0) = \lambda e^{-\lambda 0} = \lambda e^0 = \lambda \]

This means that \(\pdf(0)\) will be more than 1 if \(\lambda > 0\) [Chan, 2021].

Definition 113 (Exponential Distribution (CDF))

If \(X\) is a continuous random variable with an exponential distribution with rate parameter \(\lambda\), then the CDF is given by integrating the PDF defined in Definition 112:

(145)#\[\begin{split} \cdf(x) = \begin{cases} 0 & \text{if } x < 0 \\ 1 - e^{-\lambda x} & \text{if } x \geq 0 \end{cases} \end{split}\]

The PDF and CDF of two exponential distributions are shown below.

Hide code cell source
 1import sys
 2from pathlib import Path
 3parent_dir = str(Path().resolve().parents[2])
 4sys.path.append(parent_dir)
 5
 6import numpy as np
 7import scipy.stats as stats
 8
 9from omnivault.utils.reproducibility.seed import seed_all
10from omnivault.utils.probability_theory.plot import plot_continuous_pdf_and_cdf
11seed_all()
12
13# x = np.linspace(0, 10, 5000)
14lambda_1, lambda_2 = 0.5, 2
15scale_1, scale_2 = 1 / lambda_1, 1 / lambda_2
16X1 = stats.expon(scale=scale_1)
17X2 = stats.expon(scale=scale_2)
18
19plot_continuous_pdf_and_cdf(X1, 0, 10, title="Exponential$(\lambda = 0.5)$")
20plot_continuous_pdf_and_cdf(X2, 0, 10, title="Exponential$(\lambda = 2)$")
/home/runner/work/omniverse/omniverse/omnivault/utils/reproducibility/seed.py:120: UserWarning: Deterministic mode is activated. This will negatively impact performance and may cause increase in CUDA memory footprint.
  configure_deterministic_mode()
../../_images/97847816b4af0f60ac9070ce6dbe01336b3a402ff3f1e917de2d9706a1fbbf14.png ../../_images/65b013f7b4abbbb37aad22a785742d63fb986b9e0c3346598d3f318be08be9f4.png

Expectation and Variance#

Theorem 29 (Expectation and Variance of Exponential Distribution)

If \(X\) is a continuous random variable with an exponential distribution with rate parameter \(\lambda\), then the expectation and variance are given by:

(146)#\[ \expectation \lsq X \rsq = \frac{1}{\lambda} \qquad \text{and} \qquad \var \lsq X \rsq = \frac{1}{\lambda^2} \]

References and Further Readings#

Further readings is a must since Professor Chan give many intuition on how Exponential distribution is used in real life. He also showed how Exponential distribution is derived from the Poisson distribution.

  • Chan, Stanley H. “Chapter 4.5. Uniform and Exponential Random Variables.” In Introduction to Probability for Data Science, 205-211. Ann Arbor, Michigan: Michigan Publishing Services, 2021.

  • Pishro-Nik, Hossein. “Chapter 4.2.2. Exponential Distribution” In Introduction to Probability, Statistics, and Random Processes, 249-252. Kappa Research, 2014.