Type Alias: Fairness
type Fairness = object;Defined in: src/stats.ts:131
What a fairness test makes of a die.
Properties
sides
sides: number;Defined in: src/stats.ts:133
How many faces the die has.
rolls
rolls: number;Defined in: src/stats.ts:135
How many throws were counted.
minimum
minimum: number;Defined in: src/stats.ts:137
How many throws the test wants before it will pronounce: five for each face.
enough
enough: boolean;Defined in: src/stats.ts:139
Whether there were that many.
expected
expected: number[];Defined in: src/stats.ts:141
How often each face should have come up, if the die is what it is tested against.
statistic
statistic: number | null;Defined in: src/stats.ts:143
The chi-square statistic: how far the counts stray from that, in all. Null with too few throws.
p
p: number | null;Defined in: src/stats.ts:145
The chance that a die as supposed strays this far or further. Null with too few throws: never a guess.
verdict
verdict: "too-few" | "fair" | "unusual" | "lopsided";Defined in: src/stats.ts:152
The reading. too-few: no verdict. fair: nothing to see (p of 5% or more). unusual: lopsided enough to happen less than one time in twenty by chance, which still happens one time in twenty. lopsided: less than one time in a thousand.