varSamp
Introduced in: v1.1.0 Calculate the 样本方差 of a data set. The 样本方差 is calculated using the formula: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
varPop instead.
该函数使用数值不稳定的算法。如果计算中需要数值稳定性,请使用
varSampStable 函数。该函数运行速度较慢,但计算误差更小。VAR_SAMP
Arguments
Returned value
Returns the 样本方差 of the input data set x. Float64
Examples
Computing sample variance
Query
Response