You play a game where you flip a fair coin repeatedly. You win 2n dollars if the first heads appears on flip n. What is the expected payout of this game?
Enter 'infinity' if the expected value diverges, or a number
Show solution
The first heads on flip n has probability (1/2)n and pays 2n. The expected payout is ∑n=1∞2n⋅(1/2)n=∑n=1∞1=∞. This is the famous St. Petersburg paradox — the expected value is infinite despite the fact that most outcomes pay very little.