statistical. chiSq

new chiSq()

Methods

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

Returns the cumulative beta probability density function.

Parameters:
NameTypeDescription
xnumber

The value at which you want to evaluate the distribution.

deg_freedomnumber

The number of degrees of freedom.

cumulativeboolean

A logical value that determines the form of the function. If cumulative is TRUE, CHISQ.DIST returns the cumulative distribution function; if FALSE, it returns the probability density function.

Returns:

The values for a χ2-distribution.

Type: 
number

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

Returns the cumulative beta probability density function.

Parameters:
NameTypeDescription
probabilitynumber

A probability associated with the chi-squared distribution.

deg_freedomnumber

The number of degrees of freedom.

Returns:

the inverse of the CHISQDIST function.

Type: 
number

(static) test(actual_range, expected_range) → {number}

Returns the test for independence.

Parameters:
NameTypeDescription
actual_range*

The range of data that contains observations to test against expected values.

expected_range*

The range of data that contains the ratio of the product of row totals and column totals to the grand total.

Returns:

the test for independence.

Type: 
number