1. Home
  2. Explore
  3. Mathematics
  4. Chi-Squared Distribution

Study methods

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

Chi-Squared Distribution

Speaker 1Speaker 2

Chi-Squared Distribution

4:32
0:00-4:32
  1. Anna

    We've been talking about distributions that pop up everywhere in statistics, and one of the most important is the chi-squared distribution. It's not just another name—it's the distribution you get when you sum up squares of independent standard Gaussian random variables.

  2. Michael

    Right, and that's exactly why it's so common. For instance, the sample variance follows a chi-squared distribution. The degrees of freedom, which is n minus 1, comes from the fact that we're estimating the mean along the way.

  3. Anna

    Exactly. And as n grows, the chi-squared distribution shifts to the right and flattens out. That makes sense because you're adding more squares, and each has an expected value of 1, so the total keeps increasing.

  4. Michael

    Now, there's another distribution that's closely related: the Student's t-distribution. It has a fascinating backstory—William Gosset, a chemist at Guinness Brewery, derived it in 1908. He had to publish under the pseudonym 'Student' because his employer wouldn't let him use his real name.

  5. Anna

    And the t-distribution arises naturally when you take a standard Gaussian and divide it by the square root of an independent chi-squared divided by its degrees of freedom. That might sound artificial, but it's exactly what you get when you use the sample standard deviation instead of the true one.

  6. Michael

    So if I have a sample mean and I want to standardize it, but I don't know the population variance and have to estimate it, the t-distribution gives me the right distribution. And it has heavier tails than the normal, because you're adding uncertainty from estimating the variance.

  7. Anna

    That extra uncertainty means that for small samples, confidence intervals get wider. But as the sample size grows, the t-distribution approaches the standard normal. For n greater than 50, it's essentially a wash.

  8. Michael

    Right. So the practical takeaway is: for small samples, use the t-distribution; for large samples, the normal approximation is fine. Now, let's talk about building tests. One classic approach is Wald's test.

  9. Anna

    Wald's test is based on the maximum likelihood estimator. Under regularity conditions, the MLE is asymptotically normal with mean equal to the true parameter and covariance given by the inverse Fisher information matrix.

  10. Michael

    So if we want to test H0: θ = θ0, we can form the test statistic: n times (θ̂ - θ0)ᵀ I(θ0) (θ̂ - θ0). Under H0, that asymptotically follows a chi-squared distribution with degrees of freedom equal to the dimension of θ.

  11. Anna

    The idea is that if the null hypothesis is true, the MLE should be close to θ0, so the quadratic form is small. If it's large, we reject. What I like is that it automatically weights the different components using the Fisher information, which accounts for how precisely each parameter is estimated.

  12. Michael

    Exactly. The Fisher information matrix captures the curvature of the likelihood, so directions with more information get higher weight. That's why Wald's test isn't just a simple Euclidean distance.

  13. Anna

    Now, there's another test: the likelihood ratio test. Instead of focusing on the estimator, it compares the likelihood at the MLE with the likelihood at a constrained MLE that satisfies the null.

  14. Michael

    The logic is intuitive: if the null is true, the likelihood should be nearly as high as the unrestricted maximum. The test statistic is twice the log-likelihood difference: 2 [ℓ(θ̂) - ℓ(θ̂₀)]. Under H0, this also converges to a chi-squared, but the degrees of freedom equal the number of constraints—the difference in the number of free parameters between the null and alternative.

  15. Anna

    Right. For a null hypothesis that pins down r parameters, the degrees of freedom is r. And just like Wald's test, you reject when the statistic exceeds a chi-squared quantile.

  16. Michael

    There's also a third approach: the score test, but we won't go into that now. What's important is that these tests are all asymptotically equivalent under the null, but they behave differently in finite samples.

  17. Anna

    And sometimes we want to test a function of θ, like whether a linear combination is zero. For that, we can use the multivariate delta method to get the asymptotic distribution of g(θ̂) and then build a Wald test based on that.

  18. Michael

    Exactly. The same recipe applies: we need the asymptotic covariance matrix of g(θ̂), which involves the gradient of g and the covariance of θ̂. Then we form a quadratic form that, under H0, is chi-squared with degrees equal to the dimension of g.

  19. Anna

    So whether it's a simple test on a single parameter or a complex hypothesis about a multidimensional function, the core ideas are the same: asymptotic normality leads to chi-squared test statistics, and we calibrate them using the appropriate degrees of freedom.

Ask anything

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

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent