More precise variance calculation