The Three Prisoners Puzzle: How To Really Solve It?
Published on November 2, 2022 by Hemanth
--
The three prisoners puzzle is a fun and engaging mathematical puzzle that shows how counterintuitive the notion of probability can be. I love and work with mathematics day in and day out.
Of all the sub-fields mathematics offers, I feel that probability theory is the one that is the most demanding and rewarding at the same time.
Before we proceed with this puzzle, be warned that it appears deceptively simple and easy on the surface. However, this puzzle has historically even caught out experts in the field of probability. So, bring your best brains with you to solve this one. Let us begin.
Our story begins with three prisoners: Arun, Ben, and Cayleb (A, B, and C for short throughout the rest of the puzzle). All three prisoners were sentenced to death a while back.
However, the Governor in charge started coming increasingly under pressure to reduce the death sentence count for the state. So, he came up with a very unfair but convenient plan: the city would pardon random prisoners who were sentenced to death.
It turned out that the Governorâs pardon list contained one of the names among A, B, and C. In other words, one of the three men would get a lucky pardon. The Governor shared his list with the jailâs Warden.
The lucky prisoner â Illustrative art created by the author
So, the Governor and Warden were the only ones who knew who the lucky prisoner was. However, the rumour had already reached all the prisoners in the prison. They did not know who the lucky prisoner was, but they all knew that there was one among them.
Arun and the Warden
One fine day, as the Warden was making his rounds, Arun chatted him up. After some casual banter, Arun playfully asked the Warden if he could reveal if he was the lucky prisoner who would get the pardon.
The deal with the Warden â Illustrative art created by the author
Being a duty-driven fellow, the Warden refused to answer this question. But Arun, being the sly crook he was, did not give up; he approached the same theme from a different angle. He said to the Warden:
âI respect your dutifulness. If you cannot tell me if I am the one to be pardoned, then tell me the name of one of the other prisoners (other than myself) who will be executed.â
The Warden was puzzled by this request. Yet, it drew him in; he wanted to listen to what Arun had to say. As the Warden continued to listen suspiciously, Arun continued:
âIf Ben is to be pardoned, tell me Caylebâs name. If Cayleb is to be pardoned, then tell me Benâs name.
If I am to be pardoned, then flip a coin between Ben and Cayleb and tell me a name based on the coin toss.â
The Warden thought for a moment, and responded:
âHang on a second. If you saw me flip the coin, you would know that you are not pardoned. And if I donât flip the coin, you would know that the lucky one one is either you or the person I am about to name.â
With a confident smirk on his face, Arun replied:
âWell, you donât have to do any of this in front of me. Do what you have to do in private, and tell me the name tomorrow.â
The Three Prisoners Puzzle â Challenge
That night, the Warden thought long and hard about Arunâs request. Unfortunately, the Warden had no exposure to probability theory. After going through all possible scenarios, the Warden concluded that if he followed Arunâs request, it would not help him assess his survival chances any more than now.
The next day, as the Warden was making his rounds, Arun chatted him up again. This time, the Warden told with a smirk on his face:
âBen will not be pardoned; he will be executed.â
After sharing this information, the Warden left. Having learnt this information, Arun was overjoyed. Having a little exposure to probability theory, Arun realised that by knowing that Ben will be executed, the sample space for the pardon had reduced from three to two.
Therefore, his survival chances had increased form one-third (1/3) to one-half (½). Arun did not stop there though. Being the clever operator that he was, he had established a secretive way to communicate with Cayleb by tapping his finger nails on a water pipe that their cells shared.
Arun communicated to Cayleb that Ben is to be executed. Having heard this information, Cayleb was equally overjoyed as he realised that his own survival chances increased from one-third (1/3) to one-half (½).
I hope you enjoyed the story thus far. Now, it is your turn. The challenge that the puzzle poses to you is the following:
Did Arun and Cayleb apply probability theory correctly? Are their computations correct?
If you think not, how should they have computed their respective survival chances?
Spoiler Alert
If you wish to solve this puzzle on your own, now is the time. Beyond this section, I will be explicitly discussing the solution to this puzzle.
So, I suggest that you pause reading this essay during your attempt. After you complete your attempt, you may continue reading this essay and compare solutions. All the best!
Ambiguity in Probability Calculations
Probability theory is one of those bizarre fields that is very context-dependent. If you are not careful, the same numbers would lead to completely different answers based on different contexts.
The first thing to note about Arunâs computation of his survival chances is the fact that it leads to a contradictory situation. To help imagine why this happens, imagine a scenario in which the Warden had somehow gotten sick on the night before, and never showed up for his rounds.
In such a scenario, Arun could reason as follows:
âIf the Warden would say that Ben was to be executed, the sample space is reduced to two prisoners (myself and Cayleb). So, my chances of survival are ½.â
But then again, Arun could also reason as follows:
âIf the Warden would say that Cayleb was to be executed, the sample space is reduced to two prisoners (myself and Ben). So, my chances of survival are ½.â
The problem here lies in the fact that Arun explicitly requested one of the other prisonerâs names (that is, other than Arunâs) from the Warden. So, the Warden is bound to say either Ben or Cayleb.
This means that regardless of the Wardenâs answer, Arun could use his present logic to establish that his survival chances are ½ instead of 1/3. In simpler terms, Arun could say that his survival chances are ½ without even hearing from the Warden again.
With his current logic, he essentially learns no new information from the Wardenâs answer. This can only mean that his logic is flawed. So, how should he have calculated his survival chances instead?
The Solution to the Three Prisoners Puzzle
Consider a hypothetical scenario where there are â3nâ number of parallel universes (where 3n is a very large number). In each of these universes, there is a trio of prisoners (A, B, and C) among whom, one would get the lucky pardon.
In all â3nâ universes, let âAâ (Arun) be the prisoner who chats the Warden up. In total, there are 3n trios of prisoners. Based on equal probability distribution, in ânâ universes, Arun would be pardoned. Similarly, in ânâ universes, Ben would be pardoned, and in ânâ universes, Cayleb would be pardoned.
As I had mentioned previously, because of Arunâs explicit request for a name other than his own, the Warden HAS to necessarily tell him either Benâs name or Caylebâs name. So, in (3n/2) universes, the Warden would tell Benâs name and in (3n/2) universes, the Warden would tell Caylebâs name.
In our universe, the Warden told Benâs name. So, we can narrow our focus down to the (3n/2) universes where the Warden told Benâs name. Within these (3n/2), Cayleb would get the pardon in ânâ universes. This is because of the following reasons:
1. The original equal probability distribution asserts that each prisoner gets the pardon in ânâ universes each.
2. In the other (3n/2) universes, the Warden mentions Caylebâs name. So, he necessarily cannot be pardoned.
To compute Arunâs survival chances, you just subtract ânâ (Caylebâs survival chances) from (3n/2). This leads to (n/2). In other words Caylebâs survival chances (n) are twice that of Arunâs (n/2).
Considering the fact that these probabilities necessarily need to add to 1, we directly arrive at the solution to this puzzle:
1. Arunâs chances of survival are (1/3).
2. Caylebâs chances of survival are (2/3).
The solution â Illustrative art created by the author
Epilogue – The Three Prisoners Puzzle
The interesting thing to note in this puzzle is why exactly Arun learns nothing about his survival chances from the Warden.
Essentially, the Wardenâs choice of name is no random event. Therefore, it does not change the probabilities involved directly. If the Warden drew a random name out of a lot and communicated that to Arun, then Arunâs computation would have been correct.
Cayleb, on the other hand, learns the information from Arun. The Warden could have said Caylebâs name, but he did not. This enables Cayleb to learn new information about his situation as opposed to Arun.
Another way to see how Arun learns no new information is to say that he would be executed if a random draw from a deck of 52 cards yields the ace of spades.
In this scenario, let us say that someone peeked into the cards, and deliberately drew 50 cards that were not ace of spades and placed them open on the table. Only two cards remain closed, out of which one is the ace of spades.
This does not mean that Arunâs survival chances are ½; they remain as 51/52. This is because the person choosing the cards did not choose randomly; he or she chose the cards deliberately with the aim of avoiding ace of spades. So, opening up those cards provides no new information and hence does not affect the probabilities at all.
Final Thoughts
I hope you enjoyed solving this puzzle as much as I enjoyed writing about it. If you found it very challenging, donât be disheartened.
As I had mentioned briefly before, I have read several accounts of even established probability theory experts who got this puzzle wrong. It just goes to show that probability theory really is a very tricky field (even for the experts).
I will be continuing to write about interesting and engaging puzzles in the future. So, watch this space if you are interested in more such puzzles!
We use cookies on our website to give you the most relevant experience by remembering your preferences and repeat visits. By clicking âAcceptâ, you consent to the use of ALL the cookies.
This website uses cookies to improve your experience while you navigate through the website. Out of these, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may affect your browsing experience.
Necessary cookies are absolutely essential for the website to function properly. These cookies ensure basic functionalities and security features of the website, anonymously.
Cookie
Duration
Description
cookielawinfo-checkbox-advertisement
1 year
Set by the GDPR Cookie Consent plugin, this cookie is used to record the user consent for the cookies in the "Advertisement" category .
cookielawinfo-checkbox-analytics
11 months
This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics".
cookielawinfo-checkbox-functional
11 months
The cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional".
cookielawinfo-checkbox-necessary
11 months
This cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary".
cookielawinfo-checkbox-others
11 months
This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other.
cookielawinfo-checkbox-performance
11 months
This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Performance".
CookieLawInfoConsent
1 year
Records the default button state of the corresponding category & the status of CCPA. It works only in coordination with the primary cookie.
viewed_cookie_policy
11 months
The cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data.
Functional cookies help to perform certain functionalities like sharing the content of the website on social media platforms, collect feedbacks, and other third-party features.
Performance cookies are used to understand and analyze the key performance indexes of the website which helps in delivering a better user experience for the visitors.
Cookie
Duration
Description
_gat
1 minute
This cookie is installed by Google Universal Analytics to restrain request rate and thus limit the collection of data on high traffic sites.
Analytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics the number of visitors, bounce rate, traffic source, etc.
Cookie
Duration
Description
__gads
1 year 24 days
The __gads cookie, set by Google, is stored under DoubleClick domain and tracks the number of times users see an advert, measures the success of the campaign and calculates its revenue. This cookie can only be read from the domain they are set on and will not track any data while browsing through other sites.
_ga
2 years
The _ga cookie, installed by Google Analytics, calculates visitor, session and campaign data and also keeps track of site usage for the site's analytics report. The cookie stores information anonymously and assigns a randomly generated number to recognize unique visitors.
_ga_R5WSNS3HKS
2 years
This cookie is installed by Google Analytics.
_gat_gtag_UA_131795354_1
1 minute
Set by Google to distinguish users.
_gid
1 day
Installed by Google Analytics, _gid cookie stores information on how visitors use a website, while also creating an analytics report of the website's performance. Some of the data that are collected include the number of visitors, their source, and the pages they visit anonymously.
CONSENT
2 years
YouTube sets this cookie via embedded youtube-videos and registers anonymous statistical data.
Advertisement cookies are used to provide visitors with relevant ads and marketing campaigns. These cookies track visitors across websites and collect information to provide customized ads.
Cookie
Duration
Description
IDE
1 year 24 days
Google DoubleClick IDE cookies are used to store information about how the user uses the website to present them with relevant ads and according to the user profile.
test_cookie
15 minutes
The test_cookie is set by doubleclick.net and is used to determine if the user's browser supports cookies.
VISITOR_INFO1_LIVE
5 months 27 days
A cookie set by YouTube to measure bandwidth that determines whether the user gets the new or old player interface.
YSC
session
YSC cookie is set by Youtube and is used to track the views of embedded videos on Youtube pages.
yt-remote-connected-devices
never
YouTube sets this cookie to store the video preferences of the user using embedded YouTube video.
yt-remote-device-id
never
YouTube sets this cookie to store the video preferences of the user using embedded YouTube video.
Comments