Expected Values of Continuous Random Variables

Define and compute the expected value of a continuous random variable using the integral E[X] = ∫ x f(x) dx, apply the Law of the Unconscious Statistician (LOTUS) to compute E[g(X)], and evaluate expected values when the support is infinite.

Step 1 of 128%

Tutorial

Expected Value of a Continuous Random Variable

For a discrete random variable, the expected value is a weighted sum of outcomes weighted by their probabilities. For a continuous random variable, we replace the sum with an integral and the probability mass function with the probability density function.

The expected value of a continuous random variable XX with probability density function f(x)f(x) is defined as

E[X]=xf(x)dx.E[X] = \int_{-\infty}^{\infty} x\, f(x)\, dx.

If f(x)=0f(x) = 0 outside an interval [a,b][a,b], the formula simplifies to

E[X]=abxf(x)dx.E[X] = \int_a^b x\, f(x)\, dx.

For example, suppose XX has density f(x)=1f(x) = 1 for 0x10 \le x \le 1 (and 00 otherwise). Then

E[X]=01x1dx=[x22]01=12.E[X] = \int_0^1 x \cdot 1\, dx = \left[\dfrac{x^2}{2}\right]_0^1 = \dfrac{1}{2}.

This is exactly what we expect: the average value of a uniformly distributed point on [0,1][0,1] is the midpoint 12\tfrac{1}{2}.

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