Skip to main content
note at the beginning removed
Source Link
Markus Scheuer
  • 109.4k
  • 7
  • 103
  • 242

Update [2015-12-14]: Thanks to the fruitful comment of @robjohn I've updated the answer to also include the range $r>365$.

Domain considerations:

Update [2015-12-14]: Thanks to the fruitful comment of @robjohn I've updated the answer to also include the range $r>365$.

Domain considerations:

update to respect all values of $r$
Source Link
Markus Scheuer
  • 109.4k
  • 7
  • 103
  • 242

Update [2015-12-14]: Thanks to the fruitful comment of @robjohn I've updated the answer to also include the range $r>365$.

Domain considerations: $3\leq r \leq 365$

  • $r=1,2$: We can exclude the trivial cases $r=1$ and $r=2$ which give a probability of zero, since we never reach a configuration with three people having the same birthday.

  • $2<r\leq 365$: The main part where we put the focus of our analysis. Fortunately the reasoning can be easily extended to $r\leq 730$.

  • $365<r\leq 2\cdot 365$: Assuming the year has $365$ days, the situation becomes more complicatedslightly different if the number of people is greater than $365$. In these cases it is guaranteed that there are people with the same birthday and this needs a more detailed analysis leading to a generalisation of the formula stated at the endsome additional thoughts.

  • $r>2\cdot 365$: According to the pigeonhole principle groups with more than $730$ people have at least three equal birthdays with probability $p=1$.

For convenience only we consider the simplified problem $$3\leq r \leq 365$$

But, even this simplified problem is not trivial. In order to get a first impression and to have a verification for small numbers at hand we look at a smaller example.

This example It should be small enough to make calculations easy and large enough to be representative for the problem.

Most of the work has been done by the small example. If we now consider $365$ days and $r$ people we can go on straight forward.

At first we put the focus at

\begin{align*} 3\leq r \leq 365 \end{align*}

  • Let's denote with $N_{(1^{r})}$ the number of $r$-tuples with all entries pairwise different. The exponent in the index $1^{r}$ denotes the multiplicity of $1$.

The range $365<r\leq 2\cdot 365$

If $r>365$ it is guaranteed that at least two people have the same birthday. It follows $$N_{(1^r)}=0$$ We see after short consideration, the approach (4) for a group of people with $1\leq k\leq \lfloor r\rfloor$ distinct pairs is also valid up to $r\leq 730$.


Now it's time to harvest. In order to find the number of all $r$-tuples we have to exclude, we sum up $N_{(1^r)}$ and $N_{(1^{r-2k}2^k)}$ for $1\leq k \leq \lfloor\frac{r}{2}\rfloor$.

In fact, inspired by the comment of @robjohn, we can also respect all other values of $r$ in the same formula, if we take $\frac{1}{n!}=0$ for $n<0$ and finally obtain

The probability $p$ that at least three people from a group of $3\leq r\leq 365$$r\geq 1$ people have the same birthday is according to (3) and (4)

Domain considerations: $3\leq r \leq 365$

  • $r=1,2$: We can exclude the trivial cases $r=1$ and $r=2$ which give a probability of zero, since we never reach a configuration with three people having the same birthday.

  • $365<r\leq 2\cdot 365$: Assuming the year has $365$ days, the situation becomes more complicated if the number of people is greater than $365$. In these cases it is guaranteed that there are people with the same birthday and this needs a more detailed analysis leading to a generalisation of the formula stated at the end.

  • $r>2\cdot 365$: According to the pigeonhole principle groups with more than $730$ people have at least three equal birthdays with probability $p=1$.

For convenience only we consider the simplified problem $$3\leq r \leq 365$$

But, even this simplified problem is not trivial. In order to get a first impression and to have a verification for small numbers at hand we look at a smaller example.

This example should be small enough to make calculations easy and large enough to be representative for the problem.

Most of the work has been done by the small example. If we now consider $365$ days and $r$ people we can go on straight forward.

  • Let's denote with $N_{(1^{r})}$ the number of $r$-tuples with all entries pairwise different. The exponent in the index $1^{r}$ denotes the multiplicity of $1$.

Now it's time to harvest. In order to find the number of all $r$-tuples we have to exclude, we sum up $N_{(1^r)}$ and $N_{(1^{r-2k}2^k)}$ for $1\leq k \leq \lfloor\frac{r}{2}\rfloor$ and finally obtain

The probability $p$ that at least three people from a group of $3\leq r\leq 365$ people have the same birthday is according to (3) and (4)

Update [2015-12-14]: Thanks to the fruitful comment of @robjohn I've updated the answer to also include the range $r>365$.

Domain considerations:

  • $r=1,2$: We can exclude the trivial cases $r=1$ and $r=2$ which give a probability of zero, since we never reach a configuration with three people having the same birthday.

  • $2<r\leq 365$: The main part where we put the focus of our analysis. Fortunately the reasoning can be easily extended to $r\leq 730$.

  • $365<r\leq 2\cdot 365$: Assuming the year has $365$ days, the situation becomes slightly different if the number of people is greater than $365$. In these cases it is guaranteed that there are people with the same birthday and this needs some additional thoughts.

  • $r>2\cdot 365$: According to the pigeonhole principle groups with more than $730$ people have at least three equal birthdays with probability $p=1$.

