Skip to main content

varPop

Introduced in: v1.1.0 Calculates the 总体方差. The 总体方差 is calculated using the formula: Σ(xxˉ)2n\frac{\Sigma{(x - \bar{x})^2}}{n}
Where:
  • xx is each value in the population
  • xˉ\bar{x} is the population mean
  • nn is the population size
该函数使用数值不稳定的算法。如果计算中需要数值稳定性,请改用 varPopStable 函数。该函数速度较慢,但计算误差更小。
Syntax
Aliases: VAR_POP Arguments Returned value Returns the 总体方差 of x. Float64 Examples Computing 总体方差
Query
Response
最后修改于 2026年7月23日