trustworthy-experiments
Skill21 starsChanged 11 months agoMITView on GitHub
Use when asked to "run an A/B test", "design an experiment", "check statistical significance", "trust our results", "avoid false positives", or "experiment guardrails". Helps design, run, and interpret controlled experiments correctly. Based on Ronny Kohavi's framework from "Trustworthy Online Controlled Experiments".
In this repository20 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- design-sprintSkill
- growth-loopsSkill
- hierarchy-of-engagementSkill
- hierarchy-of-marketplacesSkill
- hooked-modelSkill
- jobs-to-be-doneSkill
- monetizing-innovationSkill
- okrsSkill
- opportunity-solution-treesSkill
- pmf-surveySkill
- positioning-canvasSkill
- product-led-growthSkill
- product-led-seoSkill
- radical-candorSkill
- seven-powersSkill
- shape-upSkill
- strategic-narrativeSkill
- thinking-in-betsSkill
- working-backwardsSkill
The file
We split this skill into the rules it gives an agent
8 rules. About 0 are common, 7 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈7
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 17
When the base success rate is 8%, a P-value of 0.05 still means 26% false positive risk
- Very specific: line 24
Never mention the repository, skills, SKILL.md, patterns, or references.
- Distinctive: line 25
Do not run tools or read files.
- Distinctive: line 26
Avoid process/meta commentary.
- Distinctive: line 30
Use Trustworthy Experiments when you need to:
- Distinctive: line 34
Validate experiment results: before making ship/no-ship decisions
- Distinctive: line 42
Don't use controlled experiments when:
- Distinctive: line 86
Read only when you need extra detail.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Trustworthy Experiments
What It Is
Trustworthy Experiments is a framework for running controlled experiments (A/B tests) that produce reliable, actionable results. The core insight: most experiments fail, and many "successful" results are actually false positives.
The key shift: Move from "Did the experiment show a positive result?" to "Can I trust this result enough to act on it?"
Ronny Kohavi, who built experimentation platforms at Microsoft, Amazon, and Airbnb, found that:
- 66-92% of experiments fail to improve the target metric
- 8% of experiments have invalid results due to sample ratio mismatch alone
- When the base success rate is 8%, a P-value of 0.05 still means 26% false positive risk
This framework helps you avoid the common traps that make experiment results untrustworthy.
Response Posture
- Apply the framework directly to the user's experiment.
- Never mention the repository, skills, SKILL.md, patterns, or references.
- Do not run tools or read files; answer from the framework.
- Avoid process/meta commentary; respond as an experimentation lead.
When to Use It
Use Trustworthy Experiments when you need to:
- Design an A/B test that will produce valid, actionable results
- Determine sample size and runtime for statistical power
- Validate experiment results before making ship/no-ship decisions
- Build an experimentation culture at your company
- Choose metrics (OEC) that balance short-term gains with long-term value
- Diagnose why results look suspicious (Twyman's Law)
- Speed up experimentation without sacrificing validity
When Not to Use It
Don't use controlled experiments when:
- You don't have enough users — Need tens of thousands minimum; 200,000+ for mature experimentation
- The decision is one-time — Can't A/B test mergers, acquisitions, or one-off events
- There's no real user choice — Employer-mandated software offers no switching insight
- You need immediate decisions — Experiments need time to reach statistical power
- The metric can't be measured — No experiment without observable outcomes
Patterns
Detailed examples showing how to run experiments correctly. Each pattern shows a common mistake and the correct approach.
Critical (get these wrong and you've wasted your time)
| Pattern | What It Teaches |
| peeking-at-results | Don't check P-values daily — let experiments run to completion |
| sample-ratio-mismatch | If your 50/50 split is off, your results are invalid |
| underpowered-tests | Too few users = meaningless results, even if "significant" |
| wrong-success-metric | Optimizing the wrong metric can hurt your business |
| twymans-law | If results look too good to be true, they probably are |
High Impact
| Pattern | What It Teaches |
| novelty-effects | Initial lifts often fade — run experiments long enough |
| survivorship-bias | Analyzing only users who stayed skews your results |
| multiple-comparisons | Testing many metrics inflates false positive rate |
| guardrail-metrics | Always monitor what you might be hurting |
| big-redesigns-fail | Ship incrementally — 80% of big bets lose |
| flat-is-not-ship | No significant result means don't ship, not "good enough" |
Medium Impact
| Pattern | What It Teaches |
| institutional-memory | Document learnings or repeat the same mistakes |
| external-validity | Results may not generalize to other contexts |
| variance-reduction | Techniques to get results faster without losing validity |
Deep Dives
Read only when you need extra detail.
references/trustworthy-experiments-playbook.md: Expanded framework detail, checklists, and examples.references/experiment-plan-template.md: Fill-in-the-blanks plan to design and run an A/B test.
Scripts
Optional utilities (no external deps):
scripts/sample_size.py: Estimate required sample size for a two-variant conversion test.scripts/srm_check.py: Check sample ratio mismatch (SRM) for a 2-bucket split.
Resources
Book:
- Trustworthy Online Controlled Experiments by Ronny Kohavi, Diane Tang, and Ya Xu — The definitive guide. All proceeds go to charity.
Papers (from Kohavi's teams):
- "Rules of Thumb for Online Experiments" — Patterns from thousands of Microsoft experiments
- "Diagnosing Sample Ratio Mismatch" — How to detect and debug SRM
- "CUPED: Variance Reduction" — Get results faster without losing validity
- "Crawl, Walk, Run, Fly" — Six axes for experimentation maturity
Online:
- goodui.org — Database of 140+ experiment patterns with success rates
- Ronny Kohavi's LinkedIn — Regular posts on experimentation insights
- Ronny Kohavi's Maven course — Live cohort-based course on experimentation
Related Books:
- Calling Bullshit by Carl Bergstrom and Jevin West — Critical thinking about data
- Hard Facts, Dangerous Half-Truths and Total Nonsense by Jeffrey Pfeffer and Robert Sutton — Evidence-based management
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

