Skip to main content

varSamp

Introduced in: v1.1.0 Calculate the выборочную дисперсию of a data set. The выборочная дисперсия is calculated using the formula: Σ(xxˉ)2n1\frac{\Sigma{(x - \bar{x})^2}}{n-1}
Where:
  • xx is each individual data point in the data set
  • xˉ\bar{x} is the arithmetic mean of the data set
  • nn is the number of data points in the data set
The function assumes that the input data set represents a sample from a larger population. If you want to calculate the variance of the entire population (when you have the complete data set), you should use varPop instead.
Функция использует численно нестабильный алгоритм. Если в вычислениях требуется численная устойчивость, используйте функцию varSampStable. Она работает медленнее, но обеспечивает меньшую вычислительную погрешность.
Syntax
Aliases: VAR_SAMP Arguments
  • x — The population for which you want to calculate the выборочную дисперсию. (U)Int* or Float* or Decimal*
Returned value Returns the выборочную дисперсию of the input data set x. Float64 Examples Computing выборочную дисперсию
Query
Response
Последнее изменение 23 июля 2026 г.