S14 Machine learning · Practice
Problem set 3: generalization, inference and model selection
Problems dealt one at a time, with new numbers every time. The kinds you miss come back more often, and you can keep going as long as you like.
0 solved
0 in a row
0 of 15 kinds solid
Check
A defect detector's error rate is near 0.02. It must be measured to within ±0.005 with failure probability 0.01.
(a)
How many test examples does Hoeffding's inequality call for?
(b)
And the normal approximation (z = 1.96 for δ = 0.05, 2.576 for δ = 0.01)?
Check
A safety function must be shown to fail less often than 0.001 per demand with confidence 0.9.
(a)
How many failure-free demands does that take?
(b)
What rate is demonstrated by 2000 failure-free demands at that confidence?
Check
A team tunes 20 hyperparameter settings on a validation set of 1000 examples.
(a)
How far might the best setting's validation error sit from its true error, with failure probability 0.01?
(b)
How large a validation set would bring that bound down to a single model's on 1000 examples?
Check
A yield has a beta(1, 1) prior; 3 of 10 parts then fail.
(a)
What is the posterior mean failure rate?
(b)
What is its posterior standard deviation?
(c)
What probability does it give the next two parts both passing?
Check
A failure rate has a gamma(1, 1000 h) prior; a fleet then logs 7 failures in 30000 hours.
(a)
What is the posterior mean rate, per 10,000 hours?
(b)
What probability does the posterior give a unit running 10000 hours with no failure?
Check
Three independent unbiased sensors read 10, 14 and 9, with noise variances 4, 0.5 and 3.
(a)
What is the best combined estimate?
(b)
What is its standard deviation?
Check
A component's temperature y and a sensor's reading x are jointly Gaussian: y has mean 60 and standard deviation 10, x has mean 20 and standard deviation 2, and their correlation is 0.9. The sensor reads 22.
(a)
What is the expected temperature?
(b)
What is its conditional standard deviation?
Check
A two-feature fit has with a = 4, b = 2, c = −1.5, and = (12, 3). It's fitted by ridge regression with λ = 0.5.
(a)
What is ?
(b)
What does the fit predict for features (1, −1)?
Check
A one-weight Bayesian regression has prior precision 5, noise precision 1, Σx² = 30 and Σxt = 40.
(a)
What is the posterior mean of the weight?
(b)
What is the predictive standard deviation at x = 1?
Check
Three points of a least-squares fit have residuals 0.2, 0.3 and 0.25, and leverages 0.5, 0.15 and 0.45.
(a)
What is the first point's leave-one-out residual?
(b)
What do the three contribute to the leave-one-out sum of squared errors?
Check
A ridge fit with λ = 10 on 30 points has eigenvalues 50, 5 and 2, and a mean squared training residual of 0.4.
(a)
How many effective parameters does it have?
(b)
What is its GCV score?
Check
A model with 4 parameters reaches ln L = −412 on 80 examples; a larger one with 6 more parameters gains 9 nats.
(a)
By how much does the larger model change the AIC score (ln L − M)?
(b)
And the BIC score?
(c)
What is the larger model's BIC score?
Check
A line through the origin, with noise precision 4, is fitted to the single point (2, 1.2), and its prior precision chosen by the evidence.
(a)
What prior precision maximizes the evidence?
(b)
What slope does the posterior then give?
Check
A learner outputs a conjunction of literals (each of 20 Boolean variables appears plain, negated, or not at all) consistent with its training data.
(a)
What is ln M for this hypothesis class?
(b)
How many training examples guarantee error below 0.01 with failure probability 0.01?
Check
A linear classifier with a bias is trained on 200 examples with 5 features, and evaluated by 10-fold cross-validation.
(a)
What is its VC dimension?
(b)
How many training examples per unit of VC dimension does each fold's fit get?
A kind of problem counts as solid once you've got it right on the first try twice in a row. Back to the lesson · Practice every topic in S14