—
SGD unbiasedness and variance
Tutor me on https://mlprep.iwase.dev/item/ml-screen-gradient-descent-advanced-sgd/. This is a screening item. If window.mlPrepAgent is available, read attempts for item ml-screen-gradient-descent-advanced-sgd before tutoring. Inspect my attempt, keep the item ID, and do not reveal the full answer first. After a real attempt, append its record with recorded_by agent, include agent_session_id when available, and read it back.Problem
At , three examples have gradients , , and . One example is sampled uniformly per SGD step. Compute the full gradient, the stochastic-gradient variance, all next iterates for , and the expected next iterate.
Reveal answer or reference solution
The full gradient is
The variance is
The possible next iterates are , , and . Their expectation is
equal to the full-gradient update.
Previous attempts
Loading attempts saved in this browser…