Simplify variance calculations