Md. Asif Uddin
    I.14.X09

    Averaging over sampled neighbours

    probability▲▲△

    A node has 100100 neighbours whose features have mean μ\mu and variance σ2=1\sigma^2=1 around it. A sampled layer averages ss of them, drawn without replacement. Show that the sampled mean is unbiased, find its variance, and evaluate it for s=10s=10, 2525 and 100100.

    Hint

    Each neighbour is included with probability s/100s/100. For sampling without replacement from a finite population of size NN, the variance of the sample mean is (σ2/s)(N−s)/(N−1)(\sigma^2/s)(N-s)/(N-1).

    Solution

    Write the sampled mean as 1s∑uIuxu\tfrac1s\sum_uI_ux_u, where IuI_u is 11 if neighbour uu is drawn. Each IuI_u has mean s/Ns/N, so the expectation is 1s⋅sN∑uxu=μ\tfrac1s\cdot\tfrac sN\sum_ux_u=\mu: unbiased.

    The draws are not independent, since choosing one neighbour makes the others slightly less likely. The covariance of two indicators is −sN⋅N−sN(N−1)-\tfrac sN\cdot\tfrac{N-s}{N(N-1)}, and summing gives the finite-population variance

    Var⁡=σ2s⋅N−sN−1.\operatorname{Var}=\frac{\sigma^2}{s}\cdot\frac{N-s}{N-1}.

    With N=100N=100 and σ2=1\sigma^2=1: 0.0909090.090909 at s=10s=10, 0.0303030.030303 at s=25s=25, and 00 at s=100s=100, where every neighbour is used and the mean is exact. Independent draws would have given 0.10.1 and 0.040.04; the factor (N−s)/(N−1)(N-s)/(N-1) is what sampling without replacement saves.

    The layer stays unbiased in expectation, but a nonlinearity applied after it does not average out the noise exactly, and stacking sampled layers compounds it. Sampling buys a fixed cost per node at the price of a noisy, slightly biased deep network, a trade Hamilton, Ying and Leskovec (2017) found worth making on large graphs.

    Draws on