Variance: an average square, and four rules

Glorot & Bengio note that the standard initialization gives n·Var(W) = 1/3. To see what that means we need what variance is, and the four rules that make it easy to push through a layer; together they turn one layer into “multiply the variance by n·Var(W).”

1. Variance is an average square

Ten samples on a number line, each with a square whose side is its distance from the mean; on the right, the average of those squares, whose area is the variance and whose side is the standard deviation.
scale every sample by c 1.00

2. Four rules

Rule 5 is where the n in n·Var(W) comes from, and the next page, where the n comes from, animates it: a matrix product of random numbers, forward (n terms per output) and backward (m terms per input gradient), then several layers stacked. Why a uniform on [−a, a] has variance a²/3 has its own page.