Five questions, five numbers
The four boxes are counts. These metrics turn them into rates, each one at the threshold you set on the board. Move the threshold and they all change.
| Metric | Formula | The question it answers |
|---|---|---|
| Accuracy | (TP + TN) / all | How many matches did it get right? |
| Recall (true positive rate) | TP / (TP + FN) | Of the real home wins, how many did it catch? |
| False positive rate | FP / (FP + TN) | Of the matches without a home win, how many did it wrongly call one? |
| Precision | TP / (TP + FP) | Of the home wins it called, how many happened? |
| F1 score | 2TP / (2TP + FP + FN) | Precision and recall in one number, close to the worse of the two |
Accuracy is the obvious one and the most misleading. Picture a model for red cards, which happen in maybe one match in ten. A model that always says "no red card" is 90% accurate and completely useless. On imbalanced data, look at recall and precision instead.
Precision and recall pull against each other. Raise the threshold and the home wins you do call are more likely right, so precision goes up, but you miss more of them and recall drops. Try it on the board. When a denominator is 0, say nothing is called a home win, the metric is undefined and shows n/a.