Artificial intelligence · Grades 9–12
Precision from true and false positives · formula reference
The denominator counts predicted positives. This generator always gives a nonzero denominator.
Formula
The denominator counts predicted positives. This generator always gives a nonzero denominator.
precision = TP/(TP+FP)
Worked example
A binary classifier has TP=37 and FP=67. Calculate positive-class precision as a fraction between 0 and 1. Round the final result to 4 decimal places if needed.
Of 104 positive predictions, 37 are correct.
0.3558
Prerequisites and checking
Algebra and the topic definitions. Keep units and rounding consistent. State the model conditions before applying the formula.
Further reading and review references
These are reference links, not copied exercises, institutional endorsement or proof of independent review.
AI-assisted preview; independent educational review required. Level labels describe prerequisites, not accreditation or official curriculum alignment.