Seyed Masoud Hosseini · Overview · Study log · Weekly summaries · Ideas · Search · Transcript · RSS feed
Probability · Lecture 76 of 76 · 52:06
Lecture 25: Classical Inference III
Study guide
What this lecture covers
This final lecture of the course's statistics unit is a tour through hypothesis testing examples of increasing complexity, closing the classical inference material started two lectures earlier. It starts by formalizing the likelihood ratio test: the general recipe of computing a likelihood ratio statistic, choosing the shape of the rejection region from that ratio, and then picking a threshold so the false-rejection probability equals a chosen significance level such as 5%.
The lecture then works through several concrete cases: distinguishing two normal distributions with different means, distinguishing two normal distributions with different variances (introducing the chi-square distribution), testing whether a coin is fair, testing whether a die is fair (the chi-square goodness-of-fit test), and testing whether data follow an assumed continuous distribution using the empirical CDF (the Kolmogorov-Smirnov idea). It closes with broader reflections on the "art" involved in statistics, the difference between failing to reject and proving a hypothesis, and a caution about selective reporting and multiple testing, illustrated by the well-known paper "Why Most Published Research Findings Are False."
Key ideas
- Likelihood ratio test structure: computing the ratio of data likelihoods under two hypotheses gives a single statistic; committing to this test reduces a complicated multi-dimensional decision region to a one-dimensional threshold problem.
- Statistic: a scalar (or low-dimensional) summary of the data, such as a sum, sample variance, or count, used as the basis for a decision instead of the raw data.
- Alpha and beta trade-off: alpha is the probability of falsely rejecting a true null hypothesis, beta is the probability of failing to reject a false null hypothesis, and moving the decision threshold trades one against the other; likelihood ratio tests achieve the best possible trade-off for a given alpha.
- Chi-square distribution: arises as the distribution of a sum of squared normal random variables, and is used to set thresholds in tests such as comparing variances or testing goodness of fit.
- Coin- and die-fairness tests: reduce the data to a simple statistic (number of heads, or a sum-of-squared-deviations statistic across die faces) and compare it to a threshold chosen from its approximate (often normal or chi-square) distribution under the null hypothesis.
- "Not rejected" versus "proved": failing to reject a null hypothesis means the data are compatible with it, not that the hypothesis has been proven true; only evidence that contradicts a hypothesis can falsify it.
- Empirical CDF comparison: to test whether data follow an assumed continuous distribution, compare the assumed CDF to the empirical CDF built from the data, using the maximum distance between them as the test statistic.
- Multiple testing and publication bias: running many hypothesis tests, or choosing which hypothesis to test after seeing the data, inflates the true rate of false discoveries well beyond the nominal significance level of any single test.
Walkthrough
Formalizing the likelihood ratio test and the alpha-beta trade-off (2:00)
The lecture reviews how a likelihood ratio statistic reduces the problem of dividing the data space into acceptance and rejection regions to choosing a single threshold, and explains the fundamental trade-off between the two error probabilities, alpha (false rejection) and beta (false acceptance), noting that likelihood ratio tests give the best achievable trade-off for a fixed alpha.
Comparing two normal distributions with different means (10:13)
Working out the likelihood ratio for two normal distributions differing only in mean shows that the decision reduces to comparing the sum of the observed data to a threshold, which is then found using the normal tables so the false-rejection probability equals a chosen alpha.
Comparing two normal distributions with different variances (13:19)
For distributions differing in variance, the likelihood ratio test reduces to comparing the sum of squared observations to a threshold. Because this statistic follows a chi-square distribution, the lecture introduces chi-square tables as the standard way to locate the required threshold.
Testing whether a coin is fair (18:23)
With an alternative hypothesis covering many possible biases rather than one specific value, the lecture reduces the data to the number of observed heads, treats it as approximately normal by the central limit theorem, and rejects fairness if the count is an outlier relative to the expected value under a fair coin.
Testing whether a die is fair (28:38)
Extending the idea to six outcomes, the lecture defines a chi-square-style statistic summing squared deviations of observed counts from expected counts, scaled by the expected counts, and explains that its distribution (derived and tabulated by others) sets the threshold for a chosen significance level.
Testing whether data follow an assumed distribution (35:48)
The lecture generalizes further to testing whether continuous data match an assumed PDF, first by discretizing into a histogram and reusing the chi-square approach, then by comparing the assumed CDF to the data's empirical CDF and using the maximum gap between the two curves as a test statistic with its own tabulated threshold.
Reflections on statistics as an art, and the risk of selective testing (44:06)
The lecture closes by noting how much judgment goes into choosing statistics and rejection-region shapes, contrasts the solidity of probability theory with the messiness of applied statistics, and warns that running many hypothesis tests or selecting hypotheses after seeing the data inflates the real rate of false conclusions well beyond any single test's stated significance level.
Before you watch
- Watch Lecture 24 (Classical Inference II) first, since it introduces the likelihood ratio test structure this lecture builds on.
- Review the normal distribution tables and the basic setup of a hypothesis test (null versus alternative hypothesis, rejection region).
- Be comfortable with the central limit theorem, since several tests rely on approximating a statistic as normally distributed.
Check your understanding
- Why does committing to a likelihood ratio test simplify the problem of designing a rejection region?
- What is the trade-off between alpha and beta, and why can't both be made arbitrarily small at the same time?
- Why does failing to reject a null hypothesis not mean the hypothesis has been proven true?
- How does the chi-square distribution arise in the die-fairness test, and why is it useful there?
- Why does running many hypothesis tests, or choosing a hypothesis after looking at the data, increase the real risk of a false conclusion beyond the stated significance level of any one test?
Vocabulary
- likelihood ratio test (noun)
- A hypothesis test that decides between two hypotheses by comparing a ratio of likelihoods to a threshold.
The likelihood ratio test reduces the decision to a single number. - statistic (noun)
- A single number or small summary calculated from a data set.
We reduce the data to a simple statistic, like a sum or a count. - significance level (noun)
- The chosen probability of falsely rejecting a true null hypothesis.
We set the significance level at 5%. - chi-square distribution (noun)
- A probability distribution that describes the sum of squared independent standard normal variables.
The test statistic follows a chi-square distribution. - goodness-of-fit test (noun)
- A test that checks whether observed data match an expected distribution.
The die-fairness test is a chi-square goodness-of-fit test. - outlier (noun)
- A data value that is unusually far from most other values.
We reject fairness if the head count is an outlier. - expected count (noun)
- The number of occurrences predicted by a model or hypothesis.
We compare observed counts to the expected count under a fair die. - deviation (noun)
- The difference between an observed value and an expected or average value.
The statistic sums the squared deviations from expected counts. - discretize (verb)
- To divide continuous data into separate categories or bins.
We discretize the data into a histogram before applying the chi-square test. - empirical CDF (noun)
- A step-function distribution built directly from observed data, showing the fraction of data below each value.
We compare the assumed CDF to the empirical CDF. - CDF (cumulative distribution function) (noun)
- A function giving the probability that a random variable is less than or equal to a value.
The empirical CDF approximates the true CDF. - falsify (verb)
- To show that a claim or hypothesis is false using evidence.
Only contradicting evidence can falsify a hypothesis. - compatible (with data) (adjective)
- Consistent with the observed data, not contradicted by it.
Failing to reject means the hypothesis is compatible with the data. - selective reporting (noun)
- Choosing to report only certain results, often the significant ones, while ignoring others.
Selective reporting can make weak findings look strong. - multiple testing (noun)
- Running many statistical tests at once, which increases the chance of a false positive.
Multiple testing inflates the real rate of false discoveries. - false discovery (noun)
- A result wrongly reported as significant when it is actually due to chance.
Running many tests increases the risk of a false discovery. - publication bias (noun)
- The tendency for studies with striking or positive results to get published more often than others.
Publication bias skews what research findings people see. - tour (noun)
- A guided review that moves through several related examples or topics.
The lecture is a tour through increasingly complex hypothesis tests. - acceptance region (noun)
- The set of data outcomes for which the null hypothesis is not rejected.
The data space splits into a rejection and an acceptance region. - die (fairness) (noun)
- A small cube used in games, marked with faces of different values.
The lecture tests whether a die is fair. - distinguish (hypotheses) (verb)
- To tell two possibilities apart based on evidence.
The test aims to distinguish two normal distributions. - scale (a statistic) (verb)
- To multiply or divide a value to adjust its size appropriately.
The statistic is scaled by the expected counts. - tabulate (verb)
- To organize values into a table for easy reference.
The chi-square distribution's thresholds are tabulated.
Chapters
- 0:00 Introduction to hypothesis
- 1:23 Simple hypothesis testing
- 5:45 Error types and tradeoffs
- 10:20 Normal distribution example
- 13:58 Variance testing example
- 19:08 Coin flip testing
- 29:03 Die fairness testing
- 35:35 Testing distribution models
- 44:42 Statistical pitfalls and wrap
From the YouTube description
MIT 6.041 Probabilistic Systems Analysis and Applied Probability, Fall 2010
View the complete course: http://ocw.mit.edu/6-041F10
Instructor: John Tsitsiklis
License: Creative Commons BY-NC-SA
More information at http://ocw.mit.edu/terms
More courses at http://ocw.mit.edu
