"Live link: https://perthirtysix.com/tool/birthday-paradox

I built a sandbox that lets you simulate and understand the birthday paradox and few related problems. The birthday paradox tells us that in a room of 23 people, there are 50/50 odds that 2 people will have the same birthday (assuming a non-leap year and that birthdays are totally random, which they aren’t exactly).

I’ve always found these types of problems really interesting and counterintuitive. The “aha” moment for me was realizing that *any* two people sharing a birthday satisfies the problem, and at 23 people there are 253 different combinations of pairs between them.

I hope you enjoy messing around with the tool!

Built using Vue and p5.js, with probability formulas adapted from Wikipedia."