[FIX] compute sample variance by dividing by N-1.