
Exponential Smoothing (62 Pages)
You can already ask an AI to write you an exponential smoothing forecast. The problem is knowing why a smoothing parameter set too high makes the forecast chase every random dip, why a straight-line trend projected far ahead quietly overshoots once growth slows, or why a careless starting value or a misplaced term in the trend equation leaves every forecast lagging the data. None of that is visible from model.fit(). This is the course that gives you that judgment.
Five parts, one algorithm, no gaps:
• Part 1 — Intro. Why a running estimate nudged a fixed fraction of the way toward each new observation gives older data weights that fade geometrically, how a level and a trend let the forecast follow growth, and how damping, seasonality and state space models extend the same loop. The intuition before the notation.
• Part 2 — By Hand. A complete worked example: twelve weeks of filter-cartridge demand and four full weeks of Holt's method — forecast, error, new level, new trend and the running sum of squared errors, every number carried exactly. Nothing waved away, nothing left “as an exercise.” You watch one surprise week cut the trend by a third without overturning it, and prove the algorithm to yourself.
• Part 3 — In Excel. The same example built out in a spreadsheet you can open and poke at, one week per row, so you see exactly how a change to alpha or beta ripples through every forecast and error — and watch a 361-pair grid search all eleven weekly updates for the settings with the lowest error as you change the demand figures.
• Part 4 — In Python. A clean, executable, verified reference implementation that finds the best settings two independent ways, a brute-force grid of 10,201 pairs and a Nelder-Mead search, and checks that they agree — the known-good version you can check any other code against.
• Part 5 — With AI. A tested prompt that directs an AI assistant to carry this same algorithm to your problem, plus the understanding to catch it when it's wrong.
By the end you won't just have working code. You'll have followed the algorithm from first principles through a hand calculation, a spreadsheet, and production Python — so when you point an AI at your own forecasting problem, you'll know how to choose the smoothing parameters on purpose, check the first few updates against the equations, and tell when the answer is right.