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

Speaker 1Speaker 2

Maximum Likelihood Estimation

6:48
0:00-6:48
  1. Simon

    So we're moving into a new chapter today: parametric hypothesis testing. It's a bit different from estimation. With estimation, we were trying to find a best guess for a parameter. Here, we're asking a yes-or-no question about that parameter.

  2. Hope

    Right. And while in estimation the central limit theorem was mostly for analyzing the estimator, in hypothesis testing it actually comes into the design of the test itself. We'll need to understand random fluctuations much better.

  3. Simon

    Exactly. Let's start with a real dataset: the Cherry Blossom Run, a 10-mile race in D.C. In 2009, with about 15,000 participants, the average time was 103.5 minutes. Suppose we want to know if runners were faster in 2012. We can't measure all 15,000, so we sample n runners from 2012.

  4. Hope

    And from the 2009 data, we see the running times look Gaussian with mean 103.5 and variance 373. So we assume the 2012 times are also Gaussian with the same variance, but we don't know the mean mu. The question becomes: is mu less than 103.5?

  5. Simon

    That's a hypothesis test. The null hypothesis H0 is that mu equals 103.5, the status quo. The alternative H1 is mu less than 103.5. Notice we've made modeling assumptions — Gaussian distribution, fixed variance — to narrow down the possible ways the hypothesis could be violated.

  6. Hope

    And if we allowed any possible distribution, we'd almost always find some weird distribution that fits the sample perfectly. By limiting to Gaussians with a fixed variance, we focus the test on the mean, which is what we care about.

  7. Simon

    Now consider an intuitive approach: compute the sample mean x-bar. If x-bar is less than 103.5, we might think mu is less. But because of sampling variability, x-bar is not exactly mu. By the CLT, it's about 1 over root n away. With n=10, that's about 0.3, so even if mu=103.4, x-bar could easily be 103.7, leading us to the wrong conclusion.

  8. Hope

    So we need a buffer. Rather than comparing x-bar to 103.5 directly, we need to account for those fluctuations. That's where the central limit theorem comes in — we standardize x-bar so it becomes approximately standard normal, and then we can judge whether the observed value is extreme.

  9. Simon

    Before diving into that, let's look at another example: clinical trials. A pharmaceutical company wants to test if a new cough syrup reduces coughing compared to a placebo. They split patients into a drug group and a control group. The number of coughs per hour is assumed Poisson with means mu_drug and mu_control.

  10. Hope

    Now the null hypothesis is that the means are equal — the drug doesn't work better than placebo. The alternative is mu_drug less than mu_control. Here we have two sources of randomness, and the test statistic will involve the difference of sample means. Again, CLT tells us the difference is approximately normal, with variance depending on both sample sizes.

  11. Simon

    And we want to make it hard to reject H0 — to avoid approving a useless drug. That's the idea of controlling type I error: the probability of rejecting H0 when it's actually true. In the drug case, that would be concluding the drug works when it doesn't.

  12. Hope

    Now let's nail down the mechanics with a classic textbook example: testing if a coin is fair. We flip it 80 times and count heads. The null is p=0.5. The alternative is p not equal to 0.5. Our test statistic is based on the sample proportion.

  13. Simon

    We use the CLT: (x̄ - p₀) / sqrt(p₀(1-p₀)/n) is approximately N(0,1) under H0. But often we plug in x̄ for p in the denominator — it's a bit different, but both approaches work. If we get 54 heads, x̄=0.675, then the test statistic is about 3.45 (using x̄ in denominator) or 3.22 (using p₀=0.5).

  14. Hope

    And 3.45 is huge for a standard normal. The probability of getting a value that large or larger is tiny — far less than 5%. So we reject H0 and conclude the coin is biased. But note: we don't say H0 is false with certainty; we say the evidence is strong enough to reject.

  15. Simon

    Now contrast that with a second experiment: 30 flips, 13 heads. The test statistic is about -0.77, which is very plausible under a standard normal. So we fail to reject H0. That doesn't mean the coin is fair; it means we don't have enough evidence to say it's unfair.

  16. Hope

    And that's key — in hypothesis testing, we never accept H0. We only fail to reject it. It's like innocent until proven guilty. The burden of proof is on the alternative.

  17. Simon

    Let's formalize some definitions. A test is a statistic psi that takes value 0 (fail to reject H0) or 1 (reject H0). It's often an indicator of some rejection region — the set of sample values that lead to rejection. For the coin example, the rejection region is where the standardized x̄ is either less than -c or greater than c, for some cutoff c.

  18. Hope

    And we choose c based on the acceptable type I error rate. Type I error: rejecting H0 when it's true. Type II error: failing to reject H0 when H1 is true. The power of a test is the probability of correctly rejecting H0 — that is, 1 minus type II error probability.

  19. Simon

    There's an inherent trade-off. If we make it very hard to reject H0 (use a huge c), type I error is small but type II error becomes large. If we make it easy to reject, type I error grows. The Neyman-Pearson paradigm is to fix a maximum acceptable type I error (like 5%) and then choose a test that maximizes power — minimizes type II error.

  20. Hope

    And that's exactly what we do: pick c such that the probability of a type I error is, say, 0.05. For a standard normal, that's c about 1.96 for a two-sided test. Then we compute the test statistic and see if it falls in the rejection region. If it does, we reject H0 with the confidence that we'll only be wrong 5% of the time when H0 is true.

  21. Simon

    Right. And power depends on the true parameter. For the drug trial, if the true effect is huge, power is high; if it's tiny, power is low. That's why we often design studies with large sample sizes — to increase power for a given effect size.

  22. Hope

    One last thing: in the Cherry Blossom example, the null was a single point: mu=103.5. That's a simple null. In many problems, the null can be composite, like mu ≥ 103.5. Then we'd need to consider the worst-case type I error over that set. But the ideas are the same.

  23. Simon

    To wrap up: hypothesis testing is about making decisions under uncertainty. We set up a null and alternative, build a test statistic that follows a known distribution under H0, and then compare the observed value to a threshold determined by our tolerance for type I error. The result is either a rejection or a failure to reject — never proof, just evidence.

  24. Hope

    And that's the foundation for most scientific inquiry. Next time, we'll dive into the Neyman-Pearson lemma and how to actually construct optimal tests. But for now, let's make sure we have the core concepts down.

Ask anything

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

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent