A deterministic partition

For case loss 12(w−y)2\tfrac12(w-y)^2, evaluate the two mean gradients at w=0w=0 on batches with responses {1,5}\{1,5\} and {3,7}\{3,7\}. Why does averaging these gradients give the full-data gradient −4-4, although neither batch was sampled at random?

The two batches partition the sample, so the average of their means is the mean of all four responses. Random sampling is not required for that identity. Unbiasedness of one batch requires the random draw.