Hi,
I have 2 random variables X and Y, both uniform distributions between 0
and
1.
Now I take Z = X+Y.
If Z < 1 then E = -X
If Z >= 1 then E = 1-X
(actually E is the error between floor(Z) and X, and I am interested in
the
statistics of approaching X by floor(Z))
Now I want to find the pdf of E. I know/expect this will be a triangular
distribution between -1 and 1 and the top at 0.
But I can't really find a mathematical description that proves it is.
Any help or pointers would be very much appreciated!
NL