Sensitivity is calculated as the proportion of true positives (patients who have the disease and test positive) out of all patients who have the disease. Specificity is calculated as the proportion of true negatives (patients who do not have the disease and test negative) out of all patients who do not have the disease. These calculations can be summarized as: