help with math homework - probabilty
help with math homework - probabilty
thanx in advance guys.
people come into a room one at a time right? whenever they come in they call out their birthday.. they keep on doing this until someones birthday matches, then they lock the door... on average how many people will get into the room before this happens?
I need some softa formula or somethign for it.. or some kind of simulation that i can run (with random digits that are 10 digits basically, usually set up like this : .9875462154
Thanx guys.
people come into a room one at a time right? whenever they come in they call out their birthday.. they keep on doing this until someones birthday matches, then they lock the door... on average how many people will get into the room before this happens?
I need some softa formula or somethign for it.. or some kind of simulation that i can run (with random digits that are 10 digits basically, usually set up like this : .9875462154
Thanx guys.
"They that can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety."
- Benjamin Franklin
"Weapons of Ass Destruction"
- Benjamin Franklin
"Weapons of Ass Destruction"
Originally posted by Immortal
I forgot anything but alll I can remember is that with 30 or more people the chances of two or more person with the same birthday is 80%
why?
"They that can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety."
- Benjamin Franklin
"Weapons of Ass Destruction"
- Benjamin Franklin
"Weapons of Ass Destruction"
Originally posted by Immortal
as I've said.. I don't remember why... or how it's done.. man those were some confusing times..
exactly..
I see no point in doing this problem.
"They that can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety."
- Benjamin Franklin
"Weapons of Ass Destruction"
- Benjamin Franklin
"Weapons of Ass Destruction"
- Matt615
- Senior Member
- Posts: 2030
- Joined: Sun Jan 07, 2001 12:00 am
- Location: Somewhere on the east coast of the US
its late and I am probrably about to make absolutely no sense at all but here goes.
Every time someone walks into the room their chances of having the same birthday as someone else gets greater. The first person has no chance, but the second person that walks in has a 1/31th of a chance of having the same birthday as the other person. When the third person walks in its 2/31ths of a chance, and on an on. I would think that once you get to about a 50% chance or 16/31 or something like that, the door would lock. So if it locked at 50% exactly than it would mean...including the person who just walked in there would be 17 people in the room.
Im sure I have made no sense but it was worth a try. Btw I am half asleep while trying to do this.
Every time someone walks into the room their chances of having the same birthday as someone else gets greater. The first person has no chance, but the second person that walks in has a 1/31th of a chance of having the same birthday as the other person. When the third person walks in its 2/31ths of a chance, and on an on. I would think that once you get to about a 50% chance or 16/31 or something like that, the door would lock. So if it locked at 50% exactly than it would mean...including the person who just walked in there would be 17 people in the room.
Im sure I have made no sense but it was worth a try. Btw I am half asleep while trying to do this.
Windows has not yet detected a keyboard. Press any key to continue.
Originally posted by Matt615
its late and I am probrably about to make absolutely no sense at all but here goes.
Every time someone walks into the room their chances of having the same birthday as someone else gets greater. The first person has no chance, but the second person that walks in has a 1/31th of a chance of having the same birthday as the other person. When the third person walks in its 2/31ths of a chance, and on an on. I would think that once you get to about a 50% chance or 16/31 or something like that, the door would lock. So if it locked at 50% exactly than it would mean...including the person who just walked in there would be 17 people in the room.
Im sure I have made no sense but it was worth a try. Btw I am half asleep while trying to do this.
yah! thisll work but.. why 31??
Its for the full year btw, the person coming in can have their birthday any day of the year..
although youve got it right..
"They that can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety."
- Benjamin Franklin
"Weapons of Ass Destruction"
- Benjamin Franklin
"Weapons of Ass Destruction"
- Matt615
- Senior Member
- Posts: 2030
- Joined: Sun Jan 07, 2001 12:00 am
- Location: Somewhere on the east coast of the US
Are they shouting out a day of the month....for example 22 as in the 22nd of whatever month or are they shouting out a number of the year.....281...281st day of the year.
I choose 31 because that it the maximum amount of days in a month. Even though same may have less, you have to use the maximum.
Did I misunderstand how they are shouting out the numbers?
I choose 31 because that it the maximum amount of days in a month. Even though same may have less, you have to use the maximum.
Did I misunderstand how they are shouting out the numbers?
Windows has not yet detected a keyboard. Press any key to continue.
Originally posted by Matt615
Are they shouting out a day of the month....for example 22 as in the 22nd of whatever month or are they shouting out a number of the year.....281...281st day of the year.
I choose 31 because that it the maximum amount of days in a month. Even though same may have less, you have to use the maximum.
Did I misunderstand how they are shouting out the numbers?
no, just their birthday, like "january 30th" and if someone else has the EXACT same birthday.. then the person who last came in sits down, and they lock the door.
"They that can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety."
- Benjamin Franklin
"Weapons of Ass Destruction"
- Benjamin Franklin
"Weapons of Ass Destruction"
It would make sense that if you have the target day for one person, then the next who comes in will have a..
1/365 change of having the same birthday (365 days in the year). The next will have a 2/365 (Chance to match one of two), and then 3/365..
I want to say that it increases exponentially, but then again I've never offically taken probability so take what I told you with a grain of salt. Hope it helps point you to an idea though.
1/365 change of having the same birthday (365 days in the year). The next will have a 2/365 (Chance to match one of two), and then 3/365..
I want to say that it increases exponentially, but then again I've never offically taken probability so take what I told you with a grain of salt. Hope it helps point you to an idea though.
Originally posted by Paft
It would make sense that if you have the target day for one person, then the next who comes in will have a..
1/365 change of having the same birthday (365 days in the year). The next will have a 2/365 (Chance to match one of two), and then 3/365..
I want to say that it increases exponentially, but then again I've never offically taken probability so take what I told you with a grain of salt. Hope it helps point you to an idea though.
yah.. im gonna do this man.. best way to go, and seems reasonable.
thanx.. still up for opinions though.
"They that can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety."
- Benjamin Franklin
"Weapons of Ass Destruction"
- Benjamin Franklin
"Weapons of Ass Destruction"
- Matt615
- Senior Member
- Posts: 2030
- Joined: Sun Jan 07, 2001 12:00 am
- Location: Somewhere on the east coast of the US
than as paft said the second person to walk into the room would have a 1/365 chance of having the same birthday and that would go on for a while.
I am sticking with my original answer that once you get to around a 50% chance than however many people are in the room at the time I think is the average that would get into the room.
I hope we have helped you, but its time for me to go to sleep...Good luck figuring it out
Matt
I am sticking with my original answer that once you get to around a 50% chance than however many people are in the room at the time I think is the average that would get into the room.
I hope we have helped you, but its time for me to go to sleep...Good luck figuring it out
Matt
Windows has not yet detected a keyboard. Press any key to continue.