Pass the ball
HardProblem
You and 4 other people are sitting in a circle. You are given a ball to start the game. Every second of this game, the person with the ball has three choices they can make. They can either pass the ball to the left, pass the ball to the right, or keep the ball (all with equal probability). This game goes on till someone keeps the ball. What is the probability that you are the person to end the game and keep the ball?
Original Problem Link: Click here
Solution
Lets call the people (me), , , , . Note that and are symmetric (at distance 1) Similarly, and are symmetric (at distance 2)
If one thinks through the question trivially, a simple approach could be to just "count" all possible ways the game ends at person A. But soon one realises there are inifinitely many ways, although possibly countable, but not-so-trivial after all!
A simpler approach involves identifying markov states and using conditional probabilities. The fundamental law of total probability states
Step 1: Identifying States
We can define 5 simple states, , , , , , with state representing that the ball is with the person.
Now, consider the probability that the ball is with person , and the game ends with person . Lets denote this as , where means that the game will end with person .
At each state, the person can either stop the game, or pass it on to its neighbours with equal probabilities! Lets try to form a set of equations in using this.
Step 2: Forming the set of Probability equations
For each state , lets represent in terms of its neighbours.
Now,
For state (i.e. the person has the ball itself), I can either
- Stop the game, with prob
- Pass the ball to player , with prob , thus moving to state
- Pass the ball to player , with prob , thus moving to state
Therefore, we can write
Note that here the first term represents ending the game there itself.
Similarly, for state
and for state
For more intuition on how these equations are formed, think of it like "the probability that A ends the game, given that the ball is currently with C, is that either he passes the ball to B(first neighbour) and we compute this same probability for B, or that he passes on the ball to D(other neighbour), and we compute the same for D. Its somewhat "recursive". For A, another possiblility (that I end the game right now) is added, leading to an extra
Now, lets utilize some symmetry!
Clearly, and
(As C and D are symmetrically placed around A; same with B and E)
Thus, we can reduce the equations to 3 unique variables, , and
Step 3: Solving the equations
Now, substituting:
We get,
Solving these, we get: