ab-analysis-kit 0.7.0__tar.gz → 0.8.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {ab_analysis_kit-0.7.0/ab_analysis_kit.egg-info → ab_analysis_kit-0.8.0}/PKG-INFO +24 -7
- {ab_analysis_kit-0.7.0 → ab_analysis_kit-0.8.0}/README.md +23 -6
- {ab_analysis_kit-0.7.0 → ab_analysis_kit-0.8.0/ab_analysis_kit.egg-info}/PKG-INFO +24 -7
- {ab_analysis_kit-0.7.0 → ab_analysis_kit-0.8.0}/ab_analysis_kit.egg-info/SOURCES.txt +2 -0
- {ab_analysis_kit-0.7.0 → ab_analysis_kit-0.8.0}/abkit/__init__.py +1 -1
- {ab_analysis_kit-0.7.0 → ab_analysis_kit-0.8.0}/abkit/cli/_output.py +60 -0
- {ab_analysis_kit-0.7.0 → ab_analysis_kit-0.8.0}/abkit/cli/assets/claude/rules/experiments.md +6 -1
- {ab_analysis_kit-0.7.0 → ab_analysis_kit-0.8.0}/abkit/cli/assets/claude/rules/methods.md +76 -5
- {ab_analysis_kit-0.7.0 → ab_analysis_kit-0.8.0}/abkit/cli/assets/claude/rules/overview.md +11 -4
- {ab_analysis_kit-0.7.0 → ab_analysis_kit-0.8.0}/abkit/cli/assets/claude/rules/project.md +16 -6
- {ab_analysis_kit-0.7.0 → ab_analysis_kit-0.8.0}/abkit/cli/assets/claude/rules/validate.md +3 -2
- {ab_analysis_kit-0.7.0 → ab_analysis_kit-0.8.0}/abkit/cli/assets/claude/skills/abk-new-experiment/SKILL.md +2 -1
- {ab_analysis_kit-0.7.0 → ab_analysis_kit-0.8.0}/abkit/cli/commands/plan.py +109 -6
- {ab_analysis_kit-0.7.0 → ab_analysis_kit-0.8.0}/abkit/cli/commands/run.py +7 -13
- {ab_analysis_kit-0.7.0 → ab_analysis_kit-0.8.0}/abkit/cli/commands/validate.py +6 -8
- {ab_analysis_kit-0.7.0 → ab_analysis_kit-0.8.0}/abkit/config/experiment_config.py +71 -1
- {ab_analysis_kit-0.7.0 → ab_analysis_kit-0.8.0}/abkit/config/project_config.py +37 -3
- {ab_analysis_kit-0.7.0 → ab_analysis_kit-0.8.0}/abkit/config/validator.py +33 -2
- {ab_analysis_kit-0.7.0 → ab_analysis_kit-0.8.0}/abkit/database/internal_tables/_experiments.py +15 -0
- {ab_analysis_kit-0.7.0 → ab_analysis_kit-0.8.0}/abkit/database/internal_tables/_results.py +47 -0
- {ab_analysis_kit-0.7.0 → ab_analysis_kit-0.8.0}/abkit/database/tables.py +18 -0
- {ab_analysis_kit-0.7.0 → ab_analysis_kit-0.8.0}/abkit/notify/base.py +20 -0
- {ab_analysis_kit-0.7.0 → ab_analysis_kit-0.8.0}/abkit/notify/dispatch.py +13 -7
- {ab_analysis_kit-0.7.0 → ab_analysis_kit-0.8.0}/abkit/notify/email.py +2 -0
- {ab_analysis_kit-0.7.0 → ab_analysis_kit-0.8.0}/abkit/notify/googlechat.py +1 -0
- {ab_analysis_kit-0.7.0 → ab_analysis_kit-0.8.0}/abkit/notify/teams.py +5 -1
- {ab_analysis_kit-0.7.0 → ab_analysis_kit-0.8.0}/abkit/notify/telegram.py +2 -0
- {ab_analysis_kit-0.7.0 → ab_analysis_kit-0.8.0}/abkit/notify/webhook.py +2 -0
- {ab_analysis_kit-0.7.0 → ab_analysis_kit-0.8.0}/abkit/pipeline/analyze.py +69 -15
- {ab_analysis_kit-0.7.0 → ab_analysis_kit-0.8.0}/abkit/pipeline/driver.py +27 -3
- {ab_analysis_kit-0.7.0 → ab_analysis_kit-0.8.0}/abkit/pipeline/readout.py +268 -37
- ab_analysis_kit-0.8.0/abkit/reporting/assets/report.js +151 -0
- {ab_analysis_kit-0.7.0 → ab_analysis_kit-0.8.0}/abkit/reporting/builder.py +28 -12
- {ab_analysis_kit-0.7.0 → ab_analysis_kit-0.8.0}/abkit/stats/__init__.py +6 -0
- {ab_analysis_kit-0.7.0 → ab_analysis_kit-0.8.0}/abkit/stats/base.py +79 -0
- ab_analysis_kit-0.8.0/abkit/stats/correction.py +306 -0
- {ab_analysis_kit-0.7.0 → ab_analysis_kit-0.8.0}/abkit/stats/effects.py +16 -8
- {ab_analysis_kit-0.7.0 → ab_analysis_kit-0.8.0}/abkit/stats/exceptions.py +12 -0
- {ab_analysis_kit-0.7.0 → ab_analysis_kit-0.8.0}/abkit/stats/parametric/cuped_ttest.py +22 -16
- {ab_analysis_kit-0.7.0 → ab_analysis_kit-0.8.0}/abkit/stats/parametric/paired_cuped_ttest.py +10 -6
- {ab_analysis_kit-0.7.0 → ab_analysis_kit-0.8.0}/abkit/stats/parametric/paired_ttest.py +27 -18
- {ab_analysis_kit-0.7.0 → ab_analysis_kit-0.8.0}/abkit/stats/parametric/ratio_delta.py +25 -16
- {ab_analysis_kit-0.7.0 → ab_analysis_kit-0.8.0}/abkit/stats/parametric/ttest.py +19 -15
- {ab_analysis_kit-0.7.0 → ab_analysis_kit-0.8.0}/abkit/stats/parametric/ztest.py +128 -8
- ab_analysis_kit-0.8.0/abkit/stats/proportion_score.py +344 -0
- ab_analysis_kit-0.8.0/abkit/stats/relative_interval.py +336 -0
- {ab_analysis_kit-0.7.0 → ab_analysis_kit-0.8.0}/abkit/stats/sequential/__init__.py +12 -2
- {ab_analysis_kit-0.7.0 → ab_analysis_kit-0.8.0}/abkit/stats/sequential/apply.py +9 -2
- {ab_analysis_kit-0.7.0 → ab_analysis_kit-0.8.0}/abkit/stats/sequential/confidence_sequence.py +50 -3
- ab_analysis_kit-0.8.0/abkit/tuning/assets/explore.js +177 -0
- {ab_analysis_kit-0.7.0 → ab_analysis_kit-0.8.0}/abkit/tuning/config_writer.py +16 -0
- {ab_analysis_kit-0.7.0 → ab_analysis_kit-0.8.0}/abkit/tuning/overview.py +12 -7
- {ab_analysis_kit-0.7.0 → ab_analysis_kit-0.8.0}/abkit/tuning/payload.py +22 -1
- {ab_analysis_kit-0.7.0 → ab_analysis_kit-0.8.0}/abkit/tuning/recompute.py +86 -11
- {ab_analysis_kit-0.7.0 → ab_analysis_kit-0.8.0}/abkit/tuning/session.py +19 -1
- {ab_analysis_kit-0.7.0 → ab_analysis_kit-0.8.0}/abkit/validate/family.py +2 -2
- {ab_analysis_kit-0.7.0 → ab_analysis_kit-0.8.0}/abkit/validate/runner.py +49 -2
- {ab_analysis_kit-0.7.0 → ab_analysis_kit-0.8.0}/abkit/validate/scoring.py +74 -17
- ab_analysis_kit-0.7.0/abkit/reporting/assets/report.js +0 -151
- ab_analysis_kit-0.7.0/abkit/stats/correction.py +0 -161
- ab_analysis_kit-0.7.0/abkit/tuning/assets/explore.js +0 -177
- {ab_analysis_kit-0.7.0 → ab_analysis_kit-0.8.0}/LICENSE +0 -0
- {ab_analysis_kit-0.7.0 → ab_analysis_kit-0.8.0}/MANIFEST.in +0 -0
- {ab_analysis_kit-0.7.0 → ab_analysis_kit-0.8.0}/ab_analysis_kit.egg-info/dependency_links.txt +0 -0
- {ab_analysis_kit-0.7.0 → ab_analysis_kit-0.8.0}/ab_analysis_kit.egg-info/entry_points.txt +0 -0
- {ab_analysis_kit-0.7.0 → ab_analysis_kit-0.8.0}/ab_analysis_kit.egg-info/requires.txt +0 -0
- {ab_analysis_kit-0.7.0 → ab_analysis_kit-0.8.0}/ab_analysis_kit.egg-info/top_level.txt +0 -0
- {ab_analysis_kit-0.7.0 → ab_analysis_kit-0.8.0}/abkit/cli/__init__.py +0 -0
- {ab_analysis_kit-0.7.0 → ab_analysis_kit-0.8.0}/abkit/cli/assets/claude/CLAUDE.section.md +0 -0
- {ab_analysis_kit-0.7.0 → ab_analysis_kit-0.8.0}/abkit/cli/assets/claude/rules/cli.md +0 -0
- {ab_analysis_kit-0.7.0 → ab_analysis_kit-0.8.0}/abkit/cli/assets/claude/rules/explore.md +0 -0
- {ab_analysis_kit-0.7.0 → ab_analysis_kit-0.8.0}/abkit/cli/assets/claude/rules/metrics.md +0 -0
- {ab_analysis_kit-0.7.0 → ab_analysis_kit-0.8.0}/abkit/cli/assets/claude/rules/plan.md +0 -0
- {ab_analysis_kit-0.7.0 → ab_analysis_kit-0.8.0}/abkit/cli/assets/claude/skills/abk-explore/SKILL.md +0 -0
- {ab_analysis_kit-0.7.0 → ab_analysis_kit-0.8.0}/abkit/cli/assets/claude/skills/abk-feedback/SKILL.md +0 -0
- {ab_analysis_kit-0.7.0 → ab_analysis_kit-0.8.0}/abkit/cli/assets/claude/skills/abk-new-metric/SKILL.md +0 -0
- {ab_analysis_kit-0.7.0 → ab_analysis_kit-0.8.0}/abkit/cli/assets/claude/skills/abk-plan/SKILL.md +0 -0
- {ab_analysis_kit-0.7.0 → ab_analysis_kit-0.8.0}/abkit/cli/assets/claude/skills/abk-setup-project/SKILL.md +0 -0
- {ab_analysis_kit-0.7.0 → ab_analysis_kit-0.8.0}/abkit/cli/assets/claude/skills/abk-validate/SKILL.md +0 -0
- {ab_analysis_kit-0.7.0 → ab_analysis_kit-0.8.0}/abkit/cli/commands/__init__.py +0 -0
- {ab_analysis_kit-0.7.0 → ab_analysis_kit-0.8.0}/abkit/cli/commands/_context.py +0 -0
- {ab_analysis_kit-0.7.0 → ab_analysis_kit-0.8.0}/abkit/cli/commands/clean.py +0 -0
- {ab_analysis_kit-0.7.0 → ab_analysis_kit-0.8.0}/abkit/cli/commands/dashboard.py +0 -0
- {ab_analysis_kit-0.7.0 → ab_analysis_kit-0.8.0}/abkit/cli/commands/explore.py +0 -0
- {ab_analysis_kit-0.7.0 → ab_analysis_kit-0.8.0}/abkit/cli/commands/init.py +0 -0
- {ab_analysis_kit-0.7.0 → ab_analysis_kit-0.8.0}/abkit/cli/commands/init_claude.py +0 -0
- {ab_analysis_kit-0.7.0 → ab_analysis_kit-0.8.0}/abkit/cli/commands/test_report.py +0 -0
- {ab_analysis_kit-0.7.0 → ab_analysis_kit-0.8.0}/abkit/cli/commands/unlock.py +0 -0
- {ab_analysis_kit-0.7.0 → ab_analysis_kit-0.8.0}/abkit/cli/commands/verify_incremental.py +0 -0
- {ab_analysis_kit-0.7.0 → ab_analysis_kit-0.8.0}/abkit/cli/main.py +0 -0
- {ab_analysis_kit-0.7.0 → ab_analysis_kit-0.8.0}/abkit/compute/__init__.py +0 -0
- {ab_analysis_kit-0.7.0 → ab_analysis_kit-0.8.0}/abkit/compute/incremental_backend.py +0 -0
- {ab_analysis_kit-0.7.0 → ab_analysis_kit-0.8.0}/abkit/compute/recompute_backend.py +0 -0
- {ab_analysis_kit-0.7.0 → ab_analysis_kit-0.8.0}/abkit/compute/reconcile.py +0 -0
- {ab_analysis_kit-0.7.0 → ab_analysis_kit-0.8.0}/abkit/config/__init__.py +0 -0
- {ab_analysis_kit-0.7.0 → ab_analysis_kit-0.8.0}/abkit/config/discovery.py +0 -0
- {ab_analysis_kit-0.7.0 → ab_analysis_kit-0.8.0}/abkit/config/method_config.py +0 -0
- {ab_analysis_kit-0.7.0 → ab_analysis_kit-0.8.0}/abkit/config/metric_config.py +0 -0
- {ab_analysis_kit-0.7.0 → ab_analysis_kit-0.8.0}/abkit/config/profile.py +0 -0
- {ab_analysis_kit-0.7.0 → ab_analysis_kit-0.8.0}/abkit/config/signals.py +0 -0
- {ab_analysis_kit-0.7.0 → ab_analysis_kit-0.8.0}/abkit/core/__init__.py +0 -0
- {ab_analysis_kit-0.7.0 → ab_analysis_kit-0.8.0}/abkit/core/exposure_counting.py +0 -0
- {ab_analysis_kit-0.7.0 → ab_analysis_kit-0.8.0}/abkit/core/interval.py +0 -0
- {ab_analysis_kit-0.7.0 → ab_analysis_kit-0.8.0}/abkit/core/models.py +0 -0
- {ab_analysis_kit-0.7.0 → ab_analysis_kit-0.8.0}/abkit/core/period_planner.py +0 -0
- {ab_analysis_kit-0.7.0 → ab_analysis_kit-0.8.0}/abkit/database/__init__.py +0 -0
- {ab_analysis_kit-0.7.0 → ab_analysis_kit-0.8.0}/abkit/database/_sql_manager.py +0 -0
- {ab_analysis_kit-0.7.0 → ab_analysis_kit-0.8.0}/abkit/database/clickhouse_manager.py +0 -0
- {ab_analysis_kit-0.7.0 → ab_analysis_kit-0.8.0}/abkit/database/internal_tables/__init__.py +0 -0
- {ab_analysis_kit-0.7.0 → ab_analysis_kit-0.8.0}/abkit/database/internal_tables/_aa_runs.py +0 -0
- {ab_analysis_kit-0.7.0 → ab_analysis_kit-0.8.0}/abkit/database/internal_tables/_base.py +0 -0
- {ab_analysis_kit-0.7.0 → ab_analysis_kit-0.8.0}/abkit/database/internal_tables/_exposures.py +0 -0
- {ab_analysis_kit-0.7.0 → ab_analysis_kit-0.8.0}/abkit/database/internal_tables/_maintenance.py +0 -0
- {ab_analysis_kit-0.7.0 → ab_analysis_kit-0.8.0}/abkit/database/internal_tables/_notify_states.py +0 -0
- {ab_analysis_kit-0.7.0 → ab_analysis_kit-0.8.0}/abkit/database/internal_tables/_schema.py +0 -0
- {ab_analysis_kit-0.7.0 → ab_analysis_kit-0.8.0}/abkit/database/internal_tables/_tasks.py +0 -0
- {ab_analysis_kit-0.7.0 → ab_analysis_kit-0.8.0}/abkit/database/internal_tables/_unit_state.py +0 -0
- {ab_analysis_kit-0.7.0 → ab_analysis_kit-0.8.0}/abkit/database/internal_tables/manager.py +0 -0
- {ab_analysis_kit-0.7.0 → ab_analysis_kit-0.8.0}/abkit/database/manager.py +0 -0
- {ab_analysis_kit-0.7.0 → ab_analysis_kit-0.8.0}/abkit/database/mysql_manager.py +0 -0
- {ab_analysis_kit-0.7.0 → ab_analysis_kit-0.8.0}/abkit/database/postgres_manager.py +0 -0
- {ab_analysis_kit-0.7.0 → ab_analysis_kit-0.8.0}/abkit/loaders/__init__.py +0 -0
- {ab_analysis_kit-0.7.0 → ab_analysis_kit-0.8.0}/abkit/loaders/exposure_copy.py +0 -0
- {ab_analysis_kit-0.7.0 → ab_analysis_kit-0.8.0}/abkit/loaders/exposure_loader.py +0 -0
- {ab_analysis_kit-0.7.0 → ab_analysis_kit-0.8.0}/abkit/loaders/exposure_source.py +0 -0
- {ab_analysis_kit-0.7.0 → ab_analysis_kit-0.8.0}/abkit/loaders/metric_loader.py +0 -0
- {ab_analysis_kit-0.7.0 → ab_analysis_kit-0.8.0}/abkit/loaders/query_template.py +0 -0
- {ab_analysis_kit-0.7.0 → ab_analysis_kit-0.8.0}/abkit/loaders/state_loader.py +0 -0
- {ab_analysis_kit-0.7.0 → ab_analysis_kit-0.8.0}/abkit/loaders/templates/abkit_assignment.jinja +0 -0
- {ab_analysis_kit-0.7.0 → ab_analysis_kit-0.8.0}/abkit/notify/__init__.py +0 -0
- {ab_analysis_kit-0.7.0 → ab_analysis_kit-0.8.0}/abkit/notify/branding.py +0 -0
- {ab_analysis_kit-0.7.0 → ab_analysis_kit-0.8.0}/abkit/notify/cooldown.py +0 -0
- {ab_analysis_kit-0.7.0 → ab_analysis_kit-0.8.0}/abkit/notify/discord.py +0 -0
- {ab_analysis_kit-0.7.0 → ab_analysis_kit-0.8.0}/abkit/notify/factory.py +0 -0
- {ab_analysis_kit-0.7.0 → ab_analysis_kit-0.8.0}/abkit/notify/mattermost.py +0 -0
- {ab_analysis_kit-0.7.0 → ab_analysis_kit-0.8.0}/abkit/notify/mock.py +0 -0
- {ab_analysis_kit-0.7.0 → ab_analysis_kit-0.8.0}/abkit/notify/ntfy.py +0 -0
- {ab_analysis_kit-0.7.0 → ab_analysis_kit-0.8.0}/abkit/notify/slack.py +0 -0
- {ab_analysis_kit-0.7.0 → ab_analysis_kit-0.8.0}/abkit/pipeline/__init__.py +0 -0
- {ab_analysis_kit-0.7.0 → ab_analysis_kit-0.8.0}/abkit/pipeline/_types.py +0 -0
- {ab_analysis_kit-0.7.0 → ab_analysis_kit-0.8.0}/abkit/pipeline/enrich.py +0 -0
- {ab_analysis_kit-0.7.0 → ab_analysis_kit-0.8.0}/abkit/pipeline/state.py +0 -0
- {ab_analysis_kit-0.7.0 → ab_analysis_kit-0.8.0}/abkit/planning/__init__.py +0 -0
- {ab_analysis_kit-0.7.0 → ab_analysis_kit-0.8.0}/abkit/planning/sizing.py +0 -0
- {ab_analysis_kit-0.7.0 → ab_analysis_kit-0.8.0}/abkit/reporting/__init__.py +0 -0
- {ab_analysis_kit-0.7.0 → ab_analysis_kit-0.8.0}/abkit/reporting/calibration.py +0 -0
- {ab_analysis_kit-0.7.0 → ab_analysis_kit-0.8.0}/abkit/reporting/html_report.py +0 -0
- {ab_analysis_kit-0.7.0 → ab_analysis_kit-0.8.0}/abkit/stats/accumulate.py +0 -0
- {ab_analysis_kit-0.7.0 → ab_analysis_kit-0.8.0}/abkit/stats/bootstrap/__init__.py +0 -0
- {ab_analysis_kit-0.7.0 → ab_analysis_kit-0.8.0}/abkit/stats/bootstrap/applier.py +0 -0
- {ab_analysis_kit-0.7.0 → ab_analysis_kit-0.8.0}/abkit/stats/bootstrap/bootstrap.py +0 -0
- {ab_analysis_kit-0.7.0 → ab_analysis_kit-0.8.0}/abkit/stats/bootstrap/ci.py +0 -0
- {ab_analysis_kit-0.7.0 → ab_analysis_kit-0.8.0}/abkit/stats/bootstrap/engine.py +0 -0
- {ab_analysis_kit-0.7.0 → ab_analysis_kit-0.8.0}/abkit/stats/bootstrap/paired_bootstrap.py +0 -0
- {ab_analysis_kit-0.7.0 → ab_analysis_kit-0.8.0}/abkit/stats/bootstrap/paired_post_normed_bootstrap.py +0 -0
- {ab_analysis_kit-0.7.0 → ab_analysis_kit-0.8.0}/abkit/stats/bootstrap/poisson_bootstrap.py +0 -0
- {ab_analysis_kit-0.7.0 → ab_analysis_kit-0.8.0}/abkit/stats/bootstrap/post_normed_bootstrap.py +0 -0
- {ab_analysis_kit-0.7.0 → ab_analysis_kit-0.8.0}/abkit/stats/factory.py +0 -0
- {ab_analysis_kit-0.7.0 → ab_analysis_kit-0.8.0}/abkit/stats/parametric/__init__.py +0 -0
- {ab_analysis_kit-0.7.0 → ab_analysis_kit-0.8.0}/abkit/stats/power.py +0 -0
- {ab_analysis_kit-0.7.0 → ab_analysis_kit-0.8.0}/abkit/stats/registry.py +0 -0
- {ab_analysis_kit-0.7.0 → ab_analysis_kit-0.8.0}/abkit/stats/result.py +0 -0
- {ab_analysis_kit-0.7.0 → ab_analysis_kit-0.8.0}/abkit/stats/rng.py +0 -0
- {ab_analysis_kit-0.7.0 → ab_analysis_kit-0.8.0}/abkit/stats/samples.py +0 -0
- {ab_analysis_kit-0.7.0 → ab_analysis_kit-0.8.0}/abkit/stats/sequential/mixture.py +0 -0
- {ab_analysis_kit-0.7.0 → ab_analysis_kit-0.8.0}/abkit/stats/srm.py +0 -0
- {ab_analysis_kit-0.7.0 → ab_analysis_kit-0.8.0}/abkit/tuning/__init__.py +0 -0
- {ab_analysis_kit-0.7.0 → ab_analysis_kit-0.8.0}/abkit/tuning/assets/dashboard.js +0 -0
- {ab_analysis_kit-0.7.0 → ab_analysis_kit-0.8.0}/abkit/tuning/config_files.py +0 -0
- {ab_analysis_kit-0.7.0 → ab_analysis_kit-0.8.0}/abkit/tuning/dashboard_server.py +0 -0
- {ab_analysis_kit-0.7.0 → ab_analysis_kit-0.8.0}/abkit/tuning/html.py +0 -0
- {ab_analysis_kit-0.7.0 → ab_analysis_kit-0.8.0}/abkit/tuning/jobs.py +0 -0
- {ab_analysis_kit-0.7.0 → ab_analysis_kit-0.8.0}/abkit/tuning/server.py +0 -0
- {ab_analysis_kit-0.7.0 → ab_analysis_kit-0.8.0}/abkit/utils/__init__.py +0 -0
- {ab_analysis_kit-0.7.0 → ab_analysis_kit-0.8.0}/abkit/utils/datetime_utils.py +0 -0
- {ab_analysis_kit-0.7.0 → ab_analysis_kit-0.8.0}/abkit/utils/env_interpolation.py +0 -0
- {ab_analysis_kit-0.7.0 → ab_analysis_kit-0.8.0}/abkit/utils/json_utils.py +0 -0
- {ab_analysis_kit-0.7.0 → ab_analysis_kit-0.8.0}/abkit/utils/warn_scope.py +0 -0
- {ab_analysis_kit-0.7.0 → ab_analysis_kit-0.8.0}/abkit/validate/__init__.py +0 -0
- {ab_analysis_kit-0.7.0 → ab_analysis_kit-0.8.0}/abkit/validate/_types.py +0 -0
- {ab_analysis_kit-0.7.0 → ab_analysis_kit-0.8.0}/abkit/validate/inject.py +0 -0
- {ab_analysis_kit-0.7.0 → ab_analysis_kit-0.8.0}/abkit/validate/load.py +0 -0
- {ab_analysis_kit-0.7.0 → ab_analysis_kit-0.8.0}/abkit/validate/panel.py +0 -0
- {ab_analysis_kit-0.7.0 → ab_analysis_kit-0.8.0}/abkit/validate/persistence.py +0 -0
- {ab_analysis_kit-0.7.0 → ab_analysis_kit-0.8.0}/abkit/validate/resample.py +0 -0
- {ab_analysis_kit-0.7.0 → ab_analysis_kit-0.8.0}/abkit/validate/result.py +0 -0
- {ab_analysis_kit-0.7.0 → ab_analysis_kit-0.8.0}/abkit/validate/run_id.py +0 -0
- {ab_analysis_kit-0.7.0 → ab_analysis_kit-0.8.0}/abkit/validate/vector_resample.py +0 -0
- {ab_analysis_kit-0.7.0 → ab_analysis_kit-0.8.0}/pyproject.toml +0 -0
- {ab_analysis_kit-0.7.0 → ab_analysis_kit-0.8.0}/requirements.txt +0 -0
- {ab_analysis_kit-0.7.0 → ab_analysis_kit-0.8.0}/setup.cfg +0 -0
- {ab_analysis_kit-0.7.0 → ab_analysis_kit-0.8.0}/setup.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: ab-analysis-kit
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.8.0
|
|
4
4
|
Summary: A/B experiment analysis as declarative YAML + SQL
|
|
5
5
|
Author: ab-analysis-kit authors
|
|
6
6
|
License: MIT
|
|
@@ -76,8 +76,24 @@ stabilization chart), writes them to a clean warehouse table any BI can read, an
|
|
|
76
76
|
gives you a local cockpit to tune the analysis and a harness to prove your method is
|
|
77
77
|
actually calibrated.
|
|
78
78
|
|
|
79
|
-
> **Status: `0.
|
|
80
|
-
> (milestones **M1–
|
|
79
|
+
> **Status: `0.8.0` (Alpha) — the latest on PyPI**
|
|
80
|
+
> (milestones **M1–M13** shipped — M13 is the **versioned statistics**
|
|
81
|
+
> milestone: five opt-in options that each buy power or fix an interval, with
|
|
82
|
+
> **no default moved** — a project that changes nothing reproduces `0.7.0` row
|
|
83
|
+
> for row. `correction: holm` is uniformly more powerful than one-step
|
|
84
|
+
> Bonferroni at the same family error rate; `contrasts: vs_control` declares the
|
|
85
|
+
> family you actually decide on, so the divisor is `g−1` instead of `C(g,2)`
|
|
86
|
+
> (≈ +10 points of power at four arms) and the treatment-vs-treatment pairs stop
|
|
87
|
+
> being computed; `guardrail_correction: none` takes a guardrail out of the
|
|
88
|
+
> screening budget entirely; `interval: score` gives proportions an interval
|
|
89
|
+
> that is the inversion of the z-test printed beside it (no more "significant"
|
|
90
|
+
> next to a CI covering zero, and a real answer on empty cells); and
|
|
91
|
+
> `interval: fieller` does the same for the relative lift of the five
|
|
92
|
+
> mean-based methods — the delta interval it replaces has nominal *two-sided*
|
|
93
|
+
> coverage with lopsided tails (1.7% / 3.3% against 2.5% each), and every abkit
|
|
94
|
+
> verdict is a one-sided claim. `abk validate` gained the one column that can
|
|
95
|
+
> tell those two apart: the share of false positives falling **below** zero.
|
|
96
|
+
> M12 wired **notifications**: `abk run
|
|
81
97
|
> --notify` and `abk validate --notify` push what a run just decided to nine
|
|
82
98
|
> channel types (Slack, Telegram, email, webhook, Mattermost, Discord, Teams,
|
|
83
99
|
> Google Chat, ntfy), as six routable signals — the readout verdict, a verdict
|
|
@@ -115,10 +131,11 @@ pip install ab-analysis-kit # Python 3.10+; add a DB extra for real dat
|
|
|
115
131
|
pip install "ab-analysis-kit[clickhouse]" # or [postgres] / [mysql] / [all-db]
|
|
116
132
|
```
|
|
117
133
|
|
|
118
|
-
(`pip install ab-analysis-kit` gets `0.
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
134
|
+
(`pip install ab-analysis-kit` gets `0.8.0` — the opt-in M13 statistics (Holm,
|
|
135
|
+
the declared contrast set, the score and Fieller intervals, the A/A sign
|
|
136
|
+
column), opt-in notifications across nine channels, `abk dashboard` with its
|
|
137
|
+
YAML editor, `abk ui`, CUPED-aware `abk plan` sizing, `abk plan --from-history`
|
|
138
|
+
and the discoverable additive read path all included.)
|
|
122
139
|
|
|
123
140
|
`abk --version` and `abk --help` work with no database driver; you can even lint a
|
|
124
141
|
config (`abk run --steps validate`) with no database at all. See the
|
|
@@ -11,8 +11,24 @@ stabilization chart), writes them to a clean warehouse table any BI can read, an
|
|
|
11
11
|
gives you a local cockpit to tune the analysis and a harness to prove your method is
|
|
12
12
|
actually calibrated.
|
|
13
13
|
|
|
14
|
-
> **Status: `0.
|
|
15
|
-
> (milestones **M1–
|
|
14
|
+
> **Status: `0.8.0` (Alpha) — the latest on PyPI**
|
|
15
|
+
> (milestones **M1–M13** shipped — M13 is the **versioned statistics**
|
|
16
|
+
> milestone: five opt-in options that each buy power or fix an interval, with
|
|
17
|
+
> **no default moved** — a project that changes nothing reproduces `0.7.0` row
|
|
18
|
+
> for row. `correction: holm` is uniformly more powerful than one-step
|
|
19
|
+
> Bonferroni at the same family error rate; `contrasts: vs_control` declares the
|
|
20
|
+
> family you actually decide on, so the divisor is `g−1` instead of `C(g,2)`
|
|
21
|
+
> (≈ +10 points of power at four arms) and the treatment-vs-treatment pairs stop
|
|
22
|
+
> being computed; `guardrail_correction: none` takes a guardrail out of the
|
|
23
|
+
> screening budget entirely; `interval: score` gives proportions an interval
|
|
24
|
+
> that is the inversion of the z-test printed beside it (no more "significant"
|
|
25
|
+
> next to a CI covering zero, and a real answer on empty cells); and
|
|
26
|
+
> `interval: fieller` does the same for the relative lift of the five
|
|
27
|
+
> mean-based methods — the delta interval it replaces has nominal *two-sided*
|
|
28
|
+
> coverage with lopsided tails (1.7% / 3.3% against 2.5% each), and every abkit
|
|
29
|
+
> verdict is a one-sided claim. `abk validate` gained the one column that can
|
|
30
|
+
> tell those two apart: the share of false positives falling **below** zero.
|
|
31
|
+
> M12 wired **notifications**: `abk run
|
|
16
32
|
> --notify` and `abk validate --notify` push what a run just decided to nine
|
|
17
33
|
> channel types (Slack, Telegram, email, webhook, Mattermost, Discord, Teams,
|
|
18
34
|
> Google Chat, ntfy), as six routable signals — the readout verdict, a verdict
|
|
@@ -50,10 +66,11 @@ pip install ab-analysis-kit # Python 3.10+; add a DB extra for real dat
|
|
|
50
66
|
pip install "ab-analysis-kit[clickhouse]" # or [postgres] / [mysql] / [all-db]
|
|
51
67
|
```
|
|
52
68
|
|
|
53
|
-
(`pip install ab-analysis-kit` gets `0.
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
69
|
+
(`pip install ab-analysis-kit` gets `0.8.0` — the opt-in M13 statistics (Holm,
|
|
70
|
+
the declared contrast set, the score and Fieller intervals, the A/A sign
|
|
71
|
+
column), opt-in notifications across nine channels, `abk dashboard` with its
|
|
72
|
+
YAML editor, `abk ui`, CUPED-aware `abk plan` sizing, `abk plan --from-history`
|
|
73
|
+
and the discoverable additive read path all included.)
|
|
57
74
|
|
|
58
75
|
`abk --version` and `abk --help` work with no database driver; you can even lint a
|
|
59
76
|
config (`abk run --steps validate`) with no database at all. See the
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: ab-analysis-kit
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.8.0
|
|
4
4
|
Summary: A/B experiment analysis as declarative YAML + SQL
|
|
5
5
|
Author: ab-analysis-kit authors
|
|
6
6
|
License: MIT
|
|
@@ -76,8 +76,24 @@ stabilization chart), writes them to a clean warehouse table any BI can read, an
|
|
|
76
76
|
gives you a local cockpit to tune the analysis and a harness to prove your method is
|
|
77
77
|
actually calibrated.
|
|
78
78
|
|
|
79
|
-
> **Status: `0.
|
|
80
|
-
> (milestones **M1–
|
|
79
|
+
> **Status: `0.8.0` (Alpha) — the latest on PyPI**
|
|
80
|
+
> (milestones **M1–M13** shipped — M13 is the **versioned statistics**
|
|
81
|
+
> milestone: five opt-in options that each buy power or fix an interval, with
|
|
82
|
+
> **no default moved** — a project that changes nothing reproduces `0.7.0` row
|
|
83
|
+
> for row. `correction: holm` is uniformly more powerful than one-step
|
|
84
|
+
> Bonferroni at the same family error rate; `contrasts: vs_control` declares the
|
|
85
|
+
> family you actually decide on, so the divisor is `g−1` instead of `C(g,2)`
|
|
86
|
+
> (≈ +10 points of power at four arms) and the treatment-vs-treatment pairs stop
|
|
87
|
+
> being computed; `guardrail_correction: none` takes a guardrail out of the
|
|
88
|
+
> screening budget entirely; `interval: score` gives proportions an interval
|
|
89
|
+
> that is the inversion of the z-test printed beside it (no more "significant"
|
|
90
|
+
> next to a CI covering zero, and a real answer on empty cells); and
|
|
91
|
+
> `interval: fieller` does the same for the relative lift of the five
|
|
92
|
+
> mean-based methods — the delta interval it replaces has nominal *two-sided*
|
|
93
|
+
> coverage with lopsided tails (1.7% / 3.3% against 2.5% each), and every abkit
|
|
94
|
+
> verdict is a one-sided claim. `abk validate` gained the one column that can
|
|
95
|
+
> tell those two apart: the share of false positives falling **below** zero.
|
|
96
|
+
> M12 wired **notifications**: `abk run
|
|
81
97
|
> --notify` and `abk validate --notify` push what a run just decided to nine
|
|
82
98
|
> channel types (Slack, Telegram, email, webhook, Mattermost, Discord, Teams,
|
|
83
99
|
> Google Chat, ntfy), as six routable signals — the readout verdict, a verdict
|
|
@@ -115,10 +131,11 @@ pip install ab-analysis-kit # Python 3.10+; add a DB extra for real dat
|
|
|
115
131
|
pip install "ab-analysis-kit[clickhouse]" # or [postgres] / [mysql] / [all-db]
|
|
116
132
|
```
|
|
117
133
|
|
|
118
|
-
(`pip install ab-analysis-kit` gets `0.
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
134
|
+
(`pip install ab-analysis-kit` gets `0.8.0` — the opt-in M13 statistics (Holm,
|
|
135
|
+
the declared contrast set, the score and Fieller intervals, the A/A sign
|
|
136
|
+
column), opt-in notifications across nine channels, `abk dashboard` with its
|
|
137
|
+
YAML editor, `abk ui`, CUPED-aware `abk plan` sizing, `abk plan --from-history`
|
|
138
|
+
and the discoverable additive read path all included.)
|
|
122
139
|
|
|
123
140
|
`abk --version` and `abk --help` work with no database driver; you can even lint a
|
|
124
141
|
config (`abk run --steps validate`) with no database at all. See the
|
|
@@ -127,7 +127,9 @@ abkit/stats/effects.py
|
|
|
127
127
|
abkit/stats/exceptions.py
|
|
128
128
|
abkit/stats/factory.py
|
|
129
129
|
abkit/stats/power.py
|
|
130
|
+
abkit/stats/proportion_score.py
|
|
130
131
|
abkit/stats/registry.py
|
|
132
|
+
abkit/stats/relative_interval.py
|
|
131
133
|
abkit/stats/result.py
|
|
132
134
|
abkit/stats/rng.py
|
|
133
135
|
abkit/stats/samples.py
|
|
@@ -10,7 +10,7 @@ from __future__ import annotations
|
|
|
10
10
|
|
|
11
11
|
from typing import Any
|
|
12
12
|
|
|
13
|
-
__version__ = "0.
|
|
13
|
+
__version__ = "0.8.0"
|
|
14
14
|
|
|
15
15
|
#: Symbols re-exported lazily from ``abkit.stats`` (PEP 562) so importing
|
|
16
16
|
#: ``abkit`` for ``__version__`` (the CLI path) stays numpy-free and fast.
|
|
@@ -17,9 +17,13 @@ House conventions:
|
|
|
17
17
|
from __future__ import annotations
|
|
18
18
|
|
|
19
19
|
from collections.abc import Callable
|
|
20
|
+
from typing import TYPE_CHECKING
|
|
20
21
|
|
|
21
22
|
import click
|
|
22
23
|
|
|
24
|
+
if TYPE_CHECKING: # numpy would load on `abk --help` otherwise (lazy-group rule)
|
|
25
|
+
from abkit.stats import TwoTierAlphas
|
|
26
|
+
|
|
23
27
|
# Pipeline stage name → display title for the streamed run-log tree
|
|
24
28
|
# (architecture.md §5 stage order).
|
|
25
29
|
RUN_STAGE_TITLES = {
|
|
@@ -32,6 +36,62 @@ RUN_STAGE_TITLES = {
|
|
|
32
36
|
}
|
|
33
37
|
|
|
34
38
|
|
|
39
|
+
def pairs_phrase(alphas: TwoTierAlphas) -> str:
|
|
40
|
+
"""How many variant pairs the two-tier levels were divided by, and which.
|
|
41
|
+
|
|
42
|
+
``abk run`` and ``abk validate`` print this divisor, and both printed the
|
|
43
|
+
literal ``C(g,2)`` — true only of the default family. (``abk plan`` states
|
|
44
|
+
its levels differently; its own note is ``plan._correction_note``.) Under
|
|
45
|
+
``contrasts: vs_control`` (m13 STAT-1b) the count is ``g−1`` and the line
|
|
46
|
+
has to SAY so: a divisor an operator cannot reconcile with the alpha beside
|
|
47
|
+
it reads as a bug in whichever of the two they trust less. Reads the
|
|
48
|
+
resolved object rather than re-deriving from ``groups_count``, which no
|
|
49
|
+
longer determines the count.
|
|
50
|
+
|
|
51
|
+
Unlike ``_correction_note`` it stays loud at two arms and under
|
|
52
|
+
``correction: none``: this line reports what the family IS, not why a level
|
|
53
|
+
moved, and "1 contrast against the control arm" is true in both cases.
|
|
54
|
+
"""
|
|
55
|
+
g = alphas.groups_count
|
|
56
|
+
# integral for every integer g >= 2 in both families (g(g−1) is even)
|
|
57
|
+
shown = int(alphas.pairs_count)
|
|
58
|
+
if alphas.contrasts == "vs_control":
|
|
59
|
+
return f"contrasts: vs_control ⇒ {shown} contrast(s) against the control arm"
|
|
60
|
+
return f"C({g},2)={shown} pairs"
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
def alpha_lines(alphas: TwoTierAlphas, correction: str) -> list[str]:
|
|
64
|
+
"""The `effective alphas` tree body — ONE source for `abk run` and `abk validate`.
|
|
65
|
+
|
|
66
|
+
Both printed a main/secondary pair with the Bonferroni divisor spelled out in
|
|
67
|
+
the secondary line. Under a READ-time scheme (`benjamini_hochberg`, `holm`)
|
|
68
|
+
every tier resolves to the raw alpha and nothing was divided by anything, so
|
|
69
|
+
that line asserted a division that did not happen — and neither command said
|
|
70
|
+
the decision is taken later, over the whole family, at a threshold no row
|
|
71
|
+
carries. `abk plan` gained exactly this disclosure (`plan._correction_note`);
|
|
72
|
+
these two are its siblings, so the rule lives in one place (m13 STAT-1).
|
|
73
|
+
"""
|
|
74
|
+
from abkit.stats.correction import READ_TIME_CORRECTIONS
|
|
75
|
+
|
|
76
|
+
lines = [f"alpha={alphas.alpha} over {alphas.groups_count} variants ({pairs_phrase(alphas)})"]
|
|
77
|
+
if correction in READ_TIME_CORRECTIONS:
|
|
78
|
+
lines.append(
|
|
79
|
+
f"per-comparison alpha: {alphas.main:.6g} (raw — {correction} is applied "
|
|
80
|
+
"read-time over the whole family; the rows carry this level, the decision "
|
|
81
|
+
"does not)"
|
|
82
|
+
)
|
|
83
|
+
return lines
|
|
84
|
+
lines.append(f"main-metric alpha: {alphas.main:.6g}")
|
|
85
|
+
if alphas.secondary is not None and alphas.metrics_count:
|
|
86
|
+
lines.append(
|
|
87
|
+
f"secondary alpha: {alphas.secondary:.6g} "
|
|
88
|
+
f"(÷{alphas.pairs_count:g}×{alphas.metrics_count} non-main metrics)"
|
|
89
|
+
)
|
|
90
|
+
if alphas.guardrail is not None:
|
|
91
|
+
lines.append(f"guardrail alpha: {alphas.guardrail:.6g} (uncorrected)")
|
|
92
|
+
return lines
|
|
93
|
+
|
|
94
|
+
|
|
35
95
|
def echo_block(
|
|
36
96
|
title: str,
|
|
37
97
|
children: list[str],
|
{ab_analysis_kit-0.7.0 → ab_analysis_kit-0.8.0}/abkit/cli/assets/claude/rules/experiments.md
RENAMED
|
@@ -43,7 +43,12 @@ assignment: # READ-ONLY exposure source — abkit never ran
|
|
|
43
43
|
# maturity_delay: 0 # batch_intervals_per_round_trip: 30 — intervals, not rows)
|
|
44
44
|
|
|
45
45
|
alpha: 0.05 # experiment-level significance (unset -> project default)
|
|
46
|
-
correction: bonferroni # none | bonferroni | benjamini_hochberg (unset -> project default)
|
|
46
|
+
correction: bonferroni # none | bonferroni | benjamini_hochberg | holm (unset -> project default)
|
|
47
|
+
# contrasts: vs_control # all_pairs (default) | vs_control — the family this experiment
|
|
48
|
+
# CLAIMS: vs_control compares only the g-1 treatments against the
|
|
49
|
+
# first declared variant, divides alpha by g-1 instead of C(g,2)
|
|
50
|
+
# (≈ +10 points of power at 4 arms), and does NOT compute the
|
|
51
|
+
# treatment-vs-treatment pairs at all
|
|
47
52
|
sequential: {enabled: false, scheme: always_valid} # opt-in peeking-safe CIs (default OFF)
|
|
48
53
|
# incremental_reads: true # override project.compute.incremental_reads here (unset -> project
|
|
49
54
|
# default): eligible closed-form comparisons read `_ab_unit_state`
|
|
@@ -67,6 +67,45 @@ variants):
|
|
|
67
67
|
| `calculate_mde` | `false` | also solve the per-arm MDE at `power` |
|
|
68
68
|
| `power` | `0.8` | target power for the MDE solve |
|
|
69
69
|
| `covariate_lookback` | — | **CUPED only**: pre-period window, e.g. `14d`. IDENTITY-BEARING |
|
|
70
|
+
| `interval` | `pooled` | **`z-test` only**: `pooled` (legacy) \| `score`. IDENTITY-BEARING |
|
|
71
|
+
| `interval` | `delta` | **mean methods**: `delta` (legacy) \| `fieller` — the RELATIVE interval. IDENTITY-BEARING |
|
|
72
|
+
|
|
73
|
+
`interval: score` swaps the z-test's interval for the inversion of the test it
|
|
74
|
+
already runs (Miettinen–Nurminen). **P-values do not change** — the statistic at
|
|
75
|
+
the null is the same pooled z — with ONE exception, which is a fix: a table with no
|
|
76
|
+
conversions in either arm has no pooled statistic at all, and now reports `p = 1`
|
|
77
|
+
beside a real interval instead of a blank row (visible under `test_type: absolute`;
|
|
78
|
+
under `relative` a lift over a zero baseline stays undefined). Otherwise the interval
|
|
79
|
+
becomes valid at every effect size instead of only at zero, asymmetric (render it
|
|
80
|
+
`[low, high]`, never `±`), and inside a possible range. It matters most where the arms are IMBALANCED: at a
|
|
81
|
+
900/100 holdout the pooled SE is 24% too small, i.e. the legacy interval is
|
|
82
|
+
anti-conservative, and worse as the correction shrinks alpha. Two constraints: it
|
|
83
|
+
is identity-bearing (switching starts a new series), and it CANNOT be combined
|
|
84
|
+
with `sequential: {enabled: true}` — config validation refuses the pair (as do the
|
|
85
|
+
explore knob and its Apply seam), because the always-valid transform needs a
|
|
86
|
+
symmetric interval. `abk validate` still scores such a metric: it simply has no
|
|
87
|
+
always-valid column, exactly like a bootstrap method. On a relative metric with
|
|
88
|
+
few CONVERSIONS (not few users — the precision law reads counts) the row carries a
|
|
89
|
+
"weakly identified" warning; the interval is still reported.
|
|
90
|
+
|
|
91
|
+
`interval: fieller` (m13 STAT-4) does the same thing for the mean methods'
|
|
92
|
+
RELATIVE branch: it inverts the test at every candidate lift instead of building
|
|
93
|
+
`θ̂ ± z·SE` at the observed one. Here the p-value DOES move — under `fieller` the
|
|
94
|
+
relative p-value is the ABSOLUTE comparison's, which is the point: "the lift is 0"
|
|
95
|
+
and "the difference is 0" are one hypothesis, and the legacy branch gives them two
|
|
96
|
+
answers that can disagree in a report. The reported lift is unchanged. What it
|
|
97
|
+
fixes is one-sided: delta's two-sided coverage is nominal while its TAILS are
|
|
98
|
+
0.017/0.033 at a control-mean CV of 5% (0.008/0.039 at 10%), and every verdict
|
|
99
|
+
(WIN/LOSE) is a one-sided claim — so the real directional error rate is up to 1.6×
|
|
100
|
+
the configured one, at every true effect, which is why an A/A run cannot see it.
|
|
101
|
+
The honest cost: when the control mean is not clearly different from zero, NO
|
|
102
|
+
bounded lift interval exists at that level (a theorem, not a limit), and abkit
|
|
103
|
+
reports the effect and p-value with EMPTY bounds plus a warning rather than a
|
|
104
|
+
finite interval it cannot stand behind — the readout then treats the row as a gap,
|
|
105
|
+
so such a comparison is not called a WIN. Same three constraints as `score`:
|
|
106
|
+
identity-bearing, incompatible with `sequential: {enabled: true}`, and — because
|
|
107
|
+
it only governs the relative branch — writing it beside `test_type: absolute` is a
|
|
108
|
+
config ERROR, not a silent no-op (it would fork the series for nothing).
|
|
70
109
|
|
|
71
110
|
CUPED needs **no extra SQL**: with `covariate_lookback` set, abkit re-renders the
|
|
72
111
|
same metric query over the pre-period window (exposure filter dropped) and uses
|
|
@@ -93,7 +132,7 @@ variants):
|
|
|
93
132
|
params**. It is the key of a result *series* in `_ab_results`.
|
|
94
133
|
|
|
95
134
|
- **Editing an identity param ORPHANS the prior series.** Changing `test_type`,
|
|
96
|
-
`n_samples`, `covariate_lookback`, `stratify`, etc. starts a *new*
|
|
135
|
+
`n_samples`, `covariate_lookback`, `interval`, `stratify`, etc. starts a *new*
|
|
97
136
|
`method_config_id`; the old rows stay stranded. After retuning, recompute
|
|
98
137
|
(`abk run --select <exp>`) and prune the orphans with
|
|
99
138
|
`abk clean --select <exp> --execute`.
|
|
@@ -103,8 +142,35 @@ params**. It is the key of a result *series* in `_ab_results`.
|
|
|
103
142
|
cutoff, `n_samples`). Bootstrap results are reproducible, not random per run.
|
|
104
143
|
- **`alpha` is NOT in identity.** It is the post-correction, experiment-level
|
|
105
144
|
significance level (two-tier Bonferroni: main vs secondary metrics land at
|
|
106
|
-
different alphas; read-time BH
|
|
107
|
-
|
|
145
|
+
different alphas; the read-time schemes BH / Holm decide over the whole family
|
|
146
|
+
instead and leave the raw alpha on the row). Changing `alpha` re-decides
|
|
147
|
+
`reject` without orphaning the series — and under a read-time scheme `reject`
|
|
148
|
+
is the pre-family flag, not the verdict.
|
|
149
|
+
- **`guardrail_correction: none`** (project or experiment level; default
|
|
150
|
+
`inherit` = the old behaviour) takes guardrails OUT of the corrected family:
|
|
151
|
+
they are tested at the raw alpha, because correcting a metric whose job is to
|
|
152
|
+
catch harm makes you less likely to catch it. It also **loosens the secondary
|
|
153
|
+
alpha** for the screening metrics that remain, since guardrails stop counting
|
|
154
|
+
in the divisor. Inert unless `correction: bonferroni`. It moves persisted
|
|
155
|
+
numbers, so it writes new-alpha rows into an existing series — run
|
|
156
|
+
`abk run --full-refresh` if you want the whole series at one alpha, and expect
|
|
157
|
+
guardrail `_ab_aa_runs` rows to read `alpha_mismatch` until `abk validate`
|
|
158
|
+
re-runs them.
|
|
159
|
+
- **`contrasts: vs_control`** (experiment level; default `all_pairs` = the old
|
|
160
|
+
behaviour) declares that the family is the `g-1` contrasts against the FIRST
|
|
161
|
+
declared variant, not all `C(g,2)` pairs. The divisor drops accordingly, so
|
|
162
|
+
every tier's alpha is multiplied by `g/2` (≈ +10 points of power at four
|
|
163
|
+
arms). It is one declaration with two halves: the treatment-vs-treatment pairs
|
|
164
|
+
are also **not computed** — no result rows, no verdicts, no BH family members
|
|
165
|
+
— because keeping them at the loosened level is exactly what would break the
|
|
166
|
+
FWER claim the loosening was bought with. Inert at two arms. Like
|
|
167
|
+
`guardrail_correction`, it moves persisted alphas, so `abk run --full-refresh`
|
|
168
|
+
re-homogenises a series and A/A rows read `alpha_mismatch` until re-run;
|
|
169
|
+
rows for pairs the narrowed family dropped are ignored loudly by every read
|
|
170
|
+
surface (`abk run --full-refresh --from <start> --to <horizon>` removes them —
|
|
171
|
+
`abk clean` prunes by `method_config_id` and never touched them). Widening the
|
|
172
|
+
family back (or adding an arm) is the direction abkit heals for you: a look
|
|
173
|
+
missing a declared pair is re-planned automatically.
|
|
108
174
|
- Execution-only params (`max_block_bytes`) never enter the hash.
|
|
109
175
|
|
|
110
176
|
## Sequential eligibility
|
|
@@ -115,8 +181,13 @@ the experiment) applies only to **parametric methods** (`t-test`, `z-test`,
|
|
|
115
181
|
are NOT sequential-eligible** — enabling sequential leaves their CIs
|
|
116
182
|
fixed-horizon, and the readout still withholds WIN/LOSE AND FLAT before the
|
|
117
183
|
horizon. If
|
|
118
|
-
you need peeking-valid early reads, choose a parametric method.
|
|
119
|
-
|
|
184
|
+
you need peeking-valid early reads, choose a parametric method.
|
|
185
|
+
|
|
186
|
+
The two inverted-test intervals are the parametric exceptions, and they fail
|
|
187
|
+
LOUDLY rather than silently: `z-test` with `interval: score` and the mean methods
|
|
188
|
+
with `interval: fieller` are both asymmetric, so either pair is a config ERROR
|
|
189
|
+
naming both settings. See `experiments.md` for the toggle and
|
|
190
|
+
`overview.md` for why peeking matters.
|
|
120
191
|
|
|
121
192
|
## Quarantined branches (raise, never silently substitute)
|
|
122
193
|
|
|
@@ -82,9 +82,13 @@ profile's `internal_database` / `internal_schema`, separate from the
|
|
|
82
82
|
`test_type: absolute` or `relative` (percent lift) is a per-method param.
|
|
83
83
|
- **CI** — confidence interval on the effect; a WIN/LOSE needs it to exclude zero
|
|
84
84
|
in one direction **and** be stable (excluding-then-recrossing is not a winner).
|
|
85
|
-
- **verdict** — the read-time call: **WIN/LOSE** (
|
|
86
|
-
**FLAT** (
|
|
87
|
-
**INCONCLUSIVE** (otherwise / underpowered).
|
|
85
|
+
- **verdict** — the read-time call: **WIN/LOSE** (significant, stabilized),
|
|
86
|
+
**FLAT** (not significant, adequately powered — needs `min_effect`),
|
|
87
|
+
**INCONCLUSIVE** (otherwise / underpowered). "Significant" is "the CI excludes
|
|
88
|
+
zero" under `correction: none`/`bonferroni`, and the family rule under the
|
|
89
|
+
read-time schemes (`benjamini_hochberg`, `holm`) — where the verdict may
|
|
90
|
+
legitimately differ from the interval shown beside it, and says so in a
|
|
91
|
+
caveat. Also **blocked** (SRM) and
|
|
88
92
|
**insufficient data**. The main metric drives it; guardrails check regression.
|
|
89
93
|
- **SRM (sample-ratio-mismatch)** — a χ² gate (anytime-valid multinomial below 1d
|
|
90
94
|
cadence): observed arm split ≠ expected split ⇒ randomization/cohort is broken.
|
|
@@ -105,7 +109,10 @@ profile's `internal_database` / `internal_schema`, separate from the
|
|
|
105
109
|
(`alpha` and `seed` excluded). Editing an identity param starts a NEW series
|
|
106
110
|
and orphans the old rows (recompute, then `abk clean`).
|
|
107
111
|
- **two-tier alpha** — main vs secondary metrics get different post-correction
|
|
108
|
-
(Bonferroni) alphas
|
|
112
|
+
(Bonferroni) alphas. The **read-time** schemes (`benjamini_hochberg` = FDR,
|
|
113
|
+
`holm` = FWER) instead leave the raw alpha on every row and decide over the
|
|
114
|
+
whole family at read time — so `reject` is then the pre-family flag, not the
|
|
115
|
+
verdict.
|
|
109
116
|
- **always-valid / sequential** — opt-in (`sequential: {enabled: true}`)
|
|
110
117
|
peeking-safe CIs. **Default OFF**: without it the readout WITHHOLDS WIN/LOSE
|
|
111
118
|
AND FLAT before the horizon (FLAT is equally a stop decision). `scheme: alpha_spending` (group-sequential) is NOT
|
|
@@ -26,7 +26,7 @@ paths: # optional — directory names
|
|
|
26
26
|
statistics: # project-wide defaults; an experiment overrides any
|
|
27
27
|
alpha: 0.05 # default significance level (0,1) (default 0.05)
|
|
28
28
|
test_type: relative # relative | absolute (default relative)
|
|
29
|
-
correction: bonferroni # none | bonferroni | benjamini_hochberg (default bonferroni)
|
|
29
|
+
correction: bonferroni # none | bonferroni | benjamini_hochberg | holm (default bonferroni)
|
|
30
30
|
power: 0.8 # target power for MDE / plan (0,1) (default 0.8)
|
|
31
31
|
aa_fpr_budget: null # optional A/A false-positive budget the validate matrix colours against
|
|
32
32
|
|
|
@@ -73,7 +73,7 @@ file is just those two lines. `abk init` writes those plus an explicit
|
|
|
73
73
|
|---|---|
|
|
74
74
|
| `alpha` | Experiment-level significance, **pre-correction**. The per-comparison post-correction alpha is derived (see two-tier below), never set here. |
|
|
75
75
|
| `test_type` | `relative` (percent lift) or `absolute` (raw difference) — the units the persisted `effect` and any `min_effect` live in. |
|
|
76
|
-
| `correction` | Multiple-testing correction across a comparison family. `bonferroni` = the
|
|
76
|
+
| `correction` | Multiple-testing correction across a comparison family. `bonferroni` = the compute-time two-tier scheme; `benjamini_hochberg` (FDR) and `holm` (FWER) are **read-time** family rules — the rows keep the raw alpha; `none` disables. |
|
|
77
77
|
| `power` | Target power for MDE reporting and `abk plan` sizing. |
|
|
78
78
|
| `aa_fpr_budget` | Tuning-only band for the `abk validate` matrix: a fraction in `(0,1]`; a cell whose measured FPR exceeds it colours red. A `metric.aa_fpr_budget` overrides it. Never touches the pipeline math. |
|
|
79
79
|
|
|
@@ -241,7 +241,10 @@ and a failed run, and stays quiet through routine readouts.
|
|
|
241
241
|
## The two-tier alpha (why the effective alpha isn't the alpha you set)
|
|
242
242
|
|
|
243
243
|
`bonferroni` correction applies the legacy **two-tier** scheme keyed off each
|
|
244
|
-
comparison's `is_main_metric` flag. With `C =
|
|
244
|
+
comparison's `is_main_metric` flag. With `C` = the number of comparisons the
|
|
245
|
+
experiment DECLARES — `C(groups, 2)` by default, or `groups - 1` when the
|
|
246
|
+
experiment sets `contrasts: vs_control` (see
|
|
247
|
+
`.claude/rules/ab-analysis-kit/experiments.md`):
|
|
245
248
|
|
|
246
249
|
- **Main metric** (`is_main_metric: true`): effective per-comparison alpha
|
|
247
250
|
`= alpha / C` — the full budget, only the pairwise divisor.
|
|
@@ -252,13 +255,20 @@ comparison's `is_main_metric` flag. With `C = C(groups, 2)` pairwise comparisons
|
|
|
252
255
|
|
|
253
256
|
So the main verdict is protected at the looser (more powerful) alpha, and the
|
|
254
257
|
secondary metrics split a stricter budget. `abk run`, `abk validate`, and the HTML
|
|
255
|
-
report **echo** the effective per-comparison alpha
|
|
258
|
+
report **echo** the effective per-comparison alpha, the `C × metrics` divisor and
|
|
259
|
+
which family it counted —
|
|
256
260
|
inspect them there; do not compute alpha by hand. `abk validate` persists at and
|
|
257
261
|
`abk plan` sizes at this **same effective** alpha (the same resolver), so an A/A
|
|
258
262
|
cell calibrated for a metric matches what the pipeline actually applied.
|
|
259
263
|
|
|
260
|
-
`benjamini_hochberg`
|
|
261
|
-
|
|
264
|
+
`benjamini_hochberg` (FDR) and `holm` (FWER ≤ α under arbitrary dependence)
|
|
265
|
+
instead decide **read-time** over the whole family — one cutoff's metrics ×
|
|
266
|
+
declared arm pairs — so the rows keep the RAW alpha and the decision is
|
|
267
|
+
recomputed at every read. Two consequences: a verdict may legitimately differ
|
|
268
|
+
from the interval stored beside it (one-directional — a band excluding zero
|
|
269
|
+
under a verdict that declines to call it; the pair carries a caveat when it
|
|
270
|
+
happens), and `_ab_results.reject` is the **pre-family** flag, not the composed
|
|
271
|
+
decision, which is never persisted. `none` disables correction. See `.claude/rules/ab-analysis-kit/experiments.md`
|
|
262
272
|
for `is_main_metric` / `is_guardrail` on the comparison, and `validate.md` for how
|
|
263
273
|
the calibration chip reads the effective alpha.
|
|
264
274
|
|
|
@@ -85,7 +85,7 @@ without being changed.
|
|
|
85
85
|
|
|
86
86
|
Per-cell FPR is necessary but not sufficient: an experiment runs a **family** of
|
|
87
87
|
metrics under one shared assignment, corrected by two-tier Bonferroni (compute-time)
|
|
88
|
-
∘ Benjamini-Hochberg
|
|
88
|
+
∘ a read-time family rule (Benjamini-Hochberg, or Holm since 0.8.0). `abk validate` sweeps the empirical **family-wise
|
|
89
89
|
error rate** (any false rejection across the family) and **false-discovery rate**
|
|
90
90
|
(mean false fraction among rejections) over one shared union-cohort placebo
|
|
91
91
|
assignment per iteration, under the *same* composed rule the readout applies.
|
|
@@ -96,7 +96,8 @@ prints a one-release notice instead).
|
|
|
96
96
|
On the complete null the two coincide (every rejection is false) and sit at the
|
|
97
97
|
composed rule's **nominal rate** — ≈ α *per tier*, so ≈ 2α whole-family under the
|
|
98
98
|
default two-tier Bonferroni (which protects the main tier and the secondary tier each
|
|
99
|
-
at α, by design).
|
|
99
|
+
at α, by design). Under a **read-time** scheme (BH / Holm) the anchor is the members'
|
|
100
|
+
own level (≈ α) instead. The budget is anchored to that nominal rate, so "over budget" means
|
|
100
101
|
the **methods** are miscalibrated (clustering / variance underestimation), not that
|
|
101
102
|
the correction is loose. It surfaces as one sentinel `_ab_aa_runs` row and a
|
|
102
103
|
composed-family band above the report matrix. With `sequential.enabled` the sweep also
|
|
@@ -118,7 +118,8 @@ and `abk clean` prune the strays. `seed` and `alpha` are identity-EXCLUDED.
|
|
|
118
118
|
explicit timestamp to align to an external cycle (it may precede `start_ts`,
|
|
119
119
|
making the first window partial). Cutoffs are `anchor + k*cadence`.
|
|
120
120
|
- `alpha:` / `correction:` — omit to inherit project defaults; `correction:
|
|
121
|
-
bonferroni` gives the two-tier split,
|
|
121
|
+
bonferroni` gives the two-tier split, while `benjamini_hochberg` (FDR) and
|
|
122
|
+
`holm` (FWER) are read-time family rules applied at every read.
|
|
122
123
|
|
|
123
124
|
## Step 7 — Optional: enable sequential (peeking-safe)
|
|
124
125
|
|