S14 · Final exam
Final exam: machine learning
Twelve problems from the whole course: fitting and generalization, likelihood, decisions and information, Bayesian inference and regression, linear classifiers and their evaluation, neural networks and their training, kernels, support vector machines and Gaussian processes, mixtures, principal components and hidden Markov models, sampling, ensembles, and the cost of running models on hardware. Give yourself three hours and work without the lessons open. "Another set" deals a different exam.
Check
Points (0, 0), (1, 3), (3, 10); a correct model with 5 parameters fitted to 50 examples of noise variance 0.3.
(a)
Least-squares slope?
(b)
Expected training error?
(c)
Expected test error?
Check
A test with detection rate 0.9 and false-alarm rate 0.05 for a condition of prevalence 0.002; 5 samples with maximum-likelihood variance 8.
(a)
P(condition | positive)?
(b)
Unbiased variance estimate?
Check
Unit-variance Gaussian classes 1.5 apart with priors 0.7 and 1 − 0.7; a false alarm costs 5, a miss 400.
(a)
Bayes error with equal priors?
(b)
Bayes error with these priors?
(c)
Posterior threshold for deciding positive?
Check
A true probability 0.7 modeled as 0.5; a classifier gives the correct class probabilities 0.8 and 0.9 on two examples.
(a)
KL divergence in nats?
(b)
Average cross-entropy loss in nats?
Check
A beta(2, 2) prior and 12 successes in 40 trials.
(a)
Posterior mean?
(b)
Posterior variance?
Check
A prior N(0, 1²) on a mean, 25 observations averaging 3 with noise variance 1; separately, y with σ = 2 and correlation 0.5 with x.
(a)
Posterior mean?
(b)
var(y | x)?
Check
Ridge on one weight (Σx² = 6, true w = 0.5, noise variance 8); a design whose has eigenvalues 40, 0.5, 0.05, with λ = 1.
(a)
Best λ for the weight?
(b)
Mean squared error at that λ?
(c)
Effective parameters of the design?
Check
Classes whose means differ by (1, 2) with diagonal within-class variances 2 and 9; separable data of radius 4 and margin 0.25.
(a)
Fisher's separation?
(b)
Fisher's direction from the first axis?
(c)
Perceptron mistake bound?
Check
A logistic model with = −4, = 1; a naive Bayes filter with prior 0.3 and two features with likelihood ratios 6 and 0.3.
(a)
Logistic probability at x = 3?
(b)
Its decision boundary?
(c)
Naive Bayes posterior?
Check
A confusion matrix with TP = 40, FP = 5, FN = 40; an accuracy 0.95 measured on 400 examples; scores 1 standard deviations apart.
(a)
F1?
(b)
Standard error of the accuracy?
(c)
AUC?
Check
A 100–64–26 network with biases; separately, a three-class softmax with activations 2, −1 and 0.
(a)
Parameters?
(b)
Softmax probability of the first class?
Check
with = 0.5, = −2, input 2, target 1; a quadratic training problem with condition number 30.
(a)
?
(b)
Gradient-descent steps to reduce the error by 0.0001?
Check
A 3 × 3 convolution with padding 2 and stride 1 from 3 to 32 channels on a 64 × 64 input; a stack of 4 such layers at stride 1.
(a)
Output width?
(b)
Parameters?
(c)
Receptive field of the stride-1 stack?
Check
A Gaussian process with = 1, ℓ = 1, noise variance 0.4, observing 2 at a point 0.8 away; a linear SVM with w = (1, 1); an AdaBoost learner with error 0.1.
(a)
GP posterior mean?
(b)
SVM margin?
(c)
AdaBoost vote?
Check
A covariance with variances 2 and 1 and covariance 1; a mixture of unit-variance components at 0 and 2 with weights 0.4 and 1 − 0.4.
(a)
First principal variance?
(b)
Responsibility of the first component at 0.5?
Check
A two-state chain leaving state 1 with probability 0.05 and state 2 with 0.1; Monte Carlo with σ = 3, target error 0.02, on a chain with correlation 0.5; a 7 × 10⁹-parameter model at 4 bits on 100 GB/s.
(a)
Stationary probability of state 1?
(b)
Chain steps needed?
(c)
Token-rate bound at batch 1?
Have paper and a calculator ready. Work each problem out by hand, then enter the answer. Your first try on each one counts toward your score.
Practice
Keep practicing
16 kinds of problem on this topic, dealt one at a time with new numbers every time, for as long as you like.