S14 · Problem set 1
Problem set 1: least squares and generalization, maximum likelihood and Bayes' theorem, decision rules and Bayes error, and entropy, cross-entropy and divergence
These problems cover lessons 1 to 4: least-squares lines and RMS error, the expected gap between training and test error, regularized weights, maximum-likelihood estimates and their bias, censored life tests, posteriors and MAP, decision thresholds, reject options and Bayes errors, and the information measures behind classification losses, mutual information included.
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?
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
15 kinds of problem on this topic, dealt one at a time with new numbers every time, for as long as you like.