varSampStable
Introduced in: v1.1.0 Calculate the sample variance of a data set. UnlikevarSamp, this function uses a numerically stable algorithm. It works slower but provides a lower computational error.
The sample variance is calculated using the same formula as 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
x— The population for which you want to calculate the sample variance.(U)Int*orFloat*orDecimal*
Float64
Examples
Computing stable sample variance
Query
Response