Mathematica Stack Exchange is a question and answer site for users of Mathematica. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have the Time Series package and Mathematica 8. In the package, there is the function 'StationaryQ' to test the stationarity of a known model. Is there any function in Mathematica to test the stationarity of a given list of data?

share|improve this question
up vote 10 down vote accepted

The three best-known tests for stationarity (or rather, unit roots) in time series econometrics are:

  1. Dickey-Fuller including Augmented Dickey-Fuller
  2. Phillips-Perron
  3. KPSS

There are also Bayesian tests of unit roots, as implemented in this conference presentation. If you have access to JSTOR or another way of getting at old journals, this article might be of interest.

As far as I'm aware, nobody has created a pre-digested package for unit root testing in Mathematica. The notebook I wrote - about a decade ago - only includes the KPSS test, and I can give no warranties about whether I did it right. It was written for version 3 and would need considerable updating to work with version 8, as it has dependencies on several packages that have been made obsolete when the functionality was rolled into the main kernel.

share|improve this answer

The Dickey-Fuller and the Phillips-Perron tests are now available using UnitRootTest, introduced in Mathematica 9.

share|improve this answer

You can check this link. The notebook is sets up several standard tests of stationarity and non-stationarity in time series.

share|improve this answer
And to be fair, I haven't looked at that notebook in about a decade, and it only includes the KPSS test. – Verbeia Apr 5 '12 at 21:18
Good link, but next time try to provide some context with your link. A short description, a snippet of documentation or a picture would be highly appreciated. Posting just links is generally fronted upon. – Sjoerd C. de Vries Apr 6 '12 at 0:15

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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