A mature A/B testing analysis library for MoonBit, supporting sample size estimation, sequential testing, metrics comparison and guardrails.
| 包 | 作用 |
|---|---|
| core | 描述统计、在线统计量、分布函数、概率与随机数工具 |
| size | 样本量、功效、分配和敏感性分析 |
| metrics | 检验、效应量、区间、回归、重采样和多重校正 |
| guardrail | SRM、缺失、异常、漂移、比例和护栏策略 |
| sequential | alpha spending、mixture SPRT、e-process 和置信序列 |
| stratified | 分层均值、方差、分配和 Mantel–Haenszel 估计 |
| dataset | 观测数据模型、清洗、确定性分配和变换 |
| experiment | 实验启动、摄入、暂停、完成、决策和报告编排 |
| monitor | 滚动统计、EWMA、CUSUM、趋势预测、告警和质量评分 |
| simulation | 二项、连续、计数数据生成与经验功效/错误率 |
| report | 结构化实验报告、Markdown/CSV 渲染和质量摘要 |
| benchmark | 可重复 workload、校验和、基线比较和汇总 |
import {
"pla678889/moon-experiment"
}let result = @metrics.proportion_test(120, 1000, 150, 1000)
let interval = @metrics.wilson_interval(120, 1000)
println(result.p_value.to_string())
println(interval.low().to_string())moon version --all
moon update
moon check --deny-warn --target all
moon test --deny-warn --target all
moon fmt
moon infomoon run cmd/benchmark --target nativeA mature A/B testing analysis library for MoonBit, supporting sample size estimation, sequential testing, metrics comparison and guardrails.