Continuous Random Variables
View .md

Continuous Random Variables

What is a Continuous Random Variable?

A continuous random variable takes values in an interval (uncountable set). Unlike discrete variables, individual points have zero probability—only intervals have positive probability.

Key Difference

  • Discrete: P(X=x)P(X = x) can be positive
  • Continuous: P(X=x)=0P(X = x) = 0 for any specific value xx

Probability Density Function (PDF)

The PDF fX(x)f_X(x) describes how probability is distributed along the real line:

P(a≤X≤b)=∫abfX(x) dxP(a \leq X \leq b) = \int_a^b f_X(x) \, dx

Properties

  1. fX(x)≥0f_X(x) \geq 0 for all xx
  2. ∫−∞∞fX(x) dx=1\int_{-\infty}^{\infty} f_X(x) \, dx = 1 (total probability is 1)

Interpretation

The PDF is not a probability—it’s a density (probability per unit length). The value fX(x)f_X(x) can be greater than 1!

Small Intervals

For a small interval of length δ\delta:

P(x≤X≤x+δ)≈fX(x)⋅δP(x \leq X \leq x + \delta) \approx f_X(x) \cdot \delta


Cumulative Distribution Function (CDF)

The CDF gives the probability of being less than or equal to a value:

FX(x)=P(X≤x)=∫−∞xfX(t) dtF_X(x) = P(X \leq x) = \int_{-\infty}^x f_X(t) \, dt

Properties

  1. FX(x)F_X(x) is non-decreasing
  2. lim⁡x→−∞FX(x)=0\lim_{x \to -\infty} F_X(x) = 0
  3. lim⁡x→∞FX(x)=1\lim_{x \to \infty} F_X(x) = 1
  4. P(a≤X≤b)=FX(b)−FX(a)P(a \leq X \leq b) = F_X(b) - F_X(a)

Relation to PDF

fX(x)=ddxFX(x)f_X(x) = \frac{d}{dx} F_X(x)

The PDF is the derivative of the CDF.


Common Continuous Distributions

Uniform

All values in [a,b][a, b] equally likely:

fX(x)=1b−afor a≤x≤bf_X(x) = \frac{1}{b-a} \quad \text{for } a \leq x \leq b

Exponential

Time until an event occurs:

fX(x)=λe−λxfor x≥0f_X(x) = \lambda e^{-\lambda x} \quad \text{for } x \geq 0

Normal (Gaussian)

Bell-shaped curve:

fX(x)=1σ2πe−(x−μ)22σ2f_X(x) = \frac{1}{\sigma\sqrt{2\pi}} e^{-\frac{(x-\mu)^2}{2\sigma^2}}


Expected Value and Variance

Expected Value

E[X]=∫−∞∞x⋅fX(x) dxE[X] = \int_{-\infty}^{\infty} x \cdot f_X(x) \, dx

Variance

Var(X)=E[(X−E[X])2]=E[X2]−(E[X])2\text{Var}(X) = E[(X - E[X])^2] = E[X^2] - (E[X])^2

Uniform Example

For X∼Uniform(a,b)X \sim \text{Uniform}(a, b):

  • E[X]=a+b2E[X] = \frac{a + b}{2} (midpoint)
  • Var(X)=(b−a)212\text{Var}(X) = \frac{(b-a)^2}{12}

Key Terms

Continuous Random VariableA random variable that can take any value in an interval; probabilities are given by integrating the PDF.
PDFProbability Density Function — f(x)≥0f(x) \geq 0 where P(a≤X≤b)=∫abf(x) dxP(a \leq X \leq b) = \int_a^b f(x) \, dx.
CDFCumulative Distribution Function — F(x)=P(X≤x)F(x) = P(X \leq x), always non-decreasing with F(−∞)=0F(-\infty)=0 and F(∞)=1F(\infty)=1.
Uniform DistributionA continuous distribution where all values in an interval [a, b] are equally likely; f(x) = 1/(b−a).
Exponential DistributionModels the time between events in a Poisson process; f(x) = λe^(−λx) for x ≥ 0.
Normal DistributionThe bell curve: f(x)=1σ2πexp⁡(−(x−μ)22σ2)f(x) = \frac{1}{\sigma\sqrt{2\pi}} \exp\left(-\frac{(x-\mu)^2}{2\sigma^2}\right), characterized by mean μ\mu and standard deviation σ\sigma.