So, I've got this exercise
Two independent random variables $X,Y$ ~ Uniform $[0, 1]$. Find the probability function of the random variable $Z=X−Y$. Compute expectation of $E [Z]$
So, I need to find the probaiblity function for the difference $X$ and $Y$, right?
$f(c)$= $P(z≤c)$= $P(x−y≤c)$ for any $c ∈ ℝ$
Can someone compute it, please? I was somehow able to do the expectation, not sure, though. Can anyone check it?
$E(Z)=E(X−Y)=E(X)−E(Y)=0.5−0.5=0.$
Thank you.
This result is independent of a value of $E(X)$ and $E(Y)$, because $X$ and $Y$ have the same distribution and thus $E(X)=E(Y)$, so by linearity of expectation $E(Z)=0$.