Skip to content
Back to course

7.5 Model Evaluation Basics

Once a model makes predictions, we need to measure how good they are. Accuracy is the share of predictions that are correct. But on imbalanced problems, accuracy alone can mislead, so we also use precision (of the items flagged positive, how many really were) and recall (of all true positives, how many we caught).

Example: a disease test in a clinic where only 1% of people are actually sick. A model that always says 'healthy' would be 99% accurate but useless — it catches zero sick patients. Recall would expose that failure immediately.

Scenario

You build a fraud detector. Missing a real fraud is very costly, while a false alarm just triggers a quick manual check. Which metric should you prioritise?

Check your understanding

1/4 · 40 XP

Why can accuracy be misleading on an imbalanced dataset?