Skip to the content

Korokoroコロコロ

Roll mixed dice or type notation, compare exact probabilities, keep a history and replay seeded rolls.

Korokoro describes something small rolling in Japanese. About the name

Contents

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

NameTypeDescription
statisticnumber

The nonnegative chi-squared statistic.

degreesnumber

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));
1

What it prints (run when this page was built)

View sourceEdit on GitHubMade from the source of @johnmorrisdotca/korokoro 1.16.0.