Exponential Distribution#
Definition#
(Exponential Distribution (PDF))
\(X\) is a continuous random variable with an exponential distribution if the probability density function is given by:
where \(\lambda > 0\) is the rate parameter (rate of decay).
Some conventions:
We write \(X \sim \exponential(\lambda)\) to indicate that \(X\) has an exponential distribution with rate parameter \(\lambda\).
(Exponential Distribution (PDF))
When \(\lambda = 0\), we have,
This means that \(\pdf(0)\) will be more than 1 if \(\lambda > 0\) [Chan, 2021].
(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 115:
The PDF and CDF of two exponential distributions are shown below.
Show 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()
Expectation and Variance#
(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:
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.