statistical. confidence

new confidence()

Methods

(static) norm(alpha, standard_dev, size) → {number|Error}

Returns the confidence interval for a population mean.

Parameters:
NameTypeDescription
alphanumber

The significance level used to compute the confidence level. The confidence level equals 100*(1 - alpha)%, or in other words, an alpha of 0.05 indicates a 95 percent confidence level.

standard_devnumber

The population standard deviation for the data range and is assumed to be known.

sizenumber

The sample size.

Returns:

Returns a 1-alpha confidence interval for value given a normal distribution with a standard deviation and a sample size

Type: 
number | Error

(static) t(alpha, standard_dev, size) → {number|Error}

Returns the confidence interval for a population mean, using a Student's t distribution.

Parameters:
NameTypeDescription
alphanumber

The significance level used to compute the confidence level. The confidence level equals 100*(1 - alpha)%, or in other words, an alpha of 0.05 indicates a 95 percent confidence level.

standard_devnumber

The population standard deviation for the data range and is assumed to be known.

sizenumber

The sample size.

See
Returns:

Returns a 1-alpha confidence interval for value given the standard deviation and the sample size.

Type: 
number | Error