November 27, 2020
Well folks, it is the day after Thanksgiving. I hope all of my dear readers had a safe, happy, and stomach-satisfying Thanksgiving whichever way you guys have celebrated. To those of you who chose to put off physically being with your family this year, please accept my sincere gratitude. You guys are true selfless heroes who deserve a big round of applause from everyone, and when we celebrate an especially heart-warming Thanksgiving in 2021, you guys will be a big reason for this accomplishment.
This blog post was inspired by one of my readers who Emailed me about my previous post, where I presented my solution to the Riddler Classic problem: Can You Pass The Cranberry Sauce?. Special thanks to Prof. Henk Tijms from the University of Amsterdam for taking the time to read my blog posts and sharing a wonderful insight into the Cranberry Sauce problem. In his Email response to me, he brought up an alternate analysis to the Cranberry Sauce problem as a different "Chairman Selection" problem in his book Surprises in Probability- Seventeen Short Stories which I am delighted to check it out. In the meantime, Prof. Tijms mentioned the use of the "Gambler's Ruin" formula to solve the Chairman Selection problem, and a lightbulb went off my head.
Gambler's Ruin. The first thing that popped into my head seeing this was that I probably can use my blog to post a PSA:
Gambling can ruin your life. Run away from it and don't touch it ever.
Coincidentally, my blog has been concentrated on various quirks in math, so here, why not try to use math to prove the above adage? Heck, the name "Gambler's Ruin" probably spoils the ending on whether gambling pays (answer: No!), but what is the mysterious formula that is the "Gambler's Ruin", and how does that tie into the Cranberry Sauce problem?
Let's gamble on something, just to see how it pays. Here, instead of gambling on money, we are going to gamble on--the Cranberry Sauce (sorry if you are already sick of it from the Thanksgiving meal). We do so by modifying the original Cranberry Sauce problem through the kind of table you are sitting for the meal. Instead of a circular table, it is going to be rectangular, with you along with, let's say N other friends and familiy members this time, all sitting in a line. You will be person 0, the person to your right is person 1, the person to person 1's right is person 2, and so on, until person N all the way at the other end of the table.
To start off, you have the cranberry sauce, and after helping yourself, you pass the sauce to person 1 on your right. Each person thereafter has a probability of
What is the probability that the cranberry sauce will make its way down to person N?
You can see how this parallels a gambler. The gambler plays a game where he/she starts off with $1, and wants to win $N in the end. Each time he/she plays the gambler can either win $1 or lose $1. When he/she loses everything, the gambler's day is done (ruined!). What is the probability that the gambler will reach $N?
The setup is like the following Markov Chain:
Don't worry if you are not familiar with the concept of Markov Chains. The reason why I bring up this model is to highlight an important observation in solving this problem. When say person 2 receives the cranberry sauce, it doesn't matter if that person received it in two passes or 30 passes; the moment person 2 receives the sauce (before person N has received it, of course), the game resets. Everything that happened before person 2 received the sauce does not matter anymore. If we denote the probability that person N will eventually receive the sauce when currently person
The stochastic chart above is not complete, of course, because when the sauce reaches person 2 the journey continues, with ultimately probability
From the above stochastic chart, we have the following relationship based on the Law of Total Probability:
Let me translate the above equation into English: the probability of the cranberry sauce reaching person N while person 1 currently has it, denoted as
But what is
So we really just have:
But what is
Remember,
So we have a system of equations, one for each state:
Look at the last equation: we have a series of differences for
So now after we add up the above equations, all but the end terms on both sides of the equations cancel out! We can even choose not to add up to N and only add up to the first
In particular, we know that
Putting everything together, we obtain:
Look at this! We've got ourselves a geometric series! But we have to be careful. When r = 1, we don't need the geometric series formula, but rather recognizing that we have
For
For
So in summary,
And the output,
Like the probability of the last person receiving the sauce skewing wildly with different values of
Starting with
For
Things start to skew when we increase
The Gambler's Ruin formula becomes concave when
On the other hand, when gambler's fortune is not in his/her favor, via
The Gambler's Ruin formula becomes convex when
If we let
...Which gets back to my PSA: Gambling Doesn't Pay. What the above Gambler's Ruin formula tells us, in plain English, is that even if the odds of winning a hand in blackjack, or winning the slot machine each time you pull it, is stacked in your favor, which, you'd be dreaming if you can find a casino that actually does, you will still only have a chance at striking it rich. If the stack is not in your favor, which is the reality in all casinos, you have a certainty that you will lose everything you gamble in the long run. Odds in your favor? You may get rich from gambling. Odds even or not in your favor? You will lose everything from gambling. That is the Gambler's Ruin.
But wait, you might ask, how can this be? Shouldn't the probability of one reaching the goal of striking riches (getting a large $N value) be just as certain for
There seems to be a symmetry displayed between states 0 and N. If I switch those states, or if I switch p and q, then should I obtain the exact same scenario?
Not quite. To see this, we will use math as our definitive judge. We are going to look at two values here. The first value is
Without loss of generality, let our original
The first value is
The second value is when we switched p and q such that
So we have two values:
So here's the punchline, symmetry can be exploited when you are at the halfway point between losing everything and reaching your goal. However, in the endless pursuit of riches,
What the above inequality tells us is that when you gamble with less than sufficient amount to start with, the chances of you going bankrupt is greater than making it even with reversed odds stacked in your favor. There is no symmetry here. Maybe if you are a tycoon and you start the gambling with a large enough fund and with seasoned advisers making sure your goal isn't too ambitious, then you might increase your worth through gambling. However, in even the slightest realistic scenario, you will lose everything. Gambling truly doesn't pay.
Please find the Simulation Code here.