S1455 of 55
0 XP
  1. Hook
  2. Problems

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 ΦTΦ 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 w0 = −4, w1 = 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

y=w2tanh⁡(w1x) with w1 = 0.5, w2 = −2, input 2, target 1; a quadratic training problem with condition number 30.

(a)

∂E/∂w1?

(b)

Gradient-descent steps to reduce the error by 0.0001?

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.