Skip to main content
edited tags
Link
kjetil b halvorsen
  • 82.8k
  • 32
  • 201
  • 663
Tweeted twitter.com/StackStats/status/1250665364935118848
Became Hot Network Question
edited tags
Link
gunes
  • 58.2k
  • 4
  • 50
  • 88
Source Link
Brian
  • 331
  • 1
  • 5

How do I analytically calculate variance of a recursive random variable?

Suppose I have a chest. When you open the chest, there is a 60% chance of getting a prize and a 40% chance of getting 2 more chests. Let $X$ be the number of prizes you get. What is its variance?

Computing $E[X]$ is fairly straight forward: $E[X] = .4 \cdot 2 \cdot E[X] + .6$ which leads to $E[X] = 3$, but I'd also like to know the variance of the number of prizes, not just the average. $Var[X] = E[X^2] - E[X]^2 = E[X^2] - 9$, but I'm having trouble with $E[X^2]$. Anyone have any idea if this is simple? From simulation, I know that the variance is ~30.

Thanks