Skip to content

sampleVariance

sampleVariance(values): number

Defined in: dispersion.ts:16

Variance of a sample, with Bessel’s correction.

Use this when the values are a sample drawn from a larger process, which is the usual case for measurements. See populationVariance when the values are the entire population.

readonly number[]

The sample. Not modified.

number

The variance, or 0 for a sample of fewer than two values.