2
$\begingroup$

Suppose I have 5 years of weekly sales data for a particular product. I also have other variables such as weekly unemployment rate, weekly coupon rates, and percentages of marketing amount spent on internet, TV, and mail advertising. Suppose I want to determine whether season has an effect on sales. Would it be best to treat season as a dummy variable where season takes values: Winter, Fall, Spring Summer, or would it be better to perform spectral analysis on the sales time series and determine seasonality that way? The current setup I have is:

$sales_{t} = week_{t}+ unemploy_{t} + coupon_{t} + internetprop_{t} + TVprop_{t} + mailprop_{t} + season_{t} + w_{t}$ where $w_{t}$ is white noise.

I run a linear regression first and depending on the ACF and PACF charts, I choose a model for the error term. Is the correct approach? I am unsure of how to model seasonality.

$\endgroup$
5
  • $\begingroup$ If you have weekly data, there is no reason to assume that seasonality is best tackled by assuming quarterly shifts. At the same time, you don't have very much data to model seasonality in much detail. The best method has to reflect a trade-off between your precise goals, the dataset size, and which models work adequately. $\endgroup$
    – Nick Cox
    Commented Jul 20, 2013 at 22:36
  • $\begingroup$ So in order to detect seasonality, would spectral analysis on only the sales data reveal the seasonal lags given I had enough data. $\endgroup$
    – phil12
    Commented Jul 20, 2013 at 22:57
  • $\begingroup$ My strong impression is that spectral analysis is data hungry. You have only 5 replications! My guess: graphing the raw data will tell you as much about seasonality as spectral analysis. stata-journal.com/sjpdf.html?articlenum=gr0025 and stata-journal.com/sjpdf.html?articlenum=gr0037 are reviews of relevant graphs. They are focused on Stata applications but the graphs are trivial in any decent software. $\endgroup$
    – Nick Cox
    Commented Jul 20, 2013 at 23:05
  • $\begingroup$ But you can still use the periodogram to identify smaller frequencies. You do not have enough information to identify yearly patterns, but you could identify monthly or weekly patterns. $\endgroup$
    – phil12
    Commented Jul 20, 2013 at 23:47
  • $\begingroup$ Seasonality is in the first instance a matter of variation with time of year. If you have consistent variations within months, they might show up on a spectrum too but the irregularity of months and weeks doesn't help there. Clearly you have the data and we don't. Have you tried spectral analysis to see what it tells you? $\endgroup$
    – Nick Cox
    Commented Jul 20, 2013 at 23:56

2 Answers 2

1
$\begingroup$

Have you seen this thread? What method can be used to detect seasonality in data?

Keep in mind that, when using dummy variables, you should only include 3 seasons (e.g. Summer, Spring and Winter) and not all four, so as to avoid perfect multicollinearity (the so-called dummy variable trap).

$\endgroup$
1
  • $\begingroup$ Nick points out above NOT to use quarterly dummies and I agree. Weekly dummies, Seasonal differencing or an AR52 would make much more sense. $\endgroup$
    – Tom Reilly
    Commented Jul 22, 2013 at 13:53
0
$\begingroup$
  1. "percentages of marketing amount spent on internet, TV, and mail advertising". That doesn't sound like a good operationalization if they add up to 100% each week. Sales will respond to the level of these marketing activities, not percentage.

  2. Quarterly seasonality isn't nearly good enough if you have weekly data. You will need weekly estimates. If your product is holiday sensitive, you may need to do some hand adjustments for Christmas (big difference is it's early or late in the week).

  3. In addition, you will have collinearity problems because marketing activity will, obviously, be higher during high seasons. One approach is (a) to depromote the weekly data for a SET of products individually, because the promotional activity will vary across products, then (b) use this depromoted data to estimate the seasonal factors for the TOTAL SET of products (if they can be assumed to have approximately the same seasonality). Then (c) use these seasonal factors in a model for the original data to better estimate the promotional effects. (the depromoted data in step a is only used in that step, and not later)

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.