Two Plus Two Older Archives  

Go Back   Two Plus Two Older Archives > General Gambling > Probability

Reply
 
Thread Tools Display Modes
  #21  
Old 07-25-2005, 03:30 PM
jason_t jason_t is offline
Senior Member
 
Join Date: Nov 2004
Location: Another downswing?
Posts: 2,274
Default Re: A birthday puzzle

[ QUOTE ]
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.

[/ QUOTE ]

No.
Reply With Quote
  #22  
Old 07-25-2005, 03:31 PM
bobman0330 bobman0330 is offline
Member
 
Join Date: Aug 2004
Posts: 52
Default Re: A birthday puzzle

your chance of winning with N other people = N/365 [you match someone] * (365!/((365-N)! * 365^N)) [no other matches]
Using this table of results for the latter expression (link):
N 365*P (for calculation ease)
18 11.754
19 11.799
20 11.780
21 11.676

This implies that you should want 19 people in front of you, which will allows you to win 3.23% of the time. This seems low, but I think it is right nonetheless.

You people should be ashamed of yourselves for Monte-Carloing this.

Note: the correct answer has nothing to do with when there's a 50% likelihood of someone having won before you. P(someone else winning) increases in an S-curve shape, while P(you winning, assuming no one else has won) increases linearly. The idea is to take advantage of as much of the linear increase as you can before the steep portion of the S starts killing your equity.
Reply With Quote
  #23  
Old 07-25-2005, 03:34 PM
FouTight FouTight is offline
Junior Member
 
Join Date: Aug 2005
Posts: 0
Default Re: A birthday puzzle

[ QUOTE ]
[ 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

[/ QUOTE ]

I can't pretent to want to figure out the right answer to this question, but this, without a doubt, is not it.
Reply With Quote
  #24  
Old 07-25-2005, 03:37 PM
LetYouDown LetYouDown is offline
Senior Member
 
Join Date: Mar 2005
Location: Sharing a smoke w/negativity
Posts: 524
Default Re: A birthday puzzle

[ QUOTE ]
You people should be ashamed of yourselves for Monte-Carloing this.

[/ QUOTE ]
LOL, normally I would be...but this computer doesn't have excel and I didn't feel like doing any computation. Also, I wanted to write a "monte-carloing" program because I was bored. Apparently I suck at doing it quickly.
Reply With Quote
  #25  
Old 07-25-2005, 06:09 PM
SheetWise SheetWise is offline
Senior Member
 
Join Date: Jul 2005
Location: Phoenix
Posts: 841
Default Re: A birthday puzzle

[ QUOTE ]
If it matched, saved it and continued to the next trial. Then I divided by the number of trials.

[/ QUOTE ]

I just looked at frequency. 20 has the highest class frequency in every trial.
Reply With Quote
  #26  
Old 07-25-2005, 06:17 PM
SossMan SossMan is offline
Senior Member
 
Join Date: Apr 2003
Location: Bay Area, CA
Posts: 559
Default Re: A birthday puzzle

it's not the chances of the guy in front of you having your birthday, it's anyone in front of you having your birthday.
Reply With Quote
  #27  
Old 07-25-2005, 06:34 PM
PairTheBoard PairTheBoard is offline
Member
 
Join Date: Dec 2003
Posts: 46
Default Re: A birthday puzzle

[ QUOTE ]
[ QUOTE ]
[ 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

[/ QUOTE ]

I can't pretent to want to figure out the right answer to this question, but this, without a doubt, is not it.

[/ QUOTE ]

Under the assumption that there are a billion people in line, what's wrong with it?

PairTheBoard
Reply With Quote
  #28  
Old 07-25-2005, 06:54 PM
bobman0330 bobman0330 is offline
Member
 
Join Date: Aug 2004
Posts: 52
Default Re: A birthday puzzle

The explanation of the game stated that you win if someone in front of you has the same birthday...
Reply With Quote
  #29  
Old 07-25-2005, 07:14 PM
BruceZ BruceZ is offline
Senior Member
 
Join Date: Sep 2002
Posts: 1,636
Default Re: A birthday puzzle

[ QUOTE ]
[ QUOTE ]
[ QUOTE ]
[ 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

[/ QUOTE ]

I can't pretent to want to figure out the right answer to this question, but this, without a doubt, is not it.

[/ QUOTE ]

Under the assumption that there are a billion people in line, what's wrong with it?

PairTheBoard

[/ QUOTE ]

It sounds like you are only taking one factor into account. The further back you are in line, the more chance there is that someone in front of you will match and take the prize away from you, that is true. The other factor is that the earlier you are in line, the less chance you have of matching anyone ahead of you. These two competing factors produce a maximum probability of first matching which happens to occur at the 20th position.

To win, two things must happen. First, everyone ahead of you must have different b-days, or else someone else will win. The number of ways that n people can have different b-days is 365*364*363*... (n terms) = 365!/(365-n)! = P(365,n). In Excel, P is the =PERMUT function. The total number of ways the n people can have b-days is 365^n, so the probability that no one ahead of you has the same b-day is P(365,n)/365^n. Now, when the n people in front of you have different b-days, the probability that one of them has your b-day is n/365. So all together, the probability that you win is:

P(365,n)/365^n * n/365.

This has a maximum of 3.232% at n=19, so we want 19 people ahead of us, meaning that we want to be 20th.
Reply With Quote
  #30  
Old 07-25-2005, 07:20 PM
jason_t jason_t is offline
Senior Member
 
Join Date: Nov 2004
Location: Another downswing?
Posts: 2,274
Default Re: A birthday puzzle

[ QUOTE ]
[ QUOTE ]
[ QUOTE ]
[ QUOTE ]
[ 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

[/ QUOTE ]

I can't pretent to want to figure out the right answer to this question, but this, without a doubt, is not it.

[/ QUOTE ]

Under the assumption that there are a billion people in line, what's wrong with it?

PairTheBoard

[/ QUOTE ]

It sounds like you are only taking one factor into account. The further back you are in line, the more chance there is that someone in front of you will match and take the prize away from you, that is true. The other factor is that the earlier you are in line, the less chance you have of matching anyone ahead of you. These two competing factors produce a maximum probability of first matching which happens to occur at the 20th position.

To win, two things must happen. First, everyone ahead of you must have different b-days, or else someone else will win. The number of ways that n people can have different b-days is 365*364*363*... (n terms) = P(365,n). In Excel, P is the =PERMUT function. The total number of ways the n people can have b-days is 365^n, so the probability that no one ahead of you has the same b-day is P(365,n)/365^n. Now, when the n people in front of you have different b-days, the probability that one of them has your b-day is n/365. So all together, the probability that you win is:

P(365,n)/365^n * n/365.

This has a maximum of 3.232% at n=19, so we want 19 people ahead of us, meaning that we want to be 20th.

[/ QUOTE ]

This solution is correct.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 03:22 PM.


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