The last coconut puzzle is a simple game that challenges your intuition around decision-making. I recently came across the work done by Leonardo Barichello, which inspired me to write about this puzzle.
It all begins with a hypothetical story. Imagine that you are travelling on a ship as part of your vacation. Due to an unfortunate accident, your ship sinks in the middle of the sea. Luckily, you survive the incident.
Even more luckily, you manage to make it ashore to an island. However, there is one problem. The island seems to be uninhabited and you are the lone survivor who has made it to this island.
After scavenging the entire island for something edible, you come across a delightful-looking coconut. Considering the hunger you are experiencing right now, this coconut might as well be a three-course meal with excellent drinks.
As you approach the coconut with great excitement, a monkey jumps down from a nearby tree. He tells you the following:
“Caution, stranger! This coconut belongs to me. If you really wish to have this coconut, then you will have to play a game with me and win.”
Naturally, you are startled and surprised. But considering the circumstances, you ask the monkey to tell you more, and he proceeds to explain the rules of the game to you.
The monkey reveals two dice from behind his back. Then, he goes on to prove to you that these are both fair dice.
Two dice — Illustrative art created by the author
Once you are convinced, the monkey tells you that the game begins when he rolls both the dice at the same time.
After revealing this, the monkey goes on to explain the rules of the game:
1. If the largest number from both the dice facing up is 4 or lower, then you win.
2. If the largest number from both the dice facing up is 5 or 6, then I (the monkey) win.
3. If both the dice land with the same number on top, then we call ita draw.
4. We will decide who wins by considering the best of three outcomes.
5. If you win, you get to keep the coconut. If I win, you will become my slave.
Given the rather risky rules of this game, would you take this bet? Either way, what do you think your chances of winning are?
Spoiler Alert
Beyond this section, I will be discussing the solution to this puzzle. If you prefer solving this puzzle on your own first, then I suggest that you pause reading this essay at this point.
Once you are done with your attempt, you may continue reading and compare approaches.
The Solution to the Last Coconut Puzzle
People typically tend to choose to the bet offer, as intuition says that the monkey has lower chances of winning this game. But because of the closed nature of this puzzle, it is quite easy to work out your exact chances of winning.
The first step is to create a mental picture of all the possible outcomes. Since we have 2 fair dice here, we have a total of 36 possible outcomes.
Out of these, considering rule 4 (“If both the dice land with the same number on top, then we call it a draw”), 6 scenarios result in a draw . The resulting scenario outcome table would look like this:
Scenario Outcome table — Created by the author
At this point, we could just brute-force the solution by marking which scenarios lead to your winning and which scenarios lead to the monkey’s winning.
Let you be ‘Player 1’ and the monkey be ‘Player 2’. For example, if the dice return (1, 4), then Player 1 wins. And if the dice return (1, 5), then Player 2 wins. The consequent game outcome table would look like this:
Game outcome table — Created by the author
By simple counting, you can tell that you would win in 12/36 scenarios and the monkey would win in 18/36 scenarios.
We can also arrive at this result by considering the fact that the outcome of each die roll has an independent probability associated with it. As a result, rule 1 can be transformed as follows:
Probability of each die individually resulting in 1 or 2 or 3 or 4 = (4/6)*(4/6) = 16/36
By incorporating rule 4, your chances of winning is as follows:
[Probability of each die individually resulting in 1 or 2 or 3 or 4] − [Probability of both dice being 1 or 2 or 3 or 4]
= Probability of your winning = (16/36) − (4/36) = 12/36 = 1/3 = 33% (approximately)
Since this is a closed game, the independent probabilities of all possible outcomes need to sum up to 1. We can take advantage of this fact and compute the probability of the monkey’s winning as follows:
[Probability of any outcome] − [Probability of your winning] − [Probability of both dice featuring the same number]
= Probability of the monkey’s winning = (36/36) − (12/36) − (6/36) = 18/36 = ½ = 50%
As you can clearly see, the monkey has the upper hand in this game and is trying to lure you into enslavement!
Final Comments
One of the common misconceptions about applying probability to real-world situations is to mistake probability for certainty.
In other words, even though you have a lower probability of winning in this game, it is not a certainty that you will lose if you choose to play this game.
That is precisely what makes this game random. For the probabilities to approach certainty, something known as the law of large numbers needs to come into effect.
The monkey and the coconut — Illustrative art created by the author
Instead of a ‘best of three’ scenario, if the monkey invites you to play a ‘best of several million’ scenario, the probabilities would be much closer to certainties.
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