[Math] PDF of sum of two uniform random variables

probabilitystatistics

Prior to my question I would like to say that I have read all relevant questions on this topic on stack exchange and other websites, but I am still struggling understanding geometrically what is going on.

My question:

The PDF of the sum of two uniform random variables $X$ and $Y$, $X+Y=Z$.
The solutions can be found at various places but I am having a difficulty finding the bounds when using the convolution approach.

When I draw $x$ and $y$ I can see that $z$ is between $0$ and $2$, because when you plug in $z=0$ you obtain $y=x$ and the square formed by $x$ and $y$ is not included below the line. Similarly, when you plug in $z=2$ the entire square is below the line.

Here is where I am unable to understand what happens. Why does the probability change at $z=1$ which causes us to split the integral? And how does this form the triangular shape for the density of $Z$? I am unable to understand the interaction between two variables and their probabilities, and for this I am unable to correctly understand the bounds of integration.

Best Answer

Think of the joint pdf being a cheese-cube flushed against axes in the first octant. Now, imagine the line $y = z- x$ being a long blade cutting the cheese-cube from the top. The part of cheese-cube cut off by the blade on the bottom-left corner is the CDF of $X+Y$. For $z < 1$, the part of cheese-cube cut off by the blade on the bottom-left corner is a triangular prism. For $z > 1$, the shape is different (in this case, it is the cube with a triangular prism taken out). Hopefully, this helps you see why the integral needs to be split at $z=1$.

Related Question