◢◤ ARKANE_
SYS_TIME UTC+0
Work with me
/01

学期Semester 1: Classical Data Science

15 weeks · 20 chapters

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.

Pass mark 80% on each quiz and on the exam. The capstone project is the coursework. How assessment works.

Your progress

Weeks done
0 / 15
Quizzes at 80% or more
0 / 20

Exam: not taken. Tick each week when you've finished it. Progress stays in this browser only.

  1. 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

    6.7k words

  2. 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

    5.5k words

  3. 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

    4.8k words

  4. Week 4

    Capstone due Slides for week 4 → Lab for week 4 →

    Due: Capstone proposal: problem statement, dataset, and success criteria.

    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

    4k words

  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

    7.8k words

  6. 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

    4.2k words

  7. 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

    3.2k words

  8. Week 8

    Capstone due Slides for week 8 → Lab for week 8 →

    Due: Capstone data report: cleaning, EDA, and a baseline.

    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

    7.6k words

  9. 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

    2.9k words

  10. 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

    2.2k words

  11. 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

    7.5k words

  12. Week 12

    Research challenge talks Capstone due Slides for week 12 → Lab for week 12 →

    Due: Capstone model report: validated models and the metric choice.

    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

    2.3k words

  13. 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

    4.7k words

  14. 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

    2.5k words

  15. Week 15

    Capstone due Slides for week 15 → Lab for week 15 →

    Due: Capstone final: notebook, report, and a five-minute talk.

    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

    2.4k words

Some further reading links go to Amazon. As an Amazon Associate I earn from qualifying purchases.

online /teaching/semester-1 Newcastle, UK v0.1.0 // rss