Skip to main content

varSamp

Introduced in: v1.1.0 Calculate the 標本分散 of a data set. The 標本分散 is calculated using the formula: Σ(xxˉ)2n1\frac{\Sigma{(x - \bar{x})^2}}{n-1}
Where:
  • xx is each individual data point in the data set
  • xˉ\bar{x} is the arithmetic mean of the data set
  • nn 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 Returned value Returns the 標本分散 of the input data set x. Float64 Examples Computing 標本分散
Query
Response
最終更新日 2026年7月23日