In class, we were computing the probability of a birthday collision for a group of 30 people.
Consider the following experiment: Extract one person from the population and insert in the group. That person will have some birthday.
Then insert a second person. The chance of a birthday collision is
(the second person would
have to have the exact same b'date as the first). The chance of no-collision is
. In other terms,
there are
pairs of people with same birthday, and
pairs of people with different birthdays.
(The second person must have a birthday different from the first).
Insert a third person. Now, there are three people. Of all possible b'date configurations
of three people taken from the general population,
would have different
birthdays (the second would have to be different from the first AND the third from the other two).
The ratio between configurations without collisions and all configurations for 30 people is therefore:
Now, let's generalize it for hash functions of hash-length
. After computing
hashes, the possibility of
having no collisions is
| (1) |