Okay, the user wants an experiment analysis template pack covering four specific areas: power, sequential tests, variance reduction, and outcome narratives. This is a structured request, likely from someone in data science or analytics who runs A/B tests and needs standardized reporting.
First, I should break down each component. For power analysis, they'll need templates to calculate sample sizes pre-test and assess power post-test. Sequential testing requires methods to handle multiple looks without inflating Type I error—probably Pocock or Bayesian approaches. Variance reduction is about improving sensitivity through techniques like CUPED or stratification. Outcome narratives need clear storytelling for stakeholders, blending stats with business context.
The user might not just want isolated templates but an integrated workflow. They could be building a centralized reporting system or training a team. The deep need here is consistency and rigor—avoiding common pitfalls like peeking or misinterpreting results. I should emphasize statistical validity while keeping templates actionable.
I'll structure each section with a purpose, key considerations, and ready-to-use markdown templates. For sequential tests, I'll include both frequentist and Bayesian options since teams often debate these. For narratives, I'll stress the "so what" factor—translating p-values into decisions. Adding a summary checklist at the end would tie it all together, ensuring nothing slips through.
Wait, should I include examples? Yes, concrete numbers (like effect size 0.02) will make templates usable immediately. Also, a "when to use" guide for variance reduction techniques since misuse can backfire. The tone should be professional but not academic—this is for practitioners.
Experiment Analysis Template Pack
Comprehensive framework for robust, actionable A/B test analysis
**Observed Effect Size:** [observed delta]
**Observed Variance:** [SD or proportion variance]
**Actual Sample Size:** [N_control, N_treatment]
**Achieved Power:** [calculated given observed effect & variance]
**Interpretation:**
- If effect was near MDE: [e.g., "Power ~82% — adequately sensitive"]
- If effect was smaller than MDE: [e.g., "Power ~35% — high risk of Type II error; result is inconclusive"]
**Caution:** Observed power is *not* evidence for null hypothesis; it is a post-hoc sensitivity check only.
2. Sequential Testing Analysis
Purpose: Handle multiple looks at data without inflating false positive rate.
Sequential Test Design Template
markdown
**Sequential Method:** [Select one]
- [ ] Pocock boundary (equal alpha spending across looks)
- [ ] O'Brien-Fleming (conservative early, liberal late)
- [ ] Bayesian predictive probability (e.g., stop if Pr(effect > MDE | data) > 0.99)
- [ ] Alpha spending function: [e.g., alpha=0.05, k=5 looks → per-look α=0.011]
**Planned Looks:**
1. After [N1] users (day T+[X])
2. After [N2] users (day T+[Y])
...
K. Final analysis at [N_total] users
**Boundary Values:** [Provide critical z-scores or p-value thresholds per look]
**Implementation Tool:** [e.g., `gsDesign` in R, `sequential` in Python, custom code]
Sequential Test Results
markdown
**Look Schedule & Results:**
| Look | Cumulative N | Test Statistic | Boundary | Decision |
|------|--------------|----------------|----------|----------|
| 1 | [N1] | [z/chi2/p] | [threshold] | [Continue/Stop for effect/Stop for futility] |
| 2 | [N2] | ... | ... | ... |
| Final| [N_total] | ... | ... | ... |
**Final Inference:**
- **Early stopping?** Yes/No (at look [k])
- **Final p-value (adjusted):** [p_adj]
- **Effect estimate (final):** [delta, CI]
- **Type I error inflation controlled?** Yes/NA (if method applied correctly)
**Note:** [If using Bayesian sequential: include posterior probability summaries at each look]
3. Variance Reduction Analysis
Purpose: Increase sensitivity by reducing unexplained variability in metrics.
Variance Reduction Technique Evaluation
markdown
**Primary Metric:** [Metric]
**Baseline Variance (unadjusted):** [σ² or var(proportion)]
**Sample Size (unadjusted needed for MDE):** [N_unadj]
**Techniques Applied:** [Check all used]
- [ ] **CUPED** (Controlled-experiment Using Pre-Experiment Data)
- Covariates: [e.g., pre-period metric, user segment, geo]
- Variance reduction: [% reduction or λ = 1 - (σ²_adj/σ²_unadj)]
- [ ] **Stratification/Blocking**
- Strata: [e.g., country, device, user tenure]
- Variance reduction: [%]
- [ ] **Post-stratification weighting**
- Weighting variables: [list]
- Impact on SE: [pre vs post SE]
- [ ] **Machine learning (e.g., X-learner, regression adjustment)**
- Model: [type, features]
- Cross-validated R²: [value]
**Adjusted Analysis Sample Size Equivalent:**
N_adj = N_unadj × (1 - variance_reduction)
→ **Equivalent sample size gain:** [%] or [additional users saved]
**Diagnostic:** [Check balance of covariates across groups; report standardized mean differences (SMD) pre/post adjustment]