Index

Free, with Google

Keep going, free.

A free account opens lessons 2 and 3 of every track, 33 more lessons, and keeps your progress and review cards on every device.

Start free with Google

A chalk plan

Open everything on chalk.

Every lesson, board, video, lab and paper, and the full review decks. Yearly is $39/year.

See plansStart free instead

Module 01 · Mind Blown · Numbers that run away · about 19 min to read

Watch: The birthday paradox: why 23 people is a coin flip
▶ VideoPlay it as a journeyTutor comes with a plan

The Birthday Paradox

The Birthday Paradox
The Birthday Paradox · Open board

The room fills one person at a time, each new arrival only able to dodge the birthdays already taken, until the odds flip. This lesson works out exactly where they flip, and why the number is nothing like the one your gut reaches for.

Before you start. All the arithmetic here is counting: how many people, how many pairs they make between them, nothing harder than that. Every number below is worked out in one plain sentence the moment it shows up, so nothing arrives bare.

Lesson 5 of 73 in Mind Blown

The rest of this lesson is part of a plan.

A plan opens every lesson, board, video, lab and paper on chalk. Yearly is $39/year.

See plansAlready a member? Sign in

Or start free: a free account opens lessons 2 and 3 of every track.

In this lesson

  • 1927: an answer nobody believed enough to publish
  • Twenty-three people, and the guess everyone gets wrong
  • The wrong question, and the right one
  • Pairs: the count that actually matters
  • The trick: count the one way it can’t happen
  • Why 70 is nowhere near 365: the square-root rule
  • The exact calculation
  • Where the square root comes from
  • Pairs, correctly stated
  • Hash collisions and the birthday bound
  • Collision vs. matching a fixed target
  • Birthday attacks on signatures
  • UUIDs
  • Hash tables
  • What real birthdays and leap years do to the answer

Terms it explains: my, any two, people, pairs, 253, one, collisions, 50.7%, complement, square root, 0.5073, 50.73%, 90.32%, 99.01%, 99.92%, 23 people, hash function, digest, birthday bound, 2⁶⁴, 2⁸⁰, 2¹²⁸, generic, 0.5073, i.e. 50.73%, 1.1774√N, not independent, 2^b, 2^(b/2), 64 bits, author, more, 45, 435, 6%, 38, 62%, With Python,.

Lab

Twenty-three people and 365 days. Why is a shared birthday a coin flip, and what does that cost you in bits?

Open A short link id, push How many of them up past a million, and watch How many you may mint.

Open The birthday collision

Review Mind Blown