encyclopegia.org

Three prisoners problem

The three prisoners problem appeared in Martin Gardner's "Mathematical Games" column in Scientific American in 1959.[src] It is mathematically equivalent to the Monty Hall problem with the car and goat replaced respectively with freedom and execution.[src]

The three prisoners problem appeared in Martin Gardner's "Mathematical Games" column in Scientific American in 1959.[src] It is mathematically equivalent to the Monty Hall problem with the car and goat replaced respectively with freedom and execution.[src] ==Problem== Three prisoners, A, B, and C, are in separate cells and sentenced to death.[src] The governor has selected one of them at random to be pardoned.[src] The warden knows which one is pardoned, but is not allowed to tell.[src] Prisoner A begs the warden to let him know the identity of one of the two who are going to be executed.[src] "If B is to be pardoned, give me C's name.[src] If C is to be pardoned, give me B's name.[src] And if I'm to be pardoned, secretly flip a coin to decide whether to give me name B or C." The warden gives him B's name.[src] Prisoner A is pleased because he believes that his probability of surviving has gone up from to , as it is now between him and C.[src] Prisoner A secretly tells C the news, who reasons that A's chance of being pardoned is unchanged at , but he is pleased because his own chance has gone up to .[src] Which prisoner is correct?[src] The answer is that prisoner A did not gain any information about his own fate, since he already knew that the warden would give him the name of someone else.[src] Prisoner A, prior to hearing from the warden, estimates his chances of being pardoned as , the same as both B and C.[src] As the warden says B will be executed, it is either because C will be pardoned ( chance), or A will be pardoned ( chance) and the coin to decide whether to name B or C the warden flipped came up B ( chance; for an overall × = chance B was named because A will be pardoned).[src] Hence, after hearing that B will be executed, the estimate of A's chance of being pardoned is half that of C.[src] This means his chances of being pardoned, now knowing B is not, again are , but C has a chance of being pardoned.[src] ===Table=== The explanation above may be summarised in the following table.[src] As the warden is asked by A, he can only answer B or C to be executed (or "not pardoned").[src] As the warden has answered that B will not be pardoned, the solution comes from the second column "not B".[src] It appears that the odds for A vs.[src] C to be pardoned are 1:2.[src] ===Mathematical formulation=== Call A , B and C the events that the corresponding prisoner will be pardoned, and b the event that the warden tells A that prisoner B is to be executed, then, using Bayes' theorem, the posterior probability of A being pardoned, is: \begin{align} P(A|b) &= \frac{P(b|A)P(A)}{P(b|A)P(A) + P(b|B)P(B) + P(b|C)P(C)} \\ &= \frac{\tfrac12 \times \tfrac13}{\tfrac12 \times \tfrac13 + 0 \times \tfrac13 + 1 \times \tfrac13} = \frac13.[src] \end{align} The probability of C being pardoned, on the other hand, is: \begin{align} P(C|b) &= \frac{P(b|C)P(C)}{P(b|A)P(A) + P(b|B)P(B) + P(b|C)P(C)} \\ &= \frac{1 \times \tfrac13}{\tfrac12 \times \tfrac13 + 0 \times \tfrac13 + 1 \times \tfrac13} = \frac23.[src] \end{align} The crucial difference making A and C unequal is that P(b|A) = \tfrac12 but P(b|C) = 1 .[src] If A will be pardoned, the warden can tell A that either B or C is to be executed, and hence P(b|A) = \tfrac12 ; whereas if C will be pardoned, the warden can only tell A that B is executed, so P(b|C) = 1 .[src] ==An intuitive explanation== Prisoner A only has a chance of pardon.[src] Knowing whether B or C will be executed does not change his chance.[src] After he hears B will be executed, Prisoner A realizes that if he will not get the pardon himself it must only be going to C.[src] That means there is a 2/3 chance for C to get a pardon.[src] This is comparable to the Monty Hall problem.[src] ===Enumeration of possible cases=== The following scenarios may arise: A is pardoned and the warden mentions B to be executed: × = of the cases A is pardoned and the warden mentions C to be executed: × = of the cases B is pardoned and the warden mentions C to be executed: of the cases C is pardoned and the warden mentions B to be executed: of the cases With the stipulation that the warden will choose randomly, in the of the time that A is to be pardoned, there is a chance he will say B and chance he will say C.[src] This means that taken overall, of the time ( [that A is pardoned] × [that warden says B]), the warden will say B because A will be pardoned, and of the time ( [that A is pardoned] × [that warden says C]) he will say C because A is being pardoned.[src] This adds up to the total of of the time ( + ) A is being pardoned, which is accurate.[src] It is now clear that if the warden answers B to A ( of all cases), then of the time C is pardoned and A will still be executed (case 4), and only of the time A is pardoned (case 1).[src] Hence C's chances are ( )/( ) = and A's are ( )/( ) = .[src] The key to this problem is that the warden may not reveal the name of a prisoner who will be pardoned.[src] If we eliminate this requirement, it can demonstrate the original problem in another way.[src] The only change in this example is that prisoner A asks the warden to reveal the fate of one of the other prisoners (not specifying one that will be executed).[src] In this case, the warden flips a coin and chooses one of B and C to reveal the fate of.[src] The cases are as follows: A pardoned, warden says: B executed ( ) A pardoned, warden says: C executed ( ) B pardoned, warden says: B pardoned ( ) B pardoned, warden says: C executed ( ) C pardoned, warden says: B executed ( ) C pardoned, warden says: C pardoned ( ) Each scenario has a probability.[src] The original three prisoners problem can be seen in this light: The warden in that problem still has these six cases, each with a probability of occurring.[src] However, the warden in the original case cannot reveal the fate of a pardoned prisoner.[src] Therefore, in case 3 for example, since saying "B is pardoned" is not an option, the warden says "C is executed" instead (making it the same as case 4).[src] That leaves cases 4 and 5 each with a probability of occurring and leaves us with the same probability as before.[src] ==Why the paradox?== The tendency of people to provide the answer 1/2 is likely due to a tendency to ignore context that may seem unimpactful.[src] For example, how the question is posed to the warden can affect the answer.[src] This can be shown by considering a modified case, where P(A)=\frac{1}{4}, P(B)=\frac{1}{4}, P(C)=\frac{1}{2} and everything else about the problem remains the same.[src] Using Bayes' Theorem once again: \begin{align} P(A|b) &= \frac{\tfrac12 \times \tfrac14}{\tfrac12 \times \tfrac14 + 0 \times \tfrac14 + 1 \times \tfrac12} = \frac15.[src] \end{align} However, if A simply asks if B will be executed, and the warden responds with "yes", the probability that A is pardoned becomes: \begin{align} P(A|b) &= \frac{1 \times \tfrac14}{1 \times \tfrac14 + 0 \times \tfrac14 + 1 \times \tfrac12} = \frac13.[src] \end{align} A similar assumption is that A plans beforehand to ask the warden for this information.[src] A similar case to the above arises if A does not plan to ask the warden anything and the warden simply informs him that he will be executing B.[src] Another likely overlooked assumption is that the warden has a probabilistic choice.[src] Let us define p as the conditional probability that the warden will name B given that C will be executed.[src] The conditional probability P(A|b) can be then expressed as: \begin{align} P(A|b) &= \frac{p}{p + 1} \end{align} If we assume that p=1 , that is, that we do not take into account that the warden is making a probabilistic choice, then P(A|b)=\frac12 .[src] However, the reality of the problem is that the warden is flipping a coin ( p=\frac12 ), so P(A|b)=\frac13 .[src] Judea Pearl (1988) used a variant of this example to demonstrate that belief updates must depend not merely on the facts observed but also on the experiment (i.e., query) that led to those facts.[src] ==Related problems and applications== Monty Hall problem Boy or Girl paradox Principle of restricted choice, an application in the card game bridge Prisoner's dilemma, a game theory problem Sleeping Beauty problem Two envelopes problem ==Further reading== Frederick Mosteller, .[src] Richard Isaac, .[src]

