Our website uses necessary cookies to enable basic functions and optional cookies to help us to enhance your user experience. Learn more about our cookie policy by clicking "Learn More".
Accept All Only Necessary Cookies
Confusion Matrix Calculator icon

1.0.0 by MDApp+


Mar 20, 2022

About Confusion Matrix Calculator

Determines several statistical measures such as sensitivity, speficity & more.

This Confusion Matrix Calculator determines several statistical measures linked to the performance of classification models such as: Sensitivity, Specificity, Positive Predictive Value (Precision), Negative Predictive Value, False Positive Rate, False Discovery Rate, False Negative Rate, Accuracy & Matthews Correlation Coefficient.

Statistical measures based on the confusion matrix

The confusion matrix is the popular representation of the performance of classification models and includes the correctly and incorrectly classified values compared to the actual outcomes in the test data. The four variables are:

True positive (TP) – which is the outcome where the model correctly predicts positive class (condition is correctly detected when present);

True negative (TN) – which is the outcome where the model correctly predicts negative class (condition is not detected when absent);

False positive (FP) – which is the outcome where the model incorrectly predicts positive class (condition is detected despite being absent);

False negative (FN) – which is the outcome where the model incorrectly predicts negative class (condition is not detected despite being present).

One of the most commonly determined statistical measures is Sensitivity (also known as recall, hit rate or true positive rate TPR). Sensitivity measures the proportion of actual positives that are correctly identified as positives.

Sensitivity = TP / (TP + FN)

Specificity, also known as selectivity or true negative rate (TNR), measures the proportion of actual negatives that are correctly identified as negatives.

Specificity = TN / (FP + TN)

The Positive Predictive Value (PPV), also known as Precision and the Negative Predictive Value (NPV) are the proportion of positive and negative results that are true positive, respectively true negative. They are also called positive respectively negative predictive agreements and are measures of the performance of a diagnostic test.

Positive Predictive Value (Precision) = TP / (TP + FP)

Negative Predictive Value = TN / (TN + FN)

The False Positive Rate (FPR) or fall-out is the ratio between the number of negative events incorrectly categorized as positive (false positives) and the total number of actual negative events (regardless of classification).

False Positive Rate = FP / (FP + TN)

The False Discovery Rate (FDR) is a statistical approach used in multiple hypothesis testing to correct for multiple comparisons.

False Discovery Rate = FP / (FP + TP)

The False Negative Rate (FNR) measures the proportion of the individuals where a condition is present for which the test result is negative.

False Negative Rate = FN / (FN + TP)

Accuracy (ACC) is a measure of statistical bias

Accuracy = (TP + TN) / (TP + TN + FP + FN)

The F1 Score is a measure of a test’s accuracy, defined as the harmonic mean of precision and recall.

F1 Score = 2TP / (2TP + FP + FN)

Matthews Correlation Coefficient (MCC) describes how changing the value of one variable will affect the value of another and returns a value between -1 and 1:

+1 describes a perfect prediction;

0 unable to return any valid information (no better than random prediction);

-1 describes complete inconsistency between prediction and observation.

Matthews Correlation Coefficient = (TP x TN – FP x FN) / (sqrt((TP+FP) x (TP+FN) x (TN+FP) x (TN+FN)))

What's New in the Latest Version 1.0.0

Last updated on Mar 20, 2022

This Confusion Matrix Calculator determines several statistical measures linked to the performance of classification models, such as: Sensitivity, Specificity, Positive Predictive Value (Precision), Negative Predictive Value, False Positive Rate, False Discovery Rate, False Negative Rate, Accuracy & Matthews Correlation Coefficient.

Translation Loading...

Additional APP Information

Latest Version

Request Confusion Matrix Calculator Update 1.0.0

Uploaded by

Alyson Magalhães

Requires Android

Android 4.1+

Available on

Get Confusion Matrix Calculator on Google Play

Show More

Confusion Matrix Calculator Screenshots

Comment Loading...
Subscribe to APKPure
Be the first to get access to the early release, news, and guides of the best Android games and apps.
No thanks
Sign Up
Subscribed Successfully!
You're now subscribed to APKPure.
Subscribe to APKPure
Be the first to get access to the early release, news, and guides of the best Android games and apps.
No thanks
Sign Up
Success!
You're now subscribed to our newsletter.