Skip to content
Legacy docs for Tenzir v5.x. For the latest Tenzir v6 series, visit docs.tenzir.com. Migrating from v5? Read the Tenzir v6 migration guide.

Computes the variance of all grouped values.

variance(xs:list) -> float

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

The values to evaluate.

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

Last updated: