Difference between revisions of "Precision and recall"

From RecSysWiki
Jump to navigation Jump to search
Line 2: Line 2:
 
They range from 0 to 1 and the best possible value for both of them is 1.  
 
They range from 0 to 1 and the best possible value for both of them is 1.  
  
:Precision TruePositive / (TruePositive + FalsePositive)
+
:<math>\text{precision} \frac{tp}{tp + fp}</math>
  
:Recall = TruePositive / (TruePositive + FalseNegative)
+
:<math>\text{recall} = \frac{tp}{tp + fn},</math>
 +
 
 +
:where <math>tp</math> is the number of true positives, <math>fp</math> the number of false positives, and <math>fn</math> the number of false negatives.
  
 
== External links ==
 
== External links ==

Revision as of 05:01, 10 January 2012

Precision or positive predictive value is a measure for exactness and recall or sensitivity is a measure of completeness. They range from 0 to 1 and the best possible value for both of them is 1.

<math>\text{precision} = \frac{tp}{tp + fp}</math>
<math>\text{recall} = \frac{tp}{tp + fn},</math>
where <math>tp</math> is the number of true positives, <math>fp</math> the number of false positives, and <math>fn</math> the number of false negatives.

External links