Tutorials › Exam SRM - Statistics for Risk Modeling › Initializing Seasonal Components

Exam SRM · Smoothing and Forecasting · Tutorial 499 of 926

Initializing Seasonal Components

Estimate and normalize seasonal components, then combine them with starting level and trend values for Holt-Winters models.

Intermediate 12 min read

What You'll Learn

  • Calculate additive seasonal indices by comparing each seasonal position with its cycle baseline.
  • Estimate multiplicative seasonal factors as ratios to a baseline.
  • Normalize indices so additive effects sum to zero or multiplicative factors average one.
  • Use detrended observations to separate seasonality from a changing level.
  • Combine seasonal estimates with initial level and trend states.
  • Recognize how incomplete cycles and inconsistent normalization can distort initialization.

Why Initialization Matters

Holt-Winters seasonal smoothing needs starting values for the level, trend, and seasonal pattern. Poor starting values can make the first updates misleading: the model may attribute a seasonal high to a rising level, or interpret a changing level as a seasonal effect. Initialization is therefore a way to separate these components before recursive smoothing begins.

The calculations below use complete seasonal cycles. A cycle contains one observation for each of the \(m\) seasonal positions; for monthly data with yearly seasonality, \(m=12\). Additive seasonality represents a roughly constant seasonal difference. Multiplicative seasonality represents a roughly constant seasonal ratio. Both approaches require the seasonal components to have a fixed scale convention.

Definition: In an additive seasonal model, an observation is represented as \(y_t=L_t+S_j+e_t\), where \(L_t\) is the level or trend baseline at time \(t\), \(S_j\) is the effect for seasonal position \(j\), and \(e_t\) is the remaining error. The seasonal effects are normalized to sum to zero across a cycle. In a multiplicative seasonal model, \(y_t=L_tS_j e_t\), where the seasonal factors are normalized to average one across a cycle.

Here \(y_t\) denotes the observation at time \(t\), and \(j\in\{1,\ldots,m\}\) denotes its position within the cycle. The multiplicative representation is appropriate for positive observations and a positive baseline. If observations can be zero or negative, ratio-based seasonal factors may be undefined or unsuitable; an additive representation or another model may be needed.

Estimating Seasonal Indices From Complete Cycles

If the baseline is stable within each cycle, first calculate each cycle mean. For additive seasonality, subtract the cycle mean from each observation, then average those differences by seasonal position across cycles. For multiplicative seasonality, divide each observation by its cycle mean, then average those ratios by position. Using multiple cycles reduces the influence of random variation in any one cycle.

When a trend is present within a cycle, cycle means alone may not adequately remove it. Estimate a preliminary baseline trend and compare each observation with the trend value at its own time: subtract the trend for an additive model, or divide by it for a multiplicative model. Average the resulting residuals or ratios by seasonal position. This separates the estimated seasonal pattern from the changing baseline.

$$ a_j=\frac{1}{K}\sum_{k=1}^{K}(y_{k,j}-B_{k,j}), \qquad q_j=\frac{1}{K}\sum_{k=1}^{K}\frac{y_{k,j}}{B_{k,j}} $$

In these expressions, \(K\) is the number of complete cycles, \(B_{k,j}\) is the estimated baseline at position \(j\) of cycle \(k\), \(a_j\) is the raw additive index, and \(q_j\) is the raw multiplicative factor. With a constant baseline within each cycle, \(B_{k,j}\) can be the cycle mean. With a changing baseline, it should reflect the estimated trend at that time.

Raw estimates may not satisfy the required normalization exactly, especially when the baseline is estimated or the data include noise. Normalize additive estimates by subtracting their mean. Normalize multiplicative estimates by dividing by their mean.

$$ S_j=a_j-\bar a,\qquad \bar a=\frac{1}{m}\sum_{j=1}^{m}a_j $$
$$ S_j=\frac{q_j}{\bar q},\qquad \bar q=\frac{1}{m}\sum_{j=1}^{m}q_j $$

