I need to calculate the distribution of X and Y knowing that X is uniformly distributed in [0,2] and Y is exponentially distributed with variance $1/4$, when X and Y are independent.
So first I've inferred the mean of Y knowing that $Var(Y) = 1/λ^2 = 1/4$ so $λ = 2$ and $E(Y)= 1/2$
I know that $E(X) = (a+b)/2 = 1 $ and $Var(X) = (b-a)^2/12 = 1/3$
I know that $E(X + Y) = E(X) + E(Y)$ and $Var(X+Y) = Var(X) + Var(Y) + 2*Cov(X,Y) = Var(X) + Var(Y)$ because of the independence of X and Y.
Should I simply answer that:
- $E(X+Y) = 1 + 1/2 = 3/2 $ and $Var(X+Y) = 1/3 + 1/2 = 5/6$ ?
In another example I've found they used double integrals and minimum so I'm not sure anymore if my method is right