weighted_variance function

Calculate a Weighted Variance