Question

In: Math

It is surprising (but true) that if 23 people are in the same room, there is...

It is surprising (but true) that if 23 people are in the same room, there is about a 50% chance that at least two people will have the same birthday. Suppose you want to estimate the probability that if 30 people are in the same room, at least two of them will have the same birthday. You can proceed as follows.

a. Generate random birthdays for 30 different people. Ignoring the possibility of a leap year, each person has a 1/365 chance of having a given birthday (label the days of the year 1 to 365). You can use the RANDBETWEEN function to generate birthdays. What do you expect the average birthday (a number between 1 and 365) among the 30 people be?

b. Once you have generated 30 people's birthdays, how can you tell whether at least two people have the same birthday? One way is to use Excel's RANK function. (You can learn how to use this function in Excel's online help.) This function returns the rank of a number relative to a given group of numbers. In the case of a tie, two numbers are given the same rank. For example, if the set of numbers is 4, 3, 2, 5, the RANK function returns 2, 3, 4, 1. (By default, RANK gives 1 to the largest number.) If the set of numbers is 4, 3, 2, 4, the RANK function returns 1, 3, 4, 1. What do you expect the sum of the birthday ranks for the 30 people be, if there are no two people with the same birthday?

Solutions

Expert Solution

a) To set up this simulation, create a spreadsheet with the formulas as shown below:

Drag the values in row 10 down to row 34 (generating 30 different people)

b) In cell C5, enter this formula

=RANK(B5.$B$5:$B$34)
Drag this formula down to C34

To determine if there is at least one match, we enter new columns as shown here

Drag these down until all ranks (1-30) are represented. This will count the number of times any
particular rank occurs.

Now, we create an output cell, by placing in the spreadsheet the following formula:

Match?
=IF(MAX{FS:F34)>1,1,0)

This will give a "1" if there is a match. Make this a Risk output cell.

Running 1,000 iterations produces the following:

Name mean
Match? 0.68


With 30 people, we have about a 2/3 chance to have at least one matching birthday


Related Solutions

What's the probability that in a room of k people, exactly two share the same birthday?...
What's the probability that in a room of k people, exactly two share the same birthday? Assume 365 days (no leap year).
Why is it surprising that hunter-gatherers burn the same number of calories per day as a...
Why is it surprising that hunter-gatherers burn the same number of calories per day as a sedentary person in a western society?
There are 4 people in a room. What’s the probability that there are two people born...
There are 4 people in a room. What’s the probability that there are two people born on the same day of the week? (Assume all birthdays are independent and are uniformly distributed over the seven days of the week.)
According to statistics reported on CNBC, a surprising number of motor vehicles are not covered by insurance (CNBC, February 23, 2006)
According to statistics reported on CNBC, a surprising number of motor vehicles are not covered by insurance (CNBC, February 23, 2006). Sample results, consistent with the 6 of 200 vehicles were not covered by insurance.  a. What is the point estimate of the proportion of vehicles not covered by insurance?  b. Develop a 95% confidence interval for the population proportion.
Problem 7. Show that in a room full of 20 people there are 2 people who...
Problem 7. Show that in a room full of 20 people there are 2 people who have the same number of friends present. Friendship is symmetric. If A is friends with B then B is friends with A.
Michael, 23, is brought to the emergency room by ambulance. He is alert, confused and uncooperative....
Michael, 23, is brought to the emergency room by ambulance. He is alert, confused and uncooperative. He is also unable to follow simple commands or answer simple questions. His girlfriend reports, “We were at his house, studying. He just made this really strange sound. Suddenly he is on the floor shaking and his eyes are rolled back in his head. I turned him on his side. I don’t know what is going on with him, but I did call his...
A student is curious whether taking a test in the same room as the lecture will...
A student is curious whether taking a test in the same room as the lecture will influence test performance. To test this she selects 30 students at random and assigns them randomly to two groups. Group 1 takes their test in a new classroom environment. Group 2 takes their test in the same room as the class lectures. The student thinks that taking the test in the same room as the lecture will improve performance. At a conservative 1% significance...
There are (m − 1)n + 1 people in a room. Show that either there are...
There are (m − 1)n + 1 people in a room. Show that either there are m people who mutually do not know each other, or there is a person who knows at least n others.
The number of people arriving for treatment at an emergency room can be modeled by a...
The number of people arriving for treatment at an emergency room can be modeled by a Poisson process with a rate parameter of 5 per hour. In other words, the mean number of people arriving in one hour is 5. (Use R) (a) What is the probability that exactly four arrivals occur during a particular hour? (b) What is the probability that at least 4 people arrive during a particular hour? (c) What is the probability that at most 4...
Birthday problem. Suppose that people enter a room one at a time. How people must enter...
Birthday problem. Suppose that people enter a room one at a time. How people must enter until two share a birthday? Counterintuitively, after 23 people enter the room, there is approximately a 50–50 chance that two share a birthday. This phenomenon is known as the birthday problem or birthday paradox. Write a program Birthday.java that takes two integer command-line arguments n and trials and performs the following experiment, trials times: Choose a birthday for the next person, uniformly at random...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT