Explain what precision and recall are

Explain what precision and recall are.


ref:Precision, Recall & Accuracy. Accuracy is not the only model metric… | by Shivangi Sareen | Medium

I use following definitions:

Knowing this, it is straightforward to calculate these metrics:

  • Recall: correctly predicted 1’s / all 1’s = TP / (TP + FN)
  • Precision: correctly predicted 1’s / all predicted 1’s = TP / (TP+FP)