@staticmethod<EOL><INDENT>def _wva(values, weights):<DEDENT>
assert len(values) == len(weights) and len(weights) > <NUM_LIT:0><EOL>return sum([mul(*x) for x in zip(values, weights)]) / sum(weights)<EOL>
Calculates a weighted average