5/13
Part 3 of 7 · From samplesLearn and do

Without a formula, estimate KL from samples of p

Schulman's post on approximating KL starts where real models are: you can compute p(x) and q(x) for any x, but you can't do the sum or the integral. Draw x from p, and average log(p(x) / q(x)). That's the estimator he calls k1, and it's unbiased.

Predict

q is very close to p, so the true KL is tiny. What share of single-sample k1 values come out negative?

Pick an answer above to see the rest