How do you check for stationarity in a time series, both visually and statistically?

Quick Overview

Asks how to check whether a time series is stationary using plots and formal tests. Tests knowledge of rolling statistics, autocorrelation plots, the ADF and KPSS tests and their null hypotheses, and how to act when the checks disagree.

How do you check for stationarity in a time series, both visually and statistically?

Role: Data Scientist

Category: Statistics & Math

Difficulty: medium

Interview Round: Other

How do you check for stationarity in a time series, both visually and statistically? ```hint What to plot Think about which summary statistics a stationary series must hold constant over time, and how you would watch them move. ``` ```hint Read the nulls The two most common tests put opposite hypotheses in the null. Work out what a small p-value lets you conclude for each. ``` ### What a Strong Answer Covers - What stationarity means here: constant mean, constant variance, and autocovariance that depends only on the lag - Visual checks (time plot, rolling statistics, ACF) and what non-stationarity looks like in each - The ADF and KPSS tests, their null hypotheses, and how to read their p-values - How to combine the tests, including what each pattern of agreement and disagreement suggests - Limits of the checks, such as the choice of trend terms, seasonality, structural breaks and low power on short series ### Follow-up Questions - The series fails the checks. How do you decide between differencing and detrending? - How would a structural break, such as a pricing change halfway through the series, affect the ADF result? - How do you check stationarity for a series with strong weekly seasonality? - Why does differencing a series that is already stationary cause problems for an ARIMA model?

Overview: Asks how to check whether a time series is stationary using plots and formal tests. Tests knowledge of rolling statistics, autocorrelation plots, the ADF and KPSS tests and their null hypotheses, and how to act when the checks disagree.

Nov 25, 2026
mediumData ScientistOtherStatistics & Math
0
0

How do you check for stationarity in a time series, both visually and statistically?

What a Strong Answer Covers Guidance

  • What stationarity means here: constant mean, constant variance, and autocovariance that depends only on the lag
  • Visual checks (time plot, rolling statistics, ACF) and what non-stationarity looks like in each
  • The ADF and KPSS tests, their null hypotheses, and how to read their p-values
  • How to combine the tests, including what each pattern of agreement and disagreement suggests
  • Limits of the checks, such as the choice of trend terms, seasonality, structural breaks and low power on short series

Follow-up Questions Guidance

  • The series fails the checks. How do you decide between differencing and detrending?
  • How would a structural break, such as a pricing change halfway through the series, affect the ADF result?
  • How do you check stationarity for a series with strong weekly seasonality?
  • Why does differencing a series that is already stationary cause problems for an ARIMA model?