varSamp
varSamp
Introduced in: v1.1
Calculate the sample variance of a data set.
The sample variance 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
The function assumes that the input data set represents a sample from a larger population. If you want to calculate the variance of the entire population (when you have the complete data set), you should use varPop instead.
참고
이 함수는 수치적으로 불안정한 알고리즘을 사용합니다. 계산에서 수치 안정성이 필요한 경우, varSampStable 함수를 사용하십시오. 더 느리게 작동하지만 더 낮은 계산 오차를 제공합니다.
Syntax
Aliases: VAR_SAMP
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 x. Float64
Examples
Computing sample variance