After additive normalization, \(\sum_{j=1}^{m}S_j=0\). After multiplicative normalization, \(\frac{1}{m}\sum_{j=1}^{m}S_j=1\). These constraints are not optional bookkeeping: without them, the level and seasonal components can absorb each other’s scale.

Worked Example: Additive Indices From Two Complete Cycles

A hypothetical quarterly claim-count series has four observations per cycle. Two complete cycles are \((94,102,108,96)\) and \((96,104,110,98)\). Estimate additive seasonal indices by centering each cycle on its own mean, then averaging by quarter and normalizing.

Method and cycle means. The first-cycle mean is \((94+102+108+96)/4=400/4=100\). The second-cycle mean is \((96+104+110+98)/4=408/4=102\).

Center within each cycle. The first cycle's deviations from 100 are \((-6,2,8,-4)\). The second cycle's deviations from 102 are also \((-6,2,8,-4)\).

Average by quarter. Each quarter's average deviation is therefore \(a=(-6,2,8,-4)\). Their mean is \(\bar a=(-6+2+8-4)/4=0/4=0\).

Normalize and check. Subtracting zero leaves \(S=(-6,2,8,-4)\). The sum is \(-6+2+8-4=0\), as required. The method avoids treating the difference between cycle means as a seasonal effect: each cycle was centered separately.

Worked Example: Multiplicative Factors and Normalization

A hypothetical three-period seasonal series has two complete cycles, each equal to \((400,500,600)\). Assume a stable baseline within each cycle. Estimate and normalize the multiplicative factors.

Find the cycle baselines. Each cycle mean is \((400+500+600)/3=1{,}500/3=500\).

Calculate ratios by position. In either cycle, the ratios are \(400/500=0.8\), \(500/500=1.0\), and \(600/500=1.2\). Averaging across the two cycles gives \(q=(0.8,1.0,1.2)\).

Normalize and check. The raw-factor mean is \(\bar q=(0.8+1.0+1.2)/3=3.0/3=1.0\). Dividing each factor by 1.0 leaves \(S=(0.8,1.0,1.2)\). Their mean is exactly one. Thus the seasonal high is 20% above the baseline and the seasonal low is 20% below it.

Separating Seasonality From Trend

For a trend series, estimate seasonal effects relative to a baseline that changes over time. One practical initialization is to calculate a mean for each complete cycle, use those means to estimate a trend across cycles, and evaluate that trend at each observation time. The cycle means locate the baseline near the middle of each cycle; the resulting trend can then be used to detrend each observation. With only a few cycles, this preliminary trend is an estimate, not a known truth.

Once seasonal indices have been estimated, the starting level and trend must use the same decomposition convention. For an additive-trend Holt-Winters model, \(L_n\) is the estimated baseline at the last observed time \(n\), \(T_n\) is the estimated change in that baseline per time period, and the seasonal states are the normalized \(S_j\). The multiplicative seasonal version uses the same kind of level and trend baseline, together with normalized seasonal factors. These starting values supply the states used by the subsequent smoothing updates.

Worked Example: Initial Level, Trend, and Additive Seasonality

A hypothetical quarterly portfolio series has eight observations: \((44,54,62,52,52,62,70,60)\). There are two complete cycles of length \(m=4\). Estimate a linear baseline from the cycle means, detrend the observations, and identify the initial level, trend, and seasonal indices at time \(n=8\).

Calculate cycle means. The first is \((44+54+62+52)/4=212/4=53\). The second is \((52+62+70+60)/4=244/4=61\). Their midpoint times are \(2.5\) and \(6.5\), so the baseline rises by \(61-53=8\) over four periods. The trend estimate is \(T_n=8/4=2\) units per period.

Estimate the baseline at each time. The first cycle mean, 53, is the baseline estimate at time \(2.5\). Moving back to time 1 gives \(53-1.5(2)=50\). Thus the fitted baseline at times 1 through 8 is \((50,52,54,56,58,60,62,64)\).

Detrend and estimate seasonal indices. Subtracting these baseline values from the observations gives residuals \((-6,2,8,-4,-6,2,8,-4)\). Averaging by quarter gives raw indices \((-6,2,8,-4)\). Their sum is zero, so normalization changes nothing.

