I need help with a part of the following question:
The rounding error obtained when rounding to the nearest whole number can be regarded as a stochastic variable with uniform distribution on the interval $(−0.5, 0.5)$. Suppose you round two numbers and let $Z$ be the total error. Determine the distribution function for $Z$ and calculate $P(Z > 0.5)$. Determine the probability density function for $Z$ and draw it.
The solution suggests drawing the area of $\{(x, y) \in [-0.5, 0.5]^2 : x + y \leq z\}$, probably to find the bounds to calculate the function.
My first question is: how do I draw this area?
For $-1<z<0$ the bounds are $ -0.5 \leq x\ ≤ z + 0.5$ and $-0.5 ≤ y ≤ z-x$, but why wouldn't the upper bound for the integral of $x$ be $z-y$?
Thanks in advance for help.