In order to get a first impression and to have a verification for small numbers at hand we look at a smaller example. It should be small enough to make calculations easy and large enough to be representative for the problem.

Most of the work has been done by the small example. If we now consider $365$ days and $r$ people we can go on straight forward.

At first we put the focus at

\begin{align*} 3\leq r \leq 365 \end{align*}

  • Let's denote with $N_{(1^{r})}$ the number of $r$-tuples with all entries pairwise different. The exponent in the index $1^{r}$ denotes the multiplicity of $1$.

The range $365<r\leq 2\cdot 365$

If $r>365$ it is guaranteed that at least two people have the same birthday. It follows $$N_{(1^r)}=0$$ We see after short consideration, the approach (4) for a group of people with $1\leq k\leq \lfloor r\rfloor$ distinct pairs is also valid up to $r\leq 730$.


Now it's time to harvest. In order to find the number of all $r$-tuples we have to exclude, we sum up $N_{(1^r)}$ and $N_{(1^{r-2k}2^k)}$ for $1\leq k \leq \lfloor\frac{r}{2}\rfloor$.

In fact, inspired by the comment of @robjohn, we can also respect all other values of $r$ in the same formula, if we take $\frac{1}{n!}=0$ for $n<0$ and finally obtain

The probability $p$ that at least three people from a group of $r\geq 1$ people have the same birthday is according to (3) and (4)

wording improved; typo corrected
Source Link
Markus Scheuer
  • 109.4k
  • 7
  • 103
  • 242
  • The second constellation are two different pairs and another number different twoto each of them, denoted by $N_{(122)}$.
  • In (1) there are $\binom{5}{2}$ pairs which can take the values $1,\ldots,6$. The other three people have $5,4$ and the last one three$3$ possibilities to throw a number pairwise different to all the others.

  • In (2) there are $\binom{5}{2}6$$\binom{5}{2}\cdot6$ possibilities for one pair, leaving $\binom{5-2}{2}5$$\binom{5-2}{2}\cdot5$ possibilities for the second pair. Since we don't want to count different pair constellations more than once, we have to divide them by $2!$.

Plausibility check: If we compare the expression (4) with the small example above we could do a simple check. If we set \begin{align*} r=5,k=2,\text{ and }365\rightarrow 6 \end{align*} we obtain \begin{align*} N_{(1^{5-4}2^2)}=N_{(12^2)}=\frac{1}{2!}\frac{5!}{2^2(5-4)!}\frac{6!}{(6-(5-2))!} =1800 \end{align*} in accordance with the table entry for $N_{(122)}$ above.

  • The second constellation are two different pairs and another number different two each of them, denoted by $N_{(122)}$.
  • In (1) there are $\binom{5}{2}$ pairs which can take the values $1,\ldots,6$. The other three people have $5,4$ and the last one three possibilities to throw a number pairwise different to all the others.

  • In (2) there are $\binom{5}{2}6$ possibilities for one pair, leaving $\binom{5-2}{2}5$ possibilities for the second pair. Since we don't want to count different pair constellations more than once, we have to divide them by $2!$.

Plausibility check: If we compare the expression (4) with the small example above we could do a simple check. If we set \begin{align*} r=5,k=2,\text{ and }365\rightarrow 6 \end{align*} we obtain \begin{align*} N_{(1^{5-4}2^2)}=N_{(12^2)}=\frac{1}{2!}\frac{5!}{2^2(5-4)!}\frac{6!}{(6-(5-2))!} =1800 \end{align*} in accordance with the table entry for $N_{(122)}$ above.

  • The second constellation are two different pairs and another number different to each of them, denoted by $N_{(122)}$.
  • In (1) there are $\binom{5}{2}$ pairs which can take the values $1,\ldots,6$. The other three people have $5,4$ and $3$ possibilities to throw a number pairwise different to all the others.

  • In (2) there are $\binom{5}{2}\cdot6$ possibilities for one pair, leaving $\binom{5-2}{2}\cdot5$ possibilities for the second pair. Since we don't want to count different pair constellations more than once, we have to divide them by $2!$.

Plausibility check: If we compare the expression (4) with the small example above we could do a simple check. If we set \begin{align*} r=5,k=2,\text{ and }365\rightarrow 6 \end{align*} we obtain \begin{align*} N_{(1^{5-4}2^2)}=N_{(12^2)}=\frac{1}{2!}\frac{5!}{2^2(5-4)!}\frac{6!}{(6-(5-2))!} =1800 \end{align*} in accordance with the table entry $N_{(122)}$ above.

Answer extended for groups with $r>730$
Source Link
Markus Scheuer
  • 109.4k
  • 7
  • 103
  • 242
Loading
simplification added
Source Link
Markus Scheuer
  • 109.4k
  • 7
  • 103
  • 242
Loading
Wording improved
Source Link
Markus Scheuer
  • 109.4k
  • 7
  • 103
  • 242
Loading
typo corrected
Source Link
Markus Scheuer
  • 109.4k
  • 7
  • 103
  • 242
Loading
Source Link
Markus Scheuer
  • 109.4k
  • 7
  • 103
  • 242
Loading