Demand Forecasting with
Machine Learning
An operations director needs weekly demand forecasts to plan inventory. You'll explore historical order patterns, engineer time-series features (lags, rolling averages, seasonality), train and evaluate models against honest holdouts, and ship a portfolio piece that balances analytical rigor with production-thinking. Advanced — assumes pandas + basic ML comfort.
What you'll learn
- —Frame a business question (weekly inventory planning) as an ML forecasting problem
- —Engineer time-series features (lags, rolling stats, seasonality flags) without leaking the future into the past
- —Compare baseline and ML models honestly using time-series cross-validation
- —Reason about model deployment: cadence, monitoring, when to retrain
- —Ship a portfolio repo that demonstrates both analytical rigor and production-thinking
After this project
What you'll be able to claim — credibly — once your repo is shipped.
Roles you can credibly apply to
Keywords on your resume after this
Interview questions you'll be ready for
- 01Walk me through how you'd frame 'I want better demand forecasts' as a concrete ML problem — including what metric you'd optimize.
- 02What's the single most common mistake in time-series feature engineering, and how do you prevent it?
- 03Your seasonal-naive baseline beats your fancy XGBoost by 5%. What does that tell you?
- 04How would you set up time-series cross-validation differently from random k-fold, and why does it matter?
- 05If your model's deployed and starts drifting, what would your monitoring actually catch — and what would it miss?
The 5 milestones
Each milestone is reviewed before you advance.
- 01
Set up your project repo
Before any analytical work: create a public GitHub repository, push the standard skeleton, and paste the URL into your workspace.
- 02
Frame the problem and explore the demand data
Translate the operations ask into a forecasting problem and form a first-pass mental model of the demand patterns.
- 03
Engineer time-series features
Build features from order history without leaking the future into the past.
- 04
Train, evaluate, compare
Build a baseline, build an ML model, evaluate both honestly with time-series cross-validation.
- 05
Production thinking and portfolio
Wire the analysis into a deployment-ready story and polish the repo for a recruiter.
Reading & references
Build your portfolio & get certified
Want more projects like this? Join our Data Analyst Work Experience Program to complete 5+ guided industry projects, gain real experience, and earn an internship certificate.