Precision

Learn why precision is a valuable measure of classifier performance for assessing the ratio of correct positive predictions to all positive predictions.

Introduction

Like the ROC curve, precision is useful over a range of thresholds. Precision is defined as follows:

precision=TPTP+FPprecision = \frac{TP}{TP+FP}

Consider the interpretation of this, in the sense of varying the threshold across the range of predicted probabilities, as we did for the ROC curve. At a high threshold, there will be relatively few samples predicted as positive. As we lower the threshold, more and more will be predicted as positive. Our hope is that as we do this, the number of true positives increases more quickly than the number of false positives, as we saw on the ROC curve in the previous lesson. Precision looks at the ratio of the number of true positives to the sum of true and false positives. Think about the denominator here: what is the sum of true and false positives?

Get hands-on with 1200+ tech skills courses.