Registry Synced

Week 4.2: Common Continuous Distributions

529 words
3 min read

Reading compass

Now · 1. Uniform Distribution $\text{Uniform}(a,b)$

Week 4.2: Common Continuous Distributions

Prerequisites: Continuous RVs (Week 4.1: Continuous Random Variables & PDFs) Cross-links: BSMA3012 (Linear Stat Models) — error distributions Core question: What are the workhorse continuous distributions in statistics?

1. Uniform Distribution Uniform(a,b)\text{Uniform}(a,b)

PDF: fX(x)=1b−af_X(x) = \frac{1}{b-a}, a≤x≤ba \leq x \leq b CDF: FX(x)=x−ab−aF_X(x) = \frac{x-a}{b-a}, a≤x≤ba \leq x \leq b Mean: a+b2\frac{a+b}{2} Variance: (b−a)212\frac{(b-a)^2}{12} Uses: Random number generation, "uninformed" priors in Bayesian stats.

Example

Bus arrival time uniformly distributed between 0 and 30 minutes. P(wait>20)=30−2030−0=13\mathbb{P}(\text{wait} > 20) = \frac{30-20}{30-0} = \frac{1}{3}.

2. Exponential Distribution Exp(λ)\text{Exp}(\lambda)

PDF: fX(x)=λe−λxf_X(x) = \lambda e^{-\lambda x}, x≥0x \geq 0 CDF: FX(x)=1−e−λxF_X(x) = 1 - e^{-\lambda x}, x≥0x \geq 0 Mean: 1/λ1/\lambda Variance: 1/λ21/\lambda^2 Uses: Waiting times, inter-arrival times, service times. Memoryless property: P(X>s+t∣X>s)=P(X>t)\mathbb{P}(X > s + t \mid X > s) = \mathbb{P}(X > t).

Example

Light bulbs with λ=0.001\lambda = 0.001 (mean life = 1000 hours). P(bulb lasts>800)=e−0.001⋅800=e−0.8≈0.449\mathbb{P}(\text{bulb lasts} > 800) = e^{-0.001 \cdot 800} = e^{-0.8} \approx 0.449.

3. Normal (Gaussian) Distribution N(μ,σ2)\mathcal{N}(\mu, \sigma^2)

PDF: fX(x)=12πσ2exp⁡(−(x−μ)22σ2)f_X(x) = \frac{1}{\sqrt{2\pi\sigma^2}} \exp\left(-\frac{(x-\mu)^2}{2\sigma^2}\right), x∈Rx \in \mathbb{R} Mean: μ\mu Variance: σ2\sigma^2 Standard Normal: Z∼N(0,1)Z \sim \mathcal{N}(0,1), CDF denoted Φ(z)\Phi(z) 68-95-99.7 Rule:
  • P(∣X−μ∣≤σ)≈0.68\mathbb{P}(|X-\mu| \leq \sigma) \approx 0.68
  • P(∣X−μ∣≤2σ)≈0.95\mathbb{P}(|X-\mu| \leq 2\sigma) \approx 0.95
  • P(∣X−μ∣≤3σ)≈0.997\mathbb{P}(|X-\mu| \leq 3\sigma) \approx 0.997 Standardisation: Z=X−μσ∼N(0,1)Z = \frac{X - \mu}{\sigma} \sim \mathcal{N}(0,1).

Example

IQ scores ∼N(100,152)\sim \mathcal{N}(100, 15^2). P(IQ>130)=P(Z>130−10015)=P(Z>2)≈0.0228\mathbb{P}(\text{IQ} > 130) = \mathbb{P}(Z > \frac{130-100}{15}) = \mathbb{P}(Z > 2) \approx 0.0228.

4. Gamma Distribution Gamma(α,β)\text{Gamma}(\alpha, \beta)

PDF: fX(x)=βαΓ(α)xα−1e−βxf_X(x) = \frac{\beta^\alpha}{\Gamma(\alpha)} x^{\alpha-1} e^{-\beta x}, x≥0x \geq 0 Mean: α/β\alpha/\beta Variance: α/β2\alpha/\beta^2 Special cases:
  • α=1\alpha = 1: Exponential(β\beta)
  • α=n\alpha = n (integer): Sum of nn i.i.d. Exponential(β\beta)

5. Summary Table

DistributionPDFSupportE[X]\mathbb{E}[X]Var⁡(X)\operatorname{Var}(X)
Uniform( a,ba,b )1b−a\frac{1}{b-a}[a,b][a,b]a+b2\frac{a+b}{2}(b−a)212\frac{(b-a)^2}{12}
Exp( λ\lambda )λe−λx\lambda e^{-\lambda x}[0,∞)[0,\infty)1λ\frac{1}{\lambda}1λ2\frac{1}{\lambda^2}
N(μ,σ2)\mathcal{N}(\mu,\sigma^2)1σ2πe−(x−μ)22σ2\frac{1}{\sigma\sqrt{2\pi}}e^{-\frac{(x-\mu)^2}{2\sigma^2}}R\mathbb{R}μ\muσ2\sigma^2
Gamma( α,β\alpha,\beta )βαΓ(α)xα−1e−βx\frac{\beta^\alpha}{\Gamma(\alpha)}x^{\alpha-1}e^{-\beta x}[0,∞)[0,\infty)α/β\alpha/\betaα/β2\alpha/\beta^2

6. Practice Questions

Q1 (Easy)

X∼Uniform(2,5)X \sim \text{Uniform}(2, 5). Find P(X>4)\mathbb{P}(X > 4).
Full Solution
P(X>4)=5−45−2=13\mathbb{P}(X > 4) = \frac{5-4}{5-2} = \frac{1}{3}.

Q2 (Medium)

X∼N(50,102)X \sim \mathcal{N}(50, 10^2). Find P(X>65)\mathbb{P}(X > 65).
Full Solution
Z=(65−50)/10=1.5Z = (65-50)/10 = 1.5. P(Z>1.5)=1−Φ(1.5)=1−0.9332=0.0668\mathbb{P}(Z > 1.5) = 1 - \Phi(1.5) = 1 - 0.9332 = 0.0668.

Q3 (Hard)

If X∼Exp(0.5)X \sim \text{Exp}(0.5), find the median of XX.
Full Solution
Median mm satisfies F(m)=0.5F(m) = 0.5. 1−e−0.5m=0.5  ⟹  e−0.5m=0.5  ⟹  −0.5m=ln⁡(0.5)  ⟹  m=−2ln⁡(0.5)=2ln⁡2≈1.3861 - e^{-0.5m} = 0.5 \implies e^{-0.5m} = 0.5 \implies -0.5m = \ln(0.5) \implies m = -2\ln(0.5) = 2\ln 2 \approx 1.386.

Document outline

Keep your place and jump directly to a heading.

Table of contents

No note selected

Open a chapter to see its outline, backlinks, and sources here.