14.1 Biostatistics, Hypothesis Testing & Clinical Study Design

Key Takeaways

  • Summarize nominal categories with frequencies and ordinal categories with ranks or ordered frequencies. Choose numerical summaries using both the scale and the distribution.

  • Standard deviation describes the spread of observations. Standard error describes the variability of an estimate across repeated samples.

  • Type I error rejects a true null hypothesis. Power is the probability of rejecting the null under a specified alternative.

  • Case-control studies commonly estimate odds ratios. Follow-up studies can estimate risks, risk ratios, and absolute risk differences when the study design supports them.

  • At fixed sensitivity and specificity, lower prevalence reduces positive predictive value and increases negative predictive value.

Last updated: November 2026

Biostatistics, Hypothesis Testing & Clinical Study Design

Different questions require different summaries. When comparing a trial's treatment arms, identify the outcome scale, how participants were assigned, and whether the measurements are paired before selecting a test.

Measurement scales

ScalePropertyUseful summariesExample
NominalUnordered categoriesFrequency, proportion, modeABO blood group
OrdinalOrdered categories with no assumption of equal spacingOrdered frequencies, median category, quartile categoriesMild, moderate or severe pain
IntervalEqual intervals, arbitrary zeroMean, standard deviation, differencesTemperature in °C
RatioEqual intervals and a meaningful zeroMean, standard deviation, ratiosAmount of drug in mg

A 20 mg amount is twice a 10 mg amount. A temperature of 20 °C is 10 °C warmer than 10 °C, while the ratio of their Celsius values changes if you express them in Fahrenheit.

Central tendency, variability and normal distributions

  • Mean xˉ=∑xi/n\bar{x}=\sum x_i/n uses every measurement, so extreme values can move it substantially. The median is the 50th percentile and is less sensitive to extremes. The mode is the most frequent value or category. There can be multiple modes.
  • In a normal distribution, mean, median and mode coincide. A long right tail often pulls the mean above the median. For example, the sample 1, 2, 2, 3, 12 has median 2 and mean 4. The relative order of mean, median and mode depends on the full distribution.
  • Range is maximum minus minimum. IQR is the difference between the 75th and 25th percentiles for numerical data. The sample variance is s2=∑(xi−xˉ)2/(n−1)s^2=\sum(x_i-\bar{x})^2/(n-1) for n>1n>1. It has squared units, while the standard deviation ss has the original units.
  • Standard error describes how a statistic varies across repeated samples. For the mean of independent observations with common variance it is σ/n\sigma/\sqrt n, estimated by s/ns/\sqrt n when σ\sigma is unknown. This describes precision of the mean, while the standard deviation describes variation among observations.
  • Coefficient of variation 100s/xˉ100s/\bar{x} expresses spread as a percentage of a positive mean on a ratio scale. It becomes unstable near zero.

For a normal population, approximately 68%, 95% and 99.7% of observations are within one, two and three standard deviations of the mean, respectively. The central 95% spans approximately μ±1.96σ\mu\pm1.96\sigma.

Worked example. In a model of vial fill volume, assume independent normal observations with population mean 14 mL and standard deviation 2.5 mL. An observation of 19 mL is two standard deviations above the mean. The mean of 25 observations has standard error 0.5 mL.

z=19−142.5=2.0,SE(xˉ)=2.525=0.5 mL.z=\frac{19-14}{2.5}=2.0,\qquad \mathrm{SE}(\bar{x})=\frac{2.5}{\sqrt{25}}=0.5\ \mathrm{mL}.

If the mean 14 mL instead came from that sample and the population standard deviation were known to be 2.5 mL, the 95% confidence interval for the population mean would be 14±1.96(0.5)14\pm1.96(0.5), or 13.02 to 14.98 mL. With unknown population standard deviation estimated from an independent normal sample, use s/ns/\sqrt n and the appropriate Student tt critical value with n−1n-1 degrees of freedom. A 95% interval method would cover the true mean in 95% of repeated samples under the assumptions. NIST confidence limits

Hypothesis tests and study power

ConceptInterpretation
Type I errorRejecting the null hypothesis when it is true. α\alpha is the planned significance level.
Type II errorFailing to reject the null under a specified alternative. β\beta is the corresponding error probability.
Power1−β1-\beta under the specified alternative. For a simple mean comparison, larger samples or a larger effect relative to variability generally improve power at fixed α\alpha.
pp-valueUnder the null and analysis assumptions, the probability that the test statistic is at least as extreme as observed, in the direction or directions specified by the test.
Two-sided 95% confidence intervalIf it excludes the null value, the matching two-sided test rejects at the 5% level. The null value is 0 for a difference and 1 for a ratio.

A small pp-value can coincide with a small treatment effect. Evaluate the estimated effect, its interval, and its clinical importance. A sample size calculation should state the outcome, effect size of interest, variability or event rate as appropriate, significance level, desired power and design assumptions. ASA statement on p-values · ICH E9 statistical principles

Select a test for the outcome and design

Design or questionMean- or model-based approachRank-based or categorical approach
Two independent groupsTwo-sample tt-test, with Welch's version for unequal variancesMann–Whitney U (Wilcoxon rank-sum)
Two measurements on each participantPaired tt-test of within-person differencesWilcoxon signed-rank when the distribution of differences is symmetric
Three or more independent groupsOne-way ANOVA under its model assumptionsKruskal–Wallis
Association of two categorical variables—Pearson chi-square with adequate expected counts. Fisher's exact test is an option for a sparse 2 × 2 table.
Association of two numerical or ranked variablesPearson correlation for linear associationSpearman rank correlation for monotone association

