correct weighted variance
correct weighted variance