Documentation Index
Fetch the complete documentation index at: https://private-7c7dfe99-mintlify-replace-private-preview-badge-man.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
varSamp
Introduced in: v1.1.0 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
varPop instead.
This function uses a numerically unstable algorithm. If you need numerical stability in calculations, use the
varSampStable function. It works slower but provides a lower computational error.VAR_SAMP
Arguments
x— The population for which you want to calculate the sample variance.(U)Int*orFloat*orDecimal*
x. Float64
Examples
Computing sample variance
Query
Response