S146 of 55
0 XP
  1. Hook
  2. Problems

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?

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.