c22 · E1

Practise: Making Pictures Out of Noise

c22.E1.1E1 · expression

A black-and-white picture three pixels wide and three pixels tall has possible values. A model gives probability to each of chosen pictures and probability to the other . Give the model's coverage, then the probability it assigns to two distinct pictures from its chosen list taken together.

This tier asks for a derivation, so there is no automatic checker. Write your answer, then open the worked solution and compare.

c22.E1.2E1 · expression

A latent variable model has two causes. Before seeing the picture, cause 1 has probability and cause 2 has probability . At the picture you observe, the likelihoods are for cause 1 and for cause 2. Give the posterior probability of cause 1. Then give it again for the case where the two priors are both .

This tier asks for a derivation, so there is no automatic checker. Write your answer, then open the worked solution and compare.

c22.E1.3E1 · numeric

A variational autoencoder has one code dimension and a standard normal prior. The training picture has value . The decoder outputs mean for the reconstruction, and the encoder outputs a code mean with variance . Using squared error for the reconstruction cost and the one-dimensional Gaussian formula for the distance term, give the total loss.

c22.E1.4E1 · expression

An encoder outputs mean and variance . It draws two numbers from a standard normal, first and then . Give the two codes that reach the decoder.

This tier asks for a derivation, so there is no automatic checker. Write your answer, then open the worked solution and compare.

c22.E1.5E1 · numeric

A diffusion model uses a constant , so each step keeps of the current value and adds times a standard normal draw. Start from and use the noise draws , and . Give to four decimal places.

c22.E1.6E1 · expression

A diffusion model uses a constant . After five forward steps, give the fraction of the original signal that survives and the standard deviation of the accumulated noise. Use four decimal places.

This tier asks for a derivation, so there is no automatic checker. Write your answer, then open the worked solution and compare.

c22.E1.7E1 · choice

A categorical sampler assigns probabilities , , and to outcomes 1, 2, 3 and 4, in that order. It lays them along the unit interval and draws , then . Which outcomes does it return?

(a) 2 and 3 (b) 3 and 4 (c) 2 and 4 (d) 3 and 3

Choose one answer
c22.E1.8E1 · numeric

A test set of 100 pictures splits into three categories as , and . A generator produces , and in the same categories. Give the total variation distance between the two distributions.

Other tiers

E2 Derive · E3 Open

Every hint opened, solution viewed and answer checked is recorded in this browser only. See Progress to export or delete it.