SECTION 1
Historical Context & Motivation
Statistical inference has deep roots in the desire to separate genuine effects from random noise. Long before modern biostatistics, scientists wrestled with a fundamental question: when an observed result deviates from expectation, is that deviation meaningful or merely the product of chance? The formalization of the p-value and the significance level provided the quantitative machinery needed to answer this question with rigor. Understanding the intellectual lineage of these concepts illuminates why they are used—and sometimes misused—in contemporary biomedical research.
1710 • Arbuthnot's Sign Test
1900 • Pearson's Chi-Square Test
1925 • Fisher's Framework
1933 • Neyman–Pearson Decision Theory
2016–present • The Replication Crisis & ASA Statement
The modern practice of hypothesis testing in biostatistics is thus a hybrid of Fisher's evidential approach and the Neyman–Pearson decision-theoretic framework. The central question this lesson addresses is: given a dataset and a null hypothesis, how do we compute and correctly interpret the p-value, and how does the pre-specified significance level α govern our conclusions?
SECTION 2
Core Principles & Definitions
Before diving into calculations, it is essential to establish a precise vocabulary. Hypothesis testing begins with two competing statements about a population parameter: the null hypothesis (H₀), which represents the default assumption of no effect or no difference, and the alternative hypothesis (H₁ or Hₐ), which captures the research claim. The entire inferential apparatus is built around quantifying how surprising the observed data are under H₀.
p-Value
Significance Level (α)
Test Statistic
Decision Rule
KEY TAKEAWAY
Critical Misconception
SECTION 3
Visual Explanation
A p-value is best understood visually as an area in the tail(s) of the sampling distribution under H₀. The diagram below illustrates a two-tailed z-test scenario. The bell curve represents the distribution of the test statistic when the null hypothesis is true. The shaded tail areas correspond to the p-value—the combined probability of observing a test statistic as extreme or more extreme than the one actually obtained.
Several features of this diagram merit emphasis. First, the p-value is always computed under the assumption that H₀ is true—the curve is centered at the null value (here, z = 0). Second, the further the observed test statistic falls into the tails, the smaller the p-value becomes, reflecting increasing incompatibility between the data and H₀. Third, for a one-tailed test, only one tail would be shaded, and the p-value would be half of what it is for a two-tailed test at the same test statistic value. The choice between one-tailed and two-tailed tests must be made before examining the data, based on the directionality of the research hypothesis.
SECTION 4
Mathematical Framework
The calculation of a p-value follows a consistent logical chain regardless of the specific test employed. First, we compute a test statistic that standardizes the difference between the observed sample result and the null-hypothesized value. Then, we determine the probability of obtaining a test statistic as extreme or more extreme under the null distribution. Below we formalize these steps for the most commonly encountered tests in biostatistics.
Z-TEST STATISTIC (ONE-SAMPLE MEAN)
where x̄ is the sample mean, μ₀ is the hypothesized population mean under H₀, σ is the known population standard deviation, and n is the sample size. The denominator σ/√n is the standard error of the mean.
T-TEST STATISTIC (ONE-SAMPLE, σ UNKNOWN)
When the population standard deviation is unknown, we substitute the sample standard deviation s. The test statistic follows a t-distribution with n − 1 degrees of freedom (df), which has heavier tails than the standard normal—especially for small samples.
P-VALUE COMPUTATION (TWO-TAILED)
For a two-tailed test, the p-value is twice the probability of the observed (or more extreme) statistic in one tail. For a one-tailed test, omit the factor of 2 and compute the area in the relevant tail only.
DECISION CRITERION
The significance level α must be chosen before data analysis. Common choices are α = 0.05 (5% Type I error rate), α = 0.01 (1%), and α = 0.10 (10%). The choice depends on the scientific context: clinical trials with serious consequences often require α = 0.01 or lower, while exploratory studies may tolerate α = 0.10.
It is worth noting that the p-value is a continuous measure of evidence against H₀. A p-value of 0.049 and a p-value of 0.051 represent nearly identical levels of evidence, despite falling on opposite sides of the conventional α = 0.05 boundary. Responsible interpretation therefore reports the exact p-value and considers it alongside effect sizes, confidence intervals, and domain knowledge rather than relying solely on the binary significant/not-significant dichotomy.
SECTION 5
One-Tailed vs. Two-Tailed Tests & Error Types
The directionality of the alternative hypothesis determines whether a one-tailed or two-tailed test is appropriate, which in turn affects the computation and magnitude of the p-value. Additionally, every hypothesis test is susceptible to two kinds of errors. Understanding the interplay between tail direction, error types, and significance levels is essential for designing and interpreting studies in biostatistics.
| Feature | Two-Tailed Test | One-Tailed Test |
|---|---|---|
| Alternative Hypothesis | H₁: μ ≠ μ₀ | H₁: μ > μ₀ or H₁: μ < μ₀ |
| Rejection Region | Both tails (each at α/2) | One tail only (entire α in that tail) |
| p-Value | 2 × P(Z ≥ |z|) | P(Z ≥ z) or P(Z ≤ z) |
| Power | Lower for a given α and effect size | Higher—concentrates α in one direction |
| When to Use | No prior expectation about direction of effect | Strong theoretical or empirical reason to expect a specific direction |
Comparison of two-tailed and one-tailed hypothesis tests
SECTION 6
Worked Example
A pharmaceutical researcher wants to determine whether a new antihypertensive drug reduces systolic blood pressure (SBP) below the established population mean of 130 mmHg. A random sample of n = 36 patients treated with the drug yields a sample mean of x̄ = 125 mmHg with a known population standard deviation of σ = 15 mmHg. Test at the α = 0.05 significance level whether the drug lowers SBP.
One-Sample z-Test for Mean SBP Reduction
- 1
Step 1 — State the Hypotheses
Because the researcher specifically predicts a decrease in SBP, this is a left-tailed test. H₀: μ = 130 (no reduction). H₁: μ < 130 (the drug reduces SBP). We set α = 0.05.H₀: μ = 130, H₁: μ < 130, α = 0.05 - 2
Step 2 — Compute the Standard Error
The standard error of the mean is SE = σ / √n = 15 / √36 = 15 / 6 = 2.5 mmHg. This measures the expected variability of the sample mean around the population mean under repeated sampling.SE = 2.5 mmHg - 3
Step 3 — Calculate the Test Statistic
Substituting into the z-formula: z = (x̄ − μ₀) / SE = (125 − 130) / 2.5 = −5 / 2.5 = −2.00. The observed mean is exactly 2 standard errors below the hypothesized population mean.z = −2.00 - 4
Step 4 — Find the p-Value
Because this is a left-tailed test, p = P(Z ≤ −2.00). Using a standard normal table or software, P(Z ≤ −2.00) = 0.0228. There is approximately a 2.28% chance of observing a sample mean of 125 or lower if the true population mean were 130.p = 0.0228 - 5
Step 5 — Make the Decision
Compare the p-value to α: 0.0228 < 0.05, so we reject H₀. At the 5% significance level, there is sufficient evidence to conclude that the antihypertensive drug reduces systolic blood pressure below the population mean of 130 mmHg. Note that we should also report the effect size (a 5 mmHg reduction) and a 95% confidence interval for the mean (125 ± 1.645 × 2.5 ≈ [120.89, 129.11] for a one-sided bound, or equivalently, the upper one-sided 95% CI for μ is ≤ 129.11) to give clinical context to the statistical significance.Reject H₀ — statistically significant at α = 0.05
SECTION 7
Strengths, Limitations & Common Misinterpretations
The p-value framework is ubiquitous in biostatistics, but it is neither infallible nor universally sufficient. Appreciating both its power and its pitfalls is a hallmark of statistical literacy. The table below contrasts what p-values do well with their well-documented limitations and the common misinterpretations that plague the biomedical literature.
| Strengths | Limitations | Common Misinterpretations |
|---|---|---|
| Provides a standardized, objective measure of evidence against H₀ | Does not measure the probability that H₀ is true or false | "p = 0.03 means there is a 3% chance H₀ is true" — WRONG |
| Allows comparison across different study designs and test statistics | Sensitive to sample size — large n can produce small p even for trivial effects | "p > 0.05 means no effect exists" — WRONG; absence of evidence ≠ evidence of absence |
| Simple decision rule: compare p to α for transparent conclusions | Does not convey the magnitude or clinical importance of the effect | "Smaller p means larger effect" — WRONG; p depends on n and variability too |
| Well-established regulatory acceptance (FDA, EMA) in clinical trials | Vulnerable to p-hacking: testing many hypotheses or subgroups inflates Type I error | "Statistical significance = clinical significance" — WRONG; always consider effect size |
Strengths, limitations, and common misinterpretations of p-values
KEY TAKEAWAY
SECTION 8
Connection to Confidence Intervals & Bayesian Approaches
The p-value does not exist in isolation—it is deeply connected to other inferential tools. Two of the most important connections are with confidence intervals and Bayesian posterior probabilities. Understanding these connections reveals the strengths and limitations of each approach and points toward more nuanced inference in biostatistics.
| Aspect | Frequentist p-Value | Confidence Interval | Bayesian Posterior |
|---|---|---|---|
| What it quantifies | P(data ≥ observed | H₀ true) | Range of plausible parameter values at (1 − α) coverage | P(H₀ true | data), given a prior |
| Effect size info | No — only direction of evidence | Yes — width and location show magnitude and precision | Yes — full distribution of plausible values |
| Requires a prior? | No | No | Yes — results depend on prior choice |
| Duality with p-value | — | A 95% CI excludes μ₀ ⟺ p < 0.05 (two-tailed) | No direct equivalence without specifying the prior |
| Best used when | Quick screening; regulatory hypothesis tests | Communicating precision and practical significance | Incorporating prior knowledge; adaptive trial designs |
Comparison of three major inferential frameworks
A particularly elegant result is the duality between hypothesis tests and confidence intervals. For a two-tailed test at level α, rejecting H₀ is equivalent to the (1 − α) × 100% confidence interval for the parameter not containing the null value. This means that if a 95% confidence interval for the mean difference excludes zero, then a two-tailed test at α = 0.05 would reject H₀. Confidence intervals are generally more informative because they convey both the direction and the plausible magnitude of the effect, and the ASA statement encourages reporting them alongside or instead of standalone p-values.
Looking Ahead
SECTION 9
Practice Problems
Question 1: CONCEPTUAL
Show answer
Question 2: BASIC CALCULATION
Show answer
Question 3: INTERMEDIATE
Show answer
Question 4: APPLIED
Show answer
Question 5: CRITICAL THINKING
Show answer
SUMMARY
Lesson Summary
Summary
This lesson introduced two foundational concepts in biostatistical hypothesis testing. The p-value is the probability, under the assumption that the null hypothesis (H₀) is true, of observing a test statistic at least as extreme as the one calculated from the sample data. The significance level α is a pre-specified threshold representing the maximum tolerable Type I error rate (false positive rate). The decision rule is straightforward: if p ≤ α, we reject H₀; otherwise, we fail to reject H₀.
Critical nuances include: the p-value is not the probability that H₀ is true; statistical significance does not imply clinical significance; large samples can yield small p-values for trivially small effects; and multiple testing inflates the family-wise error rate, requiring corrections such as Bonferroni. For robust inference, always report effect sizes and confidence intervals alongside p-values, leveraging the duality that a (1 − α) CI excluding the null value is equivalent to p < α for a two-tailed test.