4

You flip a coin. If you get heads you win \$2 if you get tails you lose \$1. What is the expected value if you flip the coin 1000 times?

I know that the expected value of flipping the coin once is $\frac{1}{2}(2) - \frac{1}{2}(1) =0.50$

Would the expected value be 500?

johnbowen
  • 429

1 Answers1

7

Let $X$ be the random number of heads obtained in $n = 1000$ flips of a fair $(p = 1/2)$ coin. Then $$X \sim \operatorname{Binomial}(n = 1000, p = 1/2),$$ and the expected value of the number of heads is $$\operatorname{E}[X] = np.$$ Now, the net winnings (or losses) is equal to 2 dollars for each head minus 1 dollar for each tail observed. So if we observed $X$ heads, then presumably we also observed $1000-X$ tails, and the net winnings/losses is therefore $$W = 2X + (-1)(1000-X) = 3X - 1000.$$ Because $X$ is a random variable, $W$ is also a random variable. The expectation of $W$ is simply $$\operatorname{E}[W] = \operatorname{E}[3X - 1000] = 3 \operatorname{E}[X] - 1000 = 3 np - 1000 = 3(1000)(1/2)-1000 = 500.$$

Notice that this approach lets us calculate the expected winnings for any general payoff structure where we win $s$ dollars for each head and lose $t$ dollars for each tail. Then $$W = sX - t(n-x) = (s+t)X - nt,$$ and $$\operatorname{E}[W] = (s+t)(np) - nt = n(sp - t(1-p)).$$ What this tells us is that the expected winnings/losses for a fixed $s$ and $t$ will in general become more extreme as the number of trials increases (if $sp \ne t(1-p)$).

We can also use the above to calculate the variance; e.g., $$\operatorname{Var}[W] = (s+t)^2 \operatorname{Var}[X] = (s+t)^2 np(1-p).$$

heropup
  • 135,869
  • Hello, sorry if this is trivial for you, can you explain why $$\operatorname{Var}[W] = (s+t)^2 \operatorname{Var}[X] = (s+t)^2 np(1-p).$$? Many thanks – Probability_Sarah Dec 12 '22 at 14:47
  • Var(cX) = (c^2)Var(X) [when c is a constant] and nt is a constant so Var(nt) = 0 and Var(X) = np*(1-p) i.e. the variance of binomial distribution for n trials and p probability. – Faraz Gerrard Jamal May 10 '23 at 14:15