@pc-ca/ab-stats
v0.2.0
Published
Closed-form Bayesian and frequentist statistics for the Paper Crane A/B toolkit
Maintainers
Readme
@pc-ca/ab-stats
Closed-form statistics for the Paper Crane A/B toolkit. No dependencies, no matrix maths — everything is a closed form so it runs inside a Cloudflare Worker.
- Beta-Binomial Bayesian posteriors: chance to win, expected loss, credible intervals
- Two-proportion z test: z, p, relative lift with confidence interval
- Chi-square sample-ratio-mismatch check
- Thompson sampling weights for bandit allocation
import {
posterior,
chanceToWin,
expectedLoss,
credibleInterval,
twoProportionTest,
srmCheck,
thompsonWeights,
} from "@pc-ca/ab-stats";MIT
