atoti.agg.var module#
- atoti.agg.var(operand: NonConstantColumnConvertibleOrLevel, /, *, mode: Literal['sample', 'population'] = 'sample') MeasureDescription #
- atoti.agg.var(operand: NonConstantMeasureConvertible, /, *, mode: Literal['sample', 'population'] = 'sample', scope: Scope) MeasureDescription
Return a measure equal to the variance of the passed operand across the specified scope.
- Parameters
operand – The operand to get the variance of.
mode –
One of the supported modes:
The
sample
variance, similar to Excel’sVAR.S
, is wherem
is the sample mean andn
the size of the sample. Use this mode if the data represents a sample of the population.The
population
variance, similar to Excel’sVAR.P
is wherem
is the mean of theXi
elements andn
the size of the population. Use this mode if the data represents the entire population.
scope – The scope of the aggregation.