This is a classic probability puzzle that leads to a surprising result. It's a type of problem known as a "Gambler's Ruin" problem.
Let's break it down.
The Short Answer
The expected number of turns to get 4 red balls is infinite.
The Detailed Explanation
This seems counterintuitive, so let's analyze the process step-by-step.
1. Define the States
The state of the system can be described by the number of red balls. Let R_k be the state where there are k red balls.
R_0: 0 red, 4 black
R_1: 1 red, 3 black
R_2: 2 red, 2 black (This is our starting state)
R_3: 3 red, 1 black
R_4: 4 red, 0 black (This is our target state)
2. Analyze the Rule
You draw two balls. Let's call them Ball 1 (B1) and Ball 2 (B2). You then make B1 the same color as B2.
- If B1 and B2 are the same color (Red-Red or Black-Black), the number of red balls does not change.
- If B1 is Red and B2 is Black, B1 becomes Black. The number of red balls decreases by 1.
- If B1 is Black and B2 is Red, B1 becomes Red. The number of red balls increases by 1.
3. Calculate Transition Probabilities
Let's find the probability of the number of red balls increasing, decreasing, or staying the same from our starting state, R₂ (2 Red, 2 Black).
There are 4 balls. The number of ways to pick 2 balls in order is 4 × 3 = 12.
-
P(Increase red balls by 1): This happens if we draw Black then Red (BR).
- P(B1 is Black) = 2/4
- P(B2 is Red | B1 was Black) = 2/3
- P(draw BR) = (2/4) * (2/3) = 4/12 = 1/3
- This moves us from state
R₂ to R₃.
-
P(Decrease red balls by 1): This happens if we draw Red then Black (RB).
- P(B1 is Red) = 2/4
- P(B2 is Black | B1 was Red) = 2/3
- P(draw RB) = (2/4) * (2/3) = 4/12 = 1/3
- This moves us from state
R₂ to R₁.
-
P(No change in red balls): This happens if we draw Red-Red (RR) or Black-Black (BB).
- P(draw RR) = (2/4) * (1/3) = 2/12 = 1/6
- P(draw BB) = (2/4) * (1/3) = 2/12 = 1/6
- P(No change) = 1/6 + 1/6 = 2/6 = 1/3
- We stay in state
R₂.
4. The "Trap" State
The states R₄ (all red) and R₀ (all black) are absorbing states.
- If you reach
R₄, you can only ever draw two red balls. The number of red balls will never change again. You have succeeded.
- If you reach
R₀, you can only ever draw two black balls. The number of red balls will never change again. You are stuck and can never reach the goal of R₄.
Because there is a non-zero probability of moving from R₂ to R₁, and then from R₁ to R₀, there is a chance you will fall into the "all black" trap.
Since there is a possibility of entering a state from which you can never reach the target, the expected number of turns to reach the target is infinite.
The Question You Probably Meant To Ask
Often in these problems, the intended question is: "What is the expected number of turns until the process stops (i.e., you reach either 4 red or 4 black balls)?"
This is a solvable problem, and the answer is finite. Let E_k be the expected number of turns to reach an absorbing state (R₀ or R₄) starting from state R_k.
We can set up a system of linear equations:
E₀ = 0 (You're already in an absorbing state)
E₄ = 0 (You're already in an absorbing state)
For the other states, the formula is: E_k = 1 + Σ [ P(k -> j) * E_j ]
-
From State R₂ (2R, 2B): We found the probabilities are 1/3 to R₁, 1/3 to R₃, and 1/3 to R₂.
E₂ = 1 + (1/3)E₁ + (1/3)E₃ + (1/3)E₂
(2/3)E₂ = 1 + (1/3)E₁ + (1/3)E₃
2E₂ = 3 + E₁ + E₃ (Equation 1)
-
From State R₁ (1R, 3B):
- P(R₁ -> R₂) (draw BR) = (3/4)*(1/3) = 1/4
- P(R₁ -> R₀) (draw RB) = (1/4)*(3/3) = 1/4
- P(R₁ -> R₁) (draw BB) = (3/4)*(2/3) = 1/2
E₁ = 1 + (1/4)E₂ + (1/4)E₀ + (1/2)E₁
E₁ = 1 + (1/4)E₂ + 0 + (1/2)E₁
(1/2)E₁ = 1 + (1/4)E₂
E₁ = 2 + (1/2)E₂ (Equation 2)
-
From State R₃ (3R, 1B): By symmetry, this is the same as state R₁.
E₃ = 2 + (1/2)E₂ (Equation 3)
Now, substitute Equations 2 and 3 into Equation 1:
2E₂ = 3 + (2 + 0.5E₂) + (2 + 0.5E₂)
2E₂ = 3 + 4 + E₂
2E₂ - E₂ = 7
E₂ = 7
So, the expected number of turns until you get either 4 red balls or 4 black balls is 7 turns.
Because the problem is perfectly symmetric (the chance of increasing the number of red balls is always equal to the chance of decreasing them), the expected time to reach 4 red balls, given that you do reach it, is the same as the expected time to absorption.