S1414 of 55
0 XP
  1. Hook
  2. Problems

S14 · Problem set 3

Problem set 3: test-set sizes and generalization bounds, conjugate updates and predictions, Gaussian fusion and conditioning, ridge and Bayesian regression, cross-validation, information criteria and the evidence

These problems cover lessons 5 to 13: how many examples a claim about error needs, Bayesian updates and the predictions they give, combining and conditioning Gaussian measurements, regression with and without priors, and choosing a model's complexity by cross-validation, information criteria or the evidence. Several follow one data set through two or three of those steps.

Check

A defect detector's error rate is near 0.02. It must be measured to within ±0.005 with failure probability 0.01.

(a)

How many test examples does Hoeffding's inequality call for?

(b)

And the normal approximation (z = 1.96 for δ = 0.05, 2.576 for δ = 0.01)?

Check

A safety function must be shown to fail less often than 0.001 per demand with confidence 0.9.

(a)

How many failure-free demands does that take?

(b)

What rate is demonstrated by 2000 failure-free demands at that confidence?

Check

A team tunes 20 hyperparameter settings on a validation set of 1000 examples.

(a)

How far might the best setting's validation error sit from its true error, with failure probability 0.01?

(b)

How large a validation set would bring that bound down to a single model's on 1000 examples?

Check

A yield has a beta(1, 1) prior; 3 of 10 parts then fail.

(a)

What is the posterior mean failure rate?

(b)

What is its posterior standard deviation?

(c)

What probability does it give the next two parts both passing?

Check

A failure rate has a gamma(1, 1000 h) prior; a fleet then logs 7 failures in 30000 hours.

(a)

What is the posterior mean rate, per 10,000 hours?

(b)

What probability does the posterior give a unit running 10000 hours with no failure?

Check

Three independent unbiased sensors read 10, 14 and 9, with noise variances 4, 0.5 and 3.

(a)

What is the best combined estimate?

(b)

What is its standard deviation?

Check

A component's temperature y and a sensor's reading x are jointly Gaussian: y has mean 60 and standard deviation 10, x has mean 20 and standard deviation 2, and their correlation is 0.9. The sensor reads 22.

(a)

What is the expected temperature?

(b)

What is its conditional standard deviation?

Check

A two-feature fit has ΦTΦ=[accb] with a = 4, b = 2, c = −1.5, and ΦT𝐭 = (12, 3). It's fitted by ridge regression with λ = 0.5.

(a)

What is w1?

(b)

What does the fit predict for features (1, −1)?

Check

A one-weight Bayesian regression has prior precision 5, noise precision 1, Σx² = 30 and Σxt = 40.

(a)

What is the posterior mean of the weight?

(b)

What is the predictive standard deviation at x = 1?

Check

Three points of a least-squares fit have residuals 0.2, 0.3 and 0.25, and leverages 0.5, 0.15 and 0.45.

(a)

What is the first point's leave-one-out residual?

(b)

What do the three contribute to the leave-one-out sum of squared errors?

Check

A ridge fit with λ = 10 on 30 points has ΦTΦ eigenvalues 50, 5 and 2, and a mean squared training residual of 0.4.

(a)

How many effective parameters does it have?

(b)

What is its GCV score?

Check

A model with 4 parameters reaches ln L = −412 on 80 examples; a larger one with 6 more parameters gains 9 nats.

(a)

By how much does the larger model change the AIC score (ln L − M)?

(b)

And the BIC score?

(c)

What is the larger model's BIC score?

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.