5

Say that I have X|θ ∼ N(θ, 1) and θ ∼ N(0, 1). I know the mean of X is 0, but how do I calculate its variance? My guess is that its the variance of both normal distributions added together, but I'm not sure why exactly.

Tia
  • 51

1 Answers1

1

You can use law of total variance: $$\operatorname{var}(X)=\mathbb E[\operatorname{var}(X|\theta)]+\operatorname{var}(\mathbb E[X|\theta])=1+1=2$$

gunes
  • 57,205