varSampStable
varSampStable
도입 버전: v1.1
데이터 집합의 표본 분산(sample variance)을 계산합니다. 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