1. Home
  2. Explore
  3. Economics
  4. Maximum Likelihood Estimation

Study methods

Flashcards
Quiz
Fill in the blanks
Written test
Lesson
Notes
Podcast
Content

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 H0H_0H0​ represents the status quo — no effect, no difference, fairness. The alternative hypothesis H1H_1H1​ represents the discovery or effect the researcher hopes to detect.

The two hypotheses are disjoint subsets of the parameter space Θ\ThetaΘ. 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 nnn runners at random.

  • Goal: Are runners faster in 2012? That is, is the true mean μ\muμ 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 μ\muμ.

Thus the model: X1,…,Xn∼iidN(μ,373)X_1, \dots, X_n \overset{iid}{\sim} \mathcal{N}(\mu, 373)X1​,…,Xn​∼iidN(μ,373).

Hypotheses

  • H0H_0H0​: μ=103.5\mu = 103.5μ=103.5 (status quo — same as 2009)

  • H1H_1H1​: μ<103.5\mu < 103.5μ<103.5 (runners are faster)

Note: H0H_0H0​ is a single point; H1H_1H1​ 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,…,XndrugX_1, \dots, X_{n_{drug}}X1​,…,Xndrug​​ — number of coughs per hour, modeled as Poisson with mean μdrug\mu_{drug}μdrug​.

  • Control group (placebo): Y1,…,YncontrolY_1, \dots, Y_{n_{control}}Y1​,…,Yncontrol​​ — Poisson with mean μcontrol\mu_{control}μcontrol​.

  • We want to know if the drug reduces coughing: μdrug<μcontrol\mu_{drug} < \mu_{control}μdrug​<μcontrol​.

Hypotheses

  • H0H_0H0​: μdrug=μcontrol\mu_{drug} = \mu_{control}μdrug​=μcontrol​ (no effect beyond placebo)

  • H1H_1H1​: μdrug<μcontrol\mu_{drug} < \mu_{control}μ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)X_1, \dots, X_n \overset{iid}{\sim} \text{Bernoulli}(p)X1​,…,Xn​∼iidBernoulli(p), n=80n=80n=80.

  • Observed: 54 heads, so Xˉn=54/80=0.675\bar{X}_n = 54/80 = 0.675Xˉn​=54/80=0.675.

Hypotheses

  • H0H_0H0​: p=0.5p = 0.5p=0.5 (fair coin)

  • H1H_1H1​: p≠0.5p \neq 0.5p=0.5 (biased coin, two-sided)

Intuition from the Example

A simple heuristic like "reject if Xˉn\bar{X}_nXˉ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:

Tn=nXˉn−p0Xˉn(1−Xˉn)ornXˉn−p0p0(1−p0)T_n = \sqrt{n} \frac{\bar{X}_n - p_0}{\sqrt{\bar{X}_n(1-\bar{X}_n)}} \quad \text{or} \quad \sqrt{n} \frac{\bar{X}_n - p_0}{\sqrt{p_0(1-p_0)}}Tn​=n​Xˉn​(1−Xˉn​)​Xˉn​−p0​​orn​p0​(1−p0​)​Xˉn​−p0​​

Under H0H_0H0​ (p=0.5p=0.5p=0.5), TnT_nTn​ is approximately N(0,1)\mathcal{N}(0,1)N(0,1).

For the observed data with p0=0.5p_0=0.5p0​=0.5:

Tn=800.675−0.50.675×0.325≈3.45T_n = \sqrt{80} \frac{0.675 - 0.5}{\sqrt{0.675 \times 0.325}} \approx 3.45Tn​=80​0.675×0.325​0.675−0.5​≈3.45

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 H0H_0H0​: the coin appears biased.

If instead n=30n=30n=30 and 13 heads (Xˉ=0.433\bar{X}=0.433Xˉ=0.433), then:

Tn≈300.433−0.50.433×0.567≈−0.77T_n \approx \sqrt{30} \frac{0.433 - 0.5}{\sqrt{0.433 \times 0.567}} \approx -0.77Tn​≈30​0.433×0.567​0.433−0.5​≈−0.77

This is a plausible value for a standard normal; we fail to reject H0H_0H0​. The observed deviation could easily be due to chance.


Key Terminology

Null and Alternative Hypotheses

  • H0H_0H0​ (null hypothesis): The default assumption, status quo, no effect. Typically a precise statement (e.g., μ=μ0\mu = \mu_0μ=μ0​).

  • H1H_1H1​ (alternative hypothesis): The claim we seek evidence for. Often one-sided (μ<μ0\mu < \mu_0μ<μ0​) or two-sided (μ≠μ0\mu \neq \mu_0μ=μ0​).

  • They must be disjoint subsets of the parameter space: Θ0\Theta_0Θ0​ and Θ1\Theta_1Θ1​.

Test Statistic and Rejection Region

  • A test is a function ψ(x1,…,xn)\psi(x_1, \dots, x_n)ψ(x1​,…,xn​) that returns 0 (fail to reject H0H_0H0​) or 1 (reject H0H_0H0​).

  • It is an indicator of the rejection region R⊆XnR \subseteq \mathcal{X}^nR⊆Xn:

    ψ(x)=1{x∈R}\psi(x) = \mathbf{1}\{x \in R\}ψ(x)=1{x∈R}
  • Any decision rule can be described by its rejection region — the set of samples that lead to rejecting H0H_0H0​.

Errors

  • Type I error: Reject H0H_0H0​ when H0H_0H0​ is true (false positive). Probability:

    α(θ)=Pθ(ψ=1)for θ∈Θ0\alpha(\theta) = P_\theta(\psi = 1) \quad \text{for } \theta \in \Theta_0α(θ)=Pθ​(ψ=1)for θ∈Θ0​
  • Type II error: Fail to reject H0H_0H0​ when H1H_1H1​ is true (false negative). Probability:

    β(θ)=Pθ(ψ=0)for θ∈Θ1\beta(\theta) = P_\theta(\psi = 0) \quad \text{for } \theta \in \Theta_1β(θ)=Pθ​(ψ=0)for θ∈Θ1​

Power

  • The power of a test is the probability of correctly rejecting H0H_0H0​ when H1H_1H1​ is true:

    Power(θ)=1−β(θ)=Pθ(ψ=1),θ∈Θ1\text{Power}(\theta) = 1 - \beta(\theta) = P_\theta(\psi = 1), \quad \theta \in \Theta_1Power(θ)=1−β(θ)=Pθ​(ψ=1),θ∈Θ1​
  • Since power may vary across Θ1\Theta_1Θ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 α\alphaα (e.g., 0.05), then maximizes power (minimizes Type II error) subject to that constraint.

  • Choose a significance level α\alphaα — the maximum tolerable probability of a Type I error.

  • Construct a test such that sup⁡θ∈Θ0Pθ(reject)≤α\sup_{\theta \in \Theta_0} P_\theta(\text{reject}) \leq \alphasupθ∈Θ0​​Pθ​(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 H0H_0H0​ does not mean accepting H0H_0H0​ — 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 ccc (critical value) determines the rejection region and is set based on the desired significance level α\alphaα.

  • 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.

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent