Describe variation across repeated small samples

Keep the numerator and denominator in the stated order. · 176 words

A sample is the subset actually observed, and repeated sampling means observing new groups in the same way. Suppose a museum bag contains 6 red and 4 blue tokens. An AI quality check samples 4 without replacement. The percentage of red tokens can be 0, 25, 50, 75, or 100 percent, depending on the draw. Every count is possible, but counts are not equally likely. This spread is sampling variation: it comes from chance in the selected group, not necessarily from a change in the bag's red-blue mix.

Now imagine a classifier whose true accuracy on a large stream is 80 percent. In each repeated sample of 20 examples, count correct predictions and divide by 20. The expected count is 16, but one sample might contain 14 or 18 correct predictions. Small samples therefore give noisy estimates. More examples usually reduce uncertainty because chance errors have less opportunity to distort the estimate. When comparing models, use the same sampled cases or report this variability. Otherwise a small difference may be sampling noise rather than real improvement.

Check your recall

Why can two equally sized random evaluation samples give different accuracy estimates?

Check your answer

Each sample contains different cases, so chance can give one sample more easy cases or more difficult cases. The estimates vary most when samples are small, and larger samples usually produce steadier accuracy estimates.

Sources and credits

Original KeyTouch lesson. Background reading · UC Berkeley · Introduction to Artificial Intelligence.