# Stationarity tests (/docs/analyses/stationarity-tests)



## When to use it [#when-to-use-it]

Use these tests when you need to know whether a series looks stationary before ARIMA. ADF’s null is a unit root. KPSS’s null is stationarity around a constant. The two can disagree; that disagreement is the result to read. [Autocorrelation](/docs/analyses/autocorrelation) is the other diagnostic.

## Assumptions [#assumptions]

The target is numeric, with at least eight non-missing values. ADF uses AIC lag selection. KPSS uses a constant (level stationarity) and automatic lags. There is no trend-stationarity option and no chart.

## Running it in Tensr [#running-it-in-tensr]

<Steps>
  <Step>
    Time series → Decomposition → Stationarity Tests. In chat: “ADF and KPSS of sales.”
  </Step>

  <Step>
    Target is the numeric series. Date is optional.
  </Step>
</Steps>

## Options [#options]

<TypeTable
  type="{
  target_column: {
    type: 'string',
    description: 'Numeric series to test.',
  },
  date_column: {
    type: 'string',
    description: 'Optional date column used to sort the series.',
    default: 'null',
  },
  decimal_places: {
    type: '0–6',
    description: 'Report output. Decimal places.',
    default: '3',
  },
  apa_format: {
    type: 'boolean',
    description: 'Report output. APA-style p-values.',
    default: 'true',
  },
  include_charts: {
    type: 'boolean',
    description: 'Report output. This procedure does not add a chart.',
    default: 'true',
  },
}"
/>

## Reading the output [#reading-the-output]

The same sales series, which was built with a drift and a seasonal wiggle, not as white noise. ADF’s null is a unit root. KPSS’s null is level stationarity.

|              | Value    |
| ------------ | -------- |
| Statistic    | -1.7502  |
| p-value      | p = .405 |
| Critical 1%  | -3.6155  |
| Critical 5%  | -2.9413  |
| Critical 10% | -2.6092  |

|               | Value    |
| ------------- | -------- |
| Statistic     | 0.3558   |
| p-value       | p = .096 |
| Critical 10%  | 0.3470   |
| Critical 5%   | 0.4630   |
| Critical 2.5% | 0.5740   |
| Critical 1%   | 0.7390   |

ADF p = .405 (null: unit root). KPSS p = .096 (null: level stationarity). Neither test rejects its null on this short, mildly drifting series, so the pair is inconclusive.

## Reporting (APA 7) [#reporting-apa-7]

ADF p = .405, KPSS p = .096 on 48 months of sales. Report both tests; they do not share a null.

## Coming from SPSS [#coming-from-spss]

SPSS does not ship ADF and KPSS as a pair. Tensr’s item is Time series → Decomposition → Stationarity Tests. The path string stored for this item says Time series → Diagnostics → Stationarity. The item itself sits under Decomposition with STL.

## Related [#related]

[ARIMA / SARIMA](/docs/analyses/arima-sarima) is the forecast that usually follows. [Autocorrelation](/docs/analyses/autocorrelation) shows leftover lag structure.
