4

Question :

Andy and Beth are playing a game worth $100. They take turns flipping a penny. The first person to get 10 heads will win.

But they just realized that they have to be in math class right away and are forced to stop the game.

Andy had four heads and Beth had seven heads. How should they divide the pot?

This is a question from the book Probability: With Applications and R by Robert P. Dobrow .Now the given answer is :

P(Andy wins) = 0.1445. Andy gets $14.45 \;and\; Beth\; gets\; $85.55

But I am not getting this answer . So can someone check my solution and tell me where I am wrong , or else provide a better solution . Thanks in advance.

Proposed Solution : Let Andy be A and Beth B: A needs 6 heads to win, and B needs 3 heads to win.

Let $X_a$ be the number of times A needs to flip the coin to get 6 wins , and $X_b$ be the number of flips for B to get 3 wins . Both $X_a$ and $X_b$ are Negative Binomial Variables with the $X_a$ having parameters 6 and $p=\frac{1}{2}$ and $X_b$ having parameters 3 and $p=\frac{1}{2}$.

Now if A needs $k$ flips to win. Then the required probability is :

$P(A \;wins) = P(X_a = k)*P(X_b > k)$(i.e A wins in $k$ moves and B gets 3 heads after $k$ flips)

$P(X_a = k)=(^{k-1}C_5)*(\frac{1}{2})^6(\frac{1}{2})^{k-6}=(^{k-1}C_5)*(\frac{1}{2})^k$(Negative Binomial Distribution formula)

$P(X_b > k) =$ The 3rd head should come after $k$ trails , therefore until $k$ trails only $0\;or\;1\;or\;2$ heads can occur.

Therefore : $P(X_b>k) = \sum_{i=0}^2{^{k}C_i}*(\frac{1}{2})^i(\frac{1}{2})^{k-i}=\sum_{i=0}^2{^{k}C_i}*(\frac{1}{2})^k$

So $P(A\;wins) = (^{k-1}C_5*(\frac{1}{2})^k) * (\sum_{i=0}^2{^{k}C_i}*(\frac{1}{2})^k) $ . Now minimum 6 tries are required for A to win, so $k:6 \to \infty$

$\begin{equation} P(A\;wins) = \sum_{k=6}^{\infty}\biggl( (^{k-1}C_5*(\frac{1}{2})^k) * (\sum_{i=0}^2{^{k}C_i}*(\frac{1}{2})^k) \biggr) \\ = \sum_{k=6}^{\infty}\biggl((\frac{1}{2})^{2k}*(^{k-1}C_5)*(^kC_0+^kC_1+^kC_2)) \biggr) \\ =\sum_{k=6}^{\infty}\biggl(\frac{1}{2^{2k+1}}*(^{k-1}C_5)*(k^2+k+2)\biggr) \end{equation}$

Now I calculated the sum on my calculator for $k : 6 \to 150$ and it is converging to 0.052. Which is very far off from the given answer of $P(Andy\; wins) = 0.1445$. So is my method wrong ? Or is the sum convergence slow ?

Can someone solve this question , employing an entirely different method if necessary.

  • To get the discussion away from true blue anil's answers. You're right that your answer assume that Beth starts with tossing the coin, as I also get $0.525834$ as probability for Andy in that case. If Andy starts, his probability to win becomes $0.083219$. – Hetebrij Apr 24 '21 at 10:54
  • @Hetebrij : So is my interpretation of the question is right ? Also I also checked the answer if Andy starts and it is coming to be 0.0832. – Vinay Varahabhotla Apr 24 '21 at 10:59
  • For what it's worth, thanks to Hetebrij for making me realize that my answer represented a misinterpretation of the problem. I wrongly assumed (in effect) that a moderator was flipping the coin, rather than that they were taking turns flipping the coin. I have therefore deleted my answer. – user2661923 Apr 24 '21 at 11:06
  • @VinayVarahabhotla I would assume so. Does the provided answer have an explanation? – Hetebrij Apr 24 '21 at 11:08
  • No just the numerical result . Also now I think that 0.1445 answer if wrong . As it is the answer we are getting if we assume the problem is the Point's problem – Vinay Varahabhotla Apr 24 '21 at 11:09
  • @user2661923 The approach of you and true blue anil are valid, as each turn where both Andy and Beth flip tails doesn't change the game. The only problem is that the chance of obtaining the next head is $1/3$ if you had the last head, and $2/3$ if you didn't have the last head. I.e. the order of each sequence matters and the sequence are no longer equally likely. – Hetebrij Apr 24 '21 at 11:10
  • 1
    @Hetebrij I agree, it is simply that my original analysis was wrong. I don't really care to revise the answer, since it wouldn't be based on my private work, but on someone else accurately pointing out a major error in my analysis. I prefer to leave my answer deleted, and let someone else post an accurate answer, based on their own analysis. Perhaps you might post such an answer. – user2661923 Apr 24 '21 at 11:14

2 Answers2

1

No, your answer is right. I got the same thing by this formula, in which the number of failures is represented by the summation indices.

