A Majority-Class Baseline
A majority baseline predicts the most frequent training class, offering an interpretable reference for a classification task.
- Source
- Anbloq
- Language
- English
- Created
- Updated
- Chapters
- 4
- Reading time
- 1 min
In this article4 chapters
Trace a skewed dataset
With ninety ordinary and ten special cases, always returning ordinary gives 90 percent training accuracy. It identifies none of the special cases. Rates with counts show the denominator behind the score.
Compare on held-out data
Measure the baseline and candidate under the same evaluation conditions. A useful model may improve the rare outcome even if overall accuracy differs little. See precision and recall.[1]
Calculate accuracy that ignores the features
If test data contain ninety-one ordinary and nine flagged examples out of one hundred, always predicting ordinary scores 91 percent on this set. It detects none of the flagged examples. A baseline should derive its chosen majority from training, then be evaluated on the held-out set. See class-based accuracy.
Held-out example distribution: 91 ordinary, 9 flagged
Predict ordinary for every example → 91 correct
Recall for flagged: 0 of 9
Compare an intended improvement using the right metric
If rare cases drive operational decisions, report recall and precision in addition to accuracy. Document what the baseline knows and keep the comparison set unchanged.