← 02 Supervised learningunit 2.3 / theory testTheory test: Neighbours, trees and ensembles6 questions. Pass with 5 correct.01 What is the Gini impurity of a node with two classes split 50/50?00.250.5102 A 1-nearest-neighbour classifier, evaluated on its own training set (no duplicate points), gets what accuracy?About 50%100%The same as on the test setIt depends on the number of features03 How does a random forest make its trees less correlated with each other?By training each tree on the test setBootstrap samples, plus a random subset of features considered at each splitBy making every tree depth 1By training trees in sequence on residuals04 In gradient boosting, each new model is fitted to:A fresh bootstrap sample of the targetsThe residuals (negative gradient of the loss) of the ensemble so farThe test setRandom noise05 You run k-NN on features "income in dollars" and "age in years" without scaling. What happens?Nothing; k-NN is scale-invariantIncome dominates the distance and age is mostly ignoredAge dominates the distanceThe algorithm fails to run06 Averaging B models with correlation ρ=0.5: as B→∞, the variance of the average approaches:00.5σ2σ2σ2/BAnswer all 6 to submit (0 done)