Skip to content

Two-Dimensional LOTUS for Continuous Variables

Theorem

For a jointly continuous pair (X,Y)(X,Y) and a Borel-measurable function gg with ∬∣g(x,y)∣fX,Y(x,y) dx dy<∞\iint |g(x,y)|f_{X,Y}(x,y)\,\mathrm{d}x\,\mathrm{d}y<\infty,

E[g(X,Y)]=∬g(x,y) fX,Y(x,y) dx dy.\mathbb{E}[g(X,Y)] =\iint g(x,y)\,f_{X,Y}(x,y)\,\mathrm{d}x\,\mathrm{d}y.

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


Interpretation

Two-dimensional LOTUS computes the mean of a function g(X,Y)g(X,Y) of a continuous pair directly from the joint density: weight each value g(x,y)g(x,y) by fX,Y(x,y)f_{X,Y}(x,y) and integrate over the plane. The distribution of the new random variable g(X,Y)g(X,Y) is never needed, and the pair need not be independent.

The unit square with uniform joint density and level curves of g(x, y) = xy at 0.05, 0.25, 0.5 and 0.75, illustrating how the expectation of XY weights values of g by the density.

On the unit square the density is 11, so E[g(X,Y)]\mathbb{E}[g(X,Y)] is simply the average of gg over the square. Along each blue level curve xy=cxy=c the function gg has the constant value cc, and most of the square lies where xyxy is small. Here E[XY]=∫01 ⁣ ⁣∫01xy dx dy=14\mathbb{E}[XY]=\displaystyle\int_0^1\!\!\int_0^1xy\,\mathrm{d}x\,\mathrm{d}y=\tfrac{1}{4}, without finding the distribution of XYXY.

The theorem is the LOTUS of Probability Theory with a double integral instead of a single one, and the continuous counterpart of the discrete two-dimensional version. The integrability condition makes the integral a well-defined finite number; for g≥0g\ge0 it may be dropped if an infinite answer is allowed. Choosing gg gives the standard quantities: g(x,y)=xyg(x,y)=xy gives E[XY]\mathbb{E}[XY] for the covariance, g(x,y)=x+yg(x,y)=x+y gives EX+EY\mathbb{E}X+\mathbb{E}Y for any dependence provided E∣X∣<∞\mathbb{E}|X|<\infty and E∣Y∣<∞\mathbb{E}|Y|<\infty, and an indicator of a region gives its probability.

For the dependent pair with density 22 on 0<x<y<10<x<y<1, E[XY]=∫01∫0y2xy dx dy=1/4\mathbb{E}[XY]=\int_0^1\int_0^y2xy\,\mathrm{d}x\,\mathrm{d}y=1/4, while EX=1/3\mathbb{E}X=1/3 and EY=2/3\mathbb{E}Y=2/3. So Cov⁡(X,Y)=1/4−2/9=1/36\operatorname{Cov}(X,Y)=1/4-2/9=1/36. For independent variables the double integral factors and E[XY]=EX EY\mathbb{E}[XY]=\mathbb{E}X\,\mathbb{E}Y.

In general E[g(X,Y)]≠g(EX,EY)\mathbb{E}[g(X,Y)]\ne g(\mathbb{E}X,\mathbb{E}Y): for the triangle, E[XY]=1/4\mathbb{E}[XY]=1/4 but EX EY=2/9\mathbb{E}X\,\mathbb{E}Y=2/9.


Key Results

  • For g(x,y)=xyg(x,y)=xy, the integral gives E[XY]\mathbb{E}[XY].
  • For an indicator of a region BB, it gives P((X,Y)∈B)\mathbb{P}((X,Y)\in B).

Examples

  • For independent uniform coordinates on (0,1)(0,1), E[XY]=∫01∫01xy dx dy=1/4\mathbb{E}[XY]=\int_0^1\int_0^1xy\,\mathrm{d}x\,\mathrm{d}y=1/4.
  • For density 22 on 0<x<y<10<x<y<1, EX=∫01∫0y2x dx dy=1/3\mathbb{E}X=\int_0^1\int_0^y2x\,\mathrm{d}x\,\mathrm{d}y=1/3.

Prerequisites

Sources

Keywords: LOTUS Symbols: element of, infinity, integral

Last updated: 27 October 2026 11:52