Approximating Discrete Random Variables as Continuous

When a discrete random variable takes many closely-spaced values, its distribution can be replaced with a continuous approximating density. This lesson covers deriving the density from discrete probabilities and using it to estimate probabilities over intervals via integration.

Step 1 of 119%

Tutorial

Approximating a Discrete Distribution with a Density

When a discrete random variable takes many closely-spaced values, we can replace its discrete distribution with a continuous approximating density.

Suppose XX takes values x1<x2<<xNx_1 < x_2 < \cdots < x_N evenly spaced by Δx.\Delta x. If Δx\Delta x is small, we match each discrete probability to a density ff via

P(X=xi)f(xi)Δx,P(X = x_i) \approx f(x_i) \cdot \Delta x,

so that

f(xi)P(X=xi)Δx.f(x_i) \approx \dfrac{P(X = x_i)}{\Delta x}.

The function ff then plays the role of a probability density for XX on the continuous range.

Example. Let XX take values xk=k/Nx_k = k/N for k=1,2,,Nk = 1, 2, \ldots, N with P(X=xk)=1/NP(X = x_k) = 1/N (uniform on these values). The spacing is Δx=1/N,\Delta x = 1/N, so

f(xk)1/N1/N=1.f(x_k) \approx \dfrac{1/N}{1/N} = 1.

The approximating density is f(x)=1f(x) = 1 on [0,1][0, 1] — the continuous uniform distribution on [0,1].[0,1].

navigate · Enter open · Esc close · ⌘K/Ctrl K toggle