5. Seasonality Tests

Some time series exhibit a behavior known as seasonality. The seasonality of a time series is the number of observations the series takes to repeat the pattern. In the Tests tool of Seasonality, it is possible to carry out two tests to verify whether the series presents seasonality.

Example:

We will perform the test with the following data set:

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, Sazonalidade — AMBV3), and click Load.

Example 1 data loaded in Action Stat

In the sidebar menu, open Time Series › Seasonality Test and fill in the Settings panel:

  1. In Data, select AMBV3.
  2. Check Kruskal Wallis, Friedman.
  3. In Longitud Estacional, enter 12.
  4. Click Calculate.

Settings for example 1

In the Results panel, you can also download the analysis as Excel, Word, or PDF.

The results are:

Kruskal-Wallis test

Kruskal-Wallis chi-squared
Statistics 28.0688775510204
P-Value 0.003159616205745
Sample Size $\quad \qquad$ 50
Seasonal Length $\quad \qquad$ 12
Null Hypothesis There is no deterministic seasonality
Alternative Hypothesis There is deterministic seasonality

Friedman test

Friedman chi-squared
Statistics 24.6153846153846
P-Value 0.0103740819044975
Sample Size $\quad \qquad$ 50
Seasonal Length $\quad \qquad$ 12
Null Hypothesis There is no deterministic seasonality
Alternative Hypothesis There is deterministic seasonality