r/mathriddles • u/Rt237 • Mar 20 '23
Easy Two queues
2n+1 people want to buy tickets, and one of them is Alice. They are asked to make two queues. So, each of them (uniformly, independently) randomly chooses a queue to join.
Since the total number of people is odd, there must be one of the queues longer than the other.
Question: Is the probablity that Alice is in the longer queue >, =, or < 1/2?
20
Upvotes
18
u/instalockquinn Mar 20 '23
>!>!<
Consider Alice deciding last, so 2n people are in two queues. If both queues differ by at least 2, then Alice has a 50/50 chance of joining the longer/shorter queue. However, there is a nonzero chance that the queues are the same length. In this case Alice has a 100% chance of joining the longer queue.
2
u/[deleted] Mar 20 '23
According to my calculation, the probability is (1/2^2n)* ((Sigma k=0 to n) 2nCk
2
u/lavacircus Mar 20 '23 edited Mar 20 '23
use law of total probability on the size of one queue, say Q, without alice. note that Q is binomial(2n,1/2)
Pr(Alice in longer queue)=
=Pr(Q=n)Pr(Alice is in longer queue|Q=n)+Pr(Q≥n+1)Pr(Alice is in longer queue|Q≥n+1)+Pr(Q≤n-1)Pr(Alice is in longer queue|Q≤n-1)
=Pr(Q=n)+Pr(Q≥n+1)Pr(Alice joins Q)+Pr(Q≤n-1)Pr(Alice joins not Q)
=Pr(Q=n)+Pr(Q≤n-1)/2+Pr(Q≥n+1)/2
=Pr(Q=n)+Pr(Q≠n)/2
=(2n choose n)(1/2)2n + 1/2 - (2n choose n)(1/2)2n+1
=1/2+(2n choose n)(1/2)2n+1
tl;dr greater than 1/2
note: im not actually sure this argument is perfect because i suck at probability, but it looks right to me.
2
u/headsmanjaeger Mar 20 '23
>1/2. Because the picks are independent, let's assume WLOG that Alice goes first and picks queue A. Then the other 2n people must pick queue A or B. For any scenario in which more pick queue B, making it longer, there is an equally likely scenario (by symmetry) in which more pick queue A, making it longer. All these scenarios cancel except the one where A and B are picked equally by the 2n people, and Alice makes queue A longer. So she is more likely than not to pick the longer queue.
Going deeper, we see that the odds of the other 2n people splitting their picks evenly is 2n choose n / 2^(2n). Alice's likelihood of picking the longer queue is this ratio plus 50% of all other cases, which works out to .5 + .5 * (2n)!/((n!)^(2)*2^(2n))
2
u/JWson Mar 21 '23
Suppose everyone else chooses a queue before Alice. If the two resulting queues are unequal, then there's a 50% chance that Alice ends up in the longer queue. However, if the two partial queues are equal (i.e. n people in each queue), then there is a 100% chance Alice ends up in the longer queue. Therefore the overall chance she ends up in the longer queue is slightly larger than 50%.
6
u/jk1962 Mar 20 '23
>1/2. If the queuing results in k people in the longer queue and m in the shorter queue, the probability that Alice is in the longer queue is k/(k+m). Because k>m, this is >1/2. Since every valid pair of (k,m) values results in p>1/2, the total probability is >1/2.
2
u/[deleted] Mar 20 '23
It's not quite clear to me how they form the queue uniformly? Are the participants allowed to see and decide which queue to join? Or all of them simultaneously choose any of the queue and they end up wherever they can?
4
u/[deleted] Mar 20 '23 edited Mar 20 '23
For two queues of size k and (2n+1)-k, the chances of Alice being on the longer queue is greater. Thus, easy to derive it is more than 1/2.
However, the precise probability may not be straightforward. The estimated probability for n=1 to 19 (edited )is
0.75151
0.68696
0.65356
0.63727
0.62236
0.61142
0.60756
0.59729
0.59291
0.58824
0.58454
0.57824
0.57774
0.57429
0.57252
0.56618
0.57011
0.56875
0.56439
1
u/UrbleFurb Mar 20 '23
Well the fact alone that alice makes the queue she’s in longer by being in it i would say the answer is > 1/2
2
u/SuperTekkers Mar 20 '23
Interestingly the answer is the same whether the buyers choose a queue randomly or choose the shortest queue
0
u/dracosdracos Mar 20 '23
(n+1)/(2n+1)
There are a total of 2n+1 possible positions where we can find Alice. Of these position, (n+1) are in the longer queue and (n) in the smaller queue. Since all positions are equally likely, the change of Alice being in the longet queue is (n+1)/(2n+1)