๐Ÿงฎ Brain Teaser

The Lazy Duelist: Optimal Shooting Distance

Two duelists, A and B, walk toward each other. At each step, each can choose to shoot. Duelist A hits with probability pA=1/2p_A = 1/2 if they shoot at the current moment, and duelist B hits with probability pB=1/3p_B = 1/3. They take turns stepping closer (A shoots first on each round, then B if A misses).

But here is the puzzle, stripped to its probabilistic core:

A and B simultaneously decide (without knowing the other's choice) whether to shoot NOW or wait one more round. If they wait, both hit probabilities double (up to certainty). A shoots first. Should A shoot now or wait?

Actually, let's pose the clean classic version:


Problem (Mosteller, Problem 20 โ€” The Duel):

Two men, AA and BB, take turns shooting at each other. AA shoots first. At each turn, each man has probability 12\frac{1}{2} of hitting the other. What is the probability that AA wins (i.e., hits BB before BB hits AA)?

Now the twist: what if A is a worse shot โ€” A hits with probability pp and B hits with probability qq, with p<qp < q? Surprisingly, there is a clean closed form. Find it, and determine: for what values of pp is it better to go second (i.e., P(Aย wins)<1/2P(A \text{ wins}) < 1/2)?

geometric seriesfirst-mover advantageduelprobabilityclassic

Answer: The Duelist's Dilemma: Who Wins When A Shoots First?

Key Idea / Intuition

Going first sounds like an advantage โ€” but it only helps if you actually hit. Each round, A shoots first; if A misses (probability 1โˆ’p1-p), then B gets a shot. The game is memoryless, so the probability of A winning satisfies a clean geometric series. The surprise: A wins more than half the time if and only if p>q(1โˆ’p)p > q(1-p), i.e., p>q/(1+q)p > q/(1+q). Going first is not always enough to overcome a skill disadvantage.


Formal Proof / Solution

Setup. Each round proceeds:

  1. A shoots and hits B with probability pp. โ†’ A wins.
  2. If A misses (probability 1โˆ’p1-p), B shoots and hits A with probability qq. โ†’ B wins.
  3. If both miss (probability (1โˆ’p)(1โˆ’q)(1-p)(1-q)), the round resets.

Computing P(Aย wins)P(A \text{ wins}).

Let WW = event A wins. Within one round:

  • A wins with probability pp.
  • B wins with probability (1โˆ’p)q(1-p)q.
  • Round resets with probability (1โˆ’p)(1โˆ’q)(1-p)(1-q).

Since the game resets to the same state, we get the equation:

P(Aย wins)=p+(1โˆ’p)(1โˆ’q)โ‹…P(Aย wins)P(A \text{ wins}) = p + (1-p)(1-q) \cdot P(A \text{ wins})

Let ฮฑ=P(Aย wins)\alpha = P(A \text{ wins}). Then:

ฮฑ=p+(1โˆ’p)(1โˆ’q)โ€‰ฮฑ\alpha = p + (1-p)(1-q)\,\alpha

ฮฑ[1โˆ’(1โˆ’p)(1โˆ’q)]=p\alpha \left[1 - (1-p)(1-q)\right] = p

ฮฑ=p1โˆ’(1โˆ’p)(1โˆ’q)=pp+qโˆ’pq\boxed{\alpha = \frac{p}{1 - (1-p)(1-q)} = \frac{p}{p + q - pq}}

Sanity check: If p=q=1/2p = q = 1/2: ฮฑ=1/21/2+1/2โˆ’1/4=1/23/4=23\alpha = \frac{1/2}{1/2 + 1/2 - 1/4} = \frac{1/2}{3/4} = \frac{2}{3}

So A wins with probability 2/32/3 when both are equally skilled โ€” going first is a big advantage when you have a 50% hit rate!


When does A win with probability less than 1/21/2?

We need ฮฑ<1/2\alpha < 1/2: pp+qโˆ’pq<12\frac{p}{p + q - pq} < \frac{1}{2} 2p<p+qโˆ’pq2p < p + q - pq p<qโˆ’pq=q(1โˆ’p)p < q - pq = q(1-p) p1โˆ’p<q\frac{p}{1-p} < q

So A is the underdog (despite going first) exactly when:

q>p1โˆ’pq > \frac{p}{1-p}

For example, if p=1/3p = 1/3, then A is an underdog whenever q>(1/3)/(2/3)=1/2q > (1/3)/(2/3) = 1/2.

Interpretation. Going first gives A a guaranteed first shot, but if A's hit probability is low, the advantage is small. A skilled B can overcome the order disadvantage as long as B's skill qq exceeds the threshold p/(1โˆ’p)p/(1-p).


Summary Table for p=q=1/2p = q = 1/2:

| Event | Probability | |-------|-------------| | A wins in round 1 | 1/21/2 | | B wins in round 1 | 1/41/4 | | Game continues | 1/41/4 | | A wins overall | 2/3\mathbf{2/3} |

The clean formula ฮฑ=pp+qโˆ’pq\alpha = \dfrac{p}{p + q - pq} is the heart of the problem.

Written to question file and answer included below.

Source: Fifty Challenging Problems in Probability with Solutions, Frederick Mosteller, Problem 20

Type: ProbabilitySource: Fifty Challenging Problems in Probability with Solutions, Frederick Mosteller, Problem 20Edit on GitHub โ†—