Lesson 22 · Exam
ML fundamentals exam
These questions cover every level of the course, in order: learning from data, generalisation, the boundary-drawing models, probabilities, structure without labels, and practice. Most test what an idea means or what happens when something changes. The sums use numbers you can do in your head. Pick one answer per question, then press "Check answers" at the bottom to see your score and an explanation for each one.
Which of these is supervised learning?
Model A misses four deliveries by 2, 2, 2 and 2 minutes. Model B misses by 0, 0, 0 and 8. Which has the lower mean squared error?
Gradient descent on the loss starts at with learning rate 0.9. The first step lands on 7.2. What happens next?
You double every weight and the intercept of a trained logistic regression. What happens?
A late delivery gets P(late) = 0.01 from a logistic regression. Why is cross-entropy a better training loss than squared error here?
A degree-9 polynomial is fitted to 10 deliveries at 10 different distances. What is its training error?
Which data should you use to choose the regularisation strength ?
Two deliveries: 1 km in 4 minutes and 2 km in 8 minutes. The model is minutes km, with loss (ridge). With , what is the best ?
Which penalty can set a weight to exactly 0, and so drop a feature?
10% of deliveries are late. A lazy model always says "on time". What are its accuracy and its recall for late deliveries?
Of 100 deliveries, 12 were late. A model warns 10 customers, and 6 of those pizzas were late. What are its precision and recall?
A new delivery's nearest past delivery was on time. The next four were late, late, on time and late. What do kNN with and with predict?
A split sends 8 deliveries into two groups of 4. The left group is all late. The right group is 2 late and 2 on time. What is the split's weighted Gini impurity?
Which describes bagging and boosting correctly?
A delivery took 30 minutes and the boosted model says 24. The next tree predicts this delivery's residual exactly, and the learning rate is 0.1. What does the model say after adding the tree?
You delete a training delivery that sits far from an SVM's boundary, on the correct side, outside the street. Does the boundary move?
A new branch's first 4 deliveries include 1 late one. You add a prior of 2 pretend late and 2 pretend on-time deliveries. What are the maximum-likelihood and MAP estimates of its late rate?
25% of notes are complaints. 40% of complaints mention "cold", and 10% of other notes do. A note says "cold". About how likely is it to be a complaint?
Traffic and an oven backlog can each make a delivery late. A delivery was late, and then you learn the oven was backed up. What happens to the chance there was traffic?
A 2-D cloud of points has covariance matrix . What share of the total variance does the first principal component capture?
The inertia of k-means (the total squared distance from points to their centres) always falls as grows. Does picking the with the lowest inertia choose a good ?
A model predicts, when an order is placed, whether it will be late. Which column leaks?
In an A/B test, the new oven's on-time rate is 3 points above the old one's. The standard error of that gap is 1.5 points. What is the z-score, and is the gap significant at the 5% level (two-sided)?
You have a year of deliveries, and the model will predict next month's delivery times. Which test gives an honest score?
90% of deliveries are on time. A new late-warning model scores 91% accuracy. What should you conclude?