31.3 The Physician as Researcher II: Biostatistics (Data Types, Distributions, Central Tendency and Dispersion, Confidence Intervals, Hypothesis Testing and Test Selection) and Screening Tests (Validity, Predictive Values, Likelihood Ratios, Biases and Program Criteria)

Key Takeaways

  • In a positively skewed distribution the mean is greater than the median, which is greater than the mode, so the median and interquartile range describe the data best.

  • A 95% confidence interval that excludes the null value (0 for a difference, 1 for a ratio) corresponds to a statistically significant result at p below 0.05.

  • Sensitivity is TP divided by (TP plus FN), specificity is TN divided by (TN plus FP); a highly sensitive negative test rules out (SnNOut) and a highly specific positive test rules in (SpPIn).

  • As prevalence falls, the positive predictive value falls while sensitivity and specificity stay the same.

  • Serial testing (positive on both tests) raises specificity, while parallel testing (positive on either test) raises sensitivity.

Last updated: October 2026

Why this area matters

The TOS asks you to compute rates and ratios and apply biostatistics to research findings. Screening programs such as newborn screening, cervical screening, TB case-finding and NCD risk screening depend on understanding test performance. Many board items are short calculations from a 2x2 table, or a choice of the correct statistical test.

Data Types and Probability Distributions

Selecting appropriate statistical methods requires precise identification of variable types and underlying distribution shapes.

Scales of Measurement

  1. Qualitative (Categorical):
    • Nominal: Unordered categories without intrinsic mathematical hierarchy (e.g., biological sex, ABO blood type, mortality status [alive/dead]).
    • Ordinal: Ordered categorical ranks with non-standardized or unequal intervals between steps (e.g., cancer staging I-IV, Glasgow Coma Scale, NYHA heart failure classes, Likert pain scales).
  2. Quantitative (Numerical):
    • Discrete: Integer counts that cannot take fractional values (e.g., number of clinic visits, lifetime pregnancies, discrete seizure episodes).
    • Continuous: Real numbers along an unbroken continuum with meaningful decimal fractions (e.g., serum creatinine, blood pressure, core body temperature).

The Gaussian (Normal) Distribution

The normal distribution is a symmetrical, unimodal, bell-shaped distribution where the three measures of central tendency coincide exactly:

Mean=Median=Mode\text{Mean} = \text{Median} = \text{Mode}

The Empirical Rule (68-95-99.7 Rule)

In a perfectly Gaussian distribution governed by mean (μ\mu) and standard deviation (σ\sigma):

  • μ±1σ\mu \pm 1\sigma contains 68.27%68.27\% of all observations.
  • μ±1.96σ\mu \pm 1.96\sigma contains exactly 95.00%95.00\% of observations (often approximated as μ±2σ\mu \pm 2\sigma containing 95.45%95.45\%).
  • μ±3σ\mu \pm 3\sigma contains 99.73%99.73\% of all observations.

Skewed Distributions and Measures of Central Tendency

When data violate normality, extreme outliers pull distribution parameters unevenly:

  • Positively Skewed (Right-Skewed):
    • The distribution has a prolonged tail extending to the positive (right) side.
    • Outliers pull the mean upward: Mode<Median<Mean\text{Mode} < \text{Median} < \text{Mean}.
    • Preferred summary metrics: Median and Interquartile Range (IQR = Q3 - Q1), which are resistant to extreme outliers.
    • Clinical examples: Length of hospital stay, ICU ventilation hours, serum viral loads, annual healthcare expenditures.
  • Negatively Skewed (Left-Skewed):
    • The distribution has a prolonged tail extending to the negative (left) side.
    • Outliers pull the mean downward: Mean<Median<Mode\text{Mean} < \text{Median} < \text{Mode}.
    • Clinical example: Age at death from natural causes in developed nations.

Measures of dispersion, standard error and confidence intervals

  • Range: maximum minus minimum.
  • Interquartile range: the 25th to 75th percentile, used with the median for skewed data.
  • Variance and standard deviation (SD): spread around the mean, used for normally distributed data.
  • Coefficient of variation: SD divided by the mean, used to compare variability across different scales.
  • Standard error of the mean: SD divided by the square root of n. It measures the precision of the sample mean and shrinks as the sample grows.
  • The 95% confidence interval is about the estimate plus or minus 1.96 standard errors. It is the range that would contain the true population value in 95% of repeated samples.
    • Narrow intervals mean precise estimates.
    • If the 95% CI of a difference includes 0, or the CI of a ratio (RR, OR) includes 1, the result is not statistically significant at the 0.05 level.
  • Statistical significance is not clinical importance. A tiny effect can be significant in a huge sample, so look at the effect size and the CI.

