SPSS Sensitivity Specificity Calculator

Analyze four diagnostic counts, predictive values, ratios, and accuracy instantly. Export summary tables with ease. Compare classifier results with simple validated diagnostic performance equations.

Enter SPSS Crosstab Counts

Formula Used

Sensitivity = TP / (TP + FN)

Specificity = TN / (TN + FP)

Positive Predictive Value = TP / (TP + FP)

Negative Predictive Value = TN / (TN + FN)

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

Balanced Accuracy = (Sensitivity + Specificity) / 2

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

LR+ = Sensitivity / (1 - Specificity)

LR- = (1 - Sensitivity) / Specificity

Diagnostic Odds Ratio = (TP × TN) / (FP × FN)

MCC = ((TP × TN) - (FP × FN)) / √((TP + FP)(TP + FN)(TN + FP)(TN + FN))

Youden Index = Sensitivity + Specificity - 1

How to Use This Calculator

Open your SPSS crosstab or classification table. Find the four count cells. Enter true positives, false positives, true negatives, and false negatives. Select a confidence level. Choose decimal places. Press calculate. The result appears below the header and above the form. Use CSV for spreadsheets. Use PDF for a quick report.

Example Data Table

Actual Status Test Positive Test Negative Total
Actual Positive 80 TP 18 FN 98
Actual Negative 12 FP 90 TN 102
Total 92 108 200

About Diagnostic Calculator

This calculator helps you review a diagnostic table from SPSS or any similar analysis tool. It uses the four cell counts. They are true positives, false positives, true negatives, and false negatives. From those values, it builds a broad performance profile. The results describe how well a test detects cases and excludes non cases.

Why Sensitivity Matters

Sensitivity measures the share of real positive cases found by the test. A high value is useful when missed cases are costly. Screening programs often prefer high sensitivity. The tool also reports the false negative rate. That rate shows how often true cases are missed. Together, both values explain detection strength.

Why Specificity Matters

Specificity measures the share of real negative cases correctly ruled out. A high value helps reduce false alarms. Confirmatory tests usually need strong specificity. The false positive rate is shown with it. This makes the trade off easier to understand. You can compare both sides of classification quality.

Predictive Values and Prevalence

Positive predictive value shows the chance that a positive result is truly positive. Negative predictive value shows the chance that a negative result is truly negative. These values depend on case mix. When disease prevalence changes, predictive values can change too. The calculator displays prevalence from your table.

Advanced Summary Measures

Accuracy can look strong when groups are unbalanced. So the calculator also gives balanced accuracy, Youden index, F1 score, likelihood ratios, diagnostic odds ratio, and Matthews correlation coefficient. These measures add depth. They help analysts judge the model from several angles. Likelihood ratios are especially useful for clinical interpretation.

Using Results Carefully

No single number proves that a test is perfect. Review the purpose of the study first. Then compare sensitivity, specificity, and predictive values. Check the sample size behind each result. Small tables can create unstable percentages. Confidence intervals are included as approximate Wilson intervals. Use them as a guide, not as final proof.

Good Reporting Practice

Report the original four counts with every summary. This keeps the analysis transparent. Export the CSV for spreadsheets. Use the PDF option for a quick record. If your SPSS table uses reversed coding, swap positive and negative groups before calculating. Clean labels reduce reporting errors.

FAQs

What is sensitivity?

Sensitivity is the proportion of actual positive cases correctly detected. It equals true positives divided by true positives plus false negatives.

What is specificity?

Specificity is the proportion of actual negative cases correctly ruled out. It equals true negatives divided by true negatives plus false positives.

Can I use SPSS crosstab values?

Yes. Use the four cell counts from your SPSS crosstab. Match the positive and negative labels carefully before entering the numbers.

Why are predictive values included?

Predictive values explain the chance that a positive or negative result is correct. They are useful for practical interpretation of test results.

What does LR+ mean?

LR+ is the positive likelihood ratio. Higher values show that a positive test result is more convincing for the target condition.

What does LR- mean?

LR- is the negative likelihood ratio. Lower values show that a negative test result is more convincing for ruling out the condition.

Why use balanced accuracy?

Balanced accuracy averages sensitivity and specificity. It helps when positive and negative groups have very different sample sizes.

What do confidence intervals show?

Confidence intervals show an approximate range for selected percentages. Wider intervals often mean smaller samples or less stable estimates.

Related Calculators

Paver Sand Bedding Calculator (depth-based)Paver Edge Restraint Length & Cost CalculatorPaver Sealer Quantity & Cost CalculatorExcavation Hauling Loads Calculator (truck loads)Soil Disposal Fee CalculatorSite Leveling Cost CalculatorCompaction Passes Time & Cost CalculatorPlate Compactor Rental Cost CalculatorGravel Volume Calculator (yards/tons)Gravel Weight Calculator (by material type)

Important Note: All the Calculators listed in this site are for educational purpose only and we do not guarentee the accuracy of results. Please do consult with other sources as well.