Skip to content

Two-Dimensional LOTUS for Discrete Variables

Theorem

For a discrete pair (X,Y)(X,Y) and a function gg with ∑x,y∣g(x,y)∣pX,Y(x,y)<∞\displaystyle \sum_{x,y}|g(x,y)|p_{X,Y}(x,y)<\infty,

E[g(X,Y)]=∑x∑yg(x,y) pX,Y(x,y).\begin{aligned} \mathbb{E}[g(X,Y)]=\sum_x\sum_y g(x,y)\,p_{X,Y}(x,y). \end{aligned}

For g≥0g\ge0 the formula also holds without this assumption, as an extended (possibly infinite) expectation.


Interpretation

A function of two variables can be averaged directly using their joint PMF, even when the variables are dependent: each pair (x,y)(x,y) contributes the value g(x,y)g(x,y) times its mass. There is no need to work out the distribution of g(X,Y)g(X,Y) first.

A 6 by 6 grid of two-dice outcomes with the anti-diagonal pairs that sum to 7 highlighted; averaging the indicator over the grid gives 1/6.

For two fair dice, take g(x,y)=1g(x,y)=1 if x+y=7x+y=7 and g(x,y)=0g(x,y)=0 otherwise, the indicator of the event {X+Y=7}\{X+Y=7\}. It equals 11 on the six red pairs of the anti-diagonal and 00 on the other 3030 pairs. Each pair has mass 136\tfrac{1}{36}, so E[g(X,Y)]=6⋅136=16\mathbb{E}[g(X,Y)]=6\cdot\tfrac{1}{36}=\tfrac{1}{6}, which is P(X+Y=7)\mathbb{P}(X+Y=7): the expectation of an indicator is the probability of its event.

This is LOTUS with the pair (X,Y)(X,Y) in place of a single variable, so the weights are joint masses, not the two marginal PMFs. The difference matters: for X=Y∼Bern⁡(12)X=Y\sim\operatorname{Bern}(\tfrac{1}{2}), E[XY]=E[X2]=12\mathbb{E}[XY]=\mathbb{E}[X^2]=\tfrac{1}{2}, while for independent fair Bernoulli variables, with the same marginals, E[XY]=14\mathbb{E}[XY]=\tfrac{1}{4}. The summability condition guarantees that the double sum has the same finite value in any order of summation.

Choosing gg gives familiar rules. With g(x,y)=x+yg(x,y)=x+y the double sum splits into ∑xx pX(x)+∑yy pY(y)\displaystyle \sum_xx\,p_X(x)+\sum_yy\,p_Y(y), which is linearity of expectation, E[X+Y]=EX+EY\mathbb{E}[X+Y]=\mathbb{E}X+\mathbb{E}Y, without any independence assumption, provided both means exist. For independent XX and YY the joint PMF factorizes, and g(x,y)=xyg(x,y)=xy gives E[XY]=EX EY\mathbb{E}[XY]=\mathbb{E}X\,\mathbb{E}Y. The continuous version replaces the sums by an integral against a joint density.


Key Results

  • Choosing g(x,y)=xyg(x,y)=xy gives E[XY]\mathbb{E}[XY].
  • Choosing g(x,y)=𝟙1{x+y≤c}g(x,y)=\indicator_{\{x+y\le c\}} gives P(X+Y≤c)\mathbb{P}(X+Y\le c).

Examples

  • For independent fair Bernoulli variables, E[XY]=1(1/4)=1/4\mathbb{E}[XY]=1(1/4)=1/4.
  • For independent fair dice, E[𝟙1{X+Y=7}]=6(1/36)=1/6\mathbb{E}[\indicator_{\{X+Y=7\}}]=6(1/36)=1/6.

Prerequisites

Sources

Keywords: LOTUS Symbols: infinity, sum

Last updated: 20 October 2026 03:02