Hypothesis Testing, Decision Errors & Statistical Power

Hypothesis testing evaluates whether empirical data provide sufficient evidence to reject a baseline assertion.

  • Null Hypothesis (H0H_0): States that there is no true difference between study groups or no association between exposure and outcome (H0:μ1=μ2H_0: \mu_1 = \mu_2).
  • Alternative Hypothesis (HaH_a or H1H_1): States that a true difference or association exists (Ha:μ1≠μ2H_a: \mu_1 \ne \mu_2).

The Error Matrix in Hypothesis Testing

Reality in NatureAccept Null Hypothesis (H0H_0 Not Rejected)Reject Null Hypothesis (H0H_0 Rejected)
Null Hypothesis is TRUE (No difference)Correct Decision: True Negative (1−α1 - \alpha)Type I Error (α\alpha): False Positive
Null Hypothesis is FALSE (True difference)Type II Error (β\beta): False NegativeCorrect Decision: Statistical Power (1−β1 - \beta)
  • Type I Error (α\alpha): Rejecting the null hypothesis when it is genuinely true (finding a difference that does not exist). The significance threshold is conventionally set at α=0.05\alpha = 0.05 (5%). The pp-value represents the exact probability of obtaining a test statistic as extreme as or more extreme than observed, assuming H0H_0 is true. If p<αp < \alpha, H0H_0 is rejected.
  • Type II Error (β\beta): Failing to reject the null hypothesis when it is genuinely false (failing to detect a real difference). Conventionally set at β=0.20\beta = 0.20 (20%).
  • Statistical Power (1−β1 - \beta): The probability of correctly rejecting a false null hypothesis (detecting a true treatment difference). The acceptable standard is ≥80%\ge 80\% (0.800.80).

Determinants of Statistical Power

Statistical power is mathematically increased by:

  1. Increasing sample size (NN): Enlarges denominator degrees of freedom and narrows standard error.
  2. Increasing effect size: A large difference between treatment arms is easier to detect than a subtle one.
  3. Decreasing measurement variance / standard deviation (σ\sigma): Minimizes background biological noise.
  4. Increasing the alpha threshold (α\alpha): Moving α\alpha from 0.01 to 0.05 increases power, but raises the risk of Type I errors.

Inferential Statistical Test Selection Grid

Choosing the correct bivariate statistical test depends on the scale of measurement, data distribution, and group independence:

Dependent Variable ScaleDistribution AssumptionStudy Design / Number of Comparison GroupsCorrect Statistical Test
ContinuousNormal (Parametric)2 independent groupsTwo-sample Independent Student's t-test
ContinuousNormal (Parametric)2 paired / matched groups (pre- vs. post-test)Paired Student's t-test
ContinuousNormal (Parametric)≥3\ge 3 independent groupsOne-way Analysis of Variance (ANOVA)
Continuous / OrdinalSkewed (Non-parametric)2 independent groupsMann-Whitney U Test (Wilcoxon Rank-Sum)
Continuous / OrdinalSkewed (Non-parametric)2 paired / matched groupsWilcoxon Signed-Rank Test
Continuous / OrdinalSkewed (Non-parametric)≥3\ge 3 independent groupsKruskal-Wallis Test
Categorical / ProportionsExpected counts ≥5\ge 5 in all cells2 or more independent groups (contingency table)Chi-Square (χ2\chi^2) Test of Independence
Categorical / ProportionsExpected count <5< 5 in any cell2x2 table with small sample sizeFisher's Exact Test
Categorical / ProportionsPaired binary data2 paired groups (e.g., discordant pairs pre/post)McNemar Test

Correlation and Regression

  • Pearson Correlation Coefficient (rr): Quantifies the linear association between two continuous, normally distributed variables. Ranges from −1.0-1.0 (perfect inverse linear correlation) to +1.0+1.0 (perfect direct linear correlation), with 0.00.0 indicating no linear correlation.
  • Spearman Rank Correlation (ρ\rho): Non-parametric equivalent of Pearson correlation, evaluating monotonic relationships between non-normally distributed or ordinal variables.
  • Coefficient of Determination (R2R^2): Calculated as r2r^2; represents the proportion of total variance in the dependent variable explained by the independent variable.
  • Linear vs. Logistic Regression: Linear regression models continuous outcome variables (y=β0+β1xy = \beta_0 + \beta_1 x). In contrast, Logistic Regression models dichotomous binary outcomes (e.g., survival vs. death; cured vs. relapsed) and generates Adjusted Odds Ratios controlling for multiple clinical confounders.

