tensorpac.stats.test_stationarity

tensorpac.stats.test_stationarity(x, p=0.05)[source]

Test the stationarity of an electrophysiological dataset.

This function performs a Augmented Dickey-Fuller test and returns a table (dataframe) with statistical properties for each epoch.

Parameters
xarray_like

Array of data of shape (n_epochs, n_times)

pfloat | 0.05

P-value to use as a threshold in order to infer if the time-series are significantly stationary

Returns
dfpandas.DataFrame

Dataframe that contains the statistical properties for each epoch. The table contains the followong columns :

  • Epochs : epoch number

  • P-values

  • Stationary : boolean indicating if the time-serie is significantly stationary at the critical level p

  • Statistics : statistical test

  • CV (5%) and CV (1%) : critical value respectively at 5% and 1%

Notes

This function requires both pandas and statsmodels Python packages. See :