Test scores calculator

Try it out yourself!

You don't need to enter all the values below, as the calculator will try to calculate the other values based on the one you enter.

Condition Positive Condition Negative Total
Test Positive
Test Negative
Total

Explanation

Sensitivity (True Positive Rate)

Definition: Sensitivity measures the proportion of actual positives that are correctly identified by the test. It reflects how good the test is at detecting positive cases.

Formula:

Sensitivity=True Positives (TP)True Positives (TP)+False Negatives (FN)\text{Sensitivity} = \frac{\text{True Positives (TP)}}{\text{True Positives (TP)} + \text{False Negatives (FN)}}

Specificity (True Negative Rate)

Definition: Specificity measures the proportion of actual negatives that are correctly identified by the test. It reflects how good the test is at detecting negative cases.

Formula:

Specificity=True Negatives (TN)True Negatives (TN)+False Positives (FP)\text{Specificity} = \frac{\text{True Negatives (TN)}}{\text{True Negatives (TN)} + \text{False Positives (FP)}}

Positive Predictive Value (PPV)

Definition: PPV, or Precision, is the proportion of positive results that are true positives. It shows how often a positive test result is correct.

Formula:

PPV=True Positives (TP)True Positives (TP)+False Positives (FP)\text{PPV} = \frac{\text{True Positives (TP)}}{\text{True Positives (TP)} + \text{False Positives (FP)}}

Negative Predictive Value (NPV)

Definition: NPV is the proportion of negative results that are true negatives. It shows how often a negative test result is correct.

Formula:

NPV=True Negatives (TN)True Negatives (TN)+False Negatives (FN)\text{NPV} = \frac{\text{True Negatives (TN)}}{\text{True Negatives (TN)} + \text{False Negatives (FN)}}

Positive Predictive Value (PPV) with Prevalence

Definition: PPV can also be expressed in terms of the prevalence of the disease, sensitivity, and specificity. Prevalence refers to the proportion of the population that has the disease. This formula incorporates the underlying prevalence to estimate how likely a positive result is truly positive.

Formula:

PPV=Prevalence×SensitivityPrevalence×Sensitivity+(1Prevalence)×(1Specificity)\text{PPV} = \frac{\text{Prevalence} \times \text{Sensitivity}}{\text{Prevalence} \times \text{Sensitivity} + (1 - \text{Prevalence}) \times (1 - \text{Specificity})}

Negative Predictive Value (NPV) with Prevalence

Definition: NPV can similarly be expressed using the prevalence of the disease. It represents the likelihood that a person with a negative test result truly does not have the disease, considering the disease's prevalence in the population.

Formula:

NPV=(1Prevalence)×Specificity(1Prevalence)×Specificity+Prevalence×(1Sensitivity)\text{NPV} = \frac{(1 - \text{Prevalence}) \times \text{Specificity}}{(1 - \text{Prevalence}) \times \text{Specificity} + \text{Prevalence} \times (1 - \text{Sensitivity})}

This allows PPV and NPV to be adjusted for the actual prevalence of the disease in the population, which provides more accurate interpretations when the disease is rare or common.

Accuracy

Definition: Accuracy measures the proportion of all correct test results (both true positives and true negatives) out of the total number of tests. It indicates the overall effectiveness of the test.

Formula:

Accuracy=True Positives (TP)+True Negatives (TN)Grand Total\text{Accuracy} = \frac{\text{True Positives (TP)} + \text{True Negatives (TN)}}{\text{Grand Total}}

Accuracy with Prevalence

Definition: Accuracy can also be expressed using the prevalence of the disease, sensitivity, and specificity. This formula gives the overall probability that the test result (positive or negative) is correct, accounting for the prevalence of the disease in the population.

Formula:

Accuracy=(Prevalence×Sensitivity)+((1Prevalence)×Specificity)\text{Accuracy} = (\text{Prevalence} \times \text{Sensitivity}) + ( (1 - \text{Prevalence}) \times \text{Specificity})

This formula combines both correct positive and correct negative classifications, weighted by how common the disease is in the population (prevalence). It's useful in situations where the disease prevalence is skewed, as it gives a more realistic overall performance measure of the test.