Precision and recall

What are precision and recall?

Examples

Worked example

Input
Flagged: 5. Correctly flagged: 4. Actual positives: 8.
Expected output
Precision 80%, recall 50%.

Hints and solution

Hint 1

Write down the starting state and walk through one example by hand.

Reveal worked answer

Divide 4 by the 5 predicted positives for precision and by the 8 actual positives for recall.

Back to the lesson