Explain what precision and recall are

Explain what precision and recall are.


ref:https://medium.com/@shivangisareen/precision-recall-accuracy-6a214187f059

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)