The Secret Santa Experiment
Secret Santa Experiment

The Secret Santa Experiment

Welcome to the party! Tonight nine of us drew names for Secret Santa. Nobody could draw their own name or their partner's. It took four tries before every draw was allowed.

Was that bad luck? You will run the draws yourself, over and over, and find out.

Here is the party: nine people. Four couples and one person who came alone. Nobody may draw their own name or their partner's. Tap a person to see which names they can't draw.

Rename the people

Say we all pull a name at the same moment. What are the chances that everyone gets an allowed name on the first try?

1%50%99%
I think the odds are 50%.

Right on 🎯 You must have seen this before. So close 🥈 Hold your horses 🐴 That is too hopeful. A bit gloomy 🌧️ It is slightly better than that. The real chance is 13.4%, about 1 in 7.4. I would not bet on the first draw.

Nine people can draw nine names in 362,880 ways. Only 48,768 of them work.+ Like the Birthday Paradox, our gut says this should be easy, and the numbers say it is not. Let me show you why.

Look at one person. Ava can't draw Ava or Ben. That leaves 7 allowed names out of 9, so a random draw is fine for Ava 78% of the time.

The others are about as safe. The person who came alone is safer, at 89%. Nine people, every one at 78% or better. That sounds fine, right?

But all nine need to be safe at once. If each draw ignored the others, we would multiply: 7/9 eight times, then 8/9 once. That leaves 11.9%.+

Every person you add is one more chance to spoil the draw. Watch the odds shrink as each person joins.

Here is every way a draw can go wrong. Each row is a person drawing. Each column is a name in the bowl. The red squares are draws we can't allow: 17 of 81 squares, about one in five.

A full draw puts one piece in each row and each column. We need all nine pieces on white squares.

 

Drop the pieces every possible way, and count the red squares each time. A typical draw lands on 1.9 red squares.+

Zero red squares is the rare case: 48,768 of the 362,880 draws, or 13.4%.

Your turn. Press the button and all nine people pull a name at once. Red arrows are draws we can't allow.

 
Draws: 0 · Worked: 0

Let's do 3,000 draws and watch the share that work. Starting slowly…

Worked: 0 of 0

What we want to know: how many draws until one works? We simulated 10,000 parties. Each party drew again and again until everyone had an allowed name. The bars show how many draws they needed.

1 draw15 draws
Our night took 4 draws.

Tonight we also tried the bowl: draw one at a time, and put a bad name back. Play a round.

Would a bigger party help? Pick a size.

2 couples7 couples

Add couples and the odds do not rise. They stay near 13%.+ This is the Birthday Paradox trap again: many small chances add up. There, they make a match likely. Here, they make a clean draw unlikely.

So four draws was normal. Plan on about 7. One party in ten needs 17 or more.

Next year, draw all at once, and redraw everything if anyone is unhappy. Skip the bowl. Or seat everyone in a ring so that no couple sits side by side, and have each person give to the person on their left. That works on the first try, but whoever sets the ring knows everything. An app can do it in secret.

Happy gifting 🎁

Counting the good draws

Each couple blocks a 2×2 square of the board. The person alone blocks one square. These blocks share no row or column, so the ways to put k pieces on red squares come from one product:

Inclusion and exclusion then gives the good draws:

How long to wait

If each draw works with chance p, the chance the first success lands on draw k is p(1−p)k−1. The average wait is 1/p draws. The chance you need more than k draws is (1−p)k.

What we assumed

Every draw is a fair random match of names to people. The simulations use your browser's random numbers, so they differ a little each time you run them. A bowl round puts a bad name back and draws again from the full bowl. A round ends stuck if someone is left with only names they can't take.