4. Stationarity tests
Almost all the models proposed for time series have stationarity as an assumption. Therefore, a fundamental question is when a time series is stationary. In the Stationarity Tests tool, three tests are available to verify the stationarity of the series.
Example:
We will perform the test for the following data:
| AMBV3 |
|---|
| 84.06 |
| 83.85 |
| 83.56 |
| 83.47 |
| 83.27 |
| 82.81 |
| 82.20 |
| 82.06 |
| 81.62 |
| 80.77 |
| 81.30 |
| 81.92 |
| 82.75 |
| 82.77 |
| 82.84 |
| 82.82 |
| 82.72 |
| 82.29 |
| 81.18 |
| 80.11 |
| 80.27 |
| 80.21 |
| 79.92 |
| 79.96 |
| 80.19 |
| 80.17 |
| 80.17 |
| 79.85 |
| 81.00 |
| 80.44 |
| 79.96 |
| 79.85 |
| 79.82 |
| 80.11 |
| 80.20 |
| 80.31 |
| 81.18 |
| 80.81 |
| 81.15 |
| 81.32 |
| 81.21 |
| 81.40 |
| 81.10 |
| 81.40 |
| 82.27 |
| 82.15 |
| 81.78 |
| 81.69 |
| 81.34 |
| 81.88 |
To load the data, open Data upload, choose the Paste tab, paste the table above (with the column names), give the dataset a name (for example, Estacionariedade — AMBV3), and click Load.

In the sidebar menu, open Time Series › Stationarity Test and fill in the Settings panel:
- In Data, select
AMBV3. - Check Augmented Dickey-Fuller, Philips - Perron, KPSS test.
- Click Calculate.

In the Results panel, you can also download the analysis as Excel, Word, or PDF.
The results are:
Test of Augmented Dickey-Fuller
| Dickey-Fuller | |
|---|---|
| Statistics | -1.90501089436462 |
| P-value | 0.612390335192691 |
| Sample size | $\quad \qquad$ 50 |
| Null hypothesis | At least one unit root exists |
| Alternative hypothesis | There is no unit root |
Test of Phillips-Perron
| Dickey-Fuller Z(alpha) | |
|---|---|
| Statistics | -6.09026378709285 |
| P-value | 0.753893665311693 |
| Sample size | $\quad \qquad$ 50 |
| Null hypothesis | At least one unit root exists |
| Alternative hypothesis | There is no unit root |
KPSS Test
| KPSS Level | |
|---|---|
| Statistics | 0.540460035842587 |
| P-value | 0.0325540459813994 |
| Sample size | $\quad \qquad$ 50 |
| Null Hypothesis | The time series is stationary. |
| Alternative Hypothesis | The time series has a unit root. |