A police officer is measuring the speed of cars on a high way. The actual speed X of a car is $\mu(80,120)$. Due to the inaccuracy of the speed gun, the speed Y measured,given X=x, is $N (x,\frac{1}{100}x)$. Find the mean/ variance of Y.
The answer is $E(Y)=E[E(Y|X)]=E[X]=100$ by the law of total expectation.
By the law of total Var: \begin{align} Var(Y)= & E(Var(Y|X))+Var(E(Y|X)) \\ =&E(\frac{1}{100}x)+Var(x) \\ =& 1+\frac{400}{3} \end{align}
Question: for the algorithm in computing these, I am not familiar, can someone explain the steps missed in the middle for both expectation and variance. Appreciate it.