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.
Asked
Active
Viewed 65 times
4
-
See https://stats.stackexchange.com/questions/16608/what-is-the-variance-of-the-weighted-mixture-of-two-gaussians – kjetil b halvorsen Dec 05 '20 at 19:27
1 Answers
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
- 49,700
- 3
- 39
- 75