skip to content

Would you fit a SARIMA with m=52 to three years of weekly sales, and how would you justify the call?

level: principalimportance: should knowfreq 31%

answer

  1. count cycles, not rows
  2. the seasonal difference spends a whole year
  3. a year is not exactly 52 weeks
  4. carry the annual wave as regressors instead

basics

~20 s

Usually no. A lag-52 seasonal term is informed by complete yearly cycles, and three years gives three; seasonal differencing also discards 52 of about 156 weeks. Carry annual seasonality with a few harmonic regressors instead.

solid answer

~50 s

The instinct to set `m = 52` because the data are weekly is the mistake. A seasonal term at lag 52 is effectively estimated from the number of complete annual cycles observed, not from the row count — three years means roughly three observations of each seasonal relationship. Seasonal differencing at lag 52 costs a full year, leaving about 104 usable weeks. And a year is not 52 weeks but about 52.18, so a fixed lag-52 relation slowly drifts out of calendar alignment, mis-matching the very peaks it is meant to capture. The alternative that fits inside the same model family is dynamic harmonic regression: a small number of sine and cosine pairs at the annual period entered as exogenous regressors, with ARIMA errors on the remainder. Two or three pairs cost a handful of parameters, handle a non-integer period naturally, and leave short-range structure to the non-seasonal orders.

go deeper

for a junior

Know that the seasonal period must match a real cycle in the data and that annual patterns in weekly data need several years of history before they can be estimated at all.

for a middle

Explain the arithmetic out loud: a seasonal difference at lag 52 costs 52 observations, and three years of weekly data contains only three complete annual cycles to inform any lag-52 coefficient.

for a senior

Show you would reach for harmonic regressors at the annual period instead, and explain why deterministic date-based regressors avoid both the parameter cost and the fractional-week alignment problem.

for a principal

Own the decision rule and its communication: state the criterion, name what would reverse the call, and flag that a confident-looking interval resting on three cycles is the risk that actually reaches stakeholders.

## What m = 52 actually asks for Setting a seasonal period of 52 on weekly data tells the model that this week's value relates to the value 52 weeks ago, and that a seasonal difference or a seasonal coefficient should encode that relationship. It sounds like a mechanical translation of "the data are weekly and the pattern is annual." It is not, and three separate problems arrive together. ### Problem one: effective sample size for a seasonal parameter A seasonal autoregressive coefficient at lag 52 is a statement about how one year relates to the next. With three years of history you have observed roughly three such transitions. The 156 rows are not 156 pieces of evidence about that coefficient; they are three, spread across 52 week-of-year positions. Any parameter estimated at that lag is fitted on approximately three effective observations, and the standard error will reflect it even when the point estimate looks plausible. The general rule to carry into the interview: **seasonal structure is informed by the number of complete cycles observed, never by the number of rows.** ### Problem two: the cost of the seasonal difference A seasonal difference with `D = 1` pairs each observation with the one 52 weeks earlier, so the first year has no partner and is lost. From 156 weeks you keep about 104. If you also take an ordinary first difference, another observation goes. Spending a third of the history to remove a pattern you have only seen three times is a poor trade, and it happens silently — nothing in the output announces that a year of data was discarded. ### Problem three: 52 is the wrong number A year is about 365.25 days, which is roughly 52.18 weeks. A fixed lag of 52 therefore drifts against the calendar by more than a day a year, and the drift is worse for anything tied to a fixed date rather than a weekday. Over a few years the peak the model expects at lag 52 has moved. Add ISO week conventions, occasional 53-week years, and moving holidays, and a rigid integer lag is being asked to represent a cycle that does not have an integer length. The seasonal block has no mechanism to accommodate that. ### The alternative that stays inside the family Dynamic harmonic regression keeps the same model type but changes how the cycle is carried. Instead of a seasonal block, you build a small set of sine and cosine pairs at the annual frequency — `sin(2*pi*k*t/52.18)` and `cos(2*pi*k*t/52.18)` for `k = 1, 2, ...` — and enter them as exogenous regressors, letting a non-seasonal ARIMA structure handle what is left over. The advantages are concrete. Each harmonic pair costs two parameters, so two or three pairs cost four to six in total instead of a seasonal block plus 52 lost observations. The period does not have to be an integer, so the alignment problem disappears. The regressors are deterministic functions of the date, so the future values needed to forecast are exactly known — none of the future-value trouble that other exogenous drivers bring. And the number of pairs is a tunable smoothness knob: one pair gives a single smooth annual wave, more pairs sharpen the peaks and troughs. Start small and add only if the shape genuinely demands it. Holiday and event effects, which a lag-52 term handles badly anyway because holidays move relative to week numbers, go in as their own indicator regressors alongside the harmonics. ### When m = 52 is defensible The answer is not never. With a long, clean history — eight or ten years of stable weekly data on a stable calendar — the effective sample size argument weakens considerably and a seasonal block becomes estimable. It is also defensible when the annual pattern is genuinely week-indexed by the business itself, for example a retail calendar whose weeks are defined so that comparable weeks align by construction. In those cases the objection about 52.18 largely evaporates, because the business calendar, not the astronomical year, is the cycle. ### How to present the judgment A principal-level answer does not stop at "no." It sets out the criterion — parameters against complete cycles observed, and data spent against pattern recovered — applies it to the case at hand, names the concrete alternative, and states what would change the decision. It also flags the reporting consequence: a model that spends a third of a short history on an under-identified seasonal block will produce prediction intervals that look confident while resting on three observations, and that is the failure mode most likely to reach a stakeholder unchallenged.

  • Why can an information criterion not settle a lag-52 seasonal model against a harmonic-regressor model?
    Because an information criterion is comparable only across models fitted to the same data. A seasonal difference changes the dependent variable and drops 52 observations, so its likelihood is computed on a different, shorter series. The two numbers are not on the same footing, and picking the smaller one is meaningless.
  • How many harmonic pairs would you start with for annual seasonality in weekly data?
    Two or three pairs at a period near 52.18, which is four to six parameters. One pair gives a single smooth annual wave; extra pairs sharpen peaks and troughs. Add them only when the residual pattern clearly needs a sharper shape, since each pair spends parameters on a cycle you have observed only a few times.
  • What if the business only needs a four-week-ahead forecast?
    Then annual structure matters far less. Over four weeks the level and short-range dynamics dominate, so a small non-seasonal model with holiday and promotion indicators will usually match or beat anything carrying a lag-52 block, at a fraction of the complexity. Match the model's structure to the horizon that is actually used.
  • What would change your answer to yes?
    A long history — eight or more years of clean weekly data — so the seasonal coefficients rest on many cycles rather than three. Or a business calendar that defines weeks so comparable periods align by construction, which removes the fractional-week drift and makes lag 52 a genuine year rather than an approximation.

saying these in an interview costs you the question

  • Sets m to 52 automatically because the data are weekly
  • Ignores that seasonal differencing discards a full year
  • Assumes a year is exactly 52 weeks
  • Fits more seasonal parameters than complete cycles observed
  • Treats a better in-sample fit as proof the bigger model wins

context