Lattice Grid

The grid (core) ยท console.warn

statistics.bayes: the prior must be 'uniform...

Printed by The grid (core), prefixed [lattice], since 1.125.0.

Warnings reference › stat.bayes-prior

Identifier
stat.bayes-prior
Raised by
The grid (core)
Since
1.125.0

What happened

statistics.bayes() was given a prior that is neither uniform nor jeffreys nor an object whose alpha and beta are both positive, so there is no Beta distribution to start from. The call returned null rather than guessing a prior and reporting an interval from it.

The fix

Pass prior: 'uniform' (the default), prior: 'jeffreys', or prior: { alpha, beta } with both strictly positive.

The smallest fix

grid.statistics.bayes('passed', { prior: { alpha: 2, beta: 2 } });

Reference

Covered in full at the API reference.