Programming the statistical procedures from SAS

How to identify seasonality or periodicity in data?

Reply
Occasional Contributor
Posts: 10

How to identify seasonality or periodicity in data?

I have a very simple time series related question.

I have data spanning a four month time period. I have one data record for each day, so a total of approx. 120 data points.

All I want to know is whether there is a periodicity/seasonality to the data. Descriptively, it look like there is a weekly periodicity, but how do I identify this statistically?
Super Contributor
Super Contributor
Posts: 365

Re: How to identify seasonality or periodicity in data?

Hello AshP,

You could use proc UCM:

http://support.sas.com/onlinedoc/913/docMainpage.jsp

Sincerely,
SPR
Contributor
Posts: 58

Re: How to identify seasonality or periodicity in data?

The simplest method to model seasonal patterns is to use dummy variables to represent the seasons. With such a short time series, a weekly periodicity is about the longest effect you can detect (i.e., you would not be able to see a monthly effect with only 4 months). A regresion model with the seasonal dummy variables as your inputs will serve you, but if there is any residual autocorrelation remaining, your MSE may seriously underestimate the variance of the error terms, so your p-values could be way off.

I'd use proc autoreg with the dummy variables and ask for the Durbin-Watson statistic to check for autocorrelation. Proc autoreg can handle autoregressive errors, if present.

Mark
Contributor
Posts: 25

Re: How to identify seasonality or periodicity in data?

Proc Spectra or Proc Arima: Dickey Fuller test, Seasonal Decomposition Plot
Ask a Question
Discussion stats
  • 3 replies
  • 1113 views
  • 0 likes
  • 4 in conversation