varSampStable
varSampStable
引入版本:v1.1
计算数据集的样本方差。与 varSamp 不同,该函数使用数值稳定算法。运行速度较慢,但计算误差更小。
样本方差的计算公式与 varSamp 相同:
Where:
- is each individual data point in the data set
- is the arithmetic mean of the data set
- is the number of data points in the data set
Syntax
Arguments
x— The population for which you want to calculate the sample variance.(U)Int*orFloat*orDecimal*
Returned value
Returns the sample variance of the input data set. Float64
Examples
Computing stable sample variance