What is the Ljung-Box test, and how do you use it to check whether model residuals are white noise?

Quick Overview

Asks what the Ljung-Box test is and how to apply it to the residuals of a time series model. Tests your understanding of portmanteau hypotheses, degrees of freedom after fitting ARMA terms, choosing the number of lags, and reading the result correctly.

What is the Ljung-Box test, and how do you use it to check whether model residuals are white noise?

Role: Data Scientist

Category: Statistics & Math

Difficulty: medium

Interview Round: Other

What is the Ljung-Box test, and how do you use it to check whether model residuals are white noise? ```hint Combine the lags Think about how to turn the sample autocorrelations at lags 1 through h into a single number, and what distribution that number should follow if the residuals are uncorrelated. ``` ```hint Account for the fit The residuals come from a model whose parameters were estimated on the same data. Ask how that changes the reference distribution. ``` ### What a Strong Answer Covers - The null and alternative hypotheses, and what white noise means in this test - The test statistic and its reference distribution, including the adjustment for fitted model parameters - The workflow on residuals and how to read the p-value - How to choose the number of lags and how that choice can change the verdict - What the test does not check, and what failing to reject does and does not establish ### Follow-up Questions - The Ljung-Box test passes, but the residual ACF of a monthly series shows one clear spike at lag 12. What do you do? - How would you check the residuals for leftover volatility clustering? - How does the Ljung-Box test differ from the Box-Pierce test, and when does the difference matter? - Your series has only 40 observations. How much weight should you put on a non-rejection?

Overview: Asks what the Ljung-Box test is and how to apply it to the residuals of a time series model. Tests your understanding of portmanteau hypotheses, degrees of freedom after fitting ARMA terms, choosing the number of lags, and reading the result correctly.

Nov 25, 2026
mediumData ScientistOtherStatistics & Math
0
0

What is the Ljung-Box test, and how do you use it to check whether model residuals are white noise?

What a Strong Answer Covers Guidance

  • The null and alternative hypotheses, and what white noise means in this test
  • The test statistic and its reference distribution, including the adjustment for fitted model parameters
  • The workflow on residuals and how to read the p-value
  • How to choose the number of lags and how that choice can change the verdict
  • What the test does not check, and what failing to reject does and does not establish

Follow-up Questions Guidance

  • The Ljung-Box test passes, but the residual ACF of a monthly series shows one clear spike at lag 12. What do you do?
  • How would you check the residuals for leftover volatility clustering?
  • How does the Ljung-Box test differ from the Box-Pierce test, and when does the difference matter?
  • Your series has only 40 observations. How much weight should you put on a non-rejection?