How it works
For binary classification, compare predicted labels with known labels. True positives, false positives, and false negatives reveal different types of outcome.
A concrete example
In spam detection, a false positive marks a legitimate message as spam; a false negative lets spam through.
Watch for this
Accuracy alone can be misleading when classes are imbalanced or different mistakes have different costs.
Try it yourself
Increase false positives and observe precision. Increase false negatives and observe recall.