liveBook · Manning

True positive

As explained in Grokking Machine Learning, Second Edition

A true positive is a classification in which a positively labeled data point is correctly assigned the positive class.

A true positive is a positively labeled data point that a classification model correctly assigns to the positive class. The positive class depends on the problem: sick patients may be positive in a medical model, while spam emails may be positive in an email filter. section 7.5

Two everyday examples

A sick patient correctly diagnosed as sick is a true positive. Likewise, a spam email correctly classified as spam is a true positive. On a diagram, it is a positively labeled point that falls inside the model’s positive zone. section 7.5

Table 7.3 The confusion matrix of our second coronavirus model
Coronavirus model 2
Diagnosed sick
Diagnosed healthy
Sick
8 (true positives)
2 (false negatives)
Healthy
48 (false positives)
942 (true negatives)

A confusion matrix makes the count concrete: coronavirus model 2 has 8 true positives, meaning eight sick patients were correctly diagnosed. section 7.7

True positives are counted when measuring recall. Recall divides the number of true positives by all positively labeled cases, including both true positives and false negatives. section 7.7

How Grokking Machine Learning, Second Edition covers it

How deep it goes
Defines the category and illustrates it with coronavirus, spam, decision boundaries, and confusion-matrix counts.
Examples
Uses sick patients, spam emails, plotted points, and eight correctly diagnosed patients in a 1,000-person confusion matrix.
What it assumes
Assumes only positive and negative labels, then establishes the four correct-and-error outcomes through familiar examples.
What you can do after
Evaluate classification results by recognizing correctly identified positive cases and using their count in recall.
How it connects
Connects to positive labels, false positives, false negatives, true negatives, recall, and confusion matrices.

Also explained in

Compare how 2 books explain true positive →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Grokking Machine Learning, Second Edition. The section links point to the parts of the book it draws on.