What this is for: Diagnostic-test metrics (sensitivity, specificity, predictive values, likelihood ratios), risk measures with NNT, and incidence/prevalence rates from 2×2 tables and population data.
The formula: sensitivity = TP ÷ (TP + FN); RR = risk(exposed) ÷ risk(unexposed); NNT = 1 ÷ ARR
How to use:
- In Diagnostic Test, fill the 2×2 table — TP, FN, FP and TN — and read sensitivity, specificity, PPV, NPV, accuracy, likelihood ratios and Youden J.
- Enter a new prevalence as a proportion (for example 0.02 for 2%) to see the same test's PPV and NPV at that prevalence.
- In Risk & NNT, enter event and no-event counts for the exposed/treated and unexposed/control rows and read RR with its 95% confidence interval, OR, ARR, RRR and the rounded-up NNT.
- In Rates, enter new cases, population at risk, observation years and the rate multiplier for incidence; existing cases and population for prevalence; and people ill and people exposed for attack rate.
Diagnostic Test — Sensitivity, Specificity, Predictive Values & Likelihood Ratios
Fill the 2×2 table from your validation study; every measure updates. Section B re-scores the same test at a different prevalence with Bayes' rule.
Risk — Relative Risk, Odds Ratio, ARR, RRR & NNT
Rows: exposed (treated) and unexposed (control); columns: event and no event. The RR confidence interval uses the standard log method. NNT is always rounded UP.
Rates — Incidence, Prevalence & Attack Rate
Incidence needs person-time: population × years of observation. Prevalence is a snapshot. Attack rate is outbreak language for cumulative incidence among people exposed.
Download the Epidemiology & Diagnostic Tests workbook (.xlsx)