$$\sum_{k=0}^\infty{5+k\choose k}.5^{6+k}\left(1-\sum_{i=0}^{k+3}{2+i\choose i}.5^{3+i}\right)$$

Code is not shown here, but it gives the answer after 1000 iterations: 0.05258345

A simulation shows that this is about correct.

x=rnbinom(100000, 6, .5)
y=rnbinom(100000, 3, .5)
mean((x+6)-(y+3)<0)
0.05303
Vons
  • 11,285
  • Since they take turns to toss, the game can't be longer than $19$ rounds in any case, and can't be longer than $8$ more rounds after interruption if $A$ is to win. (Earlier comment got deleted by mistake) – true blue anil Apr 24 '21 at 09:03
  • @trueblueanil The game can become arbitrarily long if both Andy and Beth flip tails the first $N$ rounds. – Hetebrij Apr 24 '21 at 10:22
1

Another approach would be considering the rest of the game as a Markov chain.

The states of the game are tuples $(a,b)$, with $a = 4 \dots 10$, $b = 7 \dots 10$, and the states $(10,\cdot)$ and $(\cdot ,10)$ are the state in which Andy or Beth won the game respectively.

From each state $(a,b)$ we can go to the states $(a,b)$, $(a+1,b)$, $(a,b+1)$ and $(a+1,b+1)$ with equal probability $1/4$ if we allow both of them to toss the coin. One exception is state $(9,9)$, from which we can only go to $(9,9)$ with probability $1/4$, and states $(9,10)$ and $(10,9)$ with probability $3/8$. The possible outcomes of both tossing the coin if both have $9$ heads is either

  • tails,tails in which case they stay in $(9,9)$ independent of whose turn it is when they leave for class,
  • tails,heads in which case they go to $(\cdot,10)$ or $(10,\cdot)$ depending on whose turn it is when they leave for class,
  • heads,tails in which case they go to $(\cdot,10)$ or $(10,\cdot)$ depending on whose turn it is when they leave for class,
  • heads,heads in which case they go to $(\cdot,10)$ or $(10,\cdot)$ depending on whose turn it is when they leave for class.

If we considers $(\cdot,10)$ as a single state, and $(10,\cdot)$ also as a single state, we have the following transition matrix \begin{align*}\begin{pmatrix}1/4&1/4&0&1/4&1/4&0&0&0&0&0&0&0&0&0&0&0&0&0&0&0\\ 0&1/4&1/4&0&1/4&1/4&0&0&0&0&0&0&0&0&0&0&0&0&0&0\\ 0&0&1/4&0&0&1/4&0&0&0&0&0&0&0&0&0&0&0&0&1/2&0\\ 0&0&0&1/4&1/4&0&1/4&1/4&0&0&0&0&0&0&0&0&0&0&0&0\\ 0&0&0&0&1/4&1/4&0&1/4&1/4&0&0&0&0&0&0&0&0&0&0&0\\ 0&0&0&0&0&1/4&0&0&1/4&0&0&0&0&0&0&0&0&0&1/2&0\\ 0&0&0&0&0&0&1/4&1/4&0&1/4&1/4&0&0&0&0&0&0&0&0&0\\ 0&0&0&0&0&0&0&1/4&1/4&0&1/4&1/4&0&0&0&0&0&0&0&0\\ 0&0&0&0&0&0&0&0&1/4&0&0&1/4&0&0&0&0&0&0&1/2&0\\ 0&0&0&0&0&0&0&0&0&1/4&1/4&0&1/4&1/4&0&0&0&0&0&0\\ 0&0&0&0&0&0&0&0&0&0&1/4&1/4&0&1/4&1/4&0&0&0&0&0\\ 0&0&0&0&0&0&0&0&0&0&0&1/4&0&0&1/4&0&0&0&1/2&0\\ 0&0&0&0&0&0&0&0&0&0&0&0&1/4&1/4&0&1/4&1/4&0&0&0\\ 0&0&0&0&0&0&0&0&0&0&0&0&0&1/4&1/4&0&1/4&1/4&0&0\\ 0&0&0&0&0&0&0&0&0&0&0&0&0&0&1/4&0&0&1/4&1/2&0\\ 0&0&0&0&0&0&0&0&0&0&0&0&0&0&0&1/4&1/4&0&0&1/2\\ 0&0&0&0&0&0&0&0&0&0&0&0&0&0&0&0&1/4&1/4&0&1/2\\ 0&0&0&0&0&0&0&0&0&0&0&0&0&0&0&0&0&1/4&3/8&3/8\\ 0&0&0&0&0&0&0&0&0&0&0&0&0&0&0&0&0&0&1&0\\ 0&0&0&0&0&0&0&0&0&0&0&0&0&0&0&0&0&0&0&1 \end{pmatrix} \end{align*} where we order the states as $(4,7)$, $(4,8)$, $(4,9)$, $(5,7)$, $\dots$, $(\cdot,10)$, $(10,\cdot)$.

In Mathematica this transition matrix seems to converge after $30$ iterations to a probability of $0.9321$ for Beth to win, and $0.0679$ for Andy to win.

Hetebrij
  • 4,011