Skip to content

Type Alias: Fairness ​

ts
type Fairness = object;

Defined in: src/stats.ts:131

What a fairness test makes of a die.

Properties ​

sides ​

ts
sides: number;

Defined in: src/stats.ts:133

How many faces the die has.


rolls ​

ts
rolls: number;

Defined in: src/stats.ts:135

How many throws were counted.


minimum ​

ts
minimum: number;

Defined in: src/stats.ts:137

How many throws the test wants before it will pronounce: five for each face.


enough ​

ts
enough: boolean;

Defined in: src/stats.ts:139

Whether there were that many.


expected ​

ts
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 ​

ts
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 ​

ts
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 ​

ts
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.

MIT © John Morris