Function reference · Statistics

smpvar

Computes the sample variance.

smpvar divides the sum of squared deviations by n-1 instead of n. It is the Nerdamer Notation name for the sampleVariance function exported from nerdamer/statistics.

Examples

These examples use Nerdamer Notation.

Compute the sample variance.

smpvar(1,2,3)
// → 1

Interfaces

The same operation is available through the interfaces below.

Nerdamer Notation · nerdamer API · Direct API

Nerdamer Notation

Use this form inside input passed to nerdamer(...).

smpvar(arg1, ...)

nerdamer.smpvar

Call the operation through the default nerdamer import.

nerdamer.smpvar(...args: StatisticsInput[]): Expression

Parameters

NameTypeDescription
argsStatisticsInput[]—

Returns

Expression

Browse the nerdamer API →

Direct JavaScript / TypeScript API

Import the operation directly from its package entry point.

import { smpvar } from 'nerdamer/statistics';
(...args: StatisticsInput[]): Expression

Parameters

NameTypeDescription
argsStatisticsInput[]—

Returns

Expression

Browse nerdamer/statistics →

← Back to Function reference