Question:
We have two jars each containing an equal number of balls. We perform four successive ball exchanges. In each exchange, we pick simultaneously and at random a ball from each jar and move it to the other jar. What is the probability that at the end of the four exchanges all the balls will be in the jar where they started?
Resource (Bertsekas)
Correct Answer: $$ \frac{1}{n^2}\left( \frac{1}{n^2} + \frac{8(n-1)^2}{n^4} \right) $$
My Approach:
- There are $4$ exchanges in total
- $1^{st}$ swap definitely results in disturbing configuration
- $2^{nd}$ swap can disturb configuration or can set things right
- $3^{rd}$ swap can set things right or can disturb configuration based on $2^{nd}$ swap
$4^{th}$ swap has to set things right
Ground rule is one can set things right only if there is a disturbance created before
$1$ swap you do to create disturbance, $1$ swap you need to do revert that
disturbance. Hence maximum $2$ swaps causing a disturbance allowed. But just making $1$ swap which causes a disturbance cannot just happen by ground rule
I will represent swap causing disturbance by $1$ and swap reverting back balls by $-1$
\begin{align} P(\text{same configuration after $4$ exchanges}) &= P(1, -1, 1, -1) + P(1, 1, -1, -1) \\ &= 1 \cdot \frac{1}{n^2} \cdot 1 \cdot \frac{1}{n^2} + 1 \cdot \frac{(n-1)^2}{n^2} \cdot \frac{4}{n^2} \cdot \frac{1}{n^2} \\ &= {\bf \frac{1}{n^2}\left(\frac{1}{n^2} + \frac{4(n-1)^2}{n^4} \right) } \end{align}
Why I am getting the wrong answer?
Answer:
$A_i$ is the number of balls in Jar A and belonged to Jar A and $B_i$ is the number of balls in Jar B and belonged to Jar B. Given this notation, I have solved with raw reasoning. Could be helpful in your answer.