True Positive (TP): The model correctly predicted a positive outcome (e.g., a person has a disease, and the model predicted "yes").
False Positive (FP): The model wrongly predicted a negative outcome as positive (e.g., a person does not have a disease, but the model predicted "yes").
False Negative (FN): The model wrongly predicted a positive outcome as negative (e.g., a person has a disease, but the model predicted "no").
True Negative (TN): The model correctly predicted a negative outcome (e.g., a person does not have a disease, and the model predicted "no").
(TP + TN) / (TP + FP + FN + TN)
= (150 + 750) / (150 + 50 + 50 + 750)
= 900 / 1000
= 0.9 or 90%
TP / (TP + FP)
= 150 / (150 + 50)
= 150 / 200
= 0.75 or 75%
TP / (TP + FN)
= 150 / (150 + 50)
= 150 / 200
= 0.75 or 75%
(TP + TN) / (Total)
= (90 + 820) / (90 + 40 + 50 + 820)
= 910 / 1000
= 0.91 or 91%
TP / (TP + FP)
= 90 / (90 + 40)
= 90 / 130
= 0.69 or 69% (approx.)
TP / (TP + FN)
= 90 / (90 + 50)
= 90 / 140
= 0.64 or 64% (approx.)
(TP + TN) / (Total)
= (80 + 850) / (80 + 30 + 40 + 850)
= 930 / 1000
= 0.93 or 93%
TP / (TP + FP)
= 80 / (80 + 30)
= 80 / 110
= 0.73 or 73% (approx.)
TP / (TP + FN)
= 80 / (80 + 40)
= 80 / 120
= 0.67 or 67% (approx.)
(TP + TN) / (Total)
= (120 + 800) / (120 + 20 + 60 + 800)
= 920 / 1000
= 0.92 or 92%
TP / (TP + FP)
= 120 / (120 + 20)
= 120 / 140
= 0.86 or 86% (approx.)
TP / (TP + FN)
= 120 / (120 + 60)
= 120 / 180
= 0.67 or 67% (approx.)
(TP + TN) / (Total)
= (100 + 800) / (100 + 50 + 50 + 800)
= 900 / 1000
= 0.90 or 90%
TP / (TP + FP)
= 100 / (100 + 50)
= 100 / 150
= 0.67 or 67% (approx.)
TP / (TP + FN)
= 100 / (100 + 50)
= 100 / 150
= 0.67 or 67% (approx.)
Precision: Precision measures the accuracy of the positive predictions, answering the question, "Of all the times the model predicted positive, how many were actually positive?". It's crucial for cases where False Positives are costly, like a satellite launch prediction.
Recall: Recall measures the model's ability to find all the actual positive cases, answering the question, "Of all the actual positive cases, how many did the model find?". It's crucial for cases where False Negatives are costly, like a medical diagnosis for a serious disease.
TP / (TP + FP)
= 120 / (120 + 20)
= 120 / 140
= 0.857
TP / (TP + FN)
= 120 / (120 + 60)
= 120 / 180
= 0.667
2 × (Precision × Recall) / (Precision + Recall)
= 2 × (0.857 × 0.667) / (0.857 + 0.667)
= 2 × 0.5716 / 1.524
= 1.1432 / 1.524
= 0.750 (approx.)
Precision: Precision is calculated by dividing the number of True Positives (TP) by the sum of True Positives and False Positives (TP + FP). This represents the ratio of correctly predicted positive cases out of all cases predicted as positive.
Formula:
Precision = TP / (TP + FP)
Recall: Recall is calculated by dividing the number of True Positives (TP) by the sum of True Positives and False Negatives (TP + FN). This represents the ratio of correctly predicted positive cases out of all actual positive cases.
Formula:
Recall = TP / (TP + FN)


