Skip to main content
Version: v4.24

variance

Computes the variance of all grouped values.

variance(xs:list) -> float

Description

The variance function returns the variance of all numeric values in xs.

xs: list

The values to evaluate.

Examples

Compute the variance of values

from [
  {x: 1},
  {x: 2},
  {x: 3},
]
summarize variance_value=variance(x)
{variance_value: 0.666}

See Also

stddev, mean