Second moment method (source code)

= Second moment method
{wiki}

For a nonnegative random variable $N$, Chebyshev's inequality gives
$$
\mathbb P(N=0)
\leq\frac{\operatorname{var}(N)}{(\mathbb EN)^2}.
$$
Hence $\operatorname{var}(N)/(\mathbb EN)^2\to0$ implies that $N>0$ with probability tending to one.