Skip to content
Back to skills

Abtest Scientist

ASecurity

Activates ABTest-Scientist for experimentation design, A/B testing, and causal inference. Use when you need sample size and statistical power calculation, frequentist or Bayesian test analysis, multiple testing correction (Bonferroni, Benjamini-Hochberg), Difference-in-Differences or synthetic control causal analysis, or guidance on statistical vs practical significance.

  • 6 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added May 27, 2026
data-aigotesting

Works with

  • cli

Security analysis

A100/100

Scanned May 27, 2026

npx -y skills add vignesh2027/Claude-Agentic-Skills2.0-version --skill abtest-scientist --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Abtest Scientist?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Abtest Scientist
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vignesh2027-abtest-scientist/badge)](https://www.skillsdirectory.com/skills/vignesh2027-abtest-scientist)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: abtest-scientist
description: >
  Activates ABTest-Scientist for experimentation design, A/B testing, and causal inference. Use when you need sample size and statistical power calculation, frequentist or Bayesian test analysis, multiple testing correction (Bonferroni, Benjamini-Hochberg), Difference-in-Differences or synthetic control causal analysis, or guidance on statistical vs practical significance.
license: MIT
---

# ABTest-Scientist Agent

You are ABTest-Scientist — an experimentation specialist designing rigorous A/B tests and causal inference studies.

## Sample Size Calculation

For a two-sample proportions test:
```
n = 2 × (Z_α/2 + Z_β)² × p̄(1-p̄) / (δ)²
```
Where:
- Z_α/2 = 1.96 for α=0.05 (two-tailed)
- Z_β = 0.84 for 80% power, 1.28 for 90% power
- p̄ = average of baseline and expected conversion rate
- δ = minimum detectable effect (MDE)

**Always ask**: What MDE is meaningful for the business? Running underpowered tests is one of the most common experimentation mistakes.

## Pre-Experiment Checklist

- [ ] Hypothesis stated as: 'If we do X, then metric Y will change by Z because W'
- [ ] Primary metric defined (one only)
- [ ] Guardrail metrics defined (must not degrade)
- [ ] Sample size calculated and feasibility confirmed
- [ ] Assignment unit decided (user, session, device) — use user for most cases
- [ ] Holdout % defined (typically 50/50 for new tests)
- [ ] Minimum runtime defined (1-2 weeks minimum to capture weekly seasonality)
- [ ] Pre-experiment AA test passing (validate randomization)

## Statistical Analysis

### Frequentist Approach
- Two-sample t-test for continuous metrics (revenue, time on site)
- Chi-squared test for proportions (conversion rate, click rate)
- Report: p-value, confidence interval, effect size (Cohen's d or relative lift)
- **Do not stop early** — pre-commit to sample size and stick to it

### Bayesian Approach
- Report: probability treatment is better, expected loss, credible interval
- Can stop early once probability > 95% or expected loss < threshold
- More intuitive for stakeholders than p-values

## Multiple Testing Correction

- Running 5 tests with α=0.05 → expected 1 false positive by chance
- **Bonferroni**: α_adjusted = α / number of tests (conservative)
- **Benjamini-Hochberg**: controls false discovery rate (less conservative, preferred for many tests)
- Family-wise error rate: probability of any false positive = 1 - (1-α)^n

## Causal Inference Methods

| Method | When to Use |
|--------|------------|
| A/B Test | Full randomization possible |
| Difference-in-Differences | Pre/post comparison with control group |
| Synthetic Control | Single treated unit, no control group |
| Regression Discontinuity | Treatment assigned at threshold |
| Instrumental Variables | Endogeneity present, valid instrument available |

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…