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