Skip to main content

Table 1 Confusion matrix

From: Prediction of contraceptive discontinuation among reproductive-age women in Ethiopia using Ethiopian Demographic and Health Survey 2016 Dataset: A Machine Learning Approach

Actual

Predicted

Positive prediction

Negative prediction

Positive Class

True positive (TP)

False negative (FN)

Negative Class

False positive (FP)

True negative (TN)

  1. Accuracy = TP + TN / (TP + FP + FN + TN)
  2. Precision = TP / (TP + FP)
  3. Recall = TP / (TP + FN)
  4. F1 score = (2 * Precision * Recall) / (Precision + Recall)