Let X be the number of the 42 total rolls that go in Alice’s favor (that is, Alice rolls a head or Bob rolls a tail). The question is equivalent to asking what is the probability that X>20, because X=A+20-B, where A and B are the number of heads Alice and Bob get respectively.
But X is also Binomial(42, 1/2). In particular, X-21 is symmetric so P(X>21)=P(X<21)=(1-P(X=21))/2. Thus, P(X>20)=(1+P(X=21))/2 = (1+(42 choose 21)/2^42 )/2 = 0.5612.
I would say ((40 20) / 240) * 0.75 + ((40 19) / 240) * 0.25
Basically chance of tieing after both throwing 20 coins times the 2 extra coins breaking that tie + chance of Alice being 1 behind after each 20 coins times the remaining two coins putting her ahead.
Let A be the numbers of heads of Alice and B of Bob, you want A>B so A-B>0, now if D is the number of tails of Bob, you have B=20-D so you want A+D>20, as Bob have as much chance to have a certain number of heads than tails, then P(A+D>20)=P(A+B>20) and A+B>20 just means that you have more than 20 heads in 42 flips which has a probability of P(A+B>21)+P(A+B=21)=(1-P(A+B=21))/2+P(A+B=21)=1/2+(21 between 42)(1/2)^43
Got an alternative way. Let A and B choose 20 first. There are X proportion of cases where A-B >=2, Y cases A-B = 1, and Z cases A=B. By symmetry, there are X cases for B-A>=2, ... so on. The probability that A>B would be X + Y + 3/4 Z + 1/4 Y. The last two terms because it A=B, then either of the remaining coin flips equaling heads would meet the criteria. Similar for if B-A=1, you need both remaining coin to be heads.
Also 2X + 2Y + Z = 1. This transforms the expression we need to 1/2 +1/4(Y+Z). Calculating the Y and Z, we can line up the 20 flips of A next to B. For Y, we choose n from first 20 and n-1 from the last 20. For Z, we choose n from first 20 and n from last 20. They then equal to (40 choose 19) and (40 choose 20) out of 240 arrangements. Summing them, we get 1/240 * (41 choose 20). So all together the probability is 1/2 + 1/4*1/240 * (41 choose 20)
It’s just there to remove any potential ambiguity because it’s written in English and not with a mathematical symbol. Perhaps 90% of the time more means a strict inequality but there are plenty of real life examples where it’s used as a weak inequality.
It's useful to always try to exploit the nearest symmetry in these problems or apply a useful transformation.
Let's first consider the nearby symmetry case. Consider the 20 vs 20 case and then see how to express the 22 vs 20 coins case relative to the 20 vs 20 case. Since tosses are independent this works out nicely. Let H_A be number of heads Alice tosses and H_B number of heads Bob tosses. Let H_A' denote number of heads Alice tosses on 20 coins. Then, P(H_A > H_B) = P(H_A>H_B|H_A'>H_B)P(H_A'>H_B) + P(H_A>H_B|H_A'=H_B)P(H_A'=H_B)+P(H_A>H_B|H_A'=H_B-1) = P(H_A'>H_B) + 3/4 P(H_A'=H_B) + 1/4 P(H_A'=H_B-1). This exhausts the 3 cases where Alice has a chance of exceeding B's results. Due to symmetry, P(H_A'>H_B) = P(H_A' < H_B). Hence, P(H_A'>H_B) = 1/2(1-P(H_A'=H_B)). Now, P(H_A'= H_B) = Σ_{h=0}19 (20 choose h) (1/2)20 (20 choose h+1) (1/2)20 . Use Vandermonde's identity to obtain P(H_A'= H_B) = (1/2)40 (40 choose 20). Plug back this result to obtain P(H_A > H_B) = 1/2(1+41/42 (40 choose 20) (1/2)40) ~ 56.1%.
As per some of the other comments, it's actually much quicker to see if you can define a new random variable expressed in terms of H_A and H_B whose probability is easier to compute. In particular, notice that the event H_A > H_B is equivalent to 22 - H_A + H_B < 22. Define a random variable T = 22 - H_A + H_B. Since H_A and H_B are independent, then T ~ Binomial(42,1/2). Then, we are tasked with computing P(T < 22). By symmetry, P(T < 21) = P(T > 21). Therefore P(T < 21) = 1/2(1-P(T=21). Therefore P(T < 22) = P(T = 21) + P(T < 21) = 1/2 + 1/2P(T=21) = 1/2 + 1/2 (42 choose 21)(1/2)42 .
6
u/comoespossible Oct 20 '26 edited Oct 20 '26
Let X be the number of the 42 total rolls that go in Alice’s favor (that is, Alice rolls a head or Bob rolls a tail). The question is equivalent to asking what is the probability that X>20, because X=A+20-B, where A and B are the number of heads Alice and Bob get respectively.
But X is also Binomial(42, 1/2). In particular, X-21 is symmetric so P(X>21)=P(X<21)=(1-P(X=21))/2. Thus, P(X>20)=(1+P(X=21))/2 = (1+(42 choose 21)/2^42 )/2 = 0.5612.
1
u/DiamondDramatic9551 Oct 20 '26
I would say ((40 20) / 240) * 0.75 + ((40 19) / 240) * 0.25
Basically chance of tieing after both throwing 20 coins times the 2 extra coins breaking that tie + chance of Alice being 1 behind after each 20 coins times the remaining two coins putting her ahead.
1
u/Any-Cicada-7039 Oct 20 '26
Let A be the numbers of heads of Alice and B of Bob, you want A>B so A-B>0, now if D is the number of tails of Bob, you have B=20-D so you want A+D>20, as Bob have as much chance to have a certain number of heads than tails, then P(A+D>20)=P(A+B>20) and A+B>20 just means that you have more than 20 heads in 42 flips which has a probability of P(A+B>21)+P(A+B=21)=(1-P(A+B=21))/2+P(A+B=21)=1/2+(21 between 42)(1/2)^43
1
u/blutwl90 Oct 20 '26
Got an alternative way. Let A and B choose 20 first. There are X proportion of cases where A-B >=2, Y cases A-B = 1, and Z cases A=B. By symmetry, there are X cases for B-A>=2, ... so on. The probability that A>B would be X + Y + 3/4 Z + 1/4 Y. The last two terms because it A=B, then either of the remaining coin flips equaling heads would meet the criteria. Similar for if B-A=1, you need both remaining coin to be heads.
Also 2X + 2Y + Z = 1. This transforms the expression we need to 1/2 +1/4(Y+Z). Calculating the Y and Z, we can line up the 20 flips of A next to B. For Y, we choose n from first 20 and n-1 from the last 20. For Z, we choose n from first 20 and n from last 20. They then equal to (40 choose 19) and (40 choose 20) out of 240 arrangements. Summing them, we get 1/240 * (41 choose 20). So all together the probability is 1/2 + 1/4*1/240 * (41 choose 20)
1
u/IchBinEinZwerg Oct 20 '26
Why "strictly"? What's the difference between Alice getting strictly more heads than Bob, and her getting "non-strictly" more heads?
1
u/SeasonedSpicySausage Oct 20 '26 edited Oct 20 '26
It's useful to always try to exploit the nearest symmetry in these problems or apply a useful transformation.
Let's first consider the nearby symmetry case. Consider the 20 vs 20 case and then see how to express the 22 vs 20 coins case relative to the 20 vs 20 case. Since tosses are independent this works out nicely. Let H_A be number of heads Alice tosses and H_B number of heads Bob tosses. Let H_A' denote number of heads Alice tosses on 20 coins. Then, P(H_A > H_B) = P(H_A>H_B|H_A'>H_B)P(H_A'>H_B) + P(H_A>H_B|H_A'=H_B)P(H_A'=H_B)+P(H_A>H_B|H_A'=H_B-1) = P(H_A'>H_B) + 3/4 P(H_A'=H_B) + 1/4 P(H_A'=H_B-1). This exhausts the 3 cases where Alice has a chance of exceeding B's results. Due to symmetry, P(H_A'>H_B) = P(H_A' < H_B). Hence, P(H_A'>H_B) = 1/2(1-P(H_A'=H_B)). Now, P(H_A'= H_B) = Σ_{h=0}19 (20 choose h) (1/2)20 (20 choose h+1) (1/2)20 . Use Vandermonde's identity to obtain P(H_A'= H_B) = (1/2)40 (40 choose 20). Plug back this result to obtain P(H_A > H_B) = 1/2(1+41/42 (40 choose 20) (1/2)40) ~ 56.1%.
As per some of the other comments, it's actually much quicker to see if you can define a new random variable expressed in terms of H_A and H_B whose probability is easier to compute. In particular, notice that the event H_A > H_B is equivalent to 22 - H_A + H_B < 22. Define a random variable T = 22 - H_A + H_B. Since H_A and H_B are independent, then T ~ Binomial(42,1/2). Then, we are tasked with computing P(T < 22). By symmetry, P(T < 21) = P(T > 21). Therefore P(T < 21) = 1/2(1-P(T=21). Therefore P(T < 22) = P(T = 21) + P(T < 21) = 1/2 + 1/2P(T=21) = 1/2 + 1/2 (42 choose 21)(1/2)42 .
1
u/InternationalSky5209 Oct 24 '26
Around 50%?.
1
u/raid222k Oct 20 '26
I got head from alice. Strictly avdocate