Module quiz
Evaluation, statistics and data quiz
65 questions across 3 lessons. Choose an answer, check it, and read why each option is right or wrong.
Checking answers needs JavaScript. You can still read every question and option below.
Keyboard: arrow keys move between options. Space or Enter selects the focused option.
Evaluation, leakage and imbalance: validation design, metrics, thresholds and rare classes18 questions
ObjectiveChoose a validation scheme (stratified, group, time-series or plain k-fold) from how the rows of a dataset relate to each other, and explain why the test set is used once.
ObjectiveName the main kinds of leakage (target, preprocessing before the split, shared entities or duplicates, temporal, resampling before the split), say how each shows up, and say how to prevent it.
ObjectivePick metrics for a classifier (accuracy, precision, recall, F1, ROC-AUC against PR-AUC, log loss, calibration) and for a regressor, compute them from a confusion matrix, and choose a decision threshold from error costs.
ObjectiveHandle a rare class in the right order (baseline, metric, class weights, threshold, resampling inside the folds, recalibration), state the caveats of SMOTE, and run error analysis by slice.
Statistics and experimentation: intervals, tests, power, A/B tests and fair model comparison23 questions
ObjectiveExplain an estimator, its bias and variance, and a confidence interval, and compute an analytic and a bootstrap interval while knowing when each one is unreliable.
ObjectiveChoose and run a z, chi-square or permutation test, and say what a p-value, a type I error, a type II error and power mean, including the standard misreadings.
ObjectiveSize an experiment from a baseline, a minimum effect, alpha and power, and control false positives from many comparisons (Bonferroni, Benjamini-Hochberg) and from peeking.
ObjectiveDesign and sanity-check an A/B test of an ML system (unit of randomisation, sample ratio mismatch, novelty, interference, offline-online gaps) and say when a correlation can support a causal claim.
ObjectiveCompare two models with a paired test or interval instead of two separate scores, say why cross-validation scores are not independent, and apply Bayes' rule to a base-rate or posterior question.
Data, features and production ML: preprocessing, encodings, point-in-time features, skew, drift and operations24 questions
ObjectiveTreat missing values by mechanism (MCAR, MAR, MNAR) with imputation and a missing indicator, handle outliers, scaling and skew, and fit every learned statistic on the training rows only.
ObjectiveChoose an encoding for a categorical feature (one-hot, ordinal, target, hashing, embedding), explain why target encoding leaks unless it is out-of-fold and smoothed, and say when a feature cross helps.
ObjectiveBuild lag, rolling and aggregate features that use only information available at prediction time (point-in-time joins), and keep training and serving identical with one pipeline definition, logging and golden tests.
ObjectiveTell data drift, label shift and concept drift apart, compute PSI by hand and a KS statistic, say what each can and cannot see, and monitor a model whose labels arrive late.
ObjectiveChoose retraining triggers and a safe rollout, version data, code and models so a result can be reproduced, and debug a model that works in the notebook but fails in production in a sensible order.
Boss challenge: Evaluation, statistics and data in practice
A longer check of the whole module. It is optional, and nothing else on the site depends on it.
- 10 questions, taken from the lesson quizzes above.
- Pass mark: 7 correct of 10.
- You can try it as many times as you like.
- A correct answer is kept, so a pass can build up across several tries.
- If you miss some, you get links to the lesson sections to read again.
Checking answers needs JavaScript. You can still read every question and option below.
Keyboard: arrow keys move between options. Space or Enter selects the focused option.