The Peculiar Maths of Birthdays

"How is it," asked my friend Jo, "that five of my friends are celebrating birthdays today?"

This is, although it might not seem it, closely related to reading the minds of Alex Bellos's parents. By which I mean: randomness doesn't always look random.

From here on in, I'm going to make the sensible simplifying assumption that if I pick one of Jo's friends at random and a day out of the calendar at random, the chance of that day being the friend's birthday is 1/365.

In fact, it's not particularly unusual for someone with about 300 facebook friends to find at least five of them share a birthday - it's not quite 50-50, but it's not far off. How do I know? I ran a simulation.

But that's cheating!

Of course it is. But I have a cold, so I'm allowed. And once I had an idea of the answer, I went back and did it properly, making yet another simplifying assumption: that the number of people with a given birthday follows (at least approximately) a Poisson distribution.

It's a bit fiddly to explain why a) this is a reasonable assumption and b) why it's a bit statistically dubious, but I asked the mathematical ninja about it; he rolled his eyes but said 'go on, then,' so it's probably ok.1

What is a Poisson distribution?

A Poisson distribution describes the probabilities of relatively rare events that happen independently with a fixed probability2 over a continuous timeframe3. If you know the number of events you expect to happen over a given time (call it $\lambda$), you can work out the probability of any number of events happening over that time using this, rather ugly, formula:

$$P(X = n) = e^{-\lambda} \frac{\lambda^n}{n!}$$

It's ok, I'll do the sums so you don't have to.

The first thing to do is to estimate the value of $\lambda$ - I did some spying and spotted that Jo has 290 friends, so the expected number of birthdays on any given day is $\frac{290}{365} \simeq 0.795$. You can then use the formula to find out the probability of any given day having no birthdays (45% or so), one birthday (36%), two (14%) or three (4%). The chance of four birthdays is about three-quarters of a percent, and five birthdays… well, it's tiny! One in 838, apparently. The probability of five or more birthdays, though, is a little larger: about 1 in 730, 0.14%.

That means it shouldn't ever happen, doesn't it?

Well, it's a rare event, right enough. However, you have to take into account that there are 365 possible days for a confluence of birthdays to happen on - which makes it a lot more likely.

It's the old birthday paradox rearing its head again: if you repeat an experiment enough times, your chances of avoiding something improbable get consistently smaller. The probability of January 1st having four or fewer birthdays is about $0.9986$. The probability of all 365 days of the year having four or fewer birthdays is around4 $0.9986^{365}\simeq 0.6063%$ - you have about a three in five chance of avoiding a five-way celebration. Or, if you prefer, if you have 290 friends, there's about a 40% chance that five (or more) of them share a birthday.

Edited 2014-05-05 to add a link.


Colin is a Weymouth maths tutor, author of several Maths For Dummies books and A-level maths guides. He started Flying Colours Maths in 2008. He lives with an espresso pot and nothing to prove.

  1. Proof by authority, one of the strongest proof methods there is. []
  2. score three for the birthdays! []
  3. ok, so three out of four ain't bad []
  4. This assumes independence, which isn't strictly true - but it's good enough for government work []


5 comments on “The Peculiar Maths of Birthdays

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Sign up for the Sum Comfort newsletter and get a free e-book of mathematical quotations.

No spam ever, obviously.

Where do you teach?

I teach in my home in Abbotsbury Road, Weymouth.

It's a 15-minute walk from Weymouth station, and it's on bus routes 3, 8 and X53. On-road parking is available nearby.

On twitter