All lessons
From a straight line to an LLM: data analytics and machine learning foundations
How machines learn from data, from drawing the best straight line to what a large language model really is. Linear and logistic regression, decision trees, random forests, boosting, clustering, neural networks and transformers, each with pictures, simulations you can play with and the maths worked by hand.
What you will be able to do
- Explain every common model in plain words and with its formula: linear and logistic regression, k-nearest neighbours, naive Bayes, decision trees, random forests, gradient boosting, k-means, PCA and neural networks.
- Work the maths by hand on small numbers: least squares, gradient descent, Gini impurity, the chain rule in backpropagation and softmax in attention.
- Judge a model honestly: train and test sets, cross-validation, precision and recall, overfitting and data leakage.
- Say what an LLM really is: embeddings, attention and next-word training, and what that means for what it can and cannot do.
Every lesson has a picture of the idea, a simulation to play with, a maths box with a worked example, practice questions and a short quiz. It is the first step before the Pipeline to Dashboard and Data at Scale courses, and before Offline AI, where you run a language model on your own computer.
0 of 66 lessons done
Without the tick, your progress lasts until you close this tab. Either way it stays in this browser: there is no sign-up and nothing is sent to us.
All modules
Part A: Data and the maths you need
1 Data, models and the maths you need 7 lessons
2 Looking at data before modelling 5 lessons
Part B: Models that draw lines
3 Linear regression: the first model 8 lessons
- 3.1 What a linear model is
- 3.2 Least squares: why we square the errors
- 3.3 Fitting by gradient descent
- 3.4 Many inputs: multiple regression and matrices
- 3.5 Measuring fit: residuals, RMSE and R²
- 3.6 Curves with a linear model: polynomial features
- 3.7 Overfitting and underfitting
- 3.8 Regularisation: ridge and lasso
4 Classification and logistic regression 8 lessons
- 4.1 Predicting a category
- 4.2 The sigmoid and odds: from a line to a probability
- 4.3 Log-loss: how logistic regression learns
- 4.4 Decision boundaries
- 4.5 Accuracy is not enough: precision, recall and F1
- 4.6 Thresholds, ROC curves and AUC
- 4.7 k-nearest neighbours
- 4.8 Naive Bayes: counting words to catch spam