The Rule of the Lazy Statistician for Two Random Variables

Apply the Rule of the Lazy Statistician (LOTUS) to compute E[g(X,Y)]E[g(X,Y)] for a function of two random variables, using either the joint PMF in the discrete case or the joint PDF in the continuous case, including over non-rectangular supports.

Step 1 of 157%

Tutorial

Introduction

Suppose XX and YY are random variables with a known joint distribution, and we wish to compute the expected value of some function g(X,Y).g(X,Y). The Rule of the Lazy Statistician (LOTUS) lets us evaluate E[g(X,Y)]E[g(X,Y)] directly from the joint distribution, without first deriving the distribution of the new random variable Z=g(X,Y).Z=g(X,Y).

In the discrete case, if XX and YY have joint PMF pX,Y(x,y),p_{X,Y}(x,y), then

E[g(X,Y)]=xyg(x,y)pX,Y(x,y).E[g(X,Y)] = \sum\limits_{x}\sum\limits_{y} g(x,y)\, p_{X,Y}(x,y).

The double sum ranges over all (x,y)(x,y) pairs in the support.

For example, suppose XX and YY have joint PMF

pX,Y(x,y)y=0y=1x=00.10.2x=10.30.4\begin{array}{c|cc} p_{X,Y}(x,y) & y=0 & y=1 \\ \hline x=0 & 0.1 & 0.2 \\ x=1 & 0.3 & 0.4 \end{array}

Then

E[X+Y]=xy(x+y)pX,Y(x,y)=(0+0)(0.1)+(0+1)(0.2)+(1+0)(0.3)+(1+1)(0.4)=0+0.2+0.3+0.8=1.3.\begin{align*} E[X+Y] &= \sum\limits_x\sum\limits_y (x+y)\, p_{X,Y}(x,y) \\ &= (0+0)(0.1) + (0+1)(0.2) \\ &\quad + (1+0)(0.3) + (1+1)(0.4) \\ &= 0 + 0.2 + 0.3 + 0.8 \\ &= 1.3. \end{align*}
navigate · Enter open · Esc close · ⌘K/Ctrl K toggle