An Illustrated 30-Day Guide

Forecast
in 30

From total beginner to working practitioner —
one chapter a day, concepts that stick

Based on Hyndman et al. (2025), Forecasting: Principles and Practice, the Pythonic Way — CC BY-NC-ND 4.0

This book teaches modern time series forecasting using the nixtlaverse Python toolkit. Every chapter opens with a real story that makes you need the concept before you learn its name. Every analogy is designed to stay in your head permanently — like a pink elephant you can't un-see.

Four phases: See Clearly (Days 1–6), Two Workhorses (Days 7–14), Real-World Power (Days 15–22), and Modern Edge (Days 23–30). A three-day capstone builds a production pipeline from scratch.

Table of Contents
Phase 1: See Clearly — Days 1–6
01
🔮 What Is Forecasting?
You already do this before you leave the house every morning
02
👁️ Always Look Before You Model
No doctor performs surgery without studying the X-ray first
03
🥪 Peeling Apart Your Data
Every time series is a sandwich — pull the layers apart to understand each one
04
🎯 How Wrong Are You? Measuring Your Mistakes
Different sports use different scoreboards — pick the right one
05
🐢 The Turtle You Must Beat First
Before entering any real race, you have to outrun the slowest runner
06
⏳ Testing Your Forecast Honestly
The time-machine rule — you can never use future information to train your model
Phase 2: Two Workhorses — Days 7–14
07
🌅 Remembering the Recent Past More
Sunglasses that automatically darken old memories
08
🚀 Adding Direction to Your Forecast
Simple smoothing walks on flat ground — Holt adds an escalator
09
🎢 Adding Seasons to Your Forecast
A roller coaster riding an escalator — trend AND calendar patterns together
10
🔭 Trying Every Combination Automatically
The eye doctor who tests every lens before deciding which one is best
11
📐 Making Wiggly Data Go Flat
Before ARIMA can read your data, it needs to stand still
12
📅 ARIMA That Knows the Calendar
Adding weekly and yearly rhythms to the model
13
🗺️ AutoARIMA — Your GPS for Models
You tell it where you want to go; it figures out the best route
14
🤝 Asking Both Models and Averaging
The wisdom of asking two experts instead of betting everything on one
Phase 3: Real-World Power — Days 15–22
15
🏭 Forecasting 10,000 Products at Once
The assembly line approach — one run, every product done
16
🌤️ Using Outside Information
Ice cream sales don't only depend on last month — temperature matters too
17
🔧 When Data Has Holes and Jumps
Every real dataset is messier than the textbook examples
18
🫙 Asking a Crowd of Models
A jar of jellybeans and the wisdom of getting many estimates
19
🎯 Showing How Confident You Are
Every forecast should come with an honest "I might be wrong by this much"
20
🤖 Teaching a Computer to Forecast
Instead of math formulas, teach the computer patterns from examples
21
🧪 Building Better Clues for Your Model
Garbage in, garbage out — great clues lead to great forecasts
22
🗂️ Choosing the Right Tool for the Job
A ladder with five rungs — climb only as high as your data requires
Phase 4: Modern Edge — Days 23–30
23
🧠 How Neural Networks See Time
Instead of one formula, hundreds of layers of pattern-recognition
24
✈️ Running NeuralForecast in Practice
Three settings, then let the autopilot take over
25
🌐 Pre-Trained Models — Forecasting Without Training
Like using a weather satellite that someone else built and launched
26
🌲 When Numbers Must Add Up
The total must always equal the sum of its parts — or your numbers are lying
27
🔍 Capstone Day 1 — Understand Before You Model
A detective studies the crime scene before naming a suspect
28
🏃 Capstone Day 2 — Running and Scoring the Models
Race day — run every model, score every result, pick the winner honestly
29
🎹 Capstone Day 3 — Packaging It All Up
From one-off experiment to a forecast you can run again and again
30
🎓 Graduation — You're a Forecaster
Thirty days ago you didn't know what a time series was. Look at you now.
📚 Source & Attribution

This book is a derived educational work based on:

Hyndman, R.J., Athanasopoulos, G., Garza, A., Challu, C., Mergenthaler, M., & Olivares, K.G. (2025).
Forecasting: Principles and Practice, the Pythonic Way.
OTexts: Melbourne, Australia. otexts.com/fpppy

The nixtlaverse Python libraries (StatsForecast, MLForecast, NeuralForecast) are open-source tools built by Nixtla and available under the Apache 2.0 licence.

Original code examples in this repository are released under the MIT Licence. The educational text content is not under MIT — it retains the CC BY-NC-ND 4.0 licence of the source work. You may share this freely for non-commercial purposes with full attribution. Commercial publication requires written permission from the original authors.

CC BY-NC-ND 4.0 Original code: MIT