Sum of Normal Distributions
Convolution and the Sum of Random Variables
Introduction: The Sum of Normal Distributions
The normal distribution has a familiar bell curve shape. For a random variable x drawn from a normal distribution, the probability that x falls within a given range equals the area under the curve over that range. For example, P(−1≤x≤2) is the area under the normal curve between −1 and 2.
Consider two independent normal distributions, one with a larger spread (larger standard deviation). Repeatedly sample both, add the results, and observe the distribution of the sum. The quiz: what distribution describes this sum? The answer is another normal distribution, but the real goal is to understand why. This deep insight reveals why normal distributions are so central in probability.
More generally, adding two random variables (regardless of their distribution) corresponds to a special operation on their underlying distributions called a convolution. The primary goals are to:
Build two distinct visualizations of convolution for continuous functions.
Discuss how these visualizations are useful, especially for the central limit theorem.
Provide an unusually satisfying answer to the opening quiz.
Discrete Warm-Up: Weighted Dice
To build intuition, start with a finite, discrete case: two weighted dice (blue and red, each with values 1–6). The blue die is biased toward lower values, the red has a distinct distribution. Repeatedly sampling both and recording the sum gives a heuristic sense, but the precise distribution can be computed.
Independence: The probability of a specific outcome (e.g., blue=4, red=2) is the product of the individual probabilities: P(blue=4)×P(red=2). This relies on the dice rolls being independent. The entire analysis assumes independence, which must be verified in real-world applications.
Visualization 1: Grid of Outcomes
Organize all 36 possible outcomes in a 6×6 grid. Place the blue die probabilities along the bottom, red die probabilities along the left. Each cell contains the product of the corresponding probabilities — essentially a multiplication table. Plotting these products as bar heights gives a 3D representation showing all outcome probabilities.
To find the probability of a specific sum s (e.g., s=6), highlight all cells where blue + red = s — these lie on a diagonal. The probability of that sum is the sum of all products on that diagonal. In 3D, this is like collapsing the surface along a diagonal direction.
Visualization 2: Sliding Dot Product
Take the bottom distribution (blue) and flip it horizontally so that die values increase from right to left. When positioned so that 1 lines up with 6, 2 with 5, etc., all aligned pairs sum to 7. The probability of rolling a 7 is the dot product of the aligned probabilities: multiply each pair, then add.
Sliding the flipped distribution to different positions aligns pairs that sum to other values. For each position s, compute the dot product to get P(sum=s). This operation is identical to the diagonal slice method — just two views of the same process.
Formal Definition (Discrete)
Let pX(x) be the probability function for the first die, pY(y) for the second. The convolution pX∗pY gives the distribution of the sum X+Y:
The sum is over all possible x values (here 1 to 6). If s−x falls outside the defined domain (e.g., negative values), define pY as 0 there (impossible outcomes). This operation combines two functions to produce a new one.
Continuous Distributions and Probability Density
For continuous random variables (e.g., temperature, wait times), the random variable can take any real value. The probability density function (PDF) replaces the discrete probability function. The probability that a sample lies in [a,b] is the area under the PDF:
where f(x) is the PDF.
Convolution Integral
The discrete sum becomes an integral in the continuous case. For two independent continuous variables X and Y with PDFs f and g, the PDF of the sum S=X+Y is the convolution:
This integral iterates over all x, evaluating the product of f(x) and the flipped-and-shifted version of g (i.e., g(s−x)). The result is the new PDF fX+Y(s).
Interactive Demo Interpretation
To understand the integral:
Plot f(x) (e.g., wedge-shaped) and g(y) (e.g., double-lump).
Graph g(s−x): flipping g horizontally (due to −x) then shifting by s (left if s>0, right if s<0).
Multiply pointwise: f(x)⋅g(s−x).
The area under this product curve equals (f∗g)(s).
As s varies, the product shape changes, and the resulting area defines the convolution function.
Example: Two Uniform Distributions
Let each variable be uniform on [−0.5,0.5], so f(x)=1 on that interval, 0 elsewhere. The product f(x)g(s−x) is 1 where the two rectangles overlap, 0 otherwise. The overlap length varies linearly with s, giving a triangular (wedge) shape for the sum distribution: zero at s=−1, linear increase to a maximum at s=0, then decrease to zero at s=1. This matches the discrete dice analogy (two fair dice give a triangular distribution from 2 to 12, peaking at 7).
Repeated Convolutions and the Central Limit Theorem
Sum of Three Uniform Variables
To find the distribution for the sum of three independent uniform variables, convolve the triangular distribution (sum of two) with the uniform rectangle. Using the demo: the product graph at each s is a windowed copy of the triangular function. The resulting area yields a smoother, more bell-like shape — effectively a moving average of the triangular function.
Repeated Smoothing
Repeating the convolution:
4 uniforms: convolve the three-uniform shape with the rectangle → even smoother.
With each convolution, the distribution becomes progressively smoother, its shape approaching the normal (Gaussian) bell curve.
Central Limit Theorem (CLT): For sums of many independent, identically distributed random variables (with finite variance), the distribution of the sum (after appropriate rescaling) tends to a normal distribution, regardless of the original distribution's shape. Convolution is the mathematical operation underlying this: repeated smoothing drives the distribution toward an attractive fixed point — the normal distribution.
Diagonal Slice Visualization (Continuous)
This visualization generalizes the discrete grid method to the continuous plane.
Joint Density Surface
For two independent continuous variables X and Y with PDFs f and g, the joint density at point (x,y) is f(x)g(y). This defines a surface over the xy-plane. The surface has f's shape when viewed along the x-axis and g's shape along the y-axis.
Diagonal Slices
The condition x+y=s defines a diagonal line in the plane. The slice of the joint density surface along that line is a curve whose height at each x is f(x)g(s−x). The area under this curve (i.e., the integral of the slice) is directly related to the convolution value.
As s changes, the diagonal line shifts, and the slice shape changes accordingly. This provides a symmetric view: f and g appear symmetrically, making it clear that convolution is commutative (f∗g=g∗f).
Relationship to the Product Graph Visualization
The diagonal slice and the product graph f(x)g(s−x) are the same shape — both show all products of probabilities for pairs summing to s. The two visualizations are equivalent; the slice view emphasizes symmetry and the geometric interpretation.
Technical note: The diagonal line is at a 45∘ angle, so a small step along it corresponds to a change in x of Δx, but the actual arc length is longer by a factor of 2. Therefore, the integral along the slice (with respect to arc length) equals 2 times the integral with respect to x. To obtain the correct convolution value, the area of the diagonal slice must be divided by 2:
This accounts for the stretching factor.
Summary of the Construction
Start with independent variables X and Y, PDFs f and g.
Form the joint density surface f(x)g(y) over R2.
For a given sum s, consider the line x+y=s.
The slice of the surface along that line gives the function hs(x)=f(x)g(s−x).
The area of this slice (with respect to arc length) is 2⋅(f∗g)(s).

Ask anything
We've read this whole study set, so questions about it get the best answers.