Skip to content
Skills Library
Science & research · Planning

experiment-design-basics

/experiment-design-basics

Design experiments with controls, randomization, confound awareness, and pre-registered analysis. Use when testing a hypothesis empirically and needing the result to actually mean something.

Repository
AI-SKILLS ↗
Licence
MIT
Last repository change
05.09.2026

Assessment and security

90/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content25 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
1
Scripts
0
HTML comments
0
URLs in SKILL.md
0
Deprecation

No signals detected. Repository changed on 05.09.2026, without references to retired models or APIs.

Licence

MIT, open: use and modify while retaining author attribution.

What it does and when to use it

Design experiments with controls, randomization, confound awareness, and pre-registered analysis. Use when testing a hypothesis empirically and needing the result to actually mean something.

Original author description

Design experiments with controls, randomization, confound awareness, and pre-registered analysis. Use when testing a hypothesis empirically and needing the result to actually mean something.

How it works

  1. Method
  2. Boundaries
Original SKILL.md headings · 72 lines, 464 words
SKILL.md preview
---
name: experiment-design-basics
description: Design experiments with controls, randomization, confound awareness, and pre-registered analysis. Use when testing a hypothesis empirically and needing the result to actually mean something.
---

# Experiment design basics

An experiment isolates cause from correlation. Its validity is decided
before any data is collected: what you control, how you assign, what
confounds you accounted for, and whether you decided the analysis in
advance. A poorly designed experiment produces confident, wrong
conclusions that are worse than no experiment.

## Method

1. **Define the causal claim and the measurable outcome.**
   Exactly what causes what, measured how: "adding onboarding
   step X increases 7-day retention" with retention defined
   precisely (see product-metrics, ml-problem-framing's
   target definition). A fuzzy outcome ("improves
   engagement") lets you find success in any result, which
   means the experiment cannot fail and therefore proves
   nothing.
2. **Establish a control.** Compare the treatment against a
   baseline (a control group, a before-period, the current
   version): the difference is the effect. Without a
   control, you cannot separate your intervention from
   everything else that changed (seasonality, other
   releases, the news): the single most common experimental
   failure is no control (see ab-test-design's control
   arm).
3. **Randomize assignment.** Assign subjects to treatment
   and control randomly, so the groups differ only by the
   treatment and not by some pre-existing trait (motivated
   users self-selecting into the new feature would fake an
   effect). Randomization is what turns correlation into
   causation; non-random assignment reintroduces the
   confounds (see train-test-discipline's leakage cousin).
4. **Identify and control confounds.** A confound is a
   variable affecting the outcome that also differs between
   groups: control for known ones (blocking, stratification,
   or including them in analysis), and randomize to handle
   unknown ones (see statistical-inference,
   sampling-and-bias for the rigorous versions). The
   confound you did not think of is why the surprising
   result later evaporates.
5. **Pre-register the analysis.** Decide the primary metric,
   the sample size (see statistical-inference, ab-test-design's
   sizing), and the analysis method before collecting data:
   so you cannot (even unconsciously) fish for a significant
   result among many comparisons (see the peeking and
   p-hacking traps in ab-test-design). Analysis chosen after
   seeing data inflates false positives dramatically.
6. **Account for validity threats.** Internal validity (does
   the design really isolate the cause), external validity
   (does the result generalize beyond this sample and
   setting), and statistical validity (enough power, right
   test): a result strong on one axis and weak on another
   over-claims. State the threats you did not fully control
   so the conclusion is honest about its reach.

## Boundaries

- This is the pragmatic core; rigorous experimental design
  (factorial designs, power analysis, mixed models: see
  statistical-inference, experiment-analysis) goes deeper
  where stakes and publication demand it.
- Not everything can be experimented on (ethics, cost,
  irreversibility); observational methods and natural
  experiments substitute, with weaker causal claims that
  must be stated as such (see fact-checking).
- A well-designed experiment can still be wrong if
  underpowered or if the effect does not replicate; single
  experiments are evidence, not proof (see the replication
  ethic in reading-papers).

Versions

The database has no other skills named experiment-design-basics.

Database snapshot: 13.11.2026 · package version bed9adff9978 (SHA-256 digest of the entire package)

Downloads in the last 30 days: 1 · ranking

Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 100experiment-design
    Design scientific experiments including sample size calculation, randomization, control groups, blinding, and study protocols. Covers RCTs, quasi-experiments, factorial designs, A/B tests, survey design, and observational studies. Use when user asks to design an experiment, ca...
  • 96pre-registered-experiments
    Use when running pre-registered dataset experiments.
  • 90experiment-design-analysis
    Use when a/B tests, scientific trials, product experiments or causal measurement. Design and interpret experiments with valid estimands, randomization and guardrails. Do not use when purely descriptive metrics without a causal comparison.
  • 100experiment-design
    Use when the user wants to design experiments, plan ablation studies, structure baselines, or create incremental evaluation strategies. Triggers on phrases like "design ablation", "plan experiment", "what experiments should I run", "baseline comparison", or "experiment matrix".
  • 100experiment-design
    Design scientific experiments including sample size calculation, randomization, control groups, blinding, and study protocols. Covers RCTs, quasi-experiments, factorial designs, A/B tests, survey design, and observational studies. Use when user asks to design an experiment,…
  • 100experimental-design
    Design rigorous scientific experiments with power analysis and controls. Use when: user needs to plan an experiment, calculate sample sizes, or set up controls. NOT for: running experiments or analyzing collected data.

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.