The Rule of the Lazy Statistician

Compute the expected value of a function of a continuous random variable by integrating that function against the variable's PDF, without first deriving the distribution of the transformed variable.

Step 1 of 157%

Tutorial

Introduction

Suppose XX is a continuous random variable with PDF fXf_X, and we wish to compute the expected value of Y=g(X)Y = g(X) for some function g.g. One option is to first derive the PDF of YY and then integrate yfY(y).y\, f_Y(y). The rule of the lazy statistician (LOTUS) lets us skip that step entirely.

If XX is a continuous random variable with PDF fXf_X and gg is a real-valued function, then

E[g(X)]=g(x)fX(x)dx.E[g(X)] = \int_{-\infty}^{\infty} g(x)\, f_X(x)\, dx.

The name reflects the shortcut: we integrate gg directly against the PDF of X,X, without ever finding the distribution of g(X).g(X).

For example, suppose XX is uniform on [0,1],[0,1], so fX(x)=1f_X(x) = 1 for x[0,1].x \in [0,1]. Applying LOTUS with g(x)=x2:g(x) = x^2{:}

E[X2]=01x21dx=[x33]01=13.E[X^2] = \int_0^1 x^2 \cdot 1\, dx = \left[\dfrac{x^3}{3}\right]_0^1 = \dfrac{1}{3}.
navigate · Enter open · Esc close · ⌘K/Ctrl K toggle