Set and check the starting states. At time 8, the estimated baseline is \(L_8=64\), and the trend is \(T_8=2\) units per quarter. The seasonal states are \(S=(-6,2,8,-4)\), whose sum is zero. The initialization is internally consistent: the fitted baseline increases by two each quarter, and the seasonal deviations average to zero.

Why Normalization Works

The normalization constraints resolve an ambiguity in the decomposition. In an additive model, adding a constant \(c\) to the level and subtracting \(c\) from every seasonal effect leaves every fitted observation unchanged:

$$ (L_t+c)+(S_j-c)=L_t+S_j $$

Requiring the seasonal effects to sum to zero fixes that ambiguity: the average seasonal effect is zero, so the level represents the baseline rather than the baseline plus an arbitrary seasonal offset. In a multiplicative model, multiplying the level by a positive constant \(c\) and dividing every seasonal factor by \(c\) also leaves the product unchanged. Requiring the factors to average one fixes the scale.

The corresponding normalization formulas follow directly. If raw additive estimates have mean \(\bar a\), subtracting it gives \(\sum_j(a_j-\bar a)=\sum_j a_j-m\bar a=0\). If raw multiplicative estimates have mean \(\bar q>0\), dividing by it gives \(\frac{1}{m}\sum_j(q_j/\bar q)=\bar q/\bar q=1\). Thus normalization preserves the relative pattern while imposing the chosen baseline convention.

Common Mistakes and Practical Checks

  • Using incomplete cycles as if they were complete. If one seasonal position is missing, its average is based on a different set of cycles. Do not silently treat the partial cycle as balanced; obtain complete cycles or state how missing observations are handled.
  • Mixing additive and multiplicative calculations. Additive indices are differences in the series' units. Multiplicative indices are ratios and are dimensionless. Subtracting a multiplicative factor from an observation does not estimate a multiplicative seasonal effect.
  • Forgetting to normalize. Raw estimates can have a nonzero additive mean or a multiplicative mean other than one. Check the constraint after every calculation.
  • Ignoring trend within cycles. When the baseline changes appreciably during a cycle, simply comparing observations with a cycle mean can leave trend in the seasonal residuals. Detrend at the observation times before averaging by seasonal position.
  • Misplacing the level in time. The initial level must refer to a stated time point. A trend estimated per cycle must be converted to the model's per-period units before it is used as \(T_n\).

For example, suppose raw additive indices are \((-4,0,5,3)\). Their sum is \(4\), not zero. Using them unchanged violates the additive convention. Their mean is \(4/4=1\), so the corrected indices are \((-5,-1,4,2)\), which sum to zero. This correction is not a change in the estimated seasonal shape; it reallocates the common offset to the level.

Key takeaway: Estimate seasonal effects or ratios relative to a suitable baseline, average by seasonal position across complete cycles, normalize to the model's required scale, and express the starting level and trend at a clearly identified time.

Check Your Understanding

For each problem, use complete cycles and check the normalization condition.

  1. A three-period hypothetical series has two cycles, \((18,22,26)\) and \((21,25,29)\). Estimate additive indices by centering each cycle on its mean. (Answer: \((-4,0,4)\))
  2. A hypothetical four-period series repeats \((26,29,34,31)\) in two complete cycles. Estimate additive indices using the cycle mean as baseline. (Answer: \((-4,-1,4,1)\))
  3. A three-period series has cycles \((48,60,72)\) and \((48,60,72)\), with a stable baseline within each cycle. Estimate normalized multiplicative factors. (Answer: \((0.8,1.0,1.2)\))
  4. Two complete cycles of length four have baseline means 42 and 54 at midpoint times 2.5 and 6.5. A linear trend is assumed. Find the trend per period and the fitted baseline at time 8. (Answer: trend \(=3\) units per period; baseline at time 8 \(=58.5\))
  5. Raw multiplicative factors for four positions are \((0.7,1.1,1.3,1.0)\). Normalize them to average one, rounding to four decimals. (Answer: \((0.6829,1.0732,1.2683,0.9756)\))
Clinical Biostats