# 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.

## 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**:

### 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**:

### 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**:

### 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**:

### 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**:

### 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**:

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 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**:

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.