1
$\begingroup$

enter image description here

Would this data set be considered stationary or are there too many anomalies around 60-120. If no, would I ignore the anomalies or would I attempt differencing to turn it stationary?

$\endgroup$
7
  • $\begingroup$ Welcome to Cross Validated! It's hard to tell things like this visually. It looks reasonably stationary, though the mean is clearly above 0 (as there are almost no points below 0). Why don't you run a statistical stationarity test on it? $\endgroup$ Commented Feb 15, 2022 at 17:01
  • 2
    $\begingroup$ @VladimirBelik, while stationarity is not in the eye of the beholder, I often find visualizations more useful than tests, this one included (even though no test has been proposed yet!). Since there is no test against a general alternative to stationarity, what specific test would you suggest? $\endgroup$ Commented Feb 15, 2022 at 17:04
  • $\begingroup$ @RichardHardy I understand that! Maybe I'm missing something though. Isn't there quite a selection of tests? KPSS, Augmented Dickey-Fuller, Phillips-Perron tests? $\endgroup$ Commented Feb 15, 2022 at 17:12
  • $\begingroup$ This series clearly does not have a unit root, thus differencing it is a bad idea. If you difference it, you will encounter the problems caused by overdifferencing (you may look the term up to learn more). $\endgroup$ Commented Feb 15, 2022 at 17:12
  • 2
    $\begingroup$ @VladimirBelik, none of these test will help here, because the series clearly does not have a unit root. The source of nonstationarity here is the time-variation in variance, not mean. ADF, KPSS and PP capture the former, but not the latter. $\endgroup$ Commented Feb 15, 2022 at 17:14

1 Answer 1

2
$\begingroup$

This time series does not appear stationary, as its variance changes over time. The fluctuations between periods 0 and 60 are relatively small, while the fluctuations between periods 60 and 100 (or perhaps the whole way until period 160) are relatively large, perhaps 3 times as large as the former ones. This is known as (conditional) heteroskedasticity and is a violation of stationarity.

Note that differencing will not help. First, that will not remove the heteroskedasticity that you would like to remove to achieve stationarity. Second, the series does not appear to have a unit root, so there is no reason to difference. Differencing a time series that does not have a unit root results in overdifferencing (it introduces a unit-root moving-average component in the process and thus effectively doubles the error variance).

What you could do instead is build a model that allows for time-varying variance or, if variance is just a nuisance feature, ignore variance in the model but use an estimator that is robust to heteroskedasticity. The former approach is a cleaner one, as it offers a more apt description of the process and does not sacrifice precision or power. The latter one may be easier to implement using some standard HAC estimator.

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.