Module quiz
Trees, ensembles and classical models quiz
31 questions across 2 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.
Decision trees, random forests and gradient boosting14 questions
ObjectiveCompute the Gini and entropy gain of a split by hand, explain why greedy splitting grows trees that overfit, and choose the controls (depth, leaf size, pruning) by validation error.
ObjectiveUse the variance of an average of correlated predictors, rho sigma^2 + (1 - rho) sigma^2 / B, to explain what bagging and feature subsampling fix and what more trees cannot, and use out-of-bag error as a free validation estimate.
ObjectiveExplain gradient boosting as stagewise fitting of the negative gradient (residuals for squared error, y - p for log loss), say how learning rate, number of rounds and tree depth interact, and contrast it with bagging.
ObjectiveDecide when tree ensembles are the right default for tabular data, and avoid the practical traps: impurity importance, correlated features, missing values, high-cardinality categoricals and extrapolation.
k-NN, k-means, PCA, SVM and naive Bayes: the classical toolkit17 questions
ObjectiveExplain k-nearest neighbours as a model that stores the data, how k trades bias against variance, and why distance concentrates in high dimensions so that irrelevant or unscaled columns wreck the neighbours.
ObjectiveRun the k-means loop by hand, explain why it reaches only a local optimum and what k-means++ and restarts change, choose k with inertia and silhouette, and name the cases where it fails (non-convex shapes, unscaled columns, outliers) with DBSCAN and hierarchical clustering as alternatives.
ObjectiveCompute PCA by centring, covariance and eigen-decomposition, read the explained variance to pick the number of components, and say when PCA misleads (units, signal in low-variance directions, non-linear structure).
ObjectiveChoose between k-NN, a linear or kernel SVM, naive Bayes, trees and linear models for a case from its size, dimension, need for probabilities and need for explanation, using the margin and hinge loss for the SVM and the independence assumption for naive Bayes.
ObjectiveSay what Gaussian mixtures with EM, Isolation Forest, t-SNE and UMAP add to k-means and PCA, and why the clusters of a t-SNE plot are not features.
Boss challenge: Trees, ensembles and the classical toolkit
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.