Performance Measures
Performance Measures
Confusion Matrix
The confusion matrix is a table that summarizes how successful the classification model
is at predicting examples belonging to various classes. One axis of the confusion matrix
is the label that the model predicted, and the other axis is the actual label.
TP
The predicted value is positive and it’s positive.
FP
The predicted value is positive and its negative.
FN
The predicted value is negative and its positive.
TN
The predicted value is negative and its negative.
Measure Factor
Rate is a measure factor in a confusion matrix. It has also 4 type TPR, FPR, TNR, FNR
True Positive Rate(TPR): True Positive/positive
False Positive Rate(FPR): False Positive /Negative
False Negative Rate(FNR): False Negative/Positive
True Negative Rate(TNR): True Negative/Negative
For better performance, TPR, TNR should be high and FNR, FPR should be low.
Accuracy
The number of samples actually belonging to the positive class out of all
the samples that were predicted to be of the positive class by the
model.
It is define as the actual correct prediction divided by total prediction
made by model.
Recall
Sensitivity is the proportion of true positives tests out of all patients with a condition. In
other words, it is the ability of a test or instrument to yield a positive result for a subject
that has that disease. The ability to correctly classify a test is essential.
Sensitivity does not allow providers to understand individuals who tested positive but did
not have the disease.
the equation for sensitivity is the following: