Week 15: Exponential Smoothing, Trend & Seasonality

This week’s big question: how can a campus-area Starbucks store forecast demand when recent months deserve extra weight, office accounts climb every quarter, or cold-brew orders swing with the calendar?

Before the week

Read: Taylor, Introduction to Management Science (13e), Chapter 15, pp. 733–750. The PDF is in Canvas.

Pages Section This week
Ch. 15, 733–737 Weighted Moving Average; Exponential Smoothing Monday: tilt weights toward recent months and update one running forecast
Ch. 15, 737–742 Adjusted Exponential Smoothing; Linear Trend Line; Seasonal Adjustments Wednesday: add a trend factor, fit a straight line and adjust for seasons
Ch. 15, 742–750 Forecast Accuracy; Forecasting Using Excel Score competing rules over shared periods with MAD and signed bias

In Chapter 15, skip Excel QM and QM for Windows on pp. 748–750, and stop before Regression Methods on p. 750, which runs in Week 16.

Reading note. Taylor introduces the correlation coefficient \(r\) and coefficient of determination \(R^2\) just past this slice (pp. 752–753, assigned in full in Week 16); Wednesday previews both to judge our fitted trend line. Taylor calls vertical misses from a fitted line forecast errors rather than residuals, and warns against extending a trend line past the horizon where growth stays linear (p. 741) without using the word extrapolation. Qualitative methods (Delphi, jury of executive opinion) appear earlier in the chapter (pp. 728–730).

Session 1: Mon, Nov 30 · Exponential smoothing (TBD)

🧩 Puzzle

Back at the Mobile Order bar after Thanksgiving break. The campus-area Starbucks store from Week 13 has eight months of Mobile Order drink sales to guide its Month 9 order of cups, oat milk and cold-brew concentrate. Counts are in hundreds of drinks, so Month 8’s 35 means 3,500 drinks.

Month 1 2 3 4 5 6 7 8
Drinks (hundreds) 22 25 24 28 30 27 32 35

Before break, a three-month moving average forecast 31.33 hundred drinks (about 3,133 drinks) for Month 9 by giving Months 6, 7 and 8 an equal one-third share and dropping Months 1 to 5. Yet volume has climbed overall, and Month 8’s 35 looks more informative than Month 6’s dip to 27. How can the manager give recent months extra weight without throwing older history away, and how should the store judge which rule works best?

Both sessions this week continue Week 13’s campus-area Starbucks store. It is a classroom case: the drink counts, office coffee accounts and cold-brew keg orders are hypothetical.

Build the skill 1: tilt the window toward recent months with unequal weights

Week 13’s three-month moving average gave Months 6, 7 and 8 (27, 32 and 35 hundred drinks) an equal \(1/3\) share. Equal shares work well when demand hovers around a stable level, because high and low months are equally representative of that center. When demand is shifting, recent months carry fresher evidence than older ones.

A weighted moving average assigns larger shares to newer observations inside a \(k\)-period window while keeping the weights summed to \(1\):

\[\text{WMA}_k = \sum_{i=1}^{k} w_i A_{t-i}, \qquad \sum_{i=1}^{k} w_i = 1.\]
  • \(A_{t-i}\) is actual demand \(i\) periods before forecast period \(t\), measured in hundreds of drinks (so \(i=1\) is the newest completed month, \(A_{t-1}\)).
  • \(w_i\) is the nonnegative share assigned to that period, largest on \(i=1\) and smaller on older periods.
  • Requiring \(\sum_{i=1}^{k} w_i = 1\) keeps the forecast in hundreds of drinks.

Test the weight sum on three identical months first. If Months 6, 7 and 8 had each sold 30 hundred drinks, weights of \(0.50\), \(0.30\) and \(0.20\) would give \(0.50(30) + 0.30(30) + 0.20(30) = (0.50 + 0.30 + 0.20)(30) = 30\) hundred drinks. Because the shares total \(1\), steady demand returns that exact level.

Now apply those weights to the store’s actual Months 6, 7 and 8, placing 0.50 on newest Month 8, 0.30 on Month 7, and 0.20 on oldest Month 6:

Month in window Actual drinks (hundreds) Equal share (3-month MA) Chosen weight \(w_i\) Weighted contribution
Month 8 (newest) 35 \(1/3\) 0.50 \(0.50(35) = 17.50\)
Month 7 32 \(1/3\) 0.30 \(0.30(32) = 9.60\)
Month 6 (oldest) 27 \(1/3\) 0.20 \(0.20(27) = 5.40\)
Total   1.000 1.00 32.50 (equal MA: 31.33)

Tilting the shares toward Month 8 lifts the Month 9 forecast from 31.33 to 32.50 hundred drinks (3,250 drinks), an extra 117 drinks, without ignoring Months 6 and 7. Keep the weight order tied to time: accidentally putting \(0.50\) on oldest Month 6 and \(0.20\) on newest Month 8 would produce \(0.20(35) + 0.30(32) + 0.50(27) = 30.10\), tilting the forecast backward.

Two limits remain. Picking three weights by hand is manageable, but inventing eight or twelve weights arbitrarily gets clumsy. Worse, every month outside the window (Months 1 to 5) still drops off an abrupt cliff to weight zero. Can one constant fade the weights smoothly across the entire history?

Build the skill 2: update one running forecast with exponential smoothing

Instead of storing a window of past months and re-averaging from scratch, keep one running forecast and nudge it as soon as each month finishes. Compare the forecast made beforehand for last month against what actually sold, then close a fixed fraction of that miss. That recursive update is exponential smoothing:

\[F_t = F_{t-1} + \alpha(A_{t-1} - F_{t-1}).\]
  • \(F_{t-1}\) is the forecast made beforehand for period \(t-1\), in hundreds of drinks.
  • \(A_{t-1}\) is actual demand in period \(t-1\), so \(A_{t-1} - F_{t-1}\) is last month’s forecast error \(e_{t-1}\), also in hundreds of drinks.
  • \(\alpha\) (alpha, with \(0 \le \alpha \le 1\)) is the smoothing constant, the unitless fraction of last month’s miss added to form period \(t\)’s forecast \(F_t\).

Regrouping the two \(F_{t-1}\) terms gives Taylor’s equivalent blend form (p. 735):

\[F_t = \alpha A_{t-1} + (1 - \alpha)F_{t-1}.\]

Read as a blend, next month’s forecast places weight \(\alpha\) on the newest actual \(A_{t-1}\) and weight \(1 - \alpha\) on the previous forecast \(F_{t-1}\). The two weights sum to \(1\), keeping \(F_t\) in hundreds of drinks. At \(\alpha = 0\), the forecast never budges from its starting value; at \(\alpha = 1\), it copies last month’s actual completely.

Chain the updates from Month 1

Every sequential smoother needs one starting forecast to get going. When no prior forecast exists for Month 1, Taylor (p. 736) seeds Month 2’s forecast at Month 1’s actual sales: \(F_2 = A_1 = \mathbf{22.00}\) hundred drinks.

