If $X$ and $Y$ are independent, what is the distribution of $X + Y$? Not the sum of the two distributions: a total can be made in several ways, and we must add over all of them. This uses the independence of random variables and, for densities, integrating out a variable.
Key idea
Why it works
Worked examples
Worked example: Two dice
- Two dice: the splits $(1, 6), (2, 5), \ldots, (6, 1)$ each have probability $\frac{1}{36}$: total $\frac{6}{36} = \frac{1}{6}$.
- Four-sided and six-sided: the splits $(1, 4), (2, 3), (3, 2), (4, 1)$ each have probability $\frac{1}{24}$: total $\frac{4}{24} = \frac{1}{6}$.
Answer: $\frac{1}{6}$ in both cases.
Worked example: Two uniforms
- $f_S(s) = \int_{0}^{1} f_Y(s - t)\,dt$ is the length of $\{t \in [0, 1]: 0 \le s - t \le 1\}$.
- For $0 \le s \le 1$ that set is $[0, s]$: $f_S(s) = s$. For $1 \le s \le 2$ it is $[s - 1, 1]$: $f_S(s) = 2 - s$.
- A triangle peaking at $s = 1$: middle totals can be made in more ways.
Answer: $f_S(s) = s$ on $[0, 1]$ and $2 - s$ on $[1, 2]$.
Worked example: Two Poisson counts
- $$P(X + Y = n) = \sum_{k = 0}^{n} e^{-\lambda}\frac{\lambda^{k}}{k!}e^{-\mu}\frac{\mu^{n - k}}{(n - k)!}$$
- $$= \frac{e^{-(\lambda + \mu)}}{n!}\sum_{k} \binom{n}{k}\lambda^{k}\mu^{n - k} = e^{-(\lambda + \mu)}\frac{(\lambda + \mu)^{n}}{n!}$$ by the binomial theorem.
Answer: Poisson with mean $\lambda + \mu$. (Similarly, binomials with the same $p$ add: $n_1 + n_2$ trials.)
Common mistake