new t()
- Source
Methods
(static) dist(x, deg_freedom, cumulative) → {number}
Returns the Percentage Points (probability) for the Student t-distribution.
Name | Type | Description |
---|---|---|
x | number | The numeric value at which to evaluate the distribution |
deg_freedom | number | An integer indicating the number of degrees of freedom. |
cumulative | number | 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. |
- Source
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.
Name | Type | Description |
---|---|---|
probability | number | The probability associated with the Student's t-distribution. |
deg_freedom | number | The number of degrees of freedom with which to characterize the distribution. |
- Source
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
Name | Type | Description |
---|---|---|
array1 | Array.<number> | The first data set. |
array2 | Array.<number> | The second data set. |
- Source
the probability associated with a Student's t-test or an error if the arguments are incorrect.
- Type:
- number