atoti.array.var module#
- atoti.array.var(measure, *, mode='sample')#
Return a measure equal to the variance of the elements of the passed array measure.
- Parameters
measure (
MeasureDescription) – The measure to get the variance of.mode (
Literal[‘sample’, ‘population’]) –One of the supported modes:
The
samplevariance, similar to Excel’sVAR.S, is \(\frac{\sum_{i=0}^{n} (X_i - m)^{2}}{n - 1}\) 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 \(\frac{\sum_{i=0}^{n}(X_i - m)^{2}}{n}\) wheremis the mean of theXielements andnthe size of the population. Use this mode if the data represents the entire population.
- Return type