Python Weighted Variance Hypothesis