sum, mean, var, std, min, max, and axis reduction patterns. We drill axis=0 versus axis=1, keeping dimensions with keepdims for broadcasting, and using nanmean when data have holes. You will recognize these same patterns in sklearn and in metrics code that aggregates batches during evaluation.