A 95% accuracy trap
Suppose an illustrative dataset contains 950 negative cases and 50 positive cases. A rule predicting every case as negative is 95% accurate but has zero recall for the positive class. Always relate a metric to the decision the model will support.
Build a valid comparison
- Define the task, prediction time and available features.
- Separate train, validation and test data by the unit that matters, such as person or time.
- Fit preprocessing and resampling only within training folds.
- Include a majority-class rule and an appropriate simple model as baselines.
Match metrics to costs
Inspect the confusion matrix, precision and recall. Precision asks how many predicted positives are truly positive; recall asks how many true positives were found. Precision–recall summaries can help with rare positive classes, but must be interpreted alongside prevalence, calibration and operational costs. Choose thresholds using validation data rather than the final test set.
Explain limitations
- Report the data split, prevalence, uncertainty and baseline results.
- Inspect errors and relevant subgroup performance.
- Keep the final test set separate from model selection.
- Avoid deployment claims without evidence from the intended setting.
Need personalised guidance?
Talk it through with a mentor.
Share your programme, project area, current stage and deadline.