statistical. t

Methods

(static) dist(x, deg_freedom, cumulative) → {number}

Returns the Percentage Points (probability) for the Student t-distribution.

Parameters:
NameTypeDescription
xnumber

The numeric value at which to evaluate the distribution

deg_freedomnumber

An integer indicating the number of degrees of freedom.

cumulativenumber

A number that determines the form of the function. If cumulative is 1, T.DIST returns the cumulative distribution function; if 2, it returns the probability density function.

Returns:

the Percentage Points (probability) for the Student t-distribution or an error.

Type: 
number

(static) inv(probability, deg_freedom) → {number}

Returns the t-value of the Student's t-distribution as a function of the probability and the degrees of freedom.

Parameters:
NameTypeDescription
probabilitynumber

The probability associated with the Student's t-distribution.

deg_freedomnumber

The number of degrees of freedom with which to characterize the distribution.

Returns:

the t-value of the Student's t-distribution as a function of the probability and the degrees of freedom or an error if the arguments are incorrect.

Type: 
number

(static) test(array1, array2) → {number}

Returns the probability associated with a Student's t-test. The algorithm can be found here: http://www.chem.uoa.gr/applets/AppletTtest/Appl_Ttest2.html

Parameters:
NameTypeDescription
array1Array.<number>

The first data set.

array2Array.<number>

The second data set.

Returns:

the probability associated with a Student's t-test or an error if the arguments are incorrect.

Type: 
number