variance(): measure spread around a mean
variance(values) measures how far values spread around their average, using squared deviations. A low variance indicates tightly clustered values; a high variance indicates greater dispersion.
Example
The values [4, 5, 6] have less variance than [1, 5, 9], although both have mean 5. Squaring prevents positive and negative deviations from cancelling.
Related statistics
Use mean() for the center, std() for square-root scale, sum() for totals, and quantileSeq() for distribution cutoffs. size() checks sample size.
Caveat
Know whether your analysis requires population or sample variance, and validate missing or non-finite values before aggregation.