Follow the first step at \(\alpha = 0.30\). Month 2 brings \(A_2 = 25\) against \(F_2 = 22.00\), an under-forecast miss of \(e_2 = 25 - 22.00 = +3.00\) hundred drinks. Month 3’s forecast closes three-tenths of that gap, adding \(0.30(3.00) = +0.90\) to reach 22.90 hundred drinks and leaving the remaining \(2.10\) unchased in case Month 2 was noise. Keep full precision in every intermediate row and round only when reporting:

Completed month Actual \(A_{t-1}\) Prior forecast \(F_{t-1}\) Miss \(A_{t-1} - F_{t-1}\) Next forecast \(F_t = F_{t-1} + 0.30\,e_{t-1}\)
Month 1 (seed) 22 none none Seed Month 2: \(F_2 = A_1 = \mathbf{22.00}\)
Month 2 25 22.00 \(+3.00\) Month 3: \(22.00 + 0.30(3.00) = \mathbf{22.90}\)
Month 3 24 22.90 \(+1.10\) Month 4: \(22.90 + 0.30(1.10) = \mathbf{23.23}\)
Month 4 28 23.23 \(+4.77\) Month 5: \(23.23 + 0.30(4.77) = \mathbf{24.661}\)
Months 5–7 (chained) 30, 27, 32 24.661 → 26.26 → 26.48 \(+5.339, +0.737, +5.516\) Month 8: \(26.4839 + 0.30(5.5161) = \mathbf{28.1387}\)
Month 8 35 28.1387 \(+6.8613\) Month 9: \(28.1387 + 0.30(6.8613) = \mathbf{30.20}\)

Each row uses only observations already completed before the forecast month. Continuing through Month 8 forecasts 30.20 hundred drinks (about 3,020 drinks) for Month 9.

Left panel: Month 2 actual is 25 against forecast 22, an error of plus 3, and alpha equals 0.3 closes 0.9 of that gap to reach F3 equals 22.9 while leaving 2.1 unchased. Right panel: weights placed on past months decay geometrically as alpha times 1 minus alpha to the power j, contrasting alpha equals 0.3 and alpha equals 0.5 with the 3-month moving average's flat one-third weights that drop to zero after three months.

Why it is called exponential: geometric weight decay

Where do the earlier months sit inside \(F_t\)? Unroll one step of the blend equation at \(\alpha = 0.30\) by substituting \(F_3 = 0.30 A_2 + 0.70 F_2\) into \(F_4 = 0.30 A_3 + 0.70 F_3\):

\[F_4 = 0.30 A_3 + 0.70(0.30 A_2 + 0.70 F_2) = 0.30 A_3 + 0.21 A_2 + 0.49 F_2.\]

The weights \(0.30 + 0.21 + 0.49\) still sum to \(1.00\). Continuing back through the log, the observation \(j\) months before the newest actual \(A_{t-1}\) (counting \(A_{t-1}\) as \(j = 0\)) receives weight \(\alpha(1 - \alpha)^j\). At \(\alpha = 0.30\), Month 8 gets 0.300, Month 7 gets \(0.30(0.70) = \mathbf{0.210}\), Month 6 gets \(0.30(0.70)^2 = \mathbf{0.147}\), Month 5 gets 0.103, and older months keep shrinking by \(70\%\) per step without hitting a sudden cliff.

That weight schedule also explains a seeming paradox: why did \(\alpha = 0.30\) forecast 30.20 for Month 9, lower than the equal three-month moving average’s 31.33?

Forecasting rule Share on Months 6–8 Share on Months 1–5 (avg 25.8) Month 9 forecast (hundreds)
3-month moving average \(100.0\%\) (\(1/3\) each) \(0.0\%\) (dropped) 31.33
Exponential smoothing, \(\alpha=0.30\) \(65.7\%\) (\(0.300 + 0.210 + 0.147\)) \(34.3\%\) (still carried) 30.20

Within Months 6 to 8, \(\alpha = 0.30\) does weight Month 8 higher than Month 6 (\(0.300 > 0.147\)). Across the full log, however, 34.3% of its weight still sits on Months 1 to 5, when Mobile Order sales averaged just \((22 + 25 + 24 + 28 + 30)/5 = 25.8\) hundred drinks. How does raising \(\alpha\) trim that old tail, and how should the manager referee competing settings?

Build the skill 3: choose alpha and compare rules on shared months (MAD)

Choosing \(\alpha\) trades calm noise filtering against quick reaction. Taylor notes that practical forecasting usually sets \(\alpha\) between 0.01 and 0.50, chosen by judgment and error testing rather than a closed-form formula, with larger values favored when demand is shifting (pp. 735–737).

How calm and responsive smoothers react to a spike versus a climb

Before scoring the store’s eight-month log, test \(\alpha = 0.20\) against \(\alpha = 0.50\) on two five-month Starbucks patterns, both seeded at \(F_2 = 20\) hundred drinks. First suppose the bar sells 20 hundred drinks a month until a campus concert lifts Month 5 to 26. Then suppose demand climbs steadily by 2 hundred drinks each month toward 30 in Month 6:

Five months of Mobile Order sales (hundreds) Month 6 at \(\alpha = 0.20\) Month 6 at \(\alpha = 0.50\) What changes between the two settings
One concert spike: 20, 20, 20, 20, 26 21.20 23.00 \(\alpha = 0.20\) absorbs most of the blip; \(0.50\) chases half
Steady climb: 20, 22, 24, 26, 28 23.28 26.13 \(\alpha = 0.50\) cuts the lag behind 30 nearly in half

After the one-month concert, \(\alpha = 0.20\) nudges the forecast up by just \(0.20(6) = 1.20\), whereas \(\alpha = 0.50\) jumps by \(3.00\). On the steady climb, \(\alpha = 0.50\) catches up much faster (26.13 versus 23.28), though both remain below 28 because no weighted average of counts from 20 to 28 can exceed 28.

Referee candidate rules on shared Months 4–8

Return to the store’s recorded eight months. To judge the three-month moving average against \(\alpha = 0.30\) and \(\alpha = 0.50\), score mean absolute deviation (MAD) over the exact same observed periods:

\[\text{MAD} = \frac{\sum_t \lvert A_t - F_t \rvert}{n}.\]

Here \(\lvert A_t - F_t \rvert\) is the size of month \(t\)’s miss in hundreds of drinks, and \(n\) is the count of scored months. Exponential smoothing already has forecasts in Months 2 and 3 (22.00 and 22.90 at \(\alpha = 0.30\)), whereas the three-month moving average cannot forecast until Month 4. Scoring smoothing over Months 2–8 (\(n = 7\)) would include two small early misses (3.00 and 1.10) that the moving average never got to forecast, artificially lowering \(\alpha = 0.30\)’s MAD from 4.64 to 3.90. Keep Months 4–8 (\(n = 5\)) for every candidate:

Forecasting rule Share on Months 6–8 Month 9 forecast (hundreds) MAD, Months 4–8 (hundreds)
3-month moving average \(100.0\%\) 31.33 3.60
Exponential smoothing, \(\alpha=0.30\) \(65.7\%\) 30.20 4.64
Exponential smoothing, \(\alpha=0.50\) \(87.5\%\) 32.37 3.82

Raising \(\alpha\) from 0.30 to 0.50 puts \(0.500 + 0.250 + 0.125 = 87.5\%\) of the weight on Months 6–8, lifting Month 9’s forecast to 32.37 hundred drinks (about 3,237 drinks) and cutting MAD from 4.64 to 3.82. Across these five months, the three-month moving average still holds the lowest MAD at 3.60 (360 drinks per month), because dropping Months 1–5 completely sheds the low early sales fastest.

Line chart of Mobile Order drinks from 22 to 35 hundred across Months 1 to 8, with Months 4 to 8 shaded as the shared n equals 5 scoring window. Both alpha equals 0.30 (Month 9 forecast 30.20, MAD 4.64) and alpha equals 0.50 (Month 9 forecast 32.37, MAD 3.82) trail underneath the climbing actuals, with five positive vertical error bars on alpha equals 0.30. The 3-month moving average Month 9 reference sits at 31.33, all below Month 8 actual 35.

What if you push \(\alpha\) all the way to 0.90? On Months 4–8, MAD drops further to 3.46 (with \(F_9 = 34.65\)), edging past the three-month moving average. That lower retrospective MAD is a symptom of the climb, not a reliable smoothing rule: at \(\alpha = 0.90\), 90% of the weight sits on last month alone, so the formula nearly echoes \(F_t \approx A_{t-1}\) and stops filtering noise. Because Mobile Order volume rose in five of seven transitions, hugging the latest month reduced lag here, right until growth pauses and \(\alpha = 0.90\) whipsaws after every rainy week or finals rush.

Test smoothing alpha on the Mobile Order chart

Move Smoothing \(\alpha\) or select Check a value at 0.1, 0.3, 0.5, and 0.9. Watch the forecast curve, the vertical error bars on Months 4–8, and Month 9’s projection respond together.

Notice that every Month 9 forecast in our table (30.20, 31.33, and 32.37) sits well below Month 8’s actual 35. MAD measures the average size of those misses, but it strips out their signs. Skill 4 measures whether a rule misses consistently on one side.

Build the skill 4: check directional lag with cumulative error and bias

Suppose two rules each miss by 4 hundred drinks per month on average over two months, giving the exact same \(\text{MAD} = 4.00\):

Two-month check Signed misses (hundreds) MAD (miss size) Sum of signed misses Operational meaning at the bar
Rule A \(+4\) and \(-4\) \((\lvert +4 \rvert + \lvert -4 \rvert)/2 = 4\) \(0\) One low forecast and one high forecast balance
Rule B \(+4\) and \(+4\) \((\lvert +4 \rvert + \lvert +4 \rvert)/2 = 4\) \(+8\) Actual sales beat the forecast both months

MAD cannot tell Rule A from Rule B. Keeping the signs in cumulative error \(E\) and dividing by the \(n\) scored periods to get average error (bias) (Taylor p. 745) separates balanced noise from systematic lag:

\[E = \sum_t (A_t - F_t), \qquad \text{bias} = \frac{E}{n}.\]
  • \(E\) is the total signed gap across all \(n\) scored months, in hundreds of drinks; bias is the average signed gap per scored month, in hundreds of drinks per month.
  • Because each error is \(A_t - F_t\) (actual minus forecast), a positive bias means actual demand beat the forecast on average, so the forecast consistently ran too low. A negative bias means the forecast consistently ran too high.
  • Always read bias beside MAD: a bias near zero can come from small misses or from huge \(+\) and \(-\) misses that cancelled out.

Compare MAD, cumulative error, and bias across shared Months 4–8 (\(n = 5\)) on the Starbucks log:

Forecasting rule (Months 4–8, \(n=5\)) MAD (hundreds) Cumulative error \(E\) Bias \(E/5\) (hundreds/mo) Why MAD and bias match or differ
Exponential smoothing, \(\alpha=0.30\) 4.64 \(+23.22\) +4.64 All 5 errors are positive, so nothing cancels
Exponential smoothing, \(\alpha=0.50\) 3.82 \(+17.23\) +3.45 Month 6 over-forecasts (\(-0.94\)), shrinking \(E\)
3-month moving average 3.60 \(+17.33\) +3.47 Month 6 over-forecasts slightly (\(-0.33\)); 4 months lag

At \(\alpha = 0.30\), all five scored forecasts fall short of actual sales (+4.77, +5.34, +0.74, +5.52, +6.86), so bias (+4.64) equals MAD (4.64): the rule missed by 464 drinks per month and missed low every single time. At \(\alpha = 0.50\), Month 6’s dip to 27 falls below \(F_6 = 27.94\) (e_6 = -0.94); that 0.94 miss adds to MAD (3.82) while subtracting from \(E\), leaving bias at +3.45 (+345 drinks per month).

Check the signed errors on the Mobile Order smoothing chart. Open Forecast accuracy below the readout:

  1. Select 0.3 on Check a value and scan the five Error rows for Months 4–8. Confirm that every row is positive, making Bias (+4.64) identical in magnitude to MAD (4.64).
  2. Select 0.5 and inspect Month 6 (Actual = 27, Forecast = 27.94, Error = -0.94). Trace how |-0.94| increases the |Error| column while -0.94 reduces cumulative error to +17.23 (Bias = +3.45).
  3. Step across 0.1 (Bias = +6.78), 0.3 (+4.64), 0.5 (+3.45), and 0.9 (+2.35). Why does every setting keep a positive bias on this rising series?

Run exponential smoothing and error checks in Excel

Select Copy for Excel and paste into A1 on a blank worksheet. Cell B1 stores \(\alpha = 0.3\), rows 4–11 hold Months 1–8, and row 12 forecasts Month 9.

  1. Check the seed in C5 and the locked update in C6:C12. C5 seeds Month 2 at =B4 (22). C6 updates Month 3 with =C5+B$1*(B5-C5) (22.90), locking B$1 so one formula copies cleanly down to Month 9 in C12 (30.20). Row 7 (C7) reads only row 6 (B6 and C6), never B7, preventing lookahead.
  2. Verify why D5:E6 and D12:E12 stay blank. Months 2 and 3 are warm-up rows where the three-month moving average had no forecast, and Month 9 has no actual sales yet. Leaving them blank scores D7:E11 strictly over shared Months 4–8 (n = 5).
  3. Read bias, MAD, and cumulative error in D13:E14, then test 0.5 in B1. At 0.3, D13 gives bias (+4.64), E13 gives MAD (4.64), and D14 gives cumulative error (+23.22). Type 0.5 in B1: C12 updates to 32.37, E13 drops to 3.82, D13 becomes +3.45, and D14 becomes +17.23.
View the worked sheet and its formulas
  A B C D E
1 Smoothing alpha 0.3      
2          
3 Month t Actual (100s) Forecast F_t Signed error Absolute error
4 1 22      
5 2 25 =B4    
6 3 24 =C5+B$1*(B5-C5)    
7 4 28 =C6+B$1*(B6-C6) =B7-C7 =ABS(D7)
8 5 30 =C7+B$1*(B7-C7) =B8-C8 =ABS(D8)
9 6 27 =C8+B$1*(B8-C8) =B9-C9 =ABS(D9)
10 7 32 =C9+B$1*(B9-C9) =B10-C10 =ABS(D10)
11 8 35 =C10+B$1*(B10-C10) =B11-C11 =ABS(D11)
12 9   =C11+B$1*(B11-C11)    
13     Months 4 to 8 avg =AVERAGE(D7:D11) =AVERAGE(E7:E11)
14     Months 4 to 8 sum =SUM(D7:D11) =SUM(E7:E11)

Try it yourself: starting from \(F_2 = 22\) on the same Mobile Order series, compute \(F_3\) and \(F_4\) by hand at \(\alpha = 0.50\). Why does \(F_4\) step upward even though actual sales dipped from 25 in Month 2 to 24 in Month 3?

Check your two updates

For Month 3, \(F_3 = 22 + 0.50(25 - 22) = \mathbf{23.50}\) hundred drinks. Month 3 then records \(A_3 = 24\), which is lower than Month 2’s 25 but still above its own forecast of 23.50 (\(e_3 = 24 - 23.50 = +0.50\)). So Month 4’s forecast steps up again: \(F_4 = 23.50 + 0.50(0.50) = \mathbf{23.75}\) hundred drinks. Exponential smoothing reacts to the forecast error \(A_{t-1} - F_{t-1}\), not to the month-to-month jump \(A_{t-1} - A_{t-2}\).

In practice: what can mislead a smoothed forecast?

  • Do not over-tune \(\alpha\) on a tiny sample. Choosing \(\alpha = 0.90\) because it trims MAD to 3.46 on five rising months overfits recent momentum. Test candidate constants on held-out periods, and treat persistent positive bias (+3.45 to +4.64 hundred drinks per month) as a signal to model the trend directly on Wednesday rather than pushing \(\alpha\) toward 1.
  • Stockouts censor the sales log. If the Mobile Order bar runs out of cold-brew concentrate on warm afternoons and logs only completed drinks, smoothing those capped totals produces a smooth underestimate of true demand.
  • A point forecast is not an order quantity. Expecting 3,133 to 3,237 drinks with a past MAD near 360 to 382 drinks does not by itself set the oat-milk order. Safety stock depends on weighing shortage cost (running out of cups mid-rush) against spoilage and storage cost (expired milk).
  • Zero history calls for structured judgment, not a formula. Time-series rules assume past observations exist. If Starbucks opens a brand-new walk-up kiosk inside a campus hospital with no sales log to smooth, planners use qualitative forecasting (Taylor pp. 728–730): a jury of executive opinion pools store and district managers quickly (though a senior voice can dominate the room), while the Delphi method collects anonymous written rounds with summarized feedback so quieter specialists are not drowned out.

Back to the puzzle

One smoothing constant replaces hand-picked window weights: exponential smoothing places weight \(\alpha\) on last month’s sales and fades older months geometrically as \(\alpha(1 - \alpha)^j\) without dropping Months 1 to 5 to zero. Between the two practical smoothing constants tested, \(\alpha = 0.50\) fits this climbing bar better than \(\alpha = 0.30\): it puts 87.5% of its weight on Months 6–8, lifts Month 9’s forecast from 30.20 to 32.37 hundred drinks (about 3,237 drinks, close to the 0.50, 0.30, 0.20 weighted moving average’s 32.50), and cuts Months 4–8 MAD from 4.64 to 3.82.

Across all three candidate rules, Week 13’s three-month moving average keeps the smallest Months 4–8 MAD at 3.60 (31.33 hundred drinks, or about 3,133 drinks). Yet all three rules carry large positive biases (+3.45 to +4.64 hundred drinks per month) because Mobile Order demand is climbing. Buffer the Month 9 cup and oat-milk order using shortage versus spoilage costs, and return Wednesday to model trend and seasonality directly.

In-class group practice (wrap-up)

A campus residence-hall mailroom staffs student clerks from weekly package pickups (40, 52, 70, 52, 82, in tens of packages). Work through the four steps by hand in your group:

  1. Forecast Week 6 with both a plain three-week moving average and a weighted three-week moving average (0.50 on newest Week 5, 0.30 on Week 4, 0.20 on Week 3).
  2. Seed \(F_2 = 40\) and chain exponential smoothing at \(\alpha = 0.50\) through Week 6 alongside a two-week moving average, recording each observed signed error.
  3. Identify the shared forecast weeks (Weeks 3–5, \(n = 3\)) and record each method’s Week 6 forecast, MAD, cumulative signed error, and bias alongside a slower smoother (\(\alpha = 0.20\)).
  4. Choose a method on common-week MAD, explain why scoring \(\alpha = 0.50\) across four weeks would distort the comparison, and interpret why MAD exceeds bias before staffing Week 6.

Write every member’s name on the sheet. You have 15 minutes for the practice, then two minutes to photograph your group’s own attempt before the solutions are shown. One member uploads the photo to Canvas by the end of class; participation credit is for attempting the work.

The instructor uses the final eight minutes to demonstrate the handout’s method, check the main results with units, and explain a common mistake. This demonstration closes the session.

Session 2: Wed, Dec 2 · Trend, fit and seasonality (TBD)

🧩 Puzzle

The catering desk’s steady climb and summer keg surge. Beyond walk-in and Mobile Order drinks, the same campus-area Starbucks store runs a campus catering program. Two catering logs need forecasts now. First, recurring active campus office coffee accounts have climbed for eight straight quarters as university departments renew and new offices sign on:

Quarter 1 2 3 4 5 6 7 8
Active office accounts 120 128 135 141 150 158 163 172

Second, quarterly iced cold-brew keg orders, measured in tens of kegs (so 26 means 260 kegs), repeat a sharp warm-weather peak inside a growing annual total:

Quarter Year 1 Year 2 Year 3
Q1 (winter) 12 14 16
Q2 (spring) 18 21 24
Q3 (summer) 26 30 34
Q4 (fall) 16 19 22
Year sum 72 84 96

Monday showed that single-level smoothers sit permanently below a rising series. How should the catering lead forecast Quarter 9 office coffee accounts without lagging the climb, and how should Year 4 cold-brew keg forecasts capture both annual growth and the summer peak?

Build the skill 1: add a trend factor to catch a steady climb

Start with the eight quarters of active campus office coffee accounts (120 to 172). Simple exponential smoothing at \(\alpha = 0.50\) seeded at \(F_2 = A_1 = 120\) updates Quarter 3 to \(F_3 = 0.50(128) + 0.50(120) = 124.00\) accounts, already trailing Quarter 2’s 128. Chained through Quarter 8 (172), plain smoothing forecasts just 164.33 accounts for Quarter 9, missing every quarter low.

Adjusted exponential smoothing (also called trend-adjusted smoothing, Taylor pp. 737–739) repairs that lag by pairing the unadjusted level forecast \(F_{t+1}\) with a smoothed trend factor \(T_{t+1}\). Each period runs three short equations in order.

First, update the unadjusted base forecast from the latest actual \(A_t\) and the previous unadjusted forecast \(F_t\):

\[F_{t+1} = \alpha A_t + (1 - \alpha)F_t.\]

Second, smooth the step \(F_{t+1} - F_t\) that the base forecast just took, using a trend smoothing constant \(\beta\) (beta, with \(0 \le \beta \le 1\)):

\[T_{t+1} = \beta(F_{t+1} - F_t) + (1 - \beta)T_t.\]

Third, add the trend factor to the base forecast to issue the trend-adjusted forecast \(AF_{t+1}\):

\[AF_{t+1} = F_{t+1} + T_{t+1}.\]
  • \(A_t\), \(F_{t+1}\), and \(AF_{t+1}\) are measured in active office accounts; \(F_{t+1} - F_t\) and \(T_{t+1}\) are measured in office accounts per quarter.
  • \(\beta\) controls how quickly the slope estimate adapts to recent steps. With initial trend \(T_2 = 0\), setting \(\beta = 0\) keeps \(T_{t+1} = 0\) forever and collapses to plain exponential smoothing.

Walk Quarters 2 to 4 by hand

Seed Quarter 2 at \(F_2 = A_1 = 120.00\) accounts and \(T_2 = 0.00\) accounts per quarter, with \(\alpha = 0.50\) and \(\beta = 0.30\) (Taylor p. 738). Follow how Quarter 3’s update hands off to Quarter 4:

Quarter \(t\) Actual \(A_t\) Base \(F_t\) Trend \(T_t\) Adjusted \(AF_t = F_t + T_t\) How this row was computed from the row before
Q2 128 120.00 0.00 120.00 Seed \(F_2 = A_1 = 120\) and \(T_2 = 0\); miss \(e_2 = +8.00\)
Q3 135 124.00 1.20 125.20 \(F_3 = 0.5(128)+0.5(120)\); \(T_3 = 0.3(124-120)+0.7(0)\)
Q4 141 129.50 2.49 131.99 \(F_4 = 0.5(135)+0.5(\mathbf{124.00})\); \(T_4 = 0.3(5.5)+0.7(1.2)\)
Q9 (next) unknown 164.33 6.36 170.68 After Q8 (\(A_8=172, F_8=156.66, T_8=5.79\)): \(164.33 + 6.36\)

Watch Quarter 4’s base calculation carefully: \(F_4\) blends \(A_3 = 135\) with unadjusted \(F_3 = 124.00\), never with \(AF_3 = 125.20\). Feeding \(AF_3\) back into the base smoother would count the trend step twice. Meanwhile, forecast errors are always scored against AF_t (e_3 = 135 - 125.20 = +9.80), because \(AF_t\) is the forecast actually issued for that quarter.

Compare three \(\beta\) settings across Quarters 2–8 (\(n = 7\)) with \(\alpha\) held at 0.50:

Trend setting (\(\alpha = 0.50\)) Quarter 9 \(AF_9\) (accounts) MAD, Quarters 2–8 (accounts) Bias, Quarters 2–8 (accounts/qtr)
Plain smoothing (\(\beta = 0\)) 164.33 12.67 +12.67
Adjusted smoothing (\(\beta = 0.30\)) 170.68 9.36 +9.36
Fast trend adjustment (\(\beta = 0.90\)) 171.88 7.53 +7.53

Adding \(T_9 = +6.36\) at \(\beta = 0.30\) lifts Quarter 9’s forecast from 164.33 to 170.68 accounts and cuts MAD from 12.67 to 9.36. Even at \(\beta = 0.90\) (171.88), the forecast stops just shy of Quarter 8’s actual 172 because starting \(T_2\) cold at zero forced the trend factor to spend the early quarters catching up.

Line chart of active campus office coffee accounts climbing from 120 to 172 across Quarters 1 to 8, with Quarters 2 to 8 shaded as the n equals 7 scoring window. Plain smoothing at beta equals 0 trails lowest (Q9 forecast 164.33, MAD 12.67). Adjusted smoothing at beta equals 0.3 adds T9 equals plus 6.36 to reach AF9 equals 170.68 (MAD 9.36), and beta equals 0.9 reaches 171.88 (MAD 7.53).

Test trend-adjusted smoothing on the catering chart

Use Check a value at β = 0, β = 0.3, and β = 0.9 (each preset restores α = 0.50 so only the trend adjustment changes), and open Forecast accuracy to compare the seven quarterly errors.

Run adjusted exponential smoothing in Excel

Select Copy for Excel and paste into A1 on a blank worksheet. Cell B1 holds \(\alpha = 0.5\) and D1 holds \(\beta = 0.3\).

  1. Keep Base F_t, Trend T_t, and Adjusted AF_t in separate columns (C:E). In row 6 (Quarter 3), C6 (=B$1*B5+(1-B$1)*C5) updates from B5 and unadjusted C5, never E5; D6 (=D$1*(C6-C5)+(1-D$1)*D5) smooths the base step C6-C5 (124-120 = 4 to get 1.20); and E6 (=C6+D6) adds them (125.20). Locking B$1 and D$1 lets C6:E6 drag cleanly down to Quarter 9 in row 12.
  2. Score errors in F5:F11 against Column E (AF_t). Each row computes =ABS(B5-E5) so F13 (=AVERAGE(F5:F11)) scores 9.36 accounts over Quarters 2–8, while Quarter 9 in E12 reads 170.68 accounts.
  3. Test 0 and 0.9 in D1. Setting D1 to 0 zeroes out Column D and recovers plain smoothing (E12 = 164.33, F13 = 12.67); setting D1 to 0.9 lifts E12 to 171.88 and lowers F13 to 7.53.
View the worked sheet and its formulas
  A B C D E F
1 Alpha 0.5 Beta 0.3    
2            
3 Quarter t Accounts A_t Base F_t Trend T_t Adjusted AF_t Abs error
4 1 120        
5 2 128 =B4 0 =C5+D5 =ABS(B5-E5)
6 3 135 =B$1*B5+(1-B$1)*C5 =D$1*(C6-C5)+(1-D$1)*D5 =C6+D6 =ABS(B6-E6)
7 4 141 =B$1*B6+(1-B$1)*C6 =D$1*(C7-C6)+(1-D$1)*D6 =C7+D7 =ABS(B7-E7)
8 5 150 =B$1*B7+(1-B$1)*C7 =D$1*(C8-C7)+(1-D$1)*D7 =C8+D8 =ABS(B8-E8)
9 6 158 =B$1*B8+(1-B$1)*C8 =D$1*(C9-C8)+(1-D$1)*D8 =C9+D9 =ABS(B9-E9)
10 7 163 =B$1*B9+(1-B$1)*C9 =D$1*(C10-C9)+(1-D$1)*D9 =C10+D10 =ABS(B10-E10)
11 8 172 =B$1*B10+(1-B$1)*C10 =D$1*(C11-C10)+(1-D$1)*D10 =C11+D11 =ABS(B11-E11)
12 9   =B$1*B11+(1-B$1)*C11 =D$1*(C12-C11)+(1-D$1)*D11 =C12+D12  
13         MAD, Q2 to Q8 =AVERAGE(F5:F11)

Adjusted smoothing learns the climb step by step from \(T_2 = 0\), so even at \(\beta = 0.90\) its Quarter 9 forecast (171.88) has not passed Quarter 8’s 172 accounts. What if we use all eight quarters together to fit a single straight line right through the climb?

Build the skill 2: fit a straight trend line with least squares

Stay on the same eight quarters of active campus office coffee accounts (120, 128, 135, 141, 150, 158, 163, 172). When a series grows by a roughly constant amount each period, a linear trend models predicted demand directly as a straight line in time (Taylor pp. 739–741):

