Today’s post will be divided into two sections, the first of which will be a geometric series lesson geared toward those that consider themselves novices in the mathematical arena followed by an application of that lesson in solving last week’s Riddler Classic. The second section is for those of you that are math nerds and problem solvers, and are interested in the solution. Please navigate accordingly.
Introduction to Summing Geometric Series
Suppose you are asked to find the following sum
Or, what if we replaced the fraction 1/2 in the sum above to another fraction such as 1/3 or 2/7? We’ll explore one of my favorite tricks in mathematics to find such a sum.
First, let’s explore what happens if I change all the 1/2’s to 1’s. If we sum up an infinite number of 1’s we would get infinity. This would be true for all other values greater than 1 as well. However, it turns out that when you have a value between 0 and 1, let’s call it r, then the sum will have a finite value! Let’s return to the original sum, where
.
Since I’m after the sum and I don’t know the sum, let me create a variable S for the sum. The equation then becomes
In order to solve this equation, we will use a process called factoring, then a substitution, and then solving a relatively simple, one-variable equation. First, what if we factored out a 1/2 from every term beginning with the second:
Since a 1/2 can be factored out of every term beginning with the second term, we can write it
That was the factoring step. You may be wondering why I did that. Now we can use a clever substitution. Look at equation (3) above, and in particular, the expression inside the parentheses. Does it look familiar? If we compare it to equation (1) above, you’ll notice it is the same thing! The sum we are after, S, can be written as a recursive equation involving itself! Substituting S in for the expression inside the parentheses above gives us the one variable equation .
Subtract from both sides and we obtain
. Now, multiplying by 2 on both sides will give
.
To find that S for any fractional value between 0 or 1 (call this r) takes a similar calculation. We would end just like we did above, with the equation (where the 1/2 is now an r). If we subtract rS from both sides, we get
.
Now, factoring out the S on the left hand side will give you . Finally, dividing by (1-r) on both sides gives us the general formula
.
You can now sum up infinite geometric series! Putting the final resulting formula for S in place of the original form of S gives
This equation works for all values of r in between 0 and 1. See if you can now find the sum if it were 1/3 or 2/7 now.
Probability a Bacterial Colony Will Last
Last Friday, the Riddler Classic posed a question from Adam Wagner. Here it is reprinted for convenience.
You are studying a new strain of bacteria, Riddlerium classicum (or R. classicum, as the researchers call it). Each R. classicum bacterium will do one of two things: split into two copies of itself or die. There is an 80 percent chance of the former and a 20 percent chance of the latter.
If you start with a single R. classicum bacterium, what is the probability that it will lead to an everlasting colony (i.e., the colony will theoretically persist for an infinite amount of time)?
Extra credit: Suppose that, instead of 80 percent, each bacterium divides with probability p. Now what’s the probability that a single bacterium will lead to an everlasting colony?
The Riddler, FiveThirtyEight 06/12/2020
To solve this problem, I used a rather simple formula taken from the 11th edition of Introduction to Probability Models. The following is equation (4.20) on page 236 of the text linked in the previous sentence:
The represents the probability that the bacterial colony will eventually die. The
represents the probability that any individual cell will split into j other cells before dying.
Let’s first explore . Instead of thinking of cells as splitting, think of cells as having offspring and that the right side of the split is the offspring while the left side is the parent. So, the probability that a cell will have 0 offspring (not split at all) is given as 20%. Thus,
.
The probability it will have only one offspring (split once and then die) would be by the multiplication rule of probability. The probability it will split twice and die is
. The pattern continues forever, so that the probability of splitting j times and then dying is
.
Now, to find the probability that the colony eventually dies out (), we sum up the following:
, the probability the initial cell dies right away
, the probability that the initial cell has only one offspring before dying, times the probability the colony eventually dies out from this new lone cell
, the probability the initial cell has two offspring before dying, times the probability the colony eventually dies out from one of those offspring times the probability the colony eventually dies out from the other offspring
, and so on…
This gives us equation 5 above. Writing it out using the values we have obtained for , we get
Using equation (4) from the first section now gives
This becomes the quadratic equation , which has the two solutions
and
. The one that makes sense in this case is the first.
As 25% is the probability that the colony will eventually die out, then 75% is the probability that the colony will lead to an everlasting colony.
To address the extra credit, we replace the 0.8 in equation (6) with p and the 0.2 in equation (6) with 1-p to get . This becomes the quadratic equation
which has the two solutions
and
the first of which makes sense only when
, the latter of which only makes sense when
.
As is the probability that the colony will eventually die out, then
is the probability that the colony will lead to an everlasting colony.
Featured photo by Franck V. on Unsplash