Precision and Recall — A Comprehensive Guide With Practical Examples

All you need to know about accuracy, precision, recall, F-scores, class imbalance and confusion matrices

Wouter van Heeswijk, PhD
Towards Data Science
8 min readJan 31, 2022

--

Photo by Fer Troulik on Unsplash

Suppose my job is to develop a credit card fraud detection model for a bank. In reality, let’s say only 0.1% of transactions is fraudulent. I cleverly assume that no

--

--

Assistant professor in Financial Engineering and Operations Research. Writing about reinforcement learning, optimization problems, and data science.