\[\hat y_t = a + bt.\]
  • \(t = 1, 2, \dots, n\) numbers the consecutive quarters in chronological order.
  • \(\hat y_t\) (read “y-hat sub t”; Taylor writes \(y = a + bt\)) is the line’s predicted account count in quarter \(t\), in active office accounts.
  • \(b\) is the slope: how many accounts \(\hat y_t\) changes per one-quarter increase in \(t\) (accounts per quarter).
  • \(a\) is the intercept: the line’s fitted baseline at \(t = 0\), one quarter before Quarter 1 (in accounts, though not an observed count).

At any observed quarter \(t\), the vertical gap between actual accounts \(y_t\) and the line’s prediction \(\hat y_t\) is the residual (called forecast error in Taylor’s Chapter 15):

\[e_t = y_t - \hat y_t.\]

We measure the gap vertically because office accounts \(y_t\) are what the equation predicts at each known time \(t\): \(e_t\) is positive when an observed quarter sits above the line and negative when it sits below.

Why squaring the vertical gaps picks one best line

Before summing all eight quarters, test how a line is chosen on a tiny three-quarter pilot route at the same catering desk, where active accounts ran 10, 14, 15 across Quarters \(t = 1, 2, 3\). Their center of gravity is \(\bar t = (1+2+3)/3 = 2\) and \(\bar y = (10+14+15)/3 = 13\) accounts. Compare three candidate lines that all pass directly through \((2, 13)\):

Candidate line through \((2, 13)\) Predictions \(\hat y_1, \hat y_2, \hat y_3\) Residuals \(y_t - \hat y_t\) Sum of signed residuals Sum of squared residuals \(\sum e_t^2\)
Flat line: \(\hat y_t = 13 + 0t\) 13, 13, 13 \(-3, +1, +2\) \(0\) \((-3)^2 + 1^2 + 2^2 = 14.00\)
Gentle climb: \(\hat y_t = 9 + 2t\) 11, 13, 15 \(-1, +1, 0\) \(0\) \((-1)^2 + 1^2 + 0^2 = 2.00\)
Best climb: \(\hat y_t = 8 + 2.5t\) 10.5, 13.0, 15.5 \(-0.5, +1.0, -0.5\) \(0\) \((-0.5)^2 + 1^2 + (-0.5)^2 = \mathbf{1.50}\)

Requiring signed residuals to sum to zero picks nothing: every straight line through \((\bar t, \bar y)\) has \(\sum (y_t - \hat y_t) = 0\), even the flat line! Least squares squares every vertical residual before adding, turning negative and positive misses alike into positive penalties and penalizing large misses heavily. Calculus gives the unique slope \(b\) and intercept \(a\) that minimize \(\sum (y_t - \hat y_t)^2\) (Taylor p. 740):

\[b = \frac{\sum ty - n\bar t\bar y}{\sum t^2 - n\bar t^2}, \qquad a = \bar y - b\bar t.\]

Here \(n\) is the number of observed quarters, the slope’s numerator measures how \(t\) and \(y\) move together, its denominator measures the spread of \(t\) around \(\bar t\), and \(a = \bar y - b\bar t\) locks the line through \((\bar t, \bar y)\). On the three-quarter pilot (\(\sum t = 6\), \(\sum y = 39\), \(\sum ty = 10 + 28 + 45 = 83\), \(\sum t^2 = 1 + 4 + 9 = 14\)), the formulas confirm \(b = [83 - 3(2)(13)] / [14 - 3(2)^2] = 5/2 = 2.5\) accounts per quarter and \(a = 13 - 2.5(2) = 8\) accounts, achieving the minimum 1.50 in the table.

Fit the eight quarters of campus office coffee accounts

Now tabulate \(t\), \(y\), \(ty\), and \(t^2\) across all \(n = 8\) quarters of the store’s catering log:

Quarter \(t\) 1 2 3 4 5 6 7 8 Sum
Office accounts \(y\) 120 128 135 141 150 158 163 172 1,167
\(t \times y\) 120 256 405 564 750 948 1,141 1,376 5,560
\(t^2\) 1 4 9 16 25 36 49 64 204

With \(n = 8\), the means are \(\bar t = 36/8 = \mathbf{4.5}\) quarters and \(\bar y = 1{,}167/8 = \mathbf{145.875}\) accounts. Keep unrounded values through each step:

Quantity Substitution Result
Slope \(b\) \([5{,}560 - 8(4.5)(145.875)] / [204 - 8(4.5)^2] = 308.5 / 42\) \(7.3452 \approx 7.35\) accounts/qtr
Intercept \(a\) \(145.875 - 7.3452(4.5)\) \(112.82\) accounts at \(t = 0\)
Quarter 4 residual \(\hat y_4 = 112.8214 + 7.3452(4) = 142.20\); \(e_4 = 141 - 142.20\) \(-1.20\) accounts (below the line)
Quarter 9 forecast \(\hat y_9 = 112.8214 + 7.3452(9)\) \(178.93\) active office accounts

The fitted trend line \(\hat y_t = 112.82 + 7.35t\) projects 178.93 (about 179) active office accounts for Quarter 9, continuing the steady +7.35-per-quarter climb past Quarter 8’s 172 where adjusted smoothing stopped at 170.68 and 171.88.

Scatter plot of active office coffee accounts over Quarters 1 to 8 from 120 to 172 with least-squares line y-hat equals 112.82 plus 7.35t passing through the mean point (4.5, 145.875). Marks intercept a equals 112.82 at t equals 0, vertical residual e4 equals 141 minus 142.20 equals minus 1.20 accounts at Quarter 4, and Quarter 9 trend projection 178.93 contrasted against adjusted smoothing 170.68 and plain smoothing 164.33.

Fit the linear trend in Excel

Select Copy for Excel and paste into A1 on a blank worksheet. Excel’s SLOPE, INTERCEPT, and RSQ compute the exact least-squares fit directly from the data columns.

  1. Put known_ys FIRST in E2:E4. SLOPE(B2:B9, A2:A9), INTERCEPT(B2:B9, A2:A9), and RSQ(B2:B9, A2:A9) all take the outcome column B (Accounts y) before the time column A (Quarter t). Reversing them to SLOPE(A2:A9, B2:B9) fits quarters on accounts (0.136 quarters per account instead of 7.35 accounts per quarter).
  2. Lock $E$2 and $E$3 in C2:C9, and check E5:E6. Locking =$E$3+$E$2*A2 lets one formula copy cleanly down C2:C9. Cell E5 (=$E$3+$E$2*9) projects Quarter 9 at 178.93 accounts, and E6 (=B5-C5) confirms Quarter 4’s vertical residual of -1.20 accounts.
  3. Contrast in-sample MAD in E7 with sequential MAD. Across Quarters 2–8, E7 (=AVERAGE(F3:F9)) is just 0.72 accounts, far below adjusted smoothing’s 9.36. Even over those same seven quarters, the fitted line used all eight observations at once to choose \(a\) and \(b\) (in-sample fit), whereas adjusted smoothing predicted each quarter beforehand without seeing later rows. Never claim a smaller in-sample trend MAD proves future accuracy on its own.
