Maximum Likelihood Estimation
Parametric Hypothesis Testing
Overview
Hypothesis testing is a fundamental framework for making decisions based on data. Unlike estimation, which asks what the value of a parameter is, hypothesis testing asks yes/no questions about parameters or distributions. The design of tests explicitly relies on understanding random fluctuations — the Central Limit Theorem is used not just for analysis but directly in constructing the test.
The Basic Problem
A hypothesis testing problem starts with a yes/no scientific question. Examples:
"Are runners faster in 2012 than in 2009?"
"Does a new drug reduce coughing more than a placebo?"
"Is this coin fair?"
The question is translated into a statistical hypothesis about a parameter (or parameters) of a model. The null hypothesis H0 represents the status quo — no effect, no difference, fairness. The alternative hypothesis H1 represents the discovery or effect the researcher hopes to detect.
The two hypotheses are disjoint subsets of the parameter space Θ. The test decides between them based on observed data.
Running Example #1: Cherry Blossom Run (Single Mean)
Setting
Data from 2009: all 15,000 runners; mean running time = 103.5 minutes, variance = 373.
In 2012, we sample n runners at random.
Goal: Are runners faster in 2012? That is, is the true mean μ less than 103.5?
Modeling Assumptions
Running times are approximately Gaussian (bell-shaped histogram).
Variance remains 373 (assumed unchanged).
The only possible difference is the mean μ.
Thus the model: X1,…,Xn∼iidN(μ,373).
Hypotheses
H0: μ=103.5 (status quo — same as 2009)
H1: μ<103.5 (runners are faster)
Note: H0 is a single point; H1 is a one-sided interval. This narrows the possible ways the null could be violated, making the test more sensitive to the specific question.
Running Example #2: Drug Trial (Comparing Two Means)
Setting
Test group (drug): X1,…,Xndrug — number of coughs per hour, modeled as Poisson with mean μdrug.
Control group (placebo): Y1,…,Yncontrol — Poisson with mean μcontrol.
We want to know if the drug reduces coughing: μdrug<μcontrol.
Hypotheses
H0: μdrug=μcontrol (no effect beyond placebo)
H1: μdrug<μcontrol (drug helps)
Now there is no fixed reference number; both means are unknown. The test must account for sampling variability in both groups.
Running Example #3: Fair Coin (Bernoulli)
Setting
X1,…,Xn∼iidBernoulli(p), n=80.
Observed: 54 heads, so Xˉn=54/80=0.675.
Hypotheses
H0: p=0.5 (fair coin)
H1: p=0.5 (biased coin, two-sided)
Intuition from the Example
A simple heuristic like "reject if Xˉn is far from 0.5" needs calibration: how far is too far? By standardizing the estimator, we map the decision to a scale we understand — the standard normal.
The test statistic:
Under H0 (p=0.5), Tn is approximately N(0,1).
For the observed data with p0=0.5:
A value of 3.45 is far into the tail of a standard normal — the probability of observing something more extreme is tiny (~0.0005). Thus we reject H0: the coin appears biased.
If instead n=30 and 13 heads (Xˉ=0.433), then:
This is a plausible value for a standard normal; we fail to reject H0. The observed deviation could easily be due to chance.
Key Terminology
Null and Alternative Hypotheses
H0 (null hypothesis): The default assumption, status quo, no effect. Typically a precise statement (e.g., μ=μ0).
H1 (alternative hypothesis): The claim we seek evidence for. Often one-sided (μ<μ0) or two-sided (μ=μ0).
They must be disjoint subsets of the parameter space: Θ0 and Θ1.
Test Statistic and Rejection Region
A test is a function ψ(x1,…,xn) that returns 0 (fail to reject H0) or 1 (reject H0).
It is an indicator of the rejection region R⊆Xn:
ψ(x)=1{x∈R}Any decision rule can be described by its rejection region — the set of samples that lead to rejecting H0.
Errors
Type I error: Reject H0 when H0 is true (false positive). Probability:
α(θ)=Pθ(ψ=1)for θ∈Θ0Type II error: Fail to reject H0 when H1 is true (false negative). Probability:
β(θ)=Pθ(ψ=0)for θ∈Θ1
Power
The power of a test is the probability of correctly rejecting H0 when H1 is true:
Power(θ)=1−β(θ)=Pθ(ψ=1),θ∈Θ1Since power may vary across Θ1, the worst-case power (smallest value) is often reported as the power of the test.
Neyman-Pearson Paradigm
The two types of errors trade off: reducing Type I error increases Type II error and vice versa. There is no single "optimal" by minimizing both simultaneously.
The Neyman-Pearson approach fixes the Type I error at a small, acceptable level α (e.g., 0.05), then maximizes power (minimizes Type II error) subject to that constraint.
Choose a significance level α — the maximum tolerable probability of a Type I error.
Construct a test such that supθ∈Θ0Pθ(reject)≤α.
Among such tests, seek one with highest power.
This is analogous to a legal system: "innocent until proven guilty." The null is protected; we require strong evidence to overturn it. The burden of proof is on the alternative.
Summary of Conceptual Points
Hypothesis testing is not symmetric: failing to reject H0 does not mean accepting H0 — only that evidence was insufficient.
The test statistic transforms the estimator into a scale (like standard normal) where thresholds are universal (e.g., 1.96 for 5% two-sided test).
The threshold c (critical value) determines the rejection region and is set based on the desired significance level α.
Type I error is controlled; Type II error is minimized subject to that control.
The power function depends on the true parameter; the test is designed to be powerful against alternatives of interest.
Next Steps
The lecture concludes by introducing the Neyman-Pearson paradigm and previewing its formal development. The key takeaway: hypothesis testing transforms estimation into a decision problem with well-defined error probabilities, using the Central Limit Theorem both to motivate the test statistic and to compute approximate critical values.

Ask anything
We've read this whole study set, so questions about it get the best answers.