Basis Lab

Counting Without Listing

Putting It Back, or Not

Last timeWhen Order Does Not Matter

Drawing with the item returned each time gives a power; drawing without gives a falling product. The two answers agree when the pile is large and diverge alarmingly when it is not.

Draw three items from a pile of ten. How many outcomes are there?

The question is not yet answerable, because one thing has not been said:

whether each item goes back before the next draw. The two answers are different

and both are produced by the multiplication rule.

FIG 1The two counts, side by side
how many items are in the pile at the start
how many draws are made
the count when each item is returned. Every stage sees the same pile, so every stage offers n options
the count when items are kept out. Each stage has one fewer option than the last, and the product has exactly k factors
Three from ten gives a thousand with replacement and seven hundred and twenty without, a gap of about twenty eight per cent. Both counts treat the order of the draws as meaningful; if it does not matter, the second is divided by the orderings to give the choose count of the previous lesson, and the first needs a different and much less common formula that this course does not use. The two numbers to keep straight are the base, which is the size of the pile, and the exponent or number of factors, which is the number of draws.

How far apart they get

The interesting behaviour is not either count on its own but the ratio between

them, because that ratio is exactly the chance that no item came up twice.

FIG 2Drawing k times from a pile of 365, both ways
draws kwith replacementwithout replacementratio: chance of no repe
a handful5.0000006480000000000.0000006400000000000.0000000.973000
a small group10.0000004.2e+254.16e+250.883000
a classroom20.0000001.77e+511.68e+510.589000
the crossover23.0000008.6e+588e+580.493000
a lecture hall40.0000006.3e+1025e+1020.109000
a large hall60.0000001.8e+1547.2e+1530.006000
The two counts are enormous and nearly equal at the top, and the only readable column is the last one. At five draws the chance of no repeat is ninety seven per cent, which matches intuition. At the marked row, twenty three draws from three hundred and sixty five, it has fallen below a half: in a room of twenty three people it is more likely than not that two share a birthday. At sixty the chance of no shared birthday is under one per cent. Nothing surprising is happening in the counting, which is why this result belongs here rather than in a chapter on paradoxes; what is surprising is how few draws it takes, and that is the subject of the seventh lesson.

The reason the gap arrives so early is that the number of chances for a repeat

is the number of pairs of draws, not the number of draws. Twenty three draws

make two hundred and fifty three pairs, and each pair has one chance in three

hundred and sixty five of matching. The pair count grows with the square of the

number of draws, which is why doubling the draws roughly quadruples the chance

of a collision.

The lesson stops here

2 more paragraphs to go

You have read the opening. The rest of the argument, the problems that check whether it landed, and the lines worth keeping at the end all come with a plan.

The first lesson of every course in the library reads the whole way through, free, so you can see exactly what the rest of them are.

See the planThe contents

This is the reading half

Starting the course gives you your own copy of it. Every idea on every page has problems standing under it, marked with a reason rather than a tick, and any sentence you do not believe can be opened and argued with. None of that can happen on a page nobody owns.

The contents

The rest of this course

  1. 01One Choice After Another
  2. 02Putting Things in Orderopening only
  3. 03When Order Does Not Matteropening only
  4. 04Putting It Back, or Notyou are here
  5. 05Counting Turns Into Chanceopening only
  6. 06Counting the Same Thing Twiceopening only
  7. 07More Things Than Placesopening only
  8. 08When Counting Explodesopening only

Read alongside