Reference · Rolls and exact odds
chiSquareTailfunction
The upper tail of a chi-square distribution: the chance that a fair die strays at least this far. Worked out from the incomplete gamma function, not approximated by a normal curve.
Import it
import { chiSquareTail } from "@johnmorrisdotca/korokoro";
Definition
function chiSquareTail(statistic: number, degrees: number): number
Parameters
| Name | Type | Description |
|---|---|---|
statistic | number | The nonnegative chi-squared statistic. |
degrees | number | The number of degrees of freedom. |
Returns
number
The upper tail of a chi-square distribution: the chance that a fair die strays at least this far. Worked out from the incomplete gamma function, not approximated by a normal curve.
Examples
import { chiSquareTail } from "@johnmorrisdotca/korokoro";
console.log(chiSquareTail(0, 5));1What it prints (run when this page was built)