calculate weighted variance for repeatability test