3.82

Question

A and B flip coins. A starts and continues flipping

until a tail occurs, at which point B starts flipping and continues

until there is a tail. Then A takes over, and so on.

Let P1 be the probability of the coin landing on heads

when A flips and P2 when B flips. The winner of the game

is the first one to get

(a) 2 heads in a row;

(b) a total of 2 heads;

(c) 3 heads in a row;

(d) a total of 3 heads.

In each case, find the probability that A wins

Step-by-Step Solution

Verified
Answer

(a). P(A)=1121-1-P121-P22



(b).P(A)=1-P11-1-P11-P22×1-2(1-P21-P11-1-P11-P2



(c). P(A)=P13P1+3P2-3P1P133


(d). 

PA wins=P11-1-P11-P23×3(1-P2)1-P11-1-P11-P21+(1-P2)1-P11-1-P11-P2+P21-1-P11-P2


1Step 1 :Calculation (Part a)

Events:

HA - Toss by A results in Heads

HB- Toss by B results in Heads

WA - A wins in the fixed turn

WB - B wins in the fixed turn

Chances : 

               P(HA)=P1P(HB)=P2

It is given that the winning condition is when the outgrowth  is 2 heads in a row. Thereby, A will win in the below cases:

When the both  rivals fail i times, where i=0,1,2,, and  achieving winning condition.

Probability =PWACPWBCkPWA

It is known that that the events WAand WB are independent and they could be mutually exclusive if all i-s are different, thus, the probability of their union event A is equal to sum of their individual probsbilities:

P(A)=k=0PWACPWBCkPWA

thus, the needed sum is the sum of the geometric progression with the formuls

k=0qk=11-q

Thus,

P(A)=11-PWACPWaCPWA Referred as (1) 

The winning condition of two heads in a row can be written as

          P(WA)=P(HA)P(HA)P(WB)=P(HB)P(HB)

Thus,

While substituting it into equation (1), it can be calculated:

P(A)=1121-1-P121-P22


2Step 2 : Calculation (Part b)

Consider the case when the coin has been flipped three time, also there can be only one winner. A palm in the script when the B flipped only original head or the alternate   head or when the A gets the first two heads. These  scripts  can be written as B A A, A B A, A A

It can be determined that these situations are mutually exclusive so:

P(A)=P"BAA''+P"ABA''+P("AA")

Case "BAA"

When this event occurs, B will be the first one to flip a head which is analogous  to A losing if the winning game is turning a head, i.e. the formula from the morning  is

P11-1-P11-1

The second and third flip must be tails by B with probability equal to I -  P2

In the alternate  chances, Aflips head with the same probability I -  P2 as of winning a game of flipping head one time. After that A has to flip head again also with the same probability.

Thus,

P"BAA''=1-P11-1-P11-P2×1-P2×1-P11-1-P11-P22

By applying the same sense 

P"ABA''=1-P11-1-P11-P2×1-P11-1-P1×1-P2×1-P2×1-P11-1-P11-P2P(A)=1-P11-1-P11-P22×1-2(1-P21-P11-1-P11-P2

3Step 3 : Calculation(Part c)

The winning condition of three heads in a row has probability equal to

     P(WA)=PHAPHAPHA=P13P(WB)=PHBPHBPHB=P23


By substituting into formuls P(A)=11-[P(wF)P(WF)PWA, the  affair  is

P(A)=1-P131-1-P13)(1-P23=P13P1+3P2-3P1P133

4Step 4 : Calculation (Part d)

The probability of the outgrowth of a aggregate  of 3 heads can be written as:
P(A)=P(" AAA ")+P(" AABA")+P(" ABAA") +P("BAAA")+P("BBAAA")+P("BABAA")+P("BAABA")+P("ABBAA")+P("ABABA") +P("AABBA") 

By using the sense  defined in part b), The 2nd ,3rd ,4th  term on right hand side of above equation have same probability equal to

1-P11-1-P11-P23×1-P11-1-P11-P2×1-P2

 Then it's veritably  important to understand the sequence in which player tosses head. This is why, if B tosses only 1 head in a row, also the coming toss by B should be tails and the probability of it is 1-P2 time more.

Thus,

P"ABABA''+P("BABAA")+P("BAABA")=3P("ABABA")

Also,

P("BRAAA)+P("ABBAA")+P("AABBA")=3P("BBAAA") 

By adding all these values

PA wins=P11-1-P11-P23×3(1-P2)1-P11-1-P11-P21+(1-P2)1-P11-1-P11-P2+P21-1-P11-P2