How Are Precision and Recall Calculated?Tilmann Bruckhaus answers:Calculating precision and recall is actually quite easy. Imagine there are 100 positive cases among 10,000 cases. You want to predict which ones are positive, and you pick 200 to have a better chance of catching many of the 100 positive cases. You record the IDs of your predictions, and when you get the actual results you sum up how many times you were right or wrong. There are four ways of being right or wrong:
Makes sense so far? Now you count how many of the 10,000 cases fall in each
bucket, say:
Now, your boss asks you three questions:
|
Copyright © 2008 KDnuggets. Subscribe to KDnuggets News!