Skip to content

Releases: ECheynet/stationaryTests

Sationarity tests for random process

08 May 17:00
129e366
Compare
Choose a tag to compare
  • Correction of a typo in the example file
  • The moving standard deviation function is now applied after linear detrending of the time series

Sationarity tests for random process

12 Jun 10:45
af2a370
Compare
Choose a tag to compare
  • Correction of typographical mistakes.

The full description of the Matlab code is available at https://se.mathworks.com/matlabcentral/fileexchange/54058-stationarity-test

Sationarity tests for random process

12 Jun 10:35
7660a07
Compare
Choose a tag to compare

The N-th order stationarity [1] of a random process is assessed using two tests in Matlab. In the present submission, only the first and second-order stationarities are described. A random process is stationary at the first order if its mean does not change (significantly) with the time. Similarly, a random process is stationary at the second-order if its variance or standard deviation does not change (significantly) with the time.

The LiveScript example considers the case of turbulent velocity time histories. Their stationarity is assessed using two different approaches:

  • A non-parametric test [2,3], which detects trends and classify the time as non-stationary if the trend is not negligible.
  • A parametric test based on moving-window functions that compare the instantaneous mean or standard deviation to the one obtained without any detrending.

To run the examples, you will need some additional functions:

Content

The present submission contains:

  • The function RA_test.m, which implements the reverse-arrangement test by Bendat and piersol[2] but also Siegel et al [3]
  • The function MW_test.m, which implement a parametric stationarity test relying on moving windows functions.
  • A LiveScript example Documentation.mlx

References

[1] Priestley, M. B. (1981). Spectral Analysis and Time Series. Academic Press. ISBN 0-12-564922-3.

[2] Bendat and piersol, Random data, 2010, page 99

[3] Siegel, Sidney, and N. J. Castellan. "Non-para-metric statistics for the behavioral sciences." (1988).