Update: ignore NaN in computation of variance