S14 Machine learning · Practice
Problem set 2: conjugate priors, Gaussians and regression
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
A beta(1, 1) prior updated with 8 successes in 25 trials.
(a)
Posterior mean?
(b)
MAP?
(c)
Posterior variance?
Check
A three-outcome source with counts 0, 2, 10 and a Dirichlet prior of 1 each; separately, 0 successes in 12.
(a)
Predictive probability of outcome 1?
(b)
Laplace's estimate for the second source?
Check
Prior on a mean N(0, 1²); 15 observations averaging 1 with noise variance 2.
(a)
Posterior variance?
(b)
Posterior mean?
Check
Zero-mean jointly Gaussian x, y: = 1, = 1.5, ρ = 0.9; observed x = 2.
(a)
E[y|x]?
(b)
Conditional standard deviation?
Check
A point (1, 1) against a zero-mean Gaussian with standard deviations 2 and 4; a running mean of 3 over 4 − 1 samples when sample 4 = 2 arrives.
(a)
Mahalanobis distance?
(b)
Updated mean?
Check
Ridge on one weight: Σx² = 5, true w = 0.5, noise variance 6, λ = 5.
(a)
Squared bias?
(b)
Variance?
(c)
Best λ?
Check
eigenvalues 3, 0.5, 0.3 with λ = 2; a polynomial basis of degree 2 in 3 inputs.
(a)
Effective parameters?
(b)
Basis size?
Check
Bayesian regression of one weight: α = 0.5, β = 2, Σx² = 20, Σxt = 15.
(a)
Posterior mean?
(b)
Posterior standard deviation?
(c)
Predictive standard deviation at x = 1?
Check
A prior precision 0.2, noise precision 1, and a target posterior standard deviation 0.15 for one weight.
(a)
Equivalent ridge λ?
(b)
Σx² needed?
Check
A beta(2, 2) prior; separately, the best-λ ridge error for Σx² = 40, noise variance 5, w = 1.
(a)
Prior variance?
(b)
Best ridge mean squared error?
Check
A prior standard deviation 0.5 on a mean, noise variance 1, 100 observations.
(a)
Posterior variance?
(b)
Weight given to the data in the posterior mean?
Check
1 successes in 3 trials with a beta(2, 2) prior.
(a)
Maximum likelihood?
(b)
Posterior mean?
Check
A failure rate has a gamma(1, 2000 h) prior, and 5 failures occur in 20000 hours.
(a)
What is the posterior mean, per 10,000 hours?
(b)
What is the posterior's standard deviation as a fraction of its mean?
Check
A quantity has prior N(0, 0.5²). A sensor with gain 0.25 and noise variance 1 reads y = 3.
(a)
What is the posterior standard deviation?
(b)
What is the posterior mean?
Check
A two-weight fit has with a = 6, b = 3, c = −2, and = (10, 1); ridge uses λ = 0.
(a)
What is ?
(b)
What is ?
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