View the worked sheet and its formulas
  A B C D E F
1 Quarter t Accounts y Fitted y Summary Value Abs residual
2 1 120 =$E$3+$E$2*A2 Slope b =SLOPE(B2:B9,A2:A9) =ABS(B2-C2)
3 2 128 =$E$3+$E$2*A3 Intercept a =INTERCEPT(B2:B9,A2:A9) =ABS(B3-C3)
4 3 135 =$E$3+$E$2*A4 R squared =RSQ(B2:B9,A2:A9) =ABS(B4-C4)
5 4 141 =$E$3+$E$2*A5 Q9 forecast =$E$3+$E$2*9 =ABS(B5-C5)
6 5 150 =$E$3+$E$2*A6 Q4 residual =B5-C5 =ABS(B6-C6)
7 6 158 =$E$3+$E$2*A7 MAD, Q2 to Q8 =AVERAGE(F3:F9) =ABS(B7-C7)
8 7 163 =$E$3+$E$2*A8     =ABS(B8-C8)
9 8 172 =$E$3+$E$2*A9     =ABS(B9-C9)

Least squares will draw a straight line through any set of numbers, even pure noise. Skill 3 measures how tightly the data hug that line and keeps track of whether the line slopes up or down.

Build the skill 3: judge linear fit and keep track of direction (r and R-squared)

Still on the eight quarters of active campus office coffee accounts, we pair \(\hat y_t = 112.82 + 7.35t\) with two unitless measures of linear association (Taylor pp. 752–753).

The correlation coefficient \(r\) runs from \(-1\) to \(+1\) and reports both the direction and the linear strength of the relationship: \(r\) near \(+1\) marks a tight upward line, \(r\) near \(-1\) a tight downward line, and \(r\) near \(0\) little straight-line association (though a curved pattern can still be strong). Squaring \(r\) gives the coefficient of determination:

\(R^2 = r^2\)

Equivalently, \(R^2 = 1 - \sum(y_t - \hat y_t)^2 / \sum(y_t - \bar y)^2\): because squaring removes any minus sign, \(R^2\) always sits between \(0\) and \(1\) and reports the share of total variation in \(y\) explained by the fitted straight line. On the eight quarters of office coffee accounts, \(r = +0.999\) and \(R^2 = 0.998\) (99.8%).

Squaring erases the sign: read direction from slope b

Suppose the same Starbucks catering desk tests different delivery fees per drop-off across campus buildings and Excel’s RSQ reports \(R^2 = 0.81\), where higher delivery fees reduce order volume (\(b < 0\)). What is \(r\)?

Quantity Delivery-fee test Office-accounts trend
Explained fit \(R^2 = 0.81\) (\(81\%\) of variation) \(R^2 = 0.998\) (\(99.8\%\) of variation)
Direction Higher fee cuts orders, so slope \(b < 0\) Later quarter adds accounts, so \(b > 0\)
Signed \(r\) \(r = -\sqrt{0.81} = \mathbf{-0.90}\) \(r = +\sqrt{0.9979} = \mathbf{+0.999}\)

Both \((+0.90)^2\) and \((-0.90)^2\) equal \(0.81\). Never read \(R^2\) alone as proof of upward growth; check the sign of slope \(b\) (or CORREL in Excel) to tell a steep climb from a steep drop.

State slope b and fit R-squared in plain sentences with units

On graded workbooks, write each interpretation in one complete sentence naming the real units:

  • Slope \(b\): “Each additional quarter adds about 7.35 active office coffee accounts to predicted catering demand.” Give the change in \(y\) per one-unit step in \(t\), using the units of both variables (and remember \(a = 112.82\) is only the line’s \(t = 0\) anchor before Quarter 1).
  • Fit \(R^2\): “The linear time trend explains about 99.8% of the variation in active office coffee accounts over these eight quarters; the remaining 0.2% reflects random noise or other factors.” Use that X% explained, (100 - X)% unexplained structure every time.

Try it yourself: using the unrounded trend line \(\hat y_t = 112.8214 + 7.3452t\) on the store’s office accounts, find (a) Quarter 7’s fitted count and signed residual when actual \(y_7 = 163\), and (b) the Quarter 10 trend projection and the sign of \(r\).

Check Quarter 7 and Quarter 10
  1. Quarter 7 residual: \(\hat y_7 = 112.8214 + 7.3452(7) = \mathbf{164.24}\) accounts, so \(e_7 = 163 - 164.24 = \mathbf{-1.24}\) accounts (actual accounts sat 1.24 below the line).
  2. Quarter 10 and sign: \(\hat y_{10} = 112.8214 + 7.3452(10) = \mathbf{186.27}\) accounts (about 186 accounts), and \(r = +0.999\) is positive because slope \(b = +7.35 > 0\).

A straight line works on office coffee accounts because departments keep their brewers running winter and summer alike. When the catering team turns to iced cold-brew kegs, one straight line misses four times a year.

Build the skill 4: adjust for repeating calendar swings (seasonal shares and indices)

Look at the second catering table from the puzzle: three years of quarterly iced cold-brew keg orders, in tens of kegs (12, 18, 26, 16 in Year 1; 14, 21, 30, 19 in Year 2; 16, 24, 34, 22 in Year 3). Annual totals climb steadily by 12 tens of kegs per year (72 → 84 → 96), pointing to 108 tens of kegs (1,080 kegs, or \(108/4 = \mathbf{27}\) tens in an average quarter) in Year 4. Inside every single year, however, Q3 (summer) surges with warm weather and campus welcome week while Q1 (winter) dips:

Time-series chart of Starbucks iced cold-brew keg orders in tens of kegs across Years 1 to 3 (12, 18, 26, 16; 14, 21, 30, 19; 16, 24, 34, 22) and shaded Year 4 projections (18, 27, 38.57, 24.43). Quarterly average baselines step up from 18 to 21 to 24 to 27 tens per quarter as annual totals grow 72, 84, 96, 108, while Q3 summer peaks at 1.43 times the baseline and Q1 winter dips to 0.67 times the baseline every year.

Taylor’s Multiplicative Seasonal Method (pp. 741–742) captures that repeating calendar shape with two companion forms of a seasonal factor, each paired with its own baseline.

First, a seasonal share \(S_q\) divides total demand in season \(q\) across all observed years (\(D_q\)) by the grand total across every season and year (\(\sum D\)):

\[S_q = \frac{D_q}{\sum D}.\]

Because the four quarterly sums make up the entire three-year grand total (\(252\) tens of kegs), seasonal shares sum to \(1\) and split an annual total (108 tens of kegs).

Second, a seasonal index \(I_q\) divides season \(q\)’s average (\(\bar D_q\)) by the overall single-period average across all \(m\) seasons in a year (\(\bar D_{\text{all}}\), with \(m = 4\) for quarters and \(m = 12\) for months):

\[I_q = \frac{\bar D_q}{\bar D_{\text{all}}} = m S_q.\]

Across the 12 observed quarters, \(\bar D_{\text{all}} = 252 / 12 = 21.0\) tens of kegs. Seasonal indices average \(1\) (summing to \(m = 4\) across four quarters) and multiply a single-period baseline (27 tens of kegs for an average Year 4 quarter, or an unseasonalized single-period trend forecast \(\hat y_t\)).

