S14 Machine learning · Practice
Problem set 1: fitting, likelihood, decisions and information
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
Points (0, 1), (1, 3), (2, 9), (3, 11).
(a)
Least-squares slope?
(b)
Intercept?
Check
A correct linear model with 4 parameters, 120 examples, noise variance 0.02.
(a)
Expected training error?
(b)
Expected test error?
(c)
Expected test RMS error?
Check
A single weight with Σx² = 4, Σxt = 3; separately, a fit with E = 6 on 20 examples.
(a)
Least-squares weight?
(b)
With λ = 10?
(c)
RMS error of the other fit?
Check
Three samples: 1, 3, 9.
(a)
ML mean?
(b)
ML variance?
(c)
Unbiased variance?
Check
A detector: prevalence 0.002, detection 0.95, false alarms 0.05; separately, regression noise variance 1 with a weight prior of standard deviation 0.5.
(a)
Posterior after a positive?
(b)
Equivalent ridge λ?
Check
5 Gaussian samples with squared deviations from μ totaling 40; σ² = 1.
(a)
Log-likelihood?
(b)
σ² that would maximize it (given μ)?
Check
Unit-variance Gaussian classes at 0 and 1, with class 1's prior 0.5.
(a)
Boundary?
(b)
Bayes error?
Check
Costs: false alarm 1, miss 20; the posterior of the positive class is 0.4.
(a)
Threshold?
(b)
Expected cost of the best decision?
Check
A binary event with true probability 0.7, predicted as 0.6.
(a)
Entropy?
(b)
Cross-entropy?
(c)
KL divergence?
Check
A classifier gives correct-class probabilities 0.8 and 0.95 on two examples; a uniform 100-way guess.
(a)
Average loss?
(b)
Loss of the uniform guess?
Check
A binary symmetric channel with error rate 0.02; equal-prior unit-variance classes 2 apart.
(a)
Mutual information (uniform input)?
(b)
Bayes error?
Check
Noise variance 0.05, 5 parameters, a target gap of 0.01; separately, an ML variance of 9 from 4 samples.
(a)
Examples needed?
(b)
Unbiased variance?
Check
6 units start a 2000-hour life test. 2 fail, at an average of 600 hours; the rest survive to the end.
(a)
What is the maximum-likelihood failure rate per hour?
(b)
What mean time to failure does it imply?
Check
A class has prior 0.3. A binary feature is on with probability 0.7 in that class and 0.3 otherwise.
(a)
What is the feature's entropy?
(b)
What is the mutual information between feature and class?
Check
Two equally likely unit-variance classes have means 2 apart; a classifier abstains unless its larger posterior is at least 0.75.
(a)
How wide is the band of inputs it rejects?
(b)
What fraction of all inputs does it then get wrong?
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