Chapter 52
4.4 Precision and Recall
4.4 Precision and Recall
![]()
Notes
Precision tell us the fraction of positive predictions that are correct. It takes into account only the positive class (TP and FP - second column of the confusion matrix), as is stated in the following formula:
Recall measures the fraction of correctly identified positive instances. It considers parts of the positive and negative classes (TP and FN - second row of confusion table). The formula of this metric is presented below:
In this problem, the precision and recall values were 67% and 54% respectively. So, these measures reflect some errors of our model that accuracy did not notice due to the class imbalance.

MNEMONICS:
-
Precision : From the
predicted positives, how many we predicted right. See how the wordprecision is similar to the wordprediction? -
Recall : From the
realpositives, how many we predicted right. See how the wordrecall is similar to the wordreal?
Add notes from the video (PRs are welcome)
