MODULO Machine Learning: Artificial Intelligence SagaTHEORY

Calculate precision and recall

There were five alerts. Three corresponded to real stockouts. Two more stockouts happened without an alert. Work out what a kitchen lead learns from precision and recall.

Check your work

Precision is 3/5, so three out of five alerts were useful. Recall is also 3/5 because the system found three of five stockouts. Adding a false alert changes precision while leaving recall unchanged.