ARBIMETRA LAB
Phillips-Perron Test
Tests for a unit root, correcting for serial correlation with a long-run variance rather than extra lags.
What it does
Tests for a unit root, correcting for serial correlation with a long-run variance rather than extra lags.
Use it alongside ADF as a robustness check.
Data you need
- One series
Supported data: Time series. Level: Intermediate.
Formula and method
Z(t) = √(γ₀/λ²)·t − ½((λ²−γ₀)/λ)(T·SE/s)
A Dickey-Fuller regression without extra lags is fitted, then the t-statistic is corrected using a Bartlett-kernel estimate of the long-run variance, so serial correlation is handled in the statistic rather than in the regression.
Assumptions
- Rows are in time order
- No structural breaks in the sample
Input checks
- At least 20 observations
How to read the result
Rejecting H₀ supports stationarity.
Worked example
Illustrative run on US quarterly macro 1959-2009. These figures are the actual output of this model on that example, and they say nothing about your own data.
- Statistic = -8.1912, p = <0.0001.
- The evidence points to stationarity at the 5% level, under a constant.
Limitations
- Size distortions with large negative MA terms
Numerical validation
Validated 15 of 15 automated checks passed, including numerical results, invalid input, missing values, small samples, constant variables, charts and the interpretation text.
| Check | Reference | Result | Abs. error | Tolerance | Source |
|---|---|---|---|---|---|
| Z(t) by independent formula | -6.57671056 | -6.57671056 | 1.1e-14 | 1e-9 | Independent NumPy calculation |
| Z(t) with trend | -6.68949556 | -6.68949556 | 2.0e-14 | 1e-9 | Independent NumPy calculation |
Computed with python 3.13.2, numpy 2.2.5, scipy 1.14.1, pandas 2.3.3, statsmodels 0.14.4, scikit-learn 1.7.0, in your browser. A passing check confirms the listed comparison only. It does not make any result suitable for your data, and it is not a claim of equivalence with other statistical software.
Questions
How does it differ from ADF?
ADF adds lagged differences to the regression. Phillips-Perron adjusts the test statistic instead.
ARBIMETRA LAB is an educational and research tool. Results should be checked by the researcher and are not professional advice.
