True positive rate (TPR): Difference between revisions

no edit summary
No edit summary
No edit summary
Line 6: Line 6:


==Mathematical Definition==
==Mathematical Definition==
The true positive rate (TPR) is calculated as the number of [[true positive (TP)]] divided by the sum of the sum of the number of true positive (TP) and the number of [[true negative (FN)]]. Mathematically, this can be represented as:
The true positive rate (TPR) is calculated as the number of [[true positive (TP)]] divided by the sum of the sum of the number of true positive (TP) and the number of [[false negative (FN)]]. Mathematically, this can be represented as:


TPR = true positives / (true positives + false negatives) OR true positives / all actual positives
TPR = true positives / (true positives + [[false negative]]s) OR true positives / all actual positives


True positives are cases in which the model accurately predicts a positive class, and false negatives occur when it incorrectly predicts a negative class for a positive case.
True positives are cases in which the model accurately predicts a positive class, and false negatives occur when it incorrectly predicts a negative class for a positive case.