Best Answer superprismatic, 25 February 2014 - 09:47 PM

Welcome to BrainDen.com - Brain Teasers Forum. Like most online communities you must register to post in our community, but don't worry this is a simple free process. To be a part of BrainDen Forums you may create a new account or sign in if you already have an account. As a member you could start new topics, reply to others, subscribe to topics/forums to get automatic updates, get your own profile and make new friends. Of course, you can also enjoy our collection of amazing optical illusions and cool math games. If you like our site, you may support us by simply clicking Google "+1" or Facebook "Like" buttons at the top. If you have a website, we would appreciate a little link to BrainDen. Thanks and enjoy the Den :-) |

Guest Message by DevFuse

Started by BMAD, Feb 25 2014 05:43 PM

Best Answer superprismatic, 25 February 2014 - 09:47 PM

Spoiler for a simulation of a billion trials

Go to the full post
7 replies to this topic

Posted 25 February 2014 - 05:43 PM

At a movie theater, the manager announces that a free ticket will be given to the first person in line whose birthday is the same as someone in line who has already bought a ticket. You have the option of getting in line at any time. Assuming that you don't know anyone else's birthday, and that birthdays are uniformly distributed throughout a 365 day year, what position in line gives you the best chance of being the first duplicate birthday?

Posted 25 February 2014 - 06:59 PM

Spoiler for First thoughts

*Vidi vici veni.*

Posted 25 February 2014 - 09:47 PM Best Answer

Spoiler for a simulation of a billion trials

Posted 25 February 2014 - 11:51 PM

Spoiler for doing the math

Posted 26 February 2014 - 02:03 AM

Spoiler for doing the math

Nice analysis! I wish I had thought of that.

Posted 26 February 2014 - 11:32 AM

Spoiler for doing the mathNice analysis! I wish I had thought of that.

Spoiler for Agree, nice analysis

*Vidi vici veni.*

Posted 26 February 2014 - 08:32 PM

Spoiler for doing the mathNice analysis! I wish I had thought of that.

Spoiler for Agree, nice analysis

The method I used is very similar to differentiation. Differentiation also compares f(x) to some nearby value f(x+h), in order to tell whether the function is growing or declining. However, this particular function is only defined for integers, so it's not differentiable unless we first extend it in some way.

Posted 27 February 2014 - 10:48 AM

Right ... it's "discrete" differentiation.

And that permits a (nice) direct calculation as opposed to simulation.

I simulated the average first-duplicate position and got the kind-of well-known 23.

I am modifying the program now to show the median value.

The distribution is skewed, so the mean is slightly larger.

And, I guess, the median must be the point of greatest slope of the cumulative probability.

*Vidi vici veni.*

0 members, 0 guests, 0 anonymous users