Press space to proceed through text. Turbo Mode is recommended.
T H E B I R T H D A Y P A R A D O X : ============================== ABOUT: One of my favorite mathematical paradoxes is the birthday paradox. The paradox states that if a random group of 23 people write down their date of birth (month and day, not year), the probability that the same birthday with occur twice is more than 50%. (Leap days are also disregarded.) This is often surprising to people due to the fact that 23 is a lot smaller than 365, and likely won’t cover the same day twice. However, when one considers all of the comparisons of 23 birthdays and not the 23 individuals themselves, the claim becomes easier to believe. Suppose the participants meet every other person in the room to compare birthdays. There with be 253 meetings, in which there is a decent chance a match will be found. This simulation is to illustrate this paradox using randomly generated birthdays stored in a list. If the list already contains a generated birthday, that is one match. Note that the same birthday may be used in several pairs (three occurrences of January 1 result in 2 pairs). ===================================== Thanks to pexels.com for the thumbnail image.