Screening Test Validity, Predictive Values & Likelihood Ratios

Screening identifies unrecognized disease in asymptomatic individuals to allow early therapeutic intervention.

Validity Metrics: Sensitivity and Specificity

Diagnostic Test ResultTrue Disease Positive (D+D+)True Disease Negative (D−D-)Predictive Value Formula
Test Positive (T+T+)aa (True Positive, TP)bb (False Positive, FP)PPV=aa+b\text{PPV} = \frac{a}{a + b}
Test Negative (T−T-)cc (False Negative, FN)dd (True Negative, TN)NPV=dc+d\text{NPV} = \frac{d}{c + d}
Test Validity MetricSensitivity=aa+c\text{Sensitivity} = \frac{a}{a + c}Specificity=db+d\text{Specificity} = \frac{d}{b + d}Accuracy=a+da+b+c+d\text{Accuracy} = \frac{a + d}{a + b + c + d}
  • Sensitivity (True Positive Rate): The probability that a diseased individual tests positive: TPTP+FN\frac{TP}{TP + FN}.
    • Mnemonic: SnNOut: A test with high Sensitivity, when Negative, rules Out the disease.
    • Clinical application: Initial public health screening where missing a case carries catastrophic consequences (e.g., ELISA screening for HIV; rapid molecular testing for presumptive tuberculosis; neonatal metabolic screening under RA 9288).
  • Specificity (True Negative Rate): The probability that a non-diseased individual tests negative: TNTN+FP\frac{TN}{TN + FP}.
    • Mnemonic: SpPIn: A test with high Specificity, when Positive, rules In the disease.
    • Clinical application: Confirmatory diagnostic verification before initiating toxic, invasive, or stigmatizing therapies (e.g., the confirmatory rapid HIV diagnostic algorithm, which replaced the Western blot in the Philippines; histopathological biopsy for malignancy).

Predictive Values and the Impact of Population Prevalence

  • Positive Predictive Value (PPV): The probability that an individual with a positive test result genuinely possesses the disease: aa+b\frac{a}{a + b}.
  • Negative Predictive Value (NPV): The probability that an individual with a negative test result is genuinely free of the disease: dc+d\frac{d}{c + d}.

Cardinal Epidemiologic Principle: Prevalence Dependence

  • Sensitivity and Specificity are intrinsic characteristics of the test methodology itself; they do not change when the test is applied to populations with differing disease prevalence.
  • PPV and NPV are fundamentally dependent on disease prevalence:
    • As population prevalence increases: PPV increases markedly, while NPV decreases slightly.
    • As population prevalence decreases: PPV plummets (meaning the vast majority of positive tests represent false positives), while NPV approaches 100%.

Likelihood Ratios (LR)

Likelihood ratios quantify the clinical diagnostic power of a test result independently of disease prevalence:

  • Positive Likelihood Ratio (LR+): The ratio of the probability of a positive test in a diseased individual compared to a non-diseased individual:

LR+=Sensitivity1−Specificity=True Positive RateFalse Positive RateLR+ = \frac{\text{Sensitivity}}{1 - \text{Specificity}} = \frac{\text{True Positive Rate}}{\text{False Positive Rate}}

  • Negative Likelihood Ratio (LR-): The ratio of the probability of a negative test in a diseased individual compared to a non-diseased individual:

LR−=1−SensitivitySpecificity=False Negative RateTrue Negative RateLR- = \frac{1 - \text{Sensitivity}}{\text{Specificity}} = \frac{\text{False Negative Rate}}{\text{True Negative Rate}}

  • Clinical Utility Thresholds:
    • LR+>10LR+ > 10: Substantially increases disease probability; excellent for ruling in disease.
    • LR−<0.1LR- < 0.1: Substantially decreases disease probability; excellent for ruling out disease.
    • LR=1.0LR = 1.0: Completely uninformative; post-test probability equals pre-test probability.
    • Mathematical translation: Post-test Odds=Pre-test Odds×LR\text{Post-test Odds} = \text{Pre-test Odds} \times LR.

Screening Biases: Methodological Pitfalls

Apparent survival improvements attributed to screening initiatives are frequently artifacts of methodological bias:

  1. Lead-Time Bias: Occurs when screening identifies disease earlier in its subclinical phase without altering the natural history or final time of death. The chronological duration between diagnosis and death appears prolonged, creating the false illusion of therapeutic efficacy.
  2. Length-Time Bias (Prognostic Selection Bias): Screening tests preferentially detect indolent, slowly progressive disease variants because their asymptomatic preclinical phase is prolonged. Aggressive, rapidly fatal malignancies have brief preclinical phases and emerge between screening rounds (interval cancers). Consequently, screened cohorts demonstrate spuriously superior survival rates.
  3. Overdiagnosis Bias: The detection and treatment of indolent pseudodisease—abnormalities meeting microscopic or radiographic criteria for disease that would never have produced symptoms or shortened life expectancy during the patient's natural lifespan (e.g., low-grade prostate carcinoma, thyroid microcarcinomas).
  4. Volunteer Bias (Self-Selection Bias): Individuals who voluntarily participate in screening programs typically possess higher health literacy, healthier lifestyle behaviors, and greater therapeutic adherence than non-participants, confounding outcome comparisons.

More on screening tests and programs

  • ROC curve: a plot of sensitivity against 1 minus specificity across cut-offs. The area under the curve measures overall accuracy (1.0 is perfect and 0.5 is useless).
    • Lowering the cut-off for positivity raises sensitivity and lowers specificity, as with a lower fasting glucose threshold.
  • Combining tests:
    • Serial (sequential) testing: positive only if both tests are positive. It increases specificity and is used to confirm diagnoses, as in the HIV testing algorithm.
    • Parallel testing: positive if either test is positive. It increases sensitivity and is used when missing a case is dangerous.
  • Reliability (precision) is the consistency of repeated results, between observers (kappa statistic) or within one observer. Validity is closeness to the truth. A test can be reliable but not valid.
  • Wilson-Jungner criteria for a screening program:
    • the condition is an important health problem;
    • it has a recognizable latent or early stage;
    • an acceptable, accurate test exists;
    • effective treatment for early disease is available;
    • facilities for diagnosis and treatment exist;
    • the policy on whom to treat is agreed;
    • the cost is balanced against overall spending;
    • case-finding is continuous.
  • Examples in the Philippines: newborn screening, VIA or HPV cervical screening, BP and glucose screening under PhilPEN, and TB screening of contacts and high-risk groups.
Loading diagram...
Decision Tree for Selecting Bivariate Inferential Statistical Tests
Test Your Knowledge

A clinical investigator measures the total length of hospital stay (in days) among 1,200 pediatric patients admitted with acute bronchiolitis. The distribution of hospital stay demonstrates marked rightward (positive) skewness, with most children discharged within 3 days but a small subset requiring up to 40 days of intensive respiratory support. Which relationship among the measures of central tendency correctly describes these clinical data, and which statistical test is most appropriate to compare length of stay between vaccinated and unvaccinated cohorts?

A

Mode < Mean < Median; Paired Student's t-test

B

Mean < Median < Mode; Two-sample independent Student's t-test

C

Mode < Median < Mean; Mann-Whitney U test (Wilcoxon rank-sum test)

D

Mean = Median = Mode; One-way Analysis of Variance (ANOVA)

Test Your Knowledge

A newly validated diagnostic serology test for a viral infection demonstrates a sensitivity of 90% and a specificity of 90%. A clinician administers this diagnostic test across two distinct clinical environments: Setting A (an inpatient fever ward with an infection prevalence of 50%) and Setting B (an asymptomatic outpatient community clinic with an infection prevalence of 1%). Which of the following observations correctly reflects the performance of this test when moving from Setting A to Setting B?

A

Positive predictive value decreases substantially while sensitivity and specificity remain unchanged

B

Sensitivity increases while specificity decreases

C

Negative predictive value decreases substantially

D

Both positive predictive value and negative predictive value remain identical because sensitivity and specificity are fixed

Test Your Knowledge

A new rapid test for TB infection is evaluated in 1,000 people: 100 have the disease and 900 do not. The test is positive in 90 of the diseased and in 90 of the non-diseased. What are the sensitivity, specificity and positive predictive value?

A

Sensitivity 50%, specificity 90%, PPV 90%

B

Sensitivity 90%, specificity 90%, PPV 90%

C

Sensitivity 90%, specificity 90%, PPV 50%

D

Sensitivity 90%, specificity 50%, PPV 10%

Sections you finish are checked off in the contents.