学期Semester 1: Classical Data Science
Volume 1 of the Field Guide, in 15 weeks. Each week: read the chapters and take the quiz, then work through the slides and the lab. The notebooks run the book's code. Further reading is optional.
Your progress
-
Week 1
Course introduction Slides for week 1 → Lab for week 1 →
Outcomes · 4
- Place a technique in the history of the field: rules, statistics, machine learning, deep learning.
- Turn a vague business ask into an ML problem statement with a target, a prediction point, and a decision.
- Write down the cost of a false positive and a false negative, and use them to set a success criterion.
- Set up Python, Jupyter, and the companion notebooks, and run one end to end.
Further reading · 6
Murphy, Probabilistic Machine Learning: An Introduction (MIT Press, 2022) (opens in a new tab)
The formal companion. Almost every chapter's Further Reading points here. Free online.
Burkov, The Hundred-Page Machine Learning Book (2019)
The short pass. Good for a second angle on any chapter in an evening.
Thakur, Approaching (Almost) Any Machine Learning Problem (2020) (opens in a new tab)
The practitioner's view. Cross-validation, encoding, and tuning as a Kaggle grandmaster does them. Free online from the author.
Provost and Fawcett, Data Science for Business (O'Reilly, 2013)
The business side. Framing, expected value, and evaluation in terms a sponsor cares about.
Robertson, Robertson, and Reed, Mastering the Requirements Process, 4th ed. (Addison-Wesley, 2024)
Chapter 2's goal-writing method comes from requirements engineering. This is that field's standard reference.
-
Leakage defined and sorted into types. Chapters 2, 7, 10, 14, 20 all warn about it.
-
Week 2
Slides for week 2 → Lab for week 2 →
Outcomes · 3
- Compute and interpret mean, variance, and correlation, and say when correlation misleads.
- Apply Bayes' rule to a base-rate problem and explain the result in words.
- Express a linear model as matrix operations and solve least squares with NumPy.
Further reading · 8
-
The closest match in level and scope. Python labs. Free online.
Murphy, Probabilistic Machine Learning: An Introduction (MIT Press, 2022) (opens in a new tab)
The formal companion. Almost every chapter's Further Reading points here. Free online.
Burkov, The Hundred-Page Machine Learning Book (2019)
The short pass. Good for a second angle on any chapter in an evening.
3Blue1Brown, "Essence of Linear Algebra" (video series) (opens in a new tab)
Geometric intuition for transposes, matrix products, and eigenvectors.
-
The graduate version of the core texts. Chapters 3, 11–19. Free online.
Wasserman, All of Statistics (Springer, 2004)
Estimation, testing, and the bootstrap, fast and rigorous. Chapter 3.
Strang, Linear Algebra and Learning from Data (Wellesley-Cambridge, 2019)
Linear algebra aimed at machine learning: SVD, PCA, least squares. Chapters 3, 15.
Humpherys, Jarvis, and Evans, Foundations of Applied Mathematics, Volume 1 (SIAM, 2017)
Vector spaces built from axioms. The contrast with Chapter 3's concrete start.
-
Week 3
Slides for week 3 → Lab for week 3 →
Outcomes · 3
- Compute a gradient by hand and with code for a small function.
- Implement gradient descent and diagnose a learning rate that is too large or too small.
- Explain what momentum and Adam change about a gradient step.
Further reading · 7
Murphy, Probabilistic Machine Learning: An Introduction (MIT Press, 2022) (opens in a new tab)
The formal companion. Almost every chapter's Further Reading points here. Free online.
Géron, Hands-On Machine Learning with Scikit-Learn, Keras, and TensorFlow, 3rd ed. (O'Reilly, 2022)
The code-first companion. Each method in the book, run end to end in Scikit-Learn.
Burkov, The Hundred-Page Machine Learning Book (2019)
The short pass. Good for a second angle on any chapter in an evening.
3Blue1Brown, "Backpropagation" (video) (opens in a new tab)
The chain rule at work inside a neural network.
-
Chapter 4. Starts from rise over run to show what a derivative measures, then builds backpropagation from scratch in Python.
Goh, "Why Momentum Really Works", Distill (2017) (opens in a new tab)
Chapter 4.
Boyd and Vandenberghe, Convex Optimization (Cambridge, 2004) (opens in a new tab)
The theory behind why some losses are easy to minimise. Chapters 4, 18. Free online.
-
Week 4
Capstone due Slides for week 4 → Lab for week 4 →
Outcomes · 3
- Compute entropy, cross-entropy, and KL divergence for small discrete distributions.
- Explain why log loss is cross-entropy, and why it punishes confident wrong answers.
- Compute the information gain of a split.
Further reading · 7
Murphy, Probabilistic Machine Learning: An Introduction (MIT Press, 2022) (opens in a new tab)
The formal companion. Almost every chapter's Further Reading points here. Free online.
Burkov, The Hundred-Page Machine Learning Book (2019)
The short pass. Good for a second angle on any chapter in an evening.
Olah, "Visual Information Theory", colah.github.io (2015) (opens in a new tab)
Chapter 5.
Cover and Thomas, Elements of Information Theory, 2nd ed. (Wiley, 2006)
The standard text. Entropy, KL divergence, and mutual information in full. Chapter 5.
-
Information theory and inference in one book, with good exercises. Chapter 5. Free online.
-
The source of Chapter 5. Readable.
-
Where KL divergence comes from. Chapter 5.
-
Week 5
Slides for week 5 → Lab for week 5 →
Outcomes · 3
- Load, reshape, and summarise a dataset with pandas, using vectorised operations.
- Find and handle missing values, sentinel codes, duplicates, and wrong types, and justify each choice.
- Build a cleaning step that can run again on new data without hand edits.
Further reading · 12
Murphy, Probabilistic Machine Learning: An Introduction (MIT Press, 2022) (opens in a new tab)
The formal companion. Almost every chapter's Further Reading points here. Free online.
Géron, Hands-On Machine Learning with Scikit-Learn, Keras, and TensorFlow, 3rd ed. (O'Reilly, 2022)
The code-first companion. Each method in the book, run end to end in Scikit-Learn.
Burkov, The Hundred-Page Machine Learning Book (2019)
The short pass. Good for a second angle on any chapter in an evening.
Thakur, Approaching (Almost) Any Machine Learning Problem (2020) (opens in a new tab)
The practitioner's view. Cross-validation, encoding, and tuning as a Kaggle grandmaster does them. Free online from the author.
Kuhn and Johnson, Applied Predictive Modeling (Springer, 2013)
The applied modelling book. Strong on preprocessing, resampling, and honest evaluation.
Kuhn and Johnson, Feature Engineering and Selection (CRC, 2019) (opens in a new tab)
The full treatment of Chapters 14 and 15. Free online.
McKinney, Python for Data Analysis, 3rd ed. (O'Reilly, 2022) (opens in a new tab)
pandas from its author. Free online.
Wickham, "Tidy Data", Journal of Statistical Software 59(10) (2014) (opens in a new tab)
The shape that Chapter 7's cleaning aims for, named and defined.
Little and Rubin, Statistical Analysis with Missing Data, 3rd ed. (Wiley, 2019)
The source of MCAR, MAR, and MNAR. Chapter 7.
van Buuren, Flexible Imputation of Missing Data, 2nd ed. (CRC, 2018) (opens in a new tab)
Multiple imputation in practice. Chapter 7. Free online.
-
Leakage defined and sorted into types. Chapters 2, 7, 10, 14, 20 all warn about it.
Liu, Ting, and Zhou, "Isolation Forest", ICDM (2008) (opens in a new tab)
The full algorithm and its cost. Chapters 7, 19.
-
Week 6
Slides for week 6 → Lab for week 6 →
Outcomes · 3
- Write analytical SQL with joins, CTEs, and aggregations in DuckDB.
- Use window functions for running totals, ranks, and period-over-period change.
- Answer a cohort question in SQL and check the answer against pandas.
Further reading · 2
Thakur, Approaching (Almost) Any Machine Learning Problem (2020) (opens in a new tab)
The practitioner's view. Cross-validation, encoding, and tuning as a Kaggle grandmaster does them. Free online from the author.
Beaulieu, Learning SQL, 3rd ed. (O'Reilly, 2020)
The SQL-only reference. Chapter 8.
-
Week 7
Slides for week 7 → Lab for week 7 →
Outcomes · 3
- Run a structured EDA: shape, distributions, relationships, target, data quality.
- Spot a confounder or a Simpson-style reversal and show it with a grouped view.
- Choose a chart for a question and write the finding in one sentence.
Further reading · 6
Burkov, The Hundred-Page Machine Learning Book (2019)
The short pass. Good for a second angle on any chapter in an evening.
Thakur, Approaching (Almost) Any Machine Learning Problem (2020) (opens in a new tab)
The practitioner's view. Cross-validation, encoding, and tuning as a Kaggle grandmaster does them. Free online from the author.
McKinney, Python for Data Analysis, 3rd ed. (O'Reilly, 2022) (opens in a new tab)
pandas from its author. Free online.
-
The book that named EDA. Chapter 9.
-
Anscombe's quartet. Chapter 9's "always visualise" rule in four plots.
-
The classic Simpson's paradox case. Chapter 9.
-
Week 8
Capstone due Slides for week 8 → Lab for week 8 →
Outcomes · 3
- Name the stages of CRISP-DM and say what leaves each stage.
- Spot target leakage and train/serve skew in a feature list.
- Fit and compare linear, tree, and distance-based models against a baseline, inside a pipeline.
Further reading · 14
-
The closest match in level and scope. Python labs. Free online.
Murphy, Probabilistic Machine Learning: An Introduction (MIT Press, 2022) (opens in a new tab)
The formal companion. Almost every chapter's Further Reading points here. Free online.
Géron, Hands-On Machine Learning with Scikit-Learn, Keras, and TensorFlow, 3rd ed. (O'Reilly, 2022)
The code-first companion. Each method in the book, run end to end in Scikit-Learn.
Burkov, The Hundred-Page Machine Learning Book (2019)
The short pass. Good for a second angle on any chapter in an evening.
Thakur, Approaching (Almost) Any Machine Learning Problem (2020) (opens in a new tab)
The practitioner's view. Cross-validation, encoding, and tuning as a Kaggle grandmaster does them. Free online from the author.
Kuhn and Johnson, Applied Predictive Modeling (Springer, 2013)
The applied modelling book. Strong on preprocessing, resampling, and honest evaluation.
Provost and Fawcett, Data Science for Business (O'Reilly, 2013)
The business side. Framing, expected value, and evaluation in terms a sponsor cares about.
-
The graduate version of the core texts. Chapters 3, 11–19. Free online.
Wirth and Hipp, "CRISP-DM: Towards a Standard Process Model for Data Mining" (2000)
The most cited process model. Chapter 10.
Data Science Process Alliance, "What is TDSP?" (opens in a new tab)
Microsoft's Team Data Science Process, explained. The closest published match to Chapter 10's stages.
-
Leakage defined and sorted into types. Chapters 2, 7, 10, 14, 20 all warn about it.
-
What happens after Chapter 10's deployment stage. Also Chapter 20.
-
Chapter 11 says to read them for how narrow the claim is.
-
Evidence for the book's tabular-first stance. Chapters 11, 12.
-
Week 9
Slides for week 9 → Lab for week 9 →
Outcomes · 3
- Explain why bagging lowers variance and boosting lowers bias.
- Train and tune a random forest and a gradient-boosted model, and compare them with a single tree.
- Read feature importances and say what they do and do not show.
Further reading · 16
-
The closest match in level and scope. Python labs. Free online.
Murphy, Probabilistic Machine Learning: An Introduction (MIT Press, 2022) (opens in a new tab)
The formal companion. Almost every chapter's Further Reading points here. Free online.
Géron, Hands-On Machine Learning with Scikit-Learn, Keras, and TensorFlow, 3rd ed. (O'Reilly, 2022)
The code-first companion. Each method in the book, run end to end in Scikit-Learn.
Burkov, The Hundred-Page Machine Learning Book (2019)
The short pass. Good for a second angle on any chapter in an evening.
Thakur, Approaching (Almost) Any Machine Learning Problem (2020) (opens in a new tab)
The practitioner's view. Cross-validation, encoding, and tuning as a Kaggle grandmaster does them. Free online from the author.
Kuhn and Johnson, Applied Predictive Modeling (Springer, 2013)
The applied modelling book. Strong on preprocessing, resampling, and honest evaluation.
-
The graduate version of the core texts. Chapters 3, 11–19. Free online.
Breiman, "Random Forests", Machine Learning 45 (2001) (opens in a new tab)
The original paper. Chapter 12.
-
Where gradient boosting comes from. Chapter 12.
Chen and Guestrin, "XGBoost: A Scalable Tree Boosting System", KDD (2016) (opens in a new tab)
The engineering behind the speed. Chapter 12.
-
Chapter 12.
-
The third major library. Its handling of categories links Chapters 12 and 14.
Wolpert, "Stacked Generalization", Neural Networks 5(2) (1992) (opens in a new tab)
The stacking paper. Chapter 12.
-
Evidence for the book's tabular-first stance. Chapters 11, 12.
-
The SHAP paper. Chapter 12.
Molnar, Interpretable Machine Learning, 3rd ed. (2025) (opens in a new tab)
Model explanation methods, one per chapter. Chapters 12, 16. Free online.
-
Week 10
Capstone modelling plan Slides for week 10 → Lab for week 10 →
Outcomes · 4
- Explain why one train/test split gives a noisy, sometimes optimistic score.
- Choose k-fold, stratified, grouped or time-series CV for a dataset, and justify it.
- Run nested CV and explain why a tuned CV score is optimistic.
- Write a capstone modelling plan: the CV scheme, the main metric, and the baseline, each with a reason.
Further reading · 9
-
The closest match in level and scope. Python labs. Free online.
Murphy, Probabilistic Machine Learning: An Introduction (MIT Press, 2022) (opens in a new tab)
The formal companion. Almost every chapter's Further Reading points here. Free online.
Burkov, The Hundred-Page Machine Learning Book (2019)
The short pass. Good for a second angle on any chapter in an evening.
Thakur, Approaching (Almost) Any Machine Learning Problem (2020) (opens in a new tab)
The practitioner's view. Cross-validation, encoding, and tuning as a Kaggle grandmaster does them. Free online from the author.
Kuhn and Johnson, Applied Predictive Modeling (Springer, 2013)
The applied modelling book. Strong on preprocessing, resampling, and honest evaluation.
-
The graduate version of the core texts. Chapters 3, 11–19. Free online.
-
Why nested cross-validation exists. Chapter 13.
-
The same problem, measured. Chapters 13, 17.
-
When ordinary k-fold is safe for time series. A useful counterpoint to Chapters 13 and 20.
-
Week 11
Research challenge starts Slides for week 11 → Lab for week 11 →
Outcomes · 3
- Engineer numeric, categorical, datetime, and cyclic features inside a leakage-safe pipeline.
- Target-encode a high-cardinality column without leaking the label.
- Compare filter, wrapper, and embedded selection, and PCA, on the same data.
Further reading · 18
-
The closest match in level and scope. Python labs. Free online.
Murphy, Probabilistic Machine Learning: An Introduction (MIT Press, 2022) (opens in a new tab)
The formal companion. Almost every chapter's Further Reading points here. Free online.
Géron, Hands-On Machine Learning with Scikit-Learn, Keras, and TensorFlow, 3rd ed. (O'Reilly, 2022)
The code-first companion. Each method in the book, run end to end in Scikit-Learn.
Burkov, The Hundred-Page Machine Learning Book (2019)
The short pass. Good for a second angle on any chapter in an evening.
Thakur, Approaching (Almost) Any Machine Learning Problem (2020) (opens in a new tab)
The practitioner's view. Cross-validation, encoding, and tuning as a Kaggle grandmaster does them. Free online from the author.
Kuhn and Johnson, Applied Predictive Modeling (Springer, 2013)
The applied modelling book. Strong on preprocessing, resampling, and honest evaluation.
Kuhn and Johnson, Feature Engineering and Selection (CRC, 2019) (opens in a new tab)
The full treatment of Chapters 14 and 15. Free online.
Wattenberg, Viégas, and Johnson, "How to Use t-SNE Effectively", Distill (2016) (opens in a new tab)
Chapter 15. The book calls it essential before trusting a t-SNE plot.
-
The graduate version of the core texts. Chapters 3, 11–19. Free online.
Strang, Linear Algebra and Learning from Data (Wellesley-Cambridge, 2019)
Linear algebra aimed at machine learning: SVD, PCA, least squares. Chapters 3, 15.
-
Leakage defined and sorted into types. Chapters 2, 7, 10, 14, 20 all warn about it.
-
The third major library. Its handling of categories links Chapters 12 and 14.
Zheng and Casari, Feature Engineering for Machine Learning (O'Reilly, 2018)
A full book on Chapter 14.
Hughes, Strategic Database Marketing, 4th ed. (McGraw-Hill, 2012)
The source of RFM features, first published in 1994. Chapter 14.
-
Filters, wrappers, and embedded methods, from the people who set the terms. Chapter 15.
van der Maaten and Hinton, "Visualizing Data using t-SNE", JMLR 9 (2008) (opens in a new tab)
The t-SNE paper. Chapter 15.
-
The UMAP paper. Chapters 15, 19. The book also names the UMAP docs' "How UMAP Works".
-
The silhouette score. Chapters 15, 19.
-
Week 12
Research challenge talks Capstone due Slides for week 12 → Lab for week 12 →
Outcomes · 4
- Compute precision, recall, F1, ROC-AUC, and PR-AUC from predictions, and choose one from error costs.
- Pick a decision threshold from a cost matrix instead of using 0.5.
- Check calibration and fix it with Platt or isotonic scaling.
- Research an evaluation metric beyond the chapter, build it from scratch, and show an input where it misleads.
Further reading · 11
-
The closest match in level and scope. Python labs. Free online.
Murphy, Probabilistic Machine Learning: An Introduction (MIT Press, 2022) (opens in a new tab)
The formal companion. Almost every chapter's Further Reading points here. Free online.
Géron, Hands-On Machine Learning with Scikit-Learn, Keras, and TensorFlow, 3rd ed. (O'Reilly, 2022)
The code-first companion. Each method in the book, run end to end in Scikit-Learn.
Thakur, Approaching (Almost) Any Machine Learning Problem (2020) (opens in a new tab)
The practitioner's view. Cross-validation, encoding, and tuning as a Kaggle grandmaster does them. Free online from the author.
Kuhn and Johnson, Applied Predictive Modeling (Springer, 2013)
The applied modelling book. Strong on preprocessing, resampling, and honest evaluation.
Provost and Fawcett, Data Science for Business (O'Reilly, 2013)
The business side. Framing, expected value, and evaluation in terms a sponsor cares about.
-
The graduate version of the core texts. Chapters 3, 11–19. Free online.
Molnar, Interpretable Machine Learning, 3rd ed. (2025) (opens in a new tab)
Model explanation methods, one per chapter. Chapters 12, 16. Free online.
-
Chapter 16.
-
The applied follow-up to Davis and Goadrich. Chapter 16.
-
Calibration, Platt scaling, and isotonic regression compared. Chapter 16.
-
Week 13
Slides for week 13 → Lab for week 13 →
Outcomes · 3
- Run grid, random, and Bayesian (Optuna) searches on the same budget and compare them.
- Read a learning curve and say whether a model needs more or less capacity.
- Fit Ridge, Lasso, and Elastic Net, choose alpha by CV, and explain why Lasso zeroes weights.
Further reading · 17
-
The closest match in level and scope. Python labs. Free online.
Murphy, Probabilistic Machine Learning: An Introduction (MIT Press, 2022) (opens in a new tab)
The formal companion. Almost every chapter's Further Reading points here. Free online.
Géron, Hands-On Machine Learning with Scikit-Learn, Keras, and TensorFlow, 3rd ed. (O'Reilly, 2022)
The code-first companion. Each method in the book, run end to end in Scikit-Learn.
Burkov, The Hundred-Page Machine Learning Book (2019)
The short pass. Good for a second angle on any chapter in an evening.
Thakur, Approaching (Almost) Any Machine Learning Problem (2020) (opens in a new tab)
The practitioner's view. Cross-validation, encoding, and tuning as a Kaggle grandmaster does them. Free online from the author.
-
The graduate version of the core texts. Chapters 3, 11–19. Free online.
Bishop, Pattern Recognition and Machine Learning (Springer, 2006)
The probabilistic view. Priors as regularisers (Chapter 18) start here.
Boyd and Vandenberghe, Convex Optimization (Cambridge, 2004) (opens in a new tab)
The theory behind why some losses are easy to minimise. Chapters 4, 18. Free online.
-
The same problem, measured. Chapters 13, 17.
-
Chapter 17's default.
-
The paper that made Bayesian optimisation practical. Chapter 17.
-
Early stopping as a search strategy. Chapter 17.
-
The library Chapter 17's procedures build on. TPE and pruning come from here.
-
The ridge paper.
-
The lasso paper.
-
The elastic net paper.
-
The lasso and its family in one book. Free online.
-
Week 14
Slides for week 14 → Lab for week 14 →
Outcomes · 3
- Cluster with k-means, Gaussian mixtures, DBSCAN, and hierarchical clustering, and say which assumptions each makes.
- Choose K with the elbow method and silhouette, and test whether the clusters are useful.
- Find anomalies with an isolation forest and report precision and recall where labels exist.
Further reading · 10
-
The closest match in level and scope. Python labs. Free online.
Murphy, Probabilistic Machine Learning: An Introduction (MIT Press, 2022) (opens in a new tab)
The formal companion. Almost every chapter's Further Reading points here. Free online.
Géron, Hands-On Machine Learning with Scikit-Learn, Keras, and TensorFlow, 3rd ed. (O'Reilly, 2022)
The code-first companion. Each method in the book, run end to end in Scikit-Learn.
Burkov, The Hundred-Page Machine Learning Book (2019)
The short pass. Good for a second angle on any chapter in an evening.
-
The graduate version of the core texts. Chapters 3, 11–19. Free online.
-
The UMAP paper. Chapters 15, 19. The book also names the UMAP docs' "How UMAP Works".
-
The default initialisation in Scikit-Learn.
-
The DBSCAN paper.
-
The silhouette score. Chapters 15, 19.
Liu, Ting, and Zhou, "Isolation Forest", ICDM (2008) (opens in a new tab)
The full algorithm and its cost. Chapters 7, 19.
-
Week 15
Capstone due Slides for week 15 → Lab for week 15 →
Outcomes · 3
- Decompose a series into trend, seasonality, and residual, and test for stationarity.
- Fit exponential smoothing and ARIMA, and forecast with prediction intervals.
- Evaluate forecasts on a time-ordered split against a naive baseline, with MAE and MASE.
Further reading · 11
-
The standard modern forecasting text. Free online.
Murphy, Probabilistic Machine Learning: Advanced Topics (MIT Press, 2023) (opens in a new tab)
State-space models under ARIMA and exponential smoothing (Chapter 20), and much more.
-
Leakage defined and sorted into types. Chapters 2, 7, 10, 14, 20 all warn about it.
-
What happens after Chapter 10's deployment stage. Also Chapter 20.
Box, Jenkins, Reinsel, and Ljung, Time Series Analysis: Forecasting and Control, 5th ed. (Wiley, 2015)
The rigorous Box-Jenkins treatment.
-
The two papers behind Holt-Winters.
Cleveland, Cleveland, McRae, and Terpenning, "STL: A Seasonal-Trend Decomposition Procedure Based on Loess", Journal of Official Statistics 6(1) (1990)
The decomposition most tools use.
-
Why MAPE misleads, and where MASE comes from.
-
When ordinary k-fold is safe for time series. A useful counterpoint to Chapters 13 and 20.
-
What wins at scale, statistical and ML methods side by side.
-
The Prophet paper. Chapter 20 names Prophet.