The Birthday Problem
A classical example of the use of the complementary event (Probability Measures and AxiomsA probability measure is a non-negative, normalised, sigma-additive map on the sigma-algebra of events; from the three axioms follow the complement rule, monotonicity, subadditivity and inclusion-exclusion, while the axioms do not determine P uniquely.Probability Measures and Axioms →, consequence (a)) together with counting (Sampling and Allocation ProblemsCounting problems are modelled either as drawing balls from an urn (sampling) or as placing tokens into cells (allocation), leading to dispositions with and without repetition, permutations and combinations without repetition.Sampling and Allocation Problems →).
Let be the event that in a class of children at least 2 celebrate their birthday on the same day. Assume
- none of the children was born on February 29,
- there are no twins,
- birthdays are equiprobable.
Computing directly is complicated, because is the union of disjoint events "exactly children have the same birthday" for , and the probability of each of these sub-events is difficult to compute. Computing is much easier: indeed
First of all for , therefore for .
For (the page writes ) let be the set of all possible -tuples of birthdays, with and equiprobable measure. The event is made of all -tuples with distinct coordinates. Its cardinality is (365 possible birthdays for the 1st child, for the 2nd, ..., for the -th child). Therefore and .
Question. What is the minimum such that ?
Answer. (this is known as the birthday paradox; see also the birthday attack in cryptography, as mentioned in the notes). The value is quoted on the page, not computed there.
Versione ripasso
- = at least 2 of children share a birthday (no Feb 29, no twins, equiprobable days). Work with = all birthdays distinct.
- , , .
- Minimum with : (birthday paradox).
- Typical mistake: trying to sum the probabilities of "exactly equal birthdays" instead of using the complement.