Hexa Scholar

Convolution: the distribution of a sum

Two hourglasses, one with a navy frame and one with a gold frame, stand behind an empty cream tray on a wooden table.
Two hourglasses stand for two stages of waiting.

The question

Knowing each wait separately is the starting point. The question concerns their total.

  1. 1 SeeSketch a density, then check it.
  2. 2 TryCompare several independent sums.
  3. 3 ProveBuild the area argument.
  4. 4 ApplyCalculate densities and probabilities.
Before you start · 3 quick checks on density, total probability, and independence

Two ideas before you start

2 ideas

Read a density as probability per unit

A uniform density and a shaded interval under it.

A height is a rate. Shade an interval to turn that rate into a probability.

Exact definition

A variable uniform on \([0,a]\), written \(U(0,a)\), has density \(1/a\) there and zero elsewhere, with \(a\gt0\). Its probability in an interval is the area under this rectangle. The card uses a width of four. Changing density values at individual endpoints changes no probability.

For a variable with density \(f_X\), the cumulative distribution function is \(F_X(t)=P(X\le t)\). It adds the area to the left of \(t\). The PMF, PDF, and CDF lesson explains this distinction. Here the new task is to find the density of a different variable, a sum.

Keep track of both contributions

Two consecutive segments on a number line represent two contributions and their total.

The total records the endpoint of both segments together. It does not tell you how much came from each segment.

Exact definition

Let \(X\) and \(Y\) be random variables on the same experiment. Define \(S=X+Y\). For a proposed total \(s\), knowing the first contribution \(x\) fixes the other as \(y=s-x\). Lowercase letters denote values, and uppercase letters denote variables. The card illustrates addition of values; it makes no probability claim.

Independence means that learning an event about one variable does not change probabilities for the other. Formally, probabilities of events \(X\in A\) and \(Y\in B\) multiply for every pair of sets. When both variables have densities and are independent, their joint density is \(f_X(x)f_Y(y)\). Marginal densities alone do not specify this joint behavior.

Refresher: probability over a region

A joint density describes a pair of values. Integrating it over a region in the \((x,y)\) plane gives the probability of that region. For independent unit uniform variables, the joint density is one in the unit square. A region's ordinary area is then its probability. Lines and individual points have zero probability in this model.

To integrate over a region, use vertical slices: fix \(x\), integrate over the allowed \(y\), and then integrate over \(x\). Nonnegative integrands allow this order of integration. This supplies the joint-density fact used below; no separate multivariable-integration lesson is required.

1 See

Sketch the total's density

Solid outline: the density of X. Dashed outline: the density of Y, before reflection or shifting. Both are zero outside their shown supports.

Horizontal axis: total s. Vertical axis: proposed density. Move the handles to make your sketch.
2 Try

Add another independent contribution

The next question concerns a fresh sum of independent unit uniform variables. Make a choice before opening the comparison.

3 Prove

From a region to a density

Convolution rule

If X and Y are independent and have probability densities, their sum S has a density given, almost everywhere, by

\[f_S(s)=\int_{-\infty}^{\infty}f_X(x)f_Y(s-x)\,dx.\]

“Almost everywhere” permits a set of exceptional values of zero length; choices there do not affect probabilities. All densities drawn here use the stated continuous version for the sum.

Why this rule holds for general densities

Integrate the independent joint density over \(x+y\le s\). For each fixed x, substitute \(t=x+y\), so \(dt=dy\). Interchanging the nonnegative integrals gives

\[\begin{aligned}g(t)&=\int_{-\infty}^{\infty}f_X(x)f_Y(t-x)\,dx,\\ F_S(s)&=\int_{-\infty}^{s}g(t)\,dt.\end{aligned}\]

The function \(g\) is nonnegative, and \(F_S(s)\) is its integral up to s for every s, so \(g\) is a density for S. Its integral over all t is one because each input density integrates to one. This argument identifies a density without assuming it is differentiable or continuous at every point. Independence is used to replace the joint density by a product.

Build a concrete instance: X and Y are independent U(0,1) variables. Fix \(0\lt s\lt1\). The builder derives the rising branch of the density from the area below \(x+y=s\) inside the unit square. In its first line also fix \(0\lt x\lt s\); the endpoints are treated after the proof.

4 Apply

Use the distribution you built

Use what you found above. Enter a decimal without units; the acceptance tolerance is stated in each problem. First decide whether the question asks for a mass, a density height, or an interval probability. Hints and worked solutions are available after you act.

Key point Check independence and support before multiplying. Integrate a density over the requested interval to obtain a probability; a density height alone is not that probability.
Level IntroPrerequisites PMF, PDF, and CDF; expectation and variance; joint densities refreshed aboveTime About 35 min

Further reading