=added unweightedSecondMoment for comparison to weightedSecondMoment