When given the chance to guess the gender of a child, is it as easy at fifty-fifty, or is there some deeper probability at hand? In this problem, we explore the probability of guessing the gender of a twin when we are told the gender of one.
It is a beautiful afternoon, and you are on your normal walk around the park. After some time of walking, you decide to sit down and catch a breather. While on a bench, you start up a conversation with a very nice lady who says she has come to the park with her two twin children. During the conversation a little boy comes over and calls the lady, “Mom”. As the little boy is talking to his mother, you begin to wonder if the other twin child is also a boy or a girl. After a few moments of thought, you realize that this question has more to do with probability that with biology. What is the probability that the other child is a girl or boy?
Most people know that there is a fifty-fifty chance of getting tails when flipping coin. This can be written out as:
\[ \text{------------------------------------------------} \\\text{Prob(tails) = 1/2} \\\text{------------------------------------------------} \]
And thanks to our knowledge of biology, this same statement applies. The probability of have a boy or girl is 50%. So why then isn’t the answer to the ‘Twin Problem’ just 50% girl and 50% boy? It is because of possible combinations, which we will go over now.
If we were to draw out all the combinations of twins, it would look something like the image below.
In total, there are four possible combinations as drawn out in the image. In each combination, there is a specific order that is important to note. We will not use this plot to solve the question.
In the story, you find out that one of the woman’s twins is a boy. This will help us eliminate the possible outcome where both children are girls (image below). The red circle is to demonstrate that we know at least one of the children is a boy for each possible combination.
Now, something important to note is that we were not told whether the boy was born first. Because of that, we must keep both combinations 3 and 4 even though they contain the same pieces in their combos.
The next step will be to start adding some probability to each option. In the figure below, the remaining combinations are shown with their probability above. In each option, a male is covered with blue, telling us that we already know there is a male twin.
As we see from the illustration above, of the combinations we have left, there is a 1/3 chance of each combination occurring. At this point, we will combine probabilities of those with the same outcome.
With the aid of this last visual, we can see that there is a probability of 33% that the other twin is a boy and a 66% that the other twin is a girl.
After a moment of thinking, you turn to the lady on the bench and ask, “I am just guessing here, but is your other child a girl?” The lady responses with mild surprise, “Yes, have we meet before?” You reply, “no”, and tell her it was just a good guess.
The graph below illustrates how after # of Rounds, that the probability of the second child being a girl eventually will level out around 66%.
For fun, I decided to try and prove the answer to the Twin Probelm with code.
The steps I took were: First, I created table of 2 columns and 100 rows. For each column, I randomly filled in each cell with either a ‘b’ - for boy, or ‘g’ - for girl. Second, the story tells us that we know that one of the twins is a boy. I then filtered out the rows that didn’t have at least 1 ‘b’. This got rid of the possibility of the twins both being a girl.
Next, I created two running sum columns, one for Girl and one for Boy. The Girl column, would first, see if there was a ‘g’ in either column 1 or 2, if there was, it added 1 to the sum. The Boy column, looked to see if both columns in each row had ‘b’.
I have an image below to show what the data looks like at this point.
This process was done for the number of trials (the index). The graph below shows how the perentage of Boy_Count and Girl_Count change over the number of rounds (trials/index number).
According to the math explained above, the chance of the other twin being a girl should be 66% and for a boy 33%. I think it is super cool to see how as more rounds are played in the image below, each bar gets closer to that line/mark. This further proves to me that the answer to this question is correct and be proven outside of reason.
graph
