10classes mapped
62topics checked
62topics covered
6new companion lessons
0open gaps
How to use this guide. After each class, open that class below, read the linked lesson for every topic, run the code, then do the lesson's practice questions. Companion lessons (purple badge) fill topics the main handbook did not teach.
Class by class
Class 1 Statistics refresher and hypothesis testing
Hypothesis testing, the Central Limit Theorem, parametric and non-parametric tests, and the introduction to the hypothesis-testing case study.
| Topic taught in class | Status | Where to study it |
|---|
| Descriptive vs inferential statistics; population and sample | Covered | Statistics & Machine Learning 1: Descriptive Statistics: Centre, Spread, Shape and Relationships · Statistics & Machine Learning 3: Sampling, the Central Limit Theorem and Confidence Intervals |
| Mean, median, mode, variance, standard deviation, IQR, percentiles | Covered | Statistics & Machine Learning 1: Descriptive Statistics: Centre, Spread, Shape and Relationships |
| Symmetric and skewed distributions, kurtosis | Covered | Statistics & Machine Learning 1: Descriptive Statistics: Centre, Spread, Shape and Relationships · Statistics & Machine Learning 2: Probability and Distributions: Rules, Bayes, Binomial, Poisson and Normal |
| Standardisation (z-scores) to compare variables | Covered | Statistics & Machine Learning 1: Descriptive Statistics: Centre, Spread, Shape and Relationships · Statistics & Machine Learning 9: Data Preprocessing and Feature Engineering for ML |
| Central Limit Theorem (sample means look normal from about n = 30) | Covered | Statistics & Machine Learning 3: Sampling, the Central Limit Theorem and Confidence Intervals |
| Parametric vs non-parametric tests and when to use each | Covered | Statistics & Machine Learning 5: Hypothesis Testing II: Chi-Square, ANOVA, Non-Parametric Tests and Correlation Tests |
| Z-test vs t-test (known vs unknown population SD, sample size) | Covered | Statistics & Machine Learning 4: Hypothesis Testing I: The Framework, p-values, z-tests and t-tests |
| One-sample, paired (before/after) and independent two-sample tests | Covered + new guide | Statistics & Machine Learning 4: Hypothesis Testing I: The Framework, p-values, z-tests and t-tests · Guide: Hypothesis-testing case study: did the card campaign work? |
| Chi-square for two categorical variables; ANOVA for three or more groups | Covered + new guide | Statistics & Machine Learning 5: Hypothesis Testing II: Chi-Square, ANOVA, Non-Parametric Tests and Correlation Tests · Guide: Hypothesis-testing case study: did the card campaign work? |
| Hypothesis-testing case study set-up (SciPy, NumPy, pandas) | New guide | Guide: Hypothesis-testing case study: did the card campaign work? |
Companion lessons for this class: Hypothesis-testing case study: did the card campaign work?
Class 2 Running the tests: p-value, alpha and critical values
Tests implemented on the case study; p-value, alpha, critical value, one-tailed and two-tailed tests.
| Topic taught in class | Status | Where to study it |
|---|
| Null and alternative hypotheses | Covered | Statistics & Machine Learning 4: Hypothesis Testing I: The Framework, p-values, z-tests and t-tests |
| Confidence level and alpha (alpha = 1 - confidence) | Covered | Statistics & Machine Learning 3: Sampling, the Central Limit Theorem and Confidence Intervals · Statistics & Machine Learning 4: Hypothesis Testing I: The Framework, p-values, z-tests and t-tests |
| p-value and the decision rule (p < alpha: reject H0) | Covered | Statistics & Machine Learning 4: Hypothesis Testing I: The Framework, p-values, z-tests and t-tests |
| Six-step testing procedure; test statistic vs critical value (z = 1.96 at 95%) | Covered + new guide | Statistics & Machine Learning 4: Hypothesis Testing I: The Framework, p-values, z-tests and t-tests · Guide: Hypothesis-testing case study: did the card campaign work? |
| Standard error vs standard deviation | Covered | Statistics & Machine Learning 3: Sampling, the Central Limit Theorem and Confidence Intervals |
| One-tailed vs two-tailed tests | Covered + new guide | Statistics & Machine Learning 4: Hypothesis Testing I: The Framework, p-values, z-tests and t-tests · Guide: Hypothesis-testing case study: did the card campaign work? |
| One-sample t-test and paired t-test in Python (ttest_1samp, ttest_rel) | Covered + new guide | Statistics & Machine Learning 4: Hypothesis Testing I: The Framework, p-values, z-tests and t-tests · Guide: Hypothesis-testing case study: did the card campaign work? |
| Reading z, t and chi-square tables | Covered + new guide | Statistics & Machine Learning 4: Hypothesis Testing I: The Framework, p-values, z-tests and t-tests · Statistics & Machine Learning 5: Hypothesis Testing II: Chi-Square, ANOVA, Non-Parametric Tests and Correlation Tests · Guide: Hypothesis-testing case study: did the card campaign work? |
Companion lessons for this class: Hypothesis-testing case study: did the card campaign work?
Class 3 Hypothesis testing concluded; introduction to machine learning
Case study concluded; introduction to ML, types of business problems, converting a business problem to a statistics problem, types of ML systems.
| Topic taught in class | Status | Where to study it |
|---|
| Independent t-test, ANOVA (f_oneway), chi-square (chi2_contingency) on the case | Covered + new guide | Statistics & Machine Learning 5: Hypothesis Testing II: Chi-Square, ANOVA, Non-Parametric Tests and Correlation Tests · Guide: Hypothesis-testing case study: did the card campaign work? |
| Expected vs observed tables and degrees of freedom | Covered + new guide | Statistics & Machine Learning 5: Hypothesis Testing II: Chi-Square, ANOVA, Non-Parametric Tests and Correlation Tests · Guide: Hypothesis-testing case study: did the card campaign work? |
| Pearson and Spearman rank correlation | Covered + new guide | Statistics & Machine Learning 1: Descriptive Statistics: Centre, Spread, Shape and Relationships · Statistics & Machine Learning 5: Hypothesis Testing II: Chi-Square, ANOVA, Non-Parametric Tests and Correlation Tests · Guide: Hypothesis-testing case study: did the card campaign work? |
| What machine learning is; ML vs AI vs deep learning vs GenAI | Covered | Statistics & Machine Learning 7: Introduction to Machine Learning: Types, Business Framing and the ML Lifecycle · Statistics & Machine Learning 26: Neural Networks and Deep Learning: From a Neuron to Transformers |
| Business problem types: regression, classification, segmentation, forecasting | Covered | Statistics & Machine Learning 7: Introduction to Machine Learning: Types, Business Framing and the ML Lifecycle |
| Converting a business problem into a statistics problem (Y, X, unit, metric) | Covered | Statistics & Machine Learning 7: Introduction to Machine Learning: Types, Business Framing and the ML Lifecycle · Governance, Privacy & Business Consulting 1: Business Problem-Solving: KPIs, Process Mapping, Discovery and Hypotheses |
| Supervised and unsupervised learning systems | Covered | Statistics & Machine Learning 7: Introduction to Machine Learning: Types, Business Framing and the ML Lifecycle |
| Semi-supervised learning (a few labelled rows plus many unlabelled) | New guide | Guide: Semi-supervised learning: a few labels, many unlabelled rows |
Companion lessons for this class: Hypothesis-testing case study: did the card campaign work? · Semi-supervised learning: a few labels, many unlabelled rows
Class 4 Project lifecycles and types of models
Life cycle of analytics and machine-learning projects, linear and non-linear models, the linear equation and link functions.
| Topic taught in class | Status | Where to study it |
|---|
| Lifecycle of an analytics (dashboard) project: brief, audit, cleaning, Power BI, views, validation, access, support | New guide | Guide: The analytics project lifecycle and the data audit |
| Lifecycle of an ML project: business problem to retraining (12 steps) | Covered + new guide | Statistics & Machine Learning 7: Introduction to Machine Learning: Types, Business Framing and the ML Lifecycle · Statistics & Machine Learning 27: Explainable AI and MLOps: SHAP, Fairness, Deployment, Monitoring and Responsible ML · Guide: The analytics project lifecycle and the data audit |
| Data audit and cleaning plan | Covered + new guide | Guide: The analytics project lifecycle and the data audit · Python for Data Science 17: pandas II: Data Cleaning: Missing Values, Types, Duplicates, Text and Outliers |
| Dependent (Y) and independent (X) variables | Covered | Statistics & Machine Learning 7: Introduction to Machine Learning: Types, Business Framing and the ML Lifecycle · Statistics & Machine Learning 10: Linear Regression: Fitting, Interpreting, Assumptions and Diagnostics |
| Linear vs non-linear models; slope, intercept and the linear equation | Covered | Statistics & Machine Learning 7: Introduction to Machine Learning: Types, Business Framing and the ML Lifecycle · Statistics & Machine Learning 10: Linear Regression: Fitting, Interpreting, Assumptions and Diagnostics |
| Link functions (identity, sigmoid, exp) | Covered | Statistics & Machine Learning 7: Introduction to Machine Learning: Types, Business Framing and the ML Lifecycle · Statistics & Machine Learning 13: Logistic Regression: Probabilities, Odds Ratios and Credit-Risk Scoring |
| Train/test split (80:20) and evaluation gaps | Covered | Statistics & Machine Learning 8: The scikit-learn Workflow: Train/Test Split, Baselines, Pipelines and Saving Models |
Companion lessons for this class: The analytics project lifecycle and the data audit
Class 5 Gradient descent for linear regression
Gradient Descent implemented for Linear Regression in Python.
| Topic taught in class | Status | Where to study it |
|---|
| Loss functions for regression: error, SSE, MSE, RMSE | Covered | Statistics & Machine Learning 11: Gradient Descent: How Models Learn (Built from Scratch in NumPy) · Statistics & Machine Learning 30: Regression Metrics: MAE, MSE, RMSE and R-Squared |
| OLS summary (statsmodels): R2, adjusted R2, coefficients, p-values | Covered | Statistics & Machine Learning 10: Linear Regression: Fitting, Interpreting, Assumptions and Diagnostics |
| Gradient descent: derivatives, learning rate, iterations | Covered | Statistics & Machine Learning 11: Gradient Descent: How Models Learn (Built from Scratch in NumPy) |
| Gradient descent from scratch matching the OLS answer | Covered | Statistics & Machine Learning 11: Gradient Descent: How Models Learn (Built from Scratch in NumPy) |
Class 6 Preprocessing, overfitting and heuristic segmentation
Missing value imputation, outlier treatment, categorical encoding, overfitting and underfitting, introduction to segmentation, heuristic and RFM segmentation.
| Topic taught in class | Status | Where to study it |
|---|
| Scaling: StandardScaler, MinMaxScaler, RobustScaler | Covered | Statistics & Machine Learning 9: Data Preprocessing and Feature Engineering for ML |
| Nominal vs ordinal data; one-hot, ordinal and label encoding | Covered + new guide | Statistics & Machine Learning 9: Data Preprocessing and Feature Engineering for ML · Guide: End-to-end linear regression: what drives car sales? |
| Missing-value imputation: SimpleImputer, KNNImputer, model-based | Covered + new guide | Statistics & Machine Learning 9: Data Preprocessing and Feature Engineering for ML · Guide: End-to-end linear regression: what drives car sales? |
| Outlier capping: IQR, mean +/- 3 SD, percentile | Covered + new guide | Statistics & Machine Learning 9: Data Preprocessing and Feature Engineering for ML · Guide: End-to-end linear regression: what drives car sales? |
| Overfitting vs underfitting from train and test RMSE; bias and variance | Covered + new guide | Statistics & Machine Learning 12: Overfitting, Polynomial Regression and Regularisation (Ridge, Lasso, Elastic Net) · Guide: End-to-end linear regression: what drives car sales? |
| Heuristic segmentation: demographic, loyalty, life stage, value | New guide | Guide: Analytics file and Customer 360, with heuristic and RFM segmentation |
| RFM segmentation with percentile rules (Gold, Silver, Bronze) | Covered + new guide | Statistics & Machine Learning 22: Clustering I: K-Means and RFM Customer Segmentation · Guide: Analytics file and Customer 360, with heuristic and RFM segmentation |
Companion lessons for this class: Analytics file and Customer 360, with heuristic and RFM segmentation · End-to-end linear regression: what drives car sales?
Class 7 K-nearest neighbours, GridSearchCV and classification metrics
KNNClassifier and KNNRegressor, GridSearchCV, implementation on the bank-loans case study, evaluation metrics for classification.
| Topic taught in class | Status | Where to study it |
|---|
| KNN classifier and regressor: distance, k, majority vs distance weights | Covered | Statistics & Machine Learning 16: K-Nearest Neighbours: Classifier and Regressor (Bank Loans Case Study) |
| Why distance-based models need standardised X | Covered | Statistics & Machine Learning 9: Data Preprocessing and Feature Engineering for ML · Statistics & Machine Learning 16: K-Nearest Neighbours: Classifier and Regressor (Bank Loans Case Study) |
| GridSearchCV and k-fold cross-validation | Covered | Statistics & Machine Learning 15: Cross-Validation and Hyperparameter Tuning: K-Fold, GridSearchCV, RandomizedSearchCV and Optuna · Statistics & Machine Learning 16: K-Nearest Neighbours: Classifier and Regressor (Bank Loans Case Study) |
| Bank-loans case study in Python | Covered | Statistics & Machine Learning 16: K-Nearest Neighbours: Classifier and Regressor (Bank Loans Case Study) |
| Classification metrics: confusion matrix, accuracy, precision, recall, F1, ROC-AUC | Covered | Statistics & Machine Learning 14: Classification Metrics: Confusion Matrix, Precision, Recall, ROC, PR and Business Value |
| Credit-risk evaluation: gains table, lift, KS, Gini | New guide | Guide: WOE, Information Value, gains tables, KS and Gini |
Companion lessons for this class: WOE, Information Value, gains tables, KS and Gini
Class 8 Analytics file creation
Analytics file creation; Customer 360 case study started.
| Topic taught in class | Status | Where to study it |
|---|
| What an analytics file is, why it matters, where it is used | New guide | Guide: Analytics file and Customer 360, with heuristic and RFM segmentation |
| Deciding Y from the business problem (forecast, churn, high spender, segments) | Covered + new guide | Statistics & Machine Learning 7: Introduction to Machine Learning: Types, Business Framing and the ML Lifecycle · Guide: Analytics file and Customer 360, with heuristic and RFM segmentation |
| Source tables: customers, products, transactions | Covered + new guide | Guide: Analytics file and Customer 360, with heuristic and RFM segmentation · Python for Data Science 18: pandas III: GroupBy, Pivot Tables, Merge/Join and Reshape (melt/unpivot) |
Companion lessons for this class: Analytics file and Customer 360, with heuristic and RFM segmentation
Class 9 Customer 360 and the end-to-end linear regression case
Customer 360 file creation completed; end-to-end linear regression case study (car sales) introduced and solved.
| Topic taught in class | Status | Where to study it |
|---|
| Customer 360 variables: baskets, value, margin, discount, category penetration, flags, deciles | New guide | Guide: Analytics file and Customer 360, with heuristic and RFM segmentation |
| Period-based segments: new, churner, upward and downward migrator; churn and high-spender targets | New guide | Guide: Analytics file and Customer 360, with heuristic and RFM segmentation |
| End-to-end regression case: car sales drivers | Covered + new guide | Guide: End-to-end linear regression: what drives car sales? · Statistics & Machine Learning 10: Linear Regression: Fitting, Interpreting, Assumptions and Diagnostics |
| Dummy variables with n - 1 columns (drop_first) | Covered + new guide | Statistics & Machine Learning 9: Data Preprocessing and Feature Engineering for ML · Guide: End-to-end linear regression: what drives car sales? |
Companion lessons for this class: Analytics file and Customer 360, with heuristic and RFM segmentation · End-to-end linear regression: what drives car sales?
Class 10 Feature selection, imputers and Naive Bayes
Feature selection techniques (VIF), SimpleImputer and KNNImputer, introduction to the Naive Bayes classifier.
| Topic taught in class | Status | Where to study it |
|---|
| Feature selection: correlation, RFE, SelectKBest, tree importance | Covered | Statistics & Machine Learning 9: Data Preprocessing and Feature Engineering for ML · Statistics & Machine Learning 18: Ensembles I: Bagging and Random Forests |
| Multicollinearity and VIF = 1 / (1 - R2); drop above 5 | Covered + new guide | Statistics & Machine Learning 10: Linear Regression: Fitting, Interpreting, Assumptions and Diagnostics · Guide: End-to-end linear regression: what drives car sales? |
| Information Value and WOE for variable screening | New guide | Guide: WOE, Information Value, gains tables, KS and Gini |
| SimpleImputer vs KNNImputer (distance with missing columns) | Covered + new guide | Statistics & Machine Learning 9: Data Preprocessing and Feature Engineering for ML · Guide: End-to-end linear regression: what drives car sales? |
| Naive Bayes: conditional probability, Bayes' rule, GaussianNB, CategoricalNB, BernoulliNB | Covered | Statistics & Machine Learning 2: Probability and Distributions: Rules, Bayes, Binomial, Poisson and Normal · Statistics & Machine Learning 20: Support Vector Machines and Naive Bayes |
Companion lessons for this class: End-to-end linear regression: what drives car sales? · WOE, Information Value, gains tables, KS and Gini
Companion lessons
Each one covers class topics that were missing or only touched on in the handbook, with a plain-English explanation, a step-by-step diagram, runnable Python, its real output, common mistakes, an assignment and interview questions.
Classes 1, 2, 3Hypothesis-testing case study: did the card campaign work?One business case, every test from Classes 1 to 3: one-sample, paired and independent t-tests, ANOVA, chi-square and correlation,…Classes 3Semi-supervised learning: a few labels, many unlabelled rowsLabels are expensive: someone has to check every loan, ticket or scan. Semi-supervised learning uses the few labelled rows plus…Classes 4The analytics project lifecycle and the data auditMost analytics work is a dashboard, not a model. This lesson follows a sales-dashboard project from the client's first ask to…Classes 6, 8, 9Analytics file and Customer 360, with heuristic and RFM segmentationModels need one row per customer, not millions of transactions. This lesson builds a Customer 360 analytics file of 53 variables…Classes 6, 9, 10End-to-end linear regression: what drives car sales?The full preprocessing and modelling chain from Classes 6, 9 and 10 in one leak-free script: audit, split, outlier capping, KNN…Classes 7, 10WOE, Information Value, gains tables, KS and GiniThe credit-risk toolkit banks and analytics firms in India expect: screen variables with Weight of Evidence and Information…
Is the course complete? The full syllabus checklist
Beyond the topics taught in class so far, a complete Machine Learning using Python course also needs these. Every item is already taught in the handbook or a companion lesson.
| Topic | Status | Lesson |
|---|
| Probability and distributions, Bayes' rule | Covered | Statistics & Machine Learning 2: Probability and Distributions: Rules, Bayes, Binomial, Poisson and Normal |
| A/B testing, statistical power and sample size | Covered | Statistics & Machine Learning 6: A/B Testing and Experimentation: Design, Power, Analysis and Pitfalls |
| scikit-learn pipelines and saving models | Covered | Statistics & Machine Learning 8: The scikit-learn Workflow: Train/Test Split, Baselines, Pipelines and Saving Models |
| Regularisation: Ridge, Lasso, Elastic Net | Covered | Statistics & Machine Learning 12: Overfitting, Polynomial Regression and Regularisation (Ridge, Lasso, Elastic Net) |
| Logistic regression and odds ratios | Covered | Statistics & Machine Learning 13: Logistic Regression: Probabilities, Odds Ratios and Credit-Risk Scoring |
| Decision trees | Covered | Statistics & Machine Learning 17: Decision Trees: Splits, Impurity, Pruning and Interpretable Rules |
| Random forests and bagging | Covered | Statistics & Machine Learning 18: Ensembles I: Bagging and Random Forests |
| Gradient boosting: XGBoost, LightGBM, CatBoost | Covered | Statistics & Machine Learning 19: Ensembles II: Gradient Boosting, XGBoost, LightGBM and CatBoost |
| Support vector machines | Covered | Statistics & Machine Learning 20: Support Vector Machines and Naive Bayes |
| Imbalanced classes: class weights, resampling, thresholds | Covered | Statistics & Machine Learning 21: Imbalanced Classification: Fraud Detection with Class Weights, Resampling and Thresholds |
| K-means clustering | Covered | Statistics & Machine Learning 22: Clustering I: K-Means and RFM Customer Segmentation |
| Hierarchical clustering, DBSCAN, PCA, t-SNE | Covered | Statistics & Machine Learning 23: Clustering II and Dimensionality Reduction: Hierarchical, DBSCAN, Gaussian Mixtures, PCA, t-SNE and UMAP |
| Time-series forecasting: ETS, ARIMA, lag features | Covered | Statistics & Machine Learning 24: Time-Series Forecasting: Decomposition, Baselines, ETS, ARIMA and ML with Lag Features |
| Text analytics and NLP | Covered | Statistics & Machine Learning 25: NLP and Text Analytics: Cleaning, TF-IDF, Sentiment Classification, Topics and Embeddings |
| Neural networks and deep learning | Covered | Statistics & Machine Learning 26: Neural Networks and Deep Learning: From a Neuron to Transformers |
| Explainability (SHAP), fairness, deployment and monitoring | Covered | Statistics & Machine Learning 27: Explainable AI and MLOps: SHAP, Fairness, Deployment, Monitoring and Responsible ML |
| Recommendation systems | Covered | Statistics & Machine Learning 29: Recommendation Systems: Collaborative, Content-Based and Hybrid |
| Regression metrics: MAE, MSE, RMSE, R2, MAPE | Covered | Statistics & Machine Learning 30: Regression Metrics: MAE, MSE, RMSE and R-Squared |
| End-to-end capstone (churn prediction) | Covered | Statistics & Machine Learning 28: ML Capstone: End-to-End Churn Prediction and Retention Strategy |
| Semi-supervised learning | New guide | Guide: Semi-supervised learning: a few labels, many unlabelled rows |
| Analytics file / Customer 360 | New guide | Guide: Analytics file and Customer 360, with heuristic and RFM segmentation |
| WOE, IV, KS and Gini (credit risk) | New guide | Guide: WOE, Information Value, gains tables, KS and Gini |
| Deployment basics: Streamlit, FastAPI, Docker | Covered | AI Master Course: Deploying with FastAPI and Docker |
| SQL for building analytics files | Covered | Python for Data Science 23: Python and SQL: sqlite3, DuckDB, SQLAlchemy and pandas.read_sql · SQL for Data Analysis track |
Best free resources for this course
- scikit-learn User Guide (official): Every algorithm in the course, with examples.
- SciPy statistical functions (official): ttest_1samp, ttest_rel, ttest_ind, f_oneway, chi2_contingency and more.
- statsmodels documentation (official): OLS summaries, VIF, GLMs and time series.
- pandas User Guide (official): Building analytics files: groupby, pivot_table, merge, dates.
- An Introduction to Statistical Learning, with Python (free book): The standard free textbook for this syllabus.
- Google Machine Learning Crash Course (free): Short lessons on loss, gradient descent, generalisation and classification metrics.
- OpenIntro Statistics (free book): Hypothesis testing, CLT and inference explained simply.
- Kaggle Learn: Intermediate Machine Learning (free): Missing values, categorical variables, pipelines, cross-validation.
- Kaggle datasets: Practice data for the weekly regression and KNN assignments.
Practice and interviews
Use the Practice Lab for exercises, business scenario interviews for case questions, and the car-sales case as a model for the weekly regression assignments.
Class notes are summarised in our own words. Datasets in the companion code are synthetic, built to match the shape of the class cases.