Two Plus Two Older Archives

Two Plus Two Older Archives (http://archives2.twoplustwo.com/index.php)
-   Probability (http://archives2.twoplustwo.com/forumdisplay.php?f=23)
-   -   A birthday puzzle (http://archives2.twoplustwo.com/showthread.php?t=299697)

SheetWise 07-25-2005 01:38 PM

Re: A birthday puzzle
 
I wrote a simple simulation and ran 1MM a couple of times --20 came out as the highest frequency both times.

kiddj 07-25-2005 01:54 PM

Re: A birthday puzzle
 
I come up with 23rd. (It may be 22nd. I worked it with the chances that the people ahead have not paired up.) My line/logic may be flawed though.

LetYouDown 07-25-2005 01:57 PM

Re: A birthday puzzle
 
I'm still trying to figure out what I messed up. I just ran through an array with random numbers between 1-365 to represent the days (ignoring leap years). As I randomized each date, I compared it to all previous people in line. If it matched, saved it and continued to the next trial. Then I divided by the number of trials.

Edit: Is it more accurate to look for the most common occurring element or the mean for this problem?

durron597 07-25-2005 03:00 PM

Re: A birthday puzzle
 
You should stand 23rd in line. The reason being is that the more people in front of you, the more likely it is to have already occurred. Since 23 people is the number required for there to be at least 50% chance of two people having the same birthday, you expect that any spot after that in line it has already occurred.

PairTheBoard 07-25-2005 03:08 PM

Re: A birthday puzzle
 
Seems like it depends on how long the line is. If there's a billion people in line then someone will almost surely win after the first ticket is purchased. Your best chance of getting in on it would then seem to be by standing second in line.

PairTheBoard

LetYouDown 07-25-2005 03:09 PM

Re: A birthday puzzle
 
Huh?

PairTheBoard 07-25-2005 03:15 PM

Re: A birthday puzzle
 
[ QUOTE ]
Huh?

[/ QUOTE ]

Huh?

PairTheBoard

LetYouDown 07-25-2005 03:17 PM

Re: A birthday puzzle
 
Why would the number of people in line affect the likelihood of the 2nd person's birthday matching the first person's?

Karatitis 07-25-2005 03:23 PM

Re: A birthday puzzle
 
Because you would only have 1 birthdate in the pool to match against.

PairTheBoard 07-25-2005 03:27 PM

Re: A birthday puzzle
 
[ QUOTE ]
Why would the number of people in line affect the likelihood of the 2nd person's birthday matching the first person's?

[/ QUOTE ]

It wouldn't. But it would effect the chance of any person in line getting more than one shot at it. The game will be over as soon as the first ticket is bought. If you don't match birthdays with the first in line you are just out of luck because you won't get any more chances. But if you do match birthdays your most advantageous place to be is second in line so that someone in front of you who also matches won't take the prize away from you.

PairTheBoard


All times are GMT -4. The time now is 03:47 AM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.