Compute Year 4’s four quarters both ways

Work all four quarters from the three-year keg log (\(\sum D = 72 + 84 + 96 = 252\) tens of kegs, Year 4 annual total \(= 108\), average quarter \(= 27\)):

Quarter 3-year sum \(D_q\) Seasonal share \(S_q = D_q / 252\) Split annual total \(108 \times S_q\) Seasonal index \(I_q = \bar D_q / 21\) Multiply baseline \(27 \times I_q\)
Q1 (winter) \(12+14+16=42\) \(42/252 = 0.167\) 18.00 \(14/21 = 2/3 \approx 0.667\) 18.00
Q2 (spring) \(18+21+24=63\) \(63/252 = 0.250\) 27.00 \(21/21 = 1.000\) 27.00
Q3 (summer) \(26+30+34=90\) \(90/252 = 0.357\) 38.57 \(30/21 = 10/7 \approx 1.429\) 38.57
Q4 (fall) \(16+19+22=57\) \(57/252 = 0.226\) 24.43 \(19/21 \approx 0.905\) 24.43
Check 252 Sum = 1.000 Sum = 108.00 Average = 1.000 Sum = 108.00

Both columns deliver the exact same quarterly forecasts (18.00, 27.00, 38.57, and 24.43 tens of kegs, summing back to 108.00) as long as each multiplier stays with its matching baseline. Crossing them multiplies the 108 full-year total by Q3’s 1.43 single-quarter index to get 154.3 tens of kegs (1,543 kegs), overstating summer demand fourfold:

Seasonal share versus seasonal index for Starbucks cold-brew keg orders in tens of kegs. Route A multiplies the Year 4 annual total 108 by Q3 share 90 over 252 (0.357) to get 38.57. Route B multiplies the Year 4 quarterly baseline 27 by Q3 index 10 over 7 (1.43) to get 38.57. Mixing the annual total 108 with the index 1.43 produces 154.3, four times too high.

Adjust a single-period trend forecast with a seasonal index

The seasonal index \(I_q = \bar D_q / \bar D_{\text{all}}\) is also the right tool whenever a straight trend line \(\hat y_t = a + bt\) predicts one future month or quarter without seasonality (as in Block C3 of this week’s transit workbook). Suppose multi-year campus store records show September Mobile Order demand averages \(\bar D_{\text{Sep}} = 39\) hundred drinks against an all-month grand average of \(\bar D_{\text{all}} = 30\) hundred drinks, and an unadjusted monthly trend line projects \(\hat y_9 = 35.00\) hundred drinks for September:

Step Calculation Meaning in drink units
Compute September’s seasonal index \(I_{\text{Sep}} = 39 / 30 = 1.30\) September typically runs 30% above an average month
Rescale the single-month trend baseline \(35.00 \times 1.30 = \mathbf{45.50}\) Plan for 45.50 hundred drinks (4,550 drinks) in Sept.

Because \(\hat y_9 = 35.00\) already represents one month rather than a 12-month annual total, multiply it by the seasonal index (1.30), never by a one-twelfth annual share.

Try it yourself: in the cold-brew keg table above, Q1 (winter) logged \(42\) out of \(252\) tens of kegs across the three years (\(\bar D_1 = 14\) versus \(\bar D_{\text{all}} = 21\)). Verify Q1’s seasonal share and seasonal index, and check that splitting 108 and rescaling 27 match.

Check both routes for Q1 winter

Q1’s seasonal share is \(S_1 = 42 / 252 = 1/6 \approx \mathbf{0.167}\), and its seasonal index is \(I_1 = 14 / 21 = 4 \times (1/6) = 2/3 \approx \mathbf{0.667}\) (winter cold-brew orders run at two-thirds of an average quarter). Splitting the annual total gives \(108 \times (1/6) = \mathbf{18.00}\) tens of kegs (180 kegs); rescaling the average-quarter baseline gives \(27 \times (2/3) = \mathbf{18.00}\) tens of kegs.

In practice: a trend line is a promise the future may not keep

  • Watch the extrapolation horizon. Projecting \(\hat y_t = 112.82 + 7.35t\) one step ahead to Quarter 9 (178.93 accounts) leans on immediate momentum; plugging in \(t = 20\) or \(t = 28\) (318.5 accounts) extrapolates years past the data and assumes campus hiring, budgets, and coffee habits never change.
  • Straight lines ignore saturation and structural breaks. Once most university departments already have coffee brewers, or a budget freeze halts office catering, growth flattens out. Because \(\hat y_t = a + bt\) locks in a constant slope, a structural break makes the line over-forecast right away, which is why Taylor restricts linear trends to short horizons (p. 741).
  • Scan the residuals \(y_t - \hat y_t\), not just \(R^2\). Residuals that curve (negative at both ends, positive in the middle) show bending growth; residuals that swing positive every Q3 and negative every Q1 show unmodeled seasonality that needs seasonal indices.
  • Small samples inflate confidence, and time is not a cause. Any two points give \(R^2 = 1.00\) automatically, and even eight smooth quarters (R^2 = 0.998) contain zero turning points. Time \(t\) measures how fast accounts climbed, not why offices signed up; Monday of Week 16 replaces \(t\) with an explanatory predictor \(x\) in linear regression.

Back to the puzzle

For Quarter 9 active campus office coffee accounts, the least-squares trend line \(\hat y_t = 112.82 + 7.35t\) (\(R^2 = 0.998\)) forecasts 178.93 (about 179) accounts. Using all eight quarters together keeps pace with the +7.35 accounts-per-quarter climb where plain smoothing (164.33, MAD 12.67) and adjusted smoothing at \(\beta = 0.30\) (170.68, MAD 9.36) trailed Quarter 8’s 172 accounts due to \(T_2 = 0\) cold-start lag. Plan brewer deliveries and roasting around 179 accounts next quarter while checking new sign-ups for campus saturation.

For Year 4 iced cold-brew keg orders, annual totals (72, 84, 96) project 108 tens of kegs (1,080 kegs, or 27 tens in an average quarter). Splitting 108 by seasonal shares or multiplying 27 by seasonal indices forecasts 18.00 tens in Q1 (winter), 27.00 in Q2 (spring), 38.57 (about 386 kegs) in Q3 (summer), and 24.43 in Q4 (fall), summing back to 108.00 tens of kegs.

After-class check

Check smoothing, trend adjustment, least-squares trend lines, \(r\) and \(R^2\), seasonal shares versus indices, forecast bias, and limits on extrapolation. Retry freely; nothing is submitted.

Weekly take-home (graded: submit on Canvas)

A city transit agency compares sequential exponential smoothing (plus one \(\beta = 0.30\) trend-adjusted check) against a fitted least-squares boarding trend, then applies a multi-year seasonal index to adjust next May’s forecast. Choose and justify your smoothing constant \(\alpha\), define the time index and units, compare common-period MAD without confusing in-sample fit for future accuracy, and complete Block D, both short responses, and the AI-use disclosure. Upload the .xlsx to Canvas by Sunday Dec 6 at 11:59 PM. This is the final weekly take-home; regression is practiced through Week 16’s public self-checks.