A gradient from a sample
Gradient descent uses the full gradient at each step. For , a uniformly sampled example gives an unbiased gradient estimate at a fixed . Averaging independent draws with replacement gives
Here is the covariance of one sampled example's gradient. The gradient RMSE is , not proportional to . Stochastic gradient descent uses at cost roughly instead of .
For a uniform batch without replacement at fixed weights, multiply that covariance by . During a shuffled epoch, the current weights and later batches depend on earlier choices; the independent-draw proof does not apply unchanged.
On the original 240-row sensor fixture, standardize the eight inputs and centre the target for a fixed training objective. At zero weights, 6000 independent batches give gradient RMSE for . Exact finite-dataset predictions are . Seed 20261114 controls batch sampling; these are synthetic training calculations.