Skip to content

Convolution of Independent Random Variables

Theorem

For independent continuous random variables XX and YY, the density of X+YX+Y is the convolution of their densities; independence is what lets the joint density factor into the two marginal densities:

fX+Y(t)=∫fX(x) fY(t−x) dx.\begin{aligned} f_{X+Y}(t)=\int f_X(x)\,f_Y(t-x)\,\mathrm{d}x. \end{aligned}

Interpretation

A sum can reach a value in many ways. For X+YX+Y to be near tt, XX takes some value xx and YY must take the matching value t−xt-x; convolution adds up all these splits, each weighted by fX(x)fY(t−x)f_X(x)f_Y(t-x).

Exponential densities for X and Y, the density t times e to the minus t of their sum, and a shaded rectangle over x from 0 to 2 whose area gives the density of the sum at t = 2.

For independent X,Y∼Exp⁡(1)X,Y\sim\operatorname{Exp}(1), the product e−xe−(2−x)=e−2\mathrm{e}^{-x}\mathrm{e}^{-(2-x)}=\mathrm{e}^{-2} is constant for 0<x<20<x<2, so the green region is a rectangle of height e−2≈0.135\mathrm{e}^{-2}\approx0.135 and width 22. Its area fX+Y(2)=2e−2≈0.27f_{X+Y}(2)=2\mathrm{e}^{-2}\approx0.27 is the height of the red point. More generally, fX+Y(t)=te−tf_{X+Y}(t)=t\mathrm{e}^{-t} for t>0t>0.

Independence is what turns the joint density fX,Y(x,t−x)f_{X,Y}(x,t-x) into the product fX(x)fY(t−x)f_X(x)f_Y(t-x). Without it the formula fails: for X∼Unif⁡(0,1)X\sim\operatorname{Unif}(0,1) and Y=XY=X, the sum 2X2X is uniform on (0,2)(0,2) with density 1/21/2, whereas the convolution of two uniform densities gives the triangular density. The integral only runs over the xx for which both factors are positive, which for exponentials is 0<x<t0<x<t.

The discrete version is the sum used for two dice in Probability Theory (sum of independent random variables). Moment generating functions give a second route: by the MGF of an independent sum, MX+Y=MXMYM_{X+Y}=M_XM_Y, which avoids the integral when the product is a recognizable MGF. The density te−tt\mathrm{e}^{-t} found here is the Gamma distribution with shape 22 and rate 11.

Adding values is not adding densities: fX+fYf_X+f_Y has total integral 22, and the product fX(t)fY(t)f_X(t)f_Y(t) is not a density of the sum either.


Key Results

  • For independent discrete variables, pX+Y(t)=∑xpX(x)pY(t−x)\displaystyle p_{X+Y}(t)=\sum_xp_X(x)p_Y(t-x).
  • For independent variables with densities, the integral is over xx for which both density factors are nonzero.

Examples

  • For independent Exp⁡(1)\operatorname{Exp}(1) variables, fX+Y(t)=∫0te−xe−(t−x) dx=te−tf_{X+Y}(t)=\int_0^t\mathrm{e}^{-x}\mathrm{e}^{-(t-x)}\,\mathrm{d}x=t\mathrm{e}^{-t} for t>0t>0.
  • For independent fair Bernoulli variables, the sum has masses 1/4,1/2,1/41/4,1/2,1/4 at 0,1,20,1,2.

Prerequisites

Sources

Aliases: convolution formula, convolution integral Symbols: integral, sum

Last updated: 20 October 2026 03:02