61 sentences · 61 cited inline · 0 references stored

References

No reference rows published for this article.

Cite this article

MLA

"Three prisoners problem." encyclopegia.org, 2026, https://encyclopegia.org/wiki/three-prisoners-problem. Accessed 01 December 2026.

Chicago

"Three prisoners problem." encyclopegia.org. Accessed December 1, 2026. https://encyclopegia.org/wiki/three-prisoners-problem.

APA

encyclopegia.org. (2026). Three prisoners problem. Retrieved December 1, 2026, from https://encyclopegia.org/wiki/three-prisoners-problem

Accessed December 1, 2026 · CC BY-SA 4.0 · citation page · JSON

Related articles

southern three-banded armadillo

stub · references available

Goldilocks and the Three Bears

stub · references available

promise problem

stub · references available

Three Fantastic Dances

stub · references available

Ninety-Three

stub · references available

The Three Spinners

stub · references available

Three Way

stub · references available

Three chords for hallelujah

stub · references available
CC BY-SA 4.0 · share-alike · https://en.wikipedia.org/w/index.php?oldid=1377085253 · 0.5 · snapshot enwiki-001377085253

Cite · JSON · Search

Related services and records

Services

  • Estate — measured countries, lanes and facts
  • Intel — live corroborated events
  • Legal — statutes, cases and citations
  • Encyclopedia — articles with inline sources
  • Space — launches, satellites and orbits
  • Search — federated search and reports
  • Pass — passport account and SSO
  • Corpora — read-only corpus origins
  • e01 — self-hosted corpora and tools
  • Careers — open roles: frontier engineers and sales partners
  • Index — every corpus, paper and record
  • Estate guide — what a public data estate is
  • Founder — Lois-Kleinner Alpasan
  • Records — DOIs and external deposits
  • Documents — one-pagers, PDFs and QR codes
  • Brand kit — logos and share images
  • Papers — plain-language briefs with citations
  • Browser — search engine, PWA and bookmarklet
  • Anticloud — the operator and its projects

As seen in Business Insider · 336 outlets · evidence DOIs · plain-language papers

Text and metadata only; each target carries its own sources. Missing data is published as no-data, never estimated.