C Board  

Go Back   C Board > Community Boards > A Brief History of Cprogramming.com

 
 
LinkBack Thread Tools Display Modes
Old 03-18-2002, 12:37 PM   #1
Registered User
 
Join Date: Feb 2002
Posts: 591
Party question

I was on a house warming party this weekend and becaus most people I know are geeks some math questions popped up. I usally do pretty well on those but it was this one question I had a hard time to understand why the answear was what it was.

How many people does it need to be at a party for the chance for 2 people to have the same birthday to be 50%.?

The correct answear acording to the person asking the question is 22. Somehow I have a mental block on this. Anyone out there know why? I might not ask the question exactly as intended.
Barjor is offline  
Old 03-18-2002, 12:40 PM   #2
Registered User
 
Join Date: Jan 2002
Location: Cardiff
Posts: 2,219
Well I come from plymouth and the only math our parties involve is:

Code:
Satisfaction == Volume of spliff * Percentage Weed || Girls
Brian is offline  
Old 03-18-2002, 12:52 PM   #3
5|-|1+|-|34|)
 
ober's Avatar
 
Join Date: Aug 2001
Posts: 4,429
Re: Party question

Quote:
Originally posted by Barjor
How many people does it need to be at a party for the chance for 2 people to have the same birthday to be 50%.?
Maybe I'm missing something... but that doesn't make a damn bit of sense to me... can you rephrase?
ober is offline  
Old 03-18-2002, 12:55 PM   #4
Registered User
 
Join Date: Feb 2002
Posts: 591
Do you know about any houses for sale and well paid jobs in plymouth?

Lets see if I can make it clearer.

If I go to a party. How many people does it need to be on that party for the chance to be 50% that two people in that party have the same birthday.
Barjor is offline  
Old 03-18-2002, 12:59 PM   #5
5|-|1+|-|34|)
 
ober's Avatar
 
Join Date: Aug 2001
Posts: 4,429
hmmm... and the answer was 22??

sounds like some fishy statistics stuff goin on... I didn't spend a whole lot of time paying attention in that class...
ober is offline  
Old 03-18-2002, 01:01 PM   #6
Registered User
 
Join Date: Feb 2002
Posts: 591
Well sqrt(365) is roughly 20 so maybee when the question been told acouple of times the answear changed alittle bit..Not sure
Barjor is offline  
Old 03-18-2002, 02:51 PM   #7
back?
 
dbaryl's Avatar
 
Join Date: Oct 2001
Posts: 597
I know, I know!!!

Hey, I think I actually know this one! Who-hoo! ...

Get to the answer, willya?

Well, here it is:

There are really only 2 possibilities here: either someone in the room shares a birthday with somebody else, or everyone has a different birthday. Now, the probability that you will get people that share a birthday is (100% - X) where X is the probablity that everyone has a DIFFERENT birthday.

...for some calculations...

in order to find the probability for a same birthday, take the probability of all different ones, and subtract that from 100%. To find the chance of all different birthdays, it goes lke this:

1 person > 365 possible days a year
2 people > 365 for first, 364 for 2nd
3 people > 365 for first, 364 for 2nd, 363 for 3rd
...

so say you got 10 people... what's the chance someone shares a birthday?

Answer: 1 - ((365*364*363*362*361*360*35*358*357*356)/(365^10)) = 11.69%

If any of this makes no sense, i could try to explain this differently. All this here is is probability... yeah.
dbaryl is offline  
Old 03-18-2002, 03:39 PM   #8
Registered User
 
Join Date: Feb 2002
Posts: 591
Facinating..I should have known that but nevertheless you helped me from getting more grey hairs. Thanks
Barjor is offline  
 

Thread Tools
Display Modes

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Swedish Pirate (as in, comp) Party wins seats in Brussels! MK27 General Discussions 26 06-11-2009 10:01 AM
Alice.... Lurker General Discussions 16 06-20-2005 02:51 PM
Debugging question o_0 C Programming 9 10-10-2004 05:51 PM
Question... TechWins A Brief History of Cprogramming.com 16 07-28-2003 09:47 PM
Question, question! oskilian A Brief History of Cprogramming.com 5 12-24-2001 01:47 AM


All times are GMT -6. The time now is 02:42 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22