Comparing Models on the Same Examples

A paired comparison evaluates candidate models on identical labelled inputs, making it possible to see which cases changed.

Source
Anbloq
Language
English
Created
Updated
Chapters
4
Reading time
1 min
In this article4 chapters
  1. Trace three rows
  2. Control the setup
  3. Keep example-level disagreements visible
  4. Match statistical analysis to the pairing

Trace three rows

Two models can both classify two of three correctly while making errors on different rows. Compare per-example indicators when that difference matters. Indicator variables supply a way to record each outcome.

Control the setup

Use the same preprocessing contract and independent expected targets where appropriate. Paired measurement conditions illustrate how to isolate the changed component.[1][2]

Keep example-level disagreements visible

Model A and B each get three of four examples right. A misses example two and B misses example four. Equal aggregate accuracy can conceal different failure patterns. Compare predictions per example to locate disagreements. See paired performance experiments.

Example 1: both correct
Example 2: only B correct
Example 3: both correct
Example 4: only A correct

Match statistical analysis to the pairing

Errors on the same example are linked observations. Include prediction IDs and apply an appropriate paired analysis when drawing formal conclusions. Inspect whether differences affect costly cases.

References

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