Small Evaluation Sets and Metric Resolution

When a test set has few important examples, one changed outcome can move a reported rate substantially.

Source
Anbloq
Language
English
Created
Updated
Chapters
4
Reading time
1 min
In this article4 chapters
  1. Trace four positives
  2. Report what supports the claim
  3. Compute the smallest possible change in a proportion
  4. Check dependence and coverage before using confidence intervals

Trace four positives

For four positive examples, detecting three gives recall 0.75. Detecting two gives 0.5. The smallest step from one changed detection is one quarter. See recall's denominator.

Report what supports the claim

Include the count and split rule instead of just a rounded score. Random sample sizes explain why precision of reporting depends on the evidence.[1][2]

Compute the smallest possible change in a proportion

In a held-out set with five positives, each correctly detected case changes recall by 0.2. With fifty positives it changes it by 0.02. A reported increase of one detected case has very different resolution. See frequency estimates from samples.

Five positives: 3/5=.60 and 4/5=.80
Fifty positives: 30/50=.60 and 31/50=.62
Counts expose one-case differences

Check dependence and coverage before using confidence intervals

Repeated observations from the same source may contribute less independent evidence. Use evaluation and uncertainty procedures that reflect the grouping. State sample sizes directly.

References

  1. Gareth James et al., An Introduction to Statistical Learning ↩
  2. scikit-learn Developers, Metrics and Scoring: Quantifying the Quality of Predictions ↩