atoti.array.var(Return a measure equal to the variance of the elements of the passed array measure.
measure: VariableMeasureConvertible,
/,
*,
mode: Literal[‘sample’, ‘population’] ='sample',
) → MeasureDefinition
Parameters
measure
The measure to get the variance of.mode
One of the supported modes:- The
samplevariance, similar to Excel’sVAR.S, is wheremis the sample mean andnthe size of the sample. Use this mode if the data represents a sample of the population. - The
populationvariance, similar to Excel’sVAR.Pis wheremis the mean of theXielements andnthe size of the population. Use this mode if the data represents the entire population.