11.1 Biostatistical Principles, Hypothesis Testing & Power

Key Takeaways

  • Variables are categorized into nominal (unordered categories), ordinal (ranked categories without equal intervals), and continuous (interval without true zero vs ratio with absolute true zero); statistical test selection is strictly governed by variable scale and distribution normality.
  • Parametric tests (Student's t-test, ANOVA) require continuous, normally distributed data with equal variances; non-parametric tests (Mann-Whitney U, Wilcoxon signed-rank, Kruskal-Wallis) evaluate ranked or non-normally distributed data.
  • Type I error (alpha) represents rejecting a true null hypothesis (false positive, typically set at 0.05), whereas Type II error (beta) represents failing to reject a false null hypothesis (false negative, typically 0.10-0.20); statistical power (1 - beta) is the probability of correctly identifying a true therapeutic difference.
  • Statistical significance (p < alpha or 95% Confidence Intervals excluding 0 for differences or 1 for ratios) does not guarantee clinical significance, which requires exceeding the pre-established Minimum Clinically Important Difference (MCID).
  • Absolute Risk Reduction (ARR = |CER - EER|) determines the Number Needed to Treat (NNT = 1/ARR, always rounded UP to the next integer), while Absolute Risk Increase (ARI = EER - CER) determines the Number Needed to Harm (NNH = 1/ARI, always rounded DOWN to the nearest integer).
Last updated: September 2026

Biostatistical Principles, Hypothesis Testing & Power

Executive Summary: Interpreting clinical research requires a rigorous understanding of biostatistical principles. Ambulatory care pharmacists must accurately identify variable classifications, select appropriate parametric or non-parametric statistical tests, formulate null and alternative hypotheses, control for Type I and Type II errors, evaluate statistical power, and interpret 95% confidence intervals, survival analyses, and quantitative risk metrics (ARR, RRR, NNT, NNH) to make evidence-based formulary and patient care decisions.


1. Classification of Clinical Variables & Measurement Scales

The mathematical scale of clinical variables dictates which descriptive statistics and inferential statistical tests can be validly applied. Variables are divided into categorical (qualitative) and continuous (quantitative) scales:

Categorical (Discrete) Variables

  1. Nominal Variables: Data organized into mutually exclusive categories with no inherent order, ranking, or quantitative value.
    • Examples: All-cause mortality (dead vs. alive), biological sex (male vs. female), blood type (A, B, AB, O), smoking status (smoker vs. non-smoker).
    • Binary / Dichotomous: A nominal variable with exactly two categories (e.g., stroke vs. no stroke).
    • Descriptive Metrics: Frequencies, proportions, percentages, mode.
  2. Ordinal Variables: Data organized into ordered categories or ranks, but the mathematical distances between successive intervals are unequal and cannot be quantified.
    • Examples: New York Heart Association (NYHA) functional class (Class I, II, III, IV), visual analog pain scales (0–10), Likert survey responses (strongly disagree to strongly agree), cancer staging (Stage I–IV), asthma severity categories (intermittent, mild persistent, moderate persistent, severe persistent).
    • Descriptive Metrics: Median, interquartile range (IQR), mode. Note: Calculating an arithmetic mean for ordinal data is mathematically invalid because the numerical intervals are not standardized.

Continuous (Quantitative / Numerical) Variables

  1. Interval Variables: Data measured on a continuous numerical scale with equal distances between units, but lacking a true absolute zero point (zero does not represent the complete absence of the property).
    • Examples: Temperature measured in degrees Celsius (°C) or Fahrenheit (°F) (0°C does not mean "no temperature").
  2. Ratio Variables: Data measured on a continuous numerical scale with equal intervals AND a true, meaningful absolute zero point (zero represents complete absence of the property).
    • Examples: Systolic and diastolic blood pressure (mmHg), serum creatinine (mg/dL), hemoglobin A1c (%), body weight (kg), resting heart rate (bpm), area under the curve (AUC), total cholesterol (mg/dL).
    • Descriptive Metrics: Mean, standard deviation (SD) for normally distributed data; median, IQR for skewed continuous data.
Variable TypeScale PropertiesEqual Intervals?True Absolute Zero?Central Tendency MetricClinical Pharmacotherapy Example
NominalNamed categories without rankingNoNoModeMyocardial infarction (Yes/No), CYP2C19 genotype (*1/*1, *1/*2)
OrdinalOrdered ranks, qualitative spacingNoNoMedian, IQRNYHA Heart Failure Class (I–IV), Pain Scale (0–10)
IntervalOrdered numeric units, arbitrary zeroYesNoMean (SD) or Median (IQR)Body temperature in °C or °F
RatioOrdered numeric units, true absolute zeroYesYesMean (SD) or Median (IQR)Systolic blood pressure (mmHg), Serum creatinine (mg/dL)
Loading diagram...
Biostatistical Variable Classification & Test Selection Hierarchy

2. Statistical Test Selection: Parametric vs. Non-Parametric Framework

Selecting the correct inferential statistical test depends on three criteria: (1) the measurement scale of the dependent variable, (2) the distribution of the data (normal vs. non-normal/skewed), and (3) the number and relationship of study groups (independent vs. paired/matched).

Parametric Tests (Normal Distribution Required)

Parametric tests evaluate population parameters (means) and assume:

  • The dependent variable is continuous (interval or ratio).
  • The data follows a normal (Gaussian) bell-shaped distribution.
  • The groups exhibit homogeneity of variance (equal variances across groups).
  1. Two-Sample Independent (Unpaired) Student's t-test: Compares the means of a continuous, normally distributed variable between two independent, unrelated groups (e.g., mean change in SBP comparing Drug A group vs. Placebo group).
  2. Paired Student's t-test: Compares the means of a continuous, normally distributed variable between two related, dependent groups or matched timepoints within the same subjects (e.g., mean baseline SBP vs. mean post-treatment SBP in the same patient cohort).
  3. One-Way Analysis of Variance (ANOVA): Compares the means of a continuous, normally distributed variable across three or more independent groups (e.g., comparing mean HbA1c reductions among Metformin monotherapy vs. Metformin + SGLT2i vs. Metformin + GLP-1 RA vs. Placebo). If ANOVA yields $p < 0.05$, post-hoc pairwise testing (e.g., Tukey, Bonferroni) is required to determine which specific pairs differ significantly.
  4. Repeated Measures ANOVA: Compares means across three or more timepoints in the same subject cohort (e.g., tracking eGFR at baseline, 6 months, 12 months, and 24 months).

Non-Parametric Tests (Distribution-Free / Skewed / Ordinal)

Non-parametric tests analyze ranked data and make no assumptions regarding the underlying shape of data distribution. They are utilized when: (1) continuous data is skewed/non-normally distributed, (2) data is ordinal (ranked), or (3) sample sizes are small.

  1. Mann-Whitney U Test (Wilcoxon Rank-Sum Test): Evaluates differences in medians/ranks of an ordinal or skewed continuous variable between two independent groups (the non-parametric equivalent of the unpaired t-test; e.g., comparing median visual analog pain scores between Ibuprofen vs. Acetaminophen).
  2. Wilcoxon Signed-Rank Test: Evaluates differences in medians/ranks between two paired, dependent groups or repeated measures in the same subjects (the non-parametric equivalent of the paired t-test; e.g., comparing median baseline pain score to 4-week post-treatment pain score within the same cohort).
  3. Kruskal-Wallis One-Way ANOVA: Evaluates differences in ranks across three or more independent groups (the non-parametric equivalent of one-way ANOVA; e.g., comparing median NYHA class improvements across three different heart failure medications).
  4. Friedman Test: Evaluates differences across three or more repeated measures in the same subjects (the non-parametric equivalent of repeated measures ANOVA).

Categorical (Nominal) Tests of Independence & Proportions

When evaluating frequencies and proportions of categorical/nominal outcomes:

  1. Pearson Chi-Square ($\chi^2$) Test: Compares observed frequencies versus expected frequencies in categorical data across two or more independent groups ($2 \times 2$ or $R \times C$ contingency tables). Core Statistical Assumption: The expected cell count must be $\ge 5$ in at least 80% of cells (and $\ge 1$ in all cells).
  2. Fisher's Exact Test: Exact test used for analyzing $2 \times 2$ contingency tables when sample sizes are small or when any expected cell count is $< 5$. It calculates exact binomial probabilities rather than approximating via the chi-square distribution.
Variable Scale & Distribution2 Independent Groups2 Paired / Dependent Groups$\ge 3$ Independent Groups$\ge 3$ Paired / Repeated Measures
Continuous, Normal (Parametric)Unpaired Student's t-testPaired Student's t-testOne-Way ANOVARepeated Measures ANOVA
Continuous Skewed or Ordinal (Non-Parametric)Mann-Whitney U (Wilcoxon Rank-Sum)Wilcoxon Signed-Rank TestKruskal-Wallis ANOVAFriedman Test
Nominal / Categorical (Proportions)Chi-Square ($\chi^2$) Test (or Fisher's Exact if cell $< 5$)McNemar's TestChi-Square ($\chi^2$) $R \times C$ TestCochran's Q Test

3. Hypothesis Testing, Error Dynamics & Statistical Power

Hypothesis testing provides the formal probabilistic structure to determine whether observed clinical differences between study arms represent genuine pharmacologic effects or random sampling error.

Formulating Statistical Hypotheses

  • Null Hypothesis ($H_0$): States that there is no true difference or association between the study interventions. Any observed difference in sample data is due entirely to random chance ($\mu_1 = \mu_2$, or $RR = 1.0$, or $HR = 1.0$, or $\text{Difference} = 0$).
  • Alternative Hypothesis ($H_1$ or $H_a$): States that there is a true difference or association between interventions that cannot be explained by chance alone.
    • Two-Tailed (Non-Directional): Evaluates if Drug A is simply different from Drug B ($\mu_1 \ne \mu_2$; standard in clinical trials).
    • One-Tailed (Directional): Evaluates if Drug A is strictly superior to Drug B ($\mu_1 > \mu_2$; rarely acceptable without rigorous pre-trial justification).
┌────────────────────────────────────────────────────────────────────────┐
│                     THE 2 x 2 DECISION MATRIX                          │
├──────────────────────────┬────────────────────────┬────────────────────┤
│ STATISTICAL DECISION     │ H0 IS ACTUALLY TRUE    │ H0 IS ACTUALLY FALSE│
│                          │ (No True Drug Effect)  │ (True Drug Effect) │
├──────────────────────────┼────────────────────────┼────────────────────┤
│ Reject H0                │ TYPE I ERROR (alpha)   │ CORRECT DECISION   │
│ (Declare Significant)    │ False Positive         │ Power = 1 - beta   │
├──────────────────────────┼────────────────────────┼────────────────────┤
│ Fail to Reject H0        │ CORRECT DECISION       │ TYPE II ERROR (beta│
│ (Declare Non-Significant)│ Confidence = 1 - alpha │ False Negative     │
└──────────────────────────┴────────────────────────┴────────────────────┘

Type I Error ($\alpha$) vs. Type II Error ($\beta$)

  1. Type I Error ($\alpha$, False Positive): The error of rejecting the null hypothesis when it is actually true. The researcher concludes that a drug works when, in reality, it has no true effect. The alpha level ($\alpha$) is the pre-specified threshold of tolerable Type I error, universally set at $\alpha = 0.05$ (5% risk of false positive).
  2. Type II Error ($\beta$, False Negative): The error of failing to reject the null hypothesis when it is actually false. The researcher concludes there is no significant drug effect when, in reality, a true therapeutic difference exists. The beta level ($\beta$) is typically preset at $\beta = 0.10$ to $0.20$ (10% to 20% risk of false negative).

Statistical Power ($1 - \beta$)

Statistical Power is the mathematical probability of correctly rejecting a false null hypothesis (i.e., detecting a true therapeutic difference when one genuinely exists). Power is calculated as $1 - \beta$, universally targeted at $\ge 80\%$ or $\ge 90\%$ in pivotal clinical trials.

Four Determinants of Statistical Power

  1. Sample Size ($N$): Increasing sample size decreases standard error and increases power (Power $\propto \sqrt{N}$). Underpowered trials occur primarily due to inadequate enrollment.
  2. Effect Size ($\Delta$): Larger anticipated differences between treatments (e.g., 20 mmHg SBP drop vs. 2 mmHg drop) require smaller sample sizes and increase power.
  3. Alpha Level ($\alpha$): Selecting a more lenient alpha (e.g., $\alpha = 0.05$ vs. $\alpha = 0.01$) increases power, though it inflates the risk of Type I error.
  4. Data Variability (Variance / $\sigma$): Lower variance or standard deviation in the outcome measurement increases power.

4. P-Values, 95% Confidence Intervals & Clinical vs. Statistical Significance

The P-Value

The p-value is the probability of obtaining study results as extreme as, or more extreme than, the observed data, assuming that the null hypothesis ($H_0$) is true.

  • If $p < \alpha$ (typically $p < 0.05$), the result is deemed statistically significant $\to$ Reject $H_0$.
  • If $p \ge \alpha$ (typically $p \ge 0.05$), the result is not statistically significant $\to$ Fail to reject $H_0$.
  • Critical Limitation: The p-value does NOT quantify the magnitude of clinical benefit, nor does it represent the probability that the hypothesis is true or false.

95% Confidence Intervals (CI)

A 95% Confidence Interval provides a range of values within which the true population parameter is expected to fall with 95% certainty if the experiment were repeated indefinitely.

The Rules of Statistical Significance for 95% Confidence Intervals

  1. Difference Metrics (Mean Difference, ARR, Risk Difference):
    • If the 95% CI crosses or includes ZERO (0.0) $\to$ The result is NOT statistically significant ($p \ge 0.05$).
    • Example: SBP difference $-2.4 \text{ mmHg}$ [95% CI $-5.1$ to $+0.3$] includes 0 $\to$ Non-significant.
    • If the 95% CI EXCLUDES ZERO (0.0) $\to$ The result is statistically significant ($p < 0.05$).
    • Example: SBP difference $-4.8 \text{ mmHg}$ [95% CI $-7.2$ to $-2.4$] excludes 0 $\to$ Statistically significant.
  2. Ratio Metrics (Relative Risk [RR], Odds Ratio [OR], Hazard Ratio [HR]):
    • If the 95% CI crosses or includes ONE (1.0) $\to$ The result is NOT statistically significant ($p \ge 0.05$).
    • Example: Hazard Ratio 0.85 [95% CI 0.70 to 1.04] includes 1.0 $\to$ Non-significant.
    • If the 95% CI EXCLUDES ONE (1.0) $\to$ The result is statistically significant ($p < 0.05$).
    • Example: Hazard Ratio 0.72 [95% CI 0.58 to 0.89] excludes 1.0 $\to$ Statistically significant.
  3. Precision: The width of the CI reflects sample size and measurement variance. A narrow CI (e.g., HR 0.78 [95% CI 0.72–0.84]) denotes high precision; a wide CI (e.g., HR 0.78 [95% CI 0.42–1.45]) indicates low precision and wide clinical uncertainty.

Statistical Significance vs. Clinical Significance

  • Statistical Significance: Demonstrates that the observed mathematical difference is unlikely due to chance alone ($p < 0.05$). Massive sample sizes (e.g., $N = 60,000$) can detect minuscule differences (e.g., SBP reduction of 0.6 mmHg, $p = 0.001$) that are statistically significant but clinically trivial.
  • Clinical Significance: Assesses whether the magnitude of effect is large enough to impact patient outcomes, quality of life, or disease prognosis. Evaluated against the Minimum Clinically Important Difference (MCID)—the smallest change in outcome that patients and clinicians perceive as beneficial.

5. Survival Analysis & Time-to-Event Modeling

Clinical trials evaluating chronic cardiovascular, renal, or oncologic outcomes often track time-to-event outcomes (e.g., time to first myocardial infarction, stroke, or cardiovascular death).

Kaplan-Meier Survival Curves

  • Non-parametric stepwise graphical representation of the cumulative probability of remaining event-free over time.
  • Censoring: Accommodates subjects who are lost to follow-up, withdraw consent, die of unrelated causes, or complete the study without experiencing the primary event. Censored individuals contribute event-free follow-up time up until the moment of censoring (indicated by tick marks on the curve).

The Log-Rank Test

  • A non-parametric hypothesis test comparing the entire survival curves of two or more independent groups across all recorded time points.
  • Evaluates the null hypothesis that there is no difference in the probability of an event between groups at any timepoint.

Cox Proportional Hazards Regression & Hazard Ratios (HR)

  • A semi-parametric multivariable regression model that evaluates the impact of an intervention on the hazard (instantaneous rate of an event occurring) while adjusting for multiple baseline confounders (age, baseline eGFR, diabetes, smoking).
  • Proportional Hazards Assumption: Assumes that the ratio of hazards between the two treatment groups remains constant over the entire study observation duration.
  • Hazard Ratio (HR): The relative likelihood of an event occurring in the experimental group compared to the control group per unit time: HR=Hazard in Treatment GroupHazard in Control Group\text{HR} = \frac{\text{Hazard in Treatment Group}}{\text{Hazard in Control Group}}
    • $\text{HR} < 1.0$: Treatment reduces event rate (protective).
    • $\text{HR} = 1.0$: No difference between arms.
    • $\text{HR} > 1.0$: Treatment increases event rate (harmful).

6. Quantitative Epidemiology: Risk Calculations, NNT, and NNH

Ambulatory care specialists must calculate absolute and relative risk metrics directly from clinical trial data to counsel patients and guide formulary decisions.

┌────────────────────────────────────────────────────────────────────────┐
│                     2 x 2 CONTINGENCY TABLE SETUP                      │
├──────────────────────────┬───────────────────┬─────────────────────────┤
│ GROUP                    │ EVENT OCCURRED    │ NO EVENT OCCURRED       │
├──────────────────────────┼───────────────────┼─────────────────────────┤
│ Experimental (Treatment) │ a                 │ b                       │
├──────────────────────────┼───────────────────┼─────────────────────────┤
│ Control (Placebo/Std)    │ c                 │ d                       │
└──────────────────────────┴───────────────────┴─────────────────────────┘

Core Risk Formulas

  1. Experimental Event Rate (EER): The proportion of subjects in the experimental group who experience the event: EER=aa+b\text{EER} = \frac{a}{a + b}
  2. Control Event Rate (CER): The proportion of subjects in the control group who experience the event: CER=cc+d\text{CER} = \frac{c}{c + d}
  3. Relative Risk (Risk Ratio, RR): The ratio of event risk in the experimental group compared to the control group: RR=EERCER\text{RR} = \frac{\text{EER}}{\text{CER}}
  4. Relative Risk Reduction (RRR): The proportional reduction in event rates achieved by the experimental treatment relative to the baseline control risk: RRR=CEREERCER=1RR=ARRCER\text{RRR} = \frac{\text{CER} - \text{EER}}{\text{CER}} = 1 - \text{RR} = \frac{\text{ARR}}{\text{CER}}
    • Cautionary Pearl: RRR can artificially inflate perceived clinical benefit. A drug reducing event risk from 0.4% to 0.2% produces an impressive $50\%$ RRR, yet the absolute benefit is merely $0.2\%$.
  5. Absolute Risk Reduction (ARR / Risk Difference): The true absolute arithmetic difference in event rates between groups: ARR=CEREER\text{ARR} = |\text{CER} - \text{EER}|
  6. Number Needed to Treat (NNT): The number of patients who must be treated with the intervention for a specified duration to prevent one additional adverse clinical outcome: NNT=1ARR (in decimal)=100ARR (in percent)\text{NNT} = \frac{1}{\text{ARR (in decimal)}} = \frac{100}{\text{ARR (in percent)}}
    • MANDATORY ROUNDING RULE: Always round UP to the next whole integer regardless of decimal value (e.g., $1 / 0.043 = 23.25 \to 24$ patients; treating 23 patients fails to fully prevent that event).
  7. Absolute Risk Increase (ARI): The absolute increase in adverse event rates in the experimental group compared to control: ARI=EERCER\text{ARI} = \text{EER} - \text{CER}
  8. Number Needed to Harm (NNH): The number of patients exposed to the intervention before one additional adverse event occurs: NNH=1ARI (in decimal)=100ARI (in percent)\text{NNH} = \frac{1}{\text{ARI (in decimal)}} = \frac{100}{\text{ARI (in percent)}}
    • MANDATORY ROUNDING RULE: Always round DOWN to the nearest whole integer (e.g., $1 / 0.023 = 43.48 \to 43$ patients; at 43 patients, one excess harm is anticipated, avoiding understating toxic risk).
Test Your Knowledge

In a 3-year randomized controlled trial evaluating a novel SGLT2 inhibitor in patients with chronic heart failure, cardiovascular death or heart failure hospitalization occurred in 16.3% of patients in the placebo group (CER = 0.163) and 11.8% of patients in the SGLT2 inhibitor group (EER = 0.118). Which of the following correctly represents the Absolute Risk Reduction (ARR), Relative Risk Reduction (RRR), and Number Needed to Treat (NNT)?

A
B
C
D
Test Your Knowledge

A clinical pharmacist is designing a primary care study to evaluate whether a pharmacist-led deprescribing clinic reduces patient-reported knee pain scores in 50 patients with osteoarthritis. Pain severity is measured on an ordinal visual analog scale from 0 (no pain) to 10 (worst pain) recorded for each patient at baseline and 12 weeks following medication optimization. Which of the following statistical tests is the most appropriate to evaluate whether pain scores significantly changed within this patient cohort?

A
B
C
D
Test Your Knowledge

A multicenter cardiovascular outcomes trial evaluates a novel GLP-1 receptor agonist versus standard care in 9,000 patients with type 2 diabetes over 4 years. The primary composite endpoint of 3-point MACE (cardiovascular death, non-fatal MI, non-fatal stroke) demonstrated a Hazard Ratio (HR) of 0.84 with a 95% Confidence Interval of 0.72 to 0.98 (p = 0.026). For the secondary safety endpoint of acute pancreatitis, the study reported an HR of 1.35 with a 95% CI of 0.85 to 2.15 (p = 0.20). How should the ambulatory care pharmacist interpret these trial findings?

A
B
C
D