Jump to content
BrainDen.com - Brain Teasers
  • 0

Three-birthday paradox


bonanova
 Share

Question

8 answers to this question

Recommended Posts

  • 0

Based on simulated trials, the answer is...

  Reveal hidden contents

I recorded 100 runs of 100,000 with this number. The minimum was 50,046. The maximum was 50,316. The average was 50,177.64. Final result: 50.18%

Then I considered February 29, which was conveniently omitted in those trials. I repeated the process, allowing for leap day in its proper ratio. The minimum was 49,891. The maximum was 50,068. The average was 49,999.04. Final result: 50.00%

Very interesting. Given this number of people, the probability that at least three share a birthday might be ever-so-slightly less than 50%.

Link to comment
Share on other sites

  • 2

This is a way to calculate probabilities exactly (if you're willing to ignore leap years), although it uses an iterative approach rather than providing a closed form solution.

  Reveal hidden contents

 

Edited by plasmid
Interesting; just using [code]blah blah[/code] tags doesn't work well, but ctrl-rightclick in a code box lets you copy/paste into a popup that works fine
Link to comment
Share on other sites

  • 0

I didn't fully trust the results of my first simulation because I was using a pRNG with has a relatively short cycle. On Saturday, I dug up code for a better pRNG and repeated the simulation. The result was far more accurate, giving a probability of 49.95% (leap day excluded). I then began an iterative sum approach similar to plasmid's above. I manually calculated the probabilities for up to 8 persons, then began to code a routine to sum the probabilities for up to 99 persons. I didn't have time to finish, so plasmid beat me to the post. The results, of course, were exactly the same:

  Reveal hidden contents

The code (Excel VBA)

  Reveal hidden contents

 

Edited by Logophobic
fixing the code per plasmid's tip
Link to comment
Share on other sites

  • 0

A bit more probabilities for at least three persons sharing a birthday.

  Reveal hidden contents

And some probabilities for at least four persons sharing a birthday. Because: Why not?

  Reveal hidden contents

 

Link to comment
Share on other sites

  • 0

Since we're baring our code, here is the APL code for the 3bd-case:
 

  Reveal hidden contents

 

Link to comment
Share on other sites

  • 0

I realized an error in my code for calculating the four-person probabilities. For the sake of correctness, here are the true (and extended) results:

  Reveal hidden contents

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...