Classical one-way ANOVA assumes independent observations, normally distributed errors within groups and common error variance. A significant omnibus result supplies evidence that at least one mean differs. Use suitable comparisons with multiplicity control to identify pairs. A significant Kruskal–Wallis result can reflect differences in distribution shape or location. A median-shift interpretation needs comparable shapes and spreads. Use median and IQR to summarize strongly skewed numerical data.

In simple linear regression, y=b0+b1x+εy=b_0+b_1x+\varepsilon models an average change of b1b_1 in yy per unit change in xx. With an intercept in ordinary least squares, R2R^2 describes the fraction of sample variation in yy accounted for by the fitted model. Association alone cannot establish a treatment effect. NIST statistical methods · NIST Kruskal–Wallis test

Epidemiology and trial methods

  • Cross-sectional study. Measure existing cases and exposures in a defined population at a given time or during a short period. It estimates prevalence and usually gives limited information about which came first.
  • Case-control study. Start with cases and controls and compare prior exposure. This is efficient for rare outcomes. With rows exposed/unexposed and columns case/control, let the row entries be a,ba,b and c,dc,d. The exposure odds ratio is (a/c)/(b/d)=ad/bc(a/c)/(b/d)=ad/bc.
  • Cohort study. Define groups by exposure and determine new outcomes over time, prospectively or from existing records. The risk ratio is risk among exposed divided by risk among unexposed for the same follow-up period.
  • Randomized controlled trial. Random allocation balances baseline prognostic factors in expectation. Conceal the next assignment from those enrolling participants. Report who was blinded after assignment, such as participants, clinicians or outcome assessors. An intention-to-treat analysis aims to include all randomized participants in their assigned groups. Prespecify methods for missing outcomes. A per-protocol analysis uses eligibility and adherence criteria defined for the analysis and can introduce selection bias in either direction.

An apparent association can result from confounding, such as baseline illness severity influencing both treatment choice and later hospitalization. Study design and analysis can address measured confounders with methods such as applicable matching, stratification or adjustment. Selection and recall bias are separate concerns about how participants or exposure data enter the study.

Worked example. If control and treatment risks are 15% and 9% over the same follow-up, absolute risk reduction is 0.15−0.09=0.060.15-0.09=0.06. The number needed to treat for one additional event prevented is 1/0.06=16.671/0.06=16.67, rounded up to 17 for that outcome and period. CDC Field Epidemiology Manual

CONSORT 2025 uses a 30-item reporting checklist and a participant flow diagram. The diagram shows how many enter randomization, receive their assigned intervention, are followed up and are included in each analysis. CONSORT 2025

Diagnostic accuracy

Use a suitable reference standard to count true positives (TP), false positives (FP), true negatives (TN) and false negatives (FN). For nonzero denominators,

Sensitivity=TPTP+FN,Specificity=TNTN+FP,PPV=TPTP+FP,NPV=TNTN+FN.\mathrm{Sensitivity}=\frac{TP}{TP+FN},\quad \mathrm{Specificity}=\frac{TN}{TN+FP}, \quad \mathrm{PPV}=\frac{TP}{TP+FP},\quad \mathrm{NPV}=\frac{TN}{TN+FN}.

The first two measures condition on whether the disease is present. Predictive values condition on the test result. In an exercise with fixed sensitivity and specificity, a lower prevalence means fewer true positives per positive result and more true negatives per negative result. In practice, changing populations can also change observed sensitivity or specificity, for example when case severity differs. Interpret a positive or negative result using both test characteristics and pre-test probability. FDA diagnostic-test statistical guidance

Test Your Knowledge

A randomized trial estimates that the mean systolic blood pressure reduction was 11 mmHg greater with treatment A than treatment B with a two-sided 95% confidence interval of 4 to 18 mmHg. Its analysis includes only adherent completers under prespecified protocol criteria. What do the interval and analysis population indicate?

A

The result is significant only if the confidence interval excludes 1, and the analysis is intention-to-treat.

B

The confidence interval includes 0, and restricting analysis to completers preserves randomization.

C

The confidence interval excludes 0, and the per-protocol restriction can introduce selection bias.

D

The interval gives the probability that the null is true, and adherence makes the groups comparable.

Test Your Knowledge

A team compares length of hospital stay across four independent treatment groups. The distributions are strongly right-skewed and have similar shapes and spreads. Which rank-based test and descriptive summary are appropriate?

A

Kruskal-Wallis test with median and interquartile range (IQR)

B

One-way ANOVA with mean and standard error of the mean (SEM)

C

Paired Student's t-test with mean and standard deviation

D

Mann-Whitney U test with mode and range

Test Your Knowledge

For this exercise, a screening assay has the same sensitivity (96%) and specificity (90%) at two sites. How do its predictive values change when prevalence is 2% rather than 40%?

A

Sensitivity increases and specificity decreases.

B

Positive Predictive Value increases and Negative Predictive Value decreases.

C

Sensitivity and specificity remain unchanged, while Positive Predictive Value increases.

D

Sensitivity and specificity remain unchanged, while Positive Predictive Value decreases and Negative Predictive Value increases.

Sections you finish are checked off in the contents.