statistical. z

Methods

(static) test(array, x, sigma) → {number}

Returns the one-tailed probability-value of a z-test.

Parameters:
NameTypeDescription
arrayArray.<number>

The array or range of data against which to test x.

xnumber

The value to test.

sigmanumber

Optional. The population (known) standard deviation. If omitted, the sample standard deviation is used.

Returns:

the one-tailed probability-value of a z-test or an error if the argumnts are incorrect.

Type: 
number