The birthday paradox is a surprising result of probability. Suppose you randomly chose 23 people and put them in a room. Then there would be a good chance ( greater than 2 1 ) that two of those people share a birthday (even though there are 365 days in the year).
What about birth seasons (spring, summer, fall, winter)? Suppose you randomly chose 3 people and put them in a room. Then is it true that there would be a greater than 2 1 chance that two of them share a birth season?
Note : Birth seasons do not all have the exact same likelihood. However, their likelihoods are close enough that you can assume they are equal for this problem.
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
If you want to try more examples, we have a quiz specifically devoted to the Birthday Paradox and its variations .
The way i did it was that, I got the total number of arrangements in which three people have a birthday season, eg:- one arrangement would be 1st person- summer, 2nd person - winter, 3rd person - winter. The total no of arrangements is 4x4x4 = 64 - 4 season possibilities for each person.
Then I got the number of arrangements in which at least two have the same birthday season:
Between 1st and 2nd persons : there are four arrangements in which only they have the same season (either summer-summer, autumn-autumn etc..)
Similarly between the 1st and 3rd and between the 2nd and 3rd, there are again four arrangements.
Also there are the four arrangements in which all three have the same birthday.
So totally there are 4+4+4+4 = 16 arrangements in which at least two people have the same birthday season.
So I got the probability of at least two people sharing a birthday season to be :- 16/64 = 1/4 , so that's lesser than 1/2. I understood your method, but what is wrong with this? Thanks.
Log in to reply
The problem is that you haven't covered all the possibilities. Rather than just looking at pairs of people for your first calculation, you need to look at all three of them. Look at the number of ways that two people share a season and the third person is different. Since there are three other seasons, that gives you 4 * 3 = 12 ways. Thus the number of arrangements is 12 + 12 + 12 + 4 = 40 and the chance is 40/64 = 5/8.
You have calculated all the different ways in which the people can share a birthday season, but only taking into account the people that shares birthday. For the 4 different ways in which the 2 first persons can share a birthday, the 3rd person can have it in any season, 4 times more different options. Continuing with your reasoning, the first and 2nd persons have 4 ways to coincide, but 4 times that because of the 3rd person, you do the same calculations for the first and 3rd persons, and for the second person with the last one. You would get 4x4 + 4x4 + 4x4 = 48, but in the three operations you have the case in which the 3 people share a birthday, you have to count it 1 time, 4 different options, but we have calculated it for the 3 pairs of persons, so we have to subtract 2x4 (2 times the 4 options, we have to count it 1 time, we did it 3 times) and we have left 48 - 2x4 = 40 combinations.
The probability is 40/4^3 = 5/8
I tried to reason it directly thinking of the probability of having the same birth season, and, after being wrong, I think I have a reasonable solution.
The first person have 4 possible seasons, so from here we have 2 options, the second person can have the same birth season or a different one. If the second person have the same birth season as the first, the 3th person can have any of the 4 seasons, so we have 4x1x4. Then, the 2nd person can have a different birth season than the first, we have 3 options for that, since the 1st has 1 birth season we have 3 different for the second person. And for this 4x3 options (for every of the 4 seasons for the first person the second can have 3 different options), the 3rd person has 2 possible options in which match with the first person or the second one (they have different seasons, so 2 of the 4 season are "occupied"). Then we have 4 possible options for the first. If the second matches with the first (1 case), 4 options for the 3rd. If the second doesn't match with the first (3 options), then the 3rd have 2 different seasons to match (2 different occupied). That's 4x1x4+4x3x2 =16+24= 40 options. The total combinations are 4 for the first person for every 4 for the 2nd person for every 4 for the 3rd person, 4x4x4 =4^3=2^6= 64. 64 equally likely cases. So the probability is (4x1x4+4x3x2)/(4x4x4) = 40/64 = 5/8
I know is more complicated in this way than thinking of the different birth seasons, but I wanted to do it in this direct way :)
There are 4C3 ways of choosing the 3 seasons in which the 3 people have their birthdays. There are 6 ways to arrange the 3 seasons among the 3 people. That is a total of 4 ∗ 6 = 2 4 ways of having birthdays in different seasons. There are 4 3 = 6 4 ways of choosing the seasons for the 3 people, if the seasons do not have to be different. Therefore, the probability that the three people have their birthdays in different seasons is 6 4 6 4 − 2 4 = 6 4 4 0 = 8 5
if there's 3 people, aren't we supposed to say that there's 9 ways to arrange the seasons??? could you please demonstrate how did you come to 6
How 3*8 ways of having birthday in different seasons?
Log in to reply
Nevermind. It's 4 ∗ 6 = 2 4 . Not 3 ∗ 8 = 2 4 . Thanks for pointing that out!
Your last sentence should be the opposite, right? You subtract the 24 ways of having different birthdays from the total of 64 ways, so you calculate the probability of having a match.
The probability that there is NO match is:
The second is not the same as the first: 3/4
Multiplied by
The third is not the same as the first two: 1/2
So the probability of a match is 1 - 3/8 = 5/8
Let S be the event that at least two people share the same birth season, and denote by S’ the complement of that event. Then
P ( S ’ ) = 4 × 4 × 4 4 × 3 × 2 = 8 3 and hence P ( S ) = 1 − 8 3 = 8 5 > 2 1
There are 4 3 = 6 4 ways to assign birth seasons to the three people.
If they have no birth season in common, each season is assigned to one person or "nobody". There are 24 arrangements of { person 1 , person 2 , person 3 , nobody } . This is less than half of the 64 assignments.
Therefore, the majority of assignments has overlapping birth seasons; the probability is P = 6 4 6 4 − 2 4 = 8 5 .
It seems that anybody else solved this problem in a straightforward computational way. So, I will write an intelligible Python 3 algorithm to determine the probability (even if it's mathematically easy to calculate it):
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
|
Let's calculate the probability that there is no collision. When there's 1 person the probability is 1. If we add a second person, then ¾ of the possibilities of his birthday season lead to no collision. So for 2 people to have no collision the probability is 1 • ¾. If we add a third person, then ½ of the possibilities of his birthday lead to no collision. So for 3 people to have no collision the probability is 1 • ¾ • ½ = ⅜ The probability of having a collision = 1 - the probability to not having a collision. Thus the answer is 5/8.
We can calculate how many possibilities there are, so we have 4 seasons and 3 people, that means, according to combinatorial analysis, that there are 4³ possibilities, 64 possibilities. Now we can calculate the favourable cases over that 64 ones. For us, a favourable case would be a possibility which has a birthday repetition. So we can calculate how many cases do NOT have a reiteration, that's just a variation without repetition, according to combinatorial analysis. The unfavourable cases would be then 4•3•2. 24 cases are not favourable. It means that 40 cases are favourable. According to: favourable cases over possible cases, we end up with 40/64, which is the same as writing 5/8, and it's obviously greater than 1/2.
A sampling Python solution
import random
iterations = 0
matches = 0
while iterations < 10000:
iterations += 1
A = random.randint(0, 3)
B = random.randint(0, 3)
C = random.randint(0, 3)
if A == B or B == C or C == A:
matches += 1
print('ratio of matches to iterations', matches / i)
If you make a chart, you can see that there is 1 2 4 or 3 1 chances of them all having the same birthday season and 3 2 chances of two of them having the same season.
A solution without the need of knowledge in probability:
The first one can be born on any season.
The second could either be born on the first ones season or on the other three
Now we have 2 cases:
the first two were born on the same season.
the third one have equal amount of seasons that someone was born in and not.
The second option give us 1/2 probability but since option 1 can occur the probability of 2 people to be born on the same season out of 3 people is greater than 1/2.
To calculate the probability of two people sharing birth seasons between 3 people, I will first calculate the probability of all 3 people having different birth seasons. For the first person, we have 4 options to choose from. For the second, we have 3 options to choose from, all four seasons except birth season of the first person. A similar thing can be argued for the third person, who has 2 options to choose from. So, we have 4 × 3 × 2 = 2 4 options out of 4 3 = 6 4 (four options for each person) this means the probability that the three persons have different birth seasons is 6 4 2 4 = 8 3 which implies the probability that at least two of the three persons have the same birth season is 1 − 8 3 = 8 5 which is greater than 2 1 . Hence, the answer is Y e s
Maybe I'm missing something here, but is there any reason you can't solve this simply by examining the difference in proportions? It takes 23 people in order to get a greater than 1/2 chance so that's 23 people with a possible 365 days for each. With the seasons, there are 3 people and a possible 4 seasons for each. 23 out of 365 >1/2 so of course 3 out of 4 should be >1/2. It doesn't tell you how much more likely, but that's not what the question asks.
The total number of possible birth season combinations for the three persons in the room is 4 ∗ 4 ∗ 4 = 6 4 . The number of combinations in which no two persons get the same birthday season is 4 ∗ 3 ∗ 2 = 2 4 . Therefore, the probability that more than one person has the same birthday season is 1 − 6 4 2 4 = 0 . 6 2 5 , which is clearly greater than 2 1 .
The probability of at least two people share the birth season can be expressed as:
P(n) = 4!/(4-n)!*4^n
Plugging in n=3, we get 62.5% of the chance.
Hence, the answer is true.
Problem Loading...
Note Loading...
Set Loading...
Consider just 1 person in the room, and then a 2nd person enters. The probability that the second person has a different birth season than the first is 4 3 . The probability that these people share a birth season is therefore 1 − 4 3 = 4 1 .
Now suppose that a 3rd person entered the room. He would have a 4 2 = 2 1 chance to have a different birth season from the first two.
Now consider the probability of both these events happening (first two people's birth seasons different, 3rd person's birth season different as well): 4 3 × 2 1 = 8 3 .
Since the probability that the first three people's birth seasons are different is 8 3 , the probability that the first three people have at least a pair that share a birth season is 1 − 8 3 = 8 5 .