PlanetMath (more info)
 Math for the people, by the people. Sponsor PlanetMath
Encyclopedia | Requests | Forums | Docs | Wiki | Random | RSS  
Login
create new user
name:
pass:
forget your password?
Main Menu
Viewing Version 4 of 'Birthday problem'
[ view 'Birthday problem' | back to history ]

Title of object: Birthday problem
Canonical Name: BirthdayProblem
Type: Definition

Created on: 2006-08-11 14:27:19
Modified on: 2006-08-12 05:37:23

Creator: georgiosl
Modifier: georgiosl
Author: georgiosl

Classification: msc:60-00, msc:05A10, msc:60C05

Revision comment (for changes between this and next version):

Changes for correction #9203 ('table of values').

Preamble:

\usepackage{amssymb}
\usepackage{amsmath}
\usepackage{amsfonts}

\usepackage{psfrag}
\usepackage{graphicx}
\usepackage{amsthm}
\usepackage{xypic}
Content:

The \emph{Birthday problem} says:
What is the probability of two or more people out of a group of $n$ do have the same birthday?

\textit{Solution.}
Let $A$ be the event two or more people out of a group of $n$ to have the same birthday.
It is easy to find first the complement of $A$, $A^c$, which is that no two people out of a group of $n$ will have matching birthdays out of $365$ (number of days of one year) equally possible birthdays. We start with an arbitrary person's birthday. So the second person's birthday in order to be different from the first one gives us the probability, $1-\frac{1}{365}$.
Consecutively, the third person's birthday is different from the first two and we have $(1-\frac{1}{365})(1-\frac{2}{365})$. Finally for the the $n$th person's birthday we get the probability
\begin{center}
\begin{tabular}{ll}
$\displaystyle P[A^c]$ & $\displaystyle =(1-\frac{1}{365})(1-\frac{2}{365})\dots (1-\frac{n-1}{365})$\\ & $\displaystyle =\frac{365-1}{365}\frac{365-2}{365}\dots\frac{365-(n-1)}{365}$\\ & $\displaystyle =\frac{(365-1)}{365}\dots \frac{(365-(n-1))}{365^n}$\\
& $\displaystyle =\frac{365!}{(365-n)!365^n}$\\ & $\displaystyle ={365\choose n}\frac{n!}{365^n}$
\end{tabular}
\end{center}
By the last expression of the estimated probability we can see that there exists another easier approach to find the probability which is the following:
\begin{enumerate}
\item We set the possible ways for $1\dots n$ birthdays, $365^n$ as the denominator.
\item Using the binomial coefficient ${365\choose n}$, which represents the number of ways of picking $n$ unordered birthdays from $365$ days multiplied by the factorial $n!$ used for the number of orders, in that way we determine the numerator.
\end{enumerate}
Therefore we have $$P[A^c]={365\choose n}\frac{n!}{365^n}$$
whence
$$P[A]=1-P[A^c]=1-{365\choose n}\frac{n!}{365^n}.$$

The table below shows the probability $P[A]$ for some values of $n$
\begin{center}
\begin{tabular}{|c|c|}
\hline
$n$ & $P[A]$ \\
\hline
$10$ & $0,11695$ \\
\hline
$20$ & $0,41144$ \\
\hline
$30$ & $0,70632$ \\
\hline
$40$ & $0,89123$ \\
\hline
$50$ & $0,97037$ \\
\hline
\end{tabular}
\end{center}