Skill Tracer
Skills › Scientific Agent Skills › hypothesis-generation › experimental_design_patterns.md

experimental_design_patterns.md

301 lines · skills/hypothesis-generation/references/experimental_design_patterns.md at 5f2bc03

Open on GitHub
1# Design Patterns for Discriminating Tests
2

Design Patterns for Discriminating Tests

Raw lines 1 to 2
3## Design starts from the prediction
4
5For each test, link:
6
7`candidate → mechanism → prediction → observable → operationalization → design → analysis → interpretation`
8
9Choose the design that can distinguish candidates under realistic uncertainty. Do not select a design merely because it is familiar or available.

Design starts from the prediction

For each test, link:

candidate → mechanism → prediction → observable → operationalization → design → analysis → interpretation

Choose the design that can distinguish candidates under realistic uncertainty. Do not select a design merely because it is familiar or available.

Raw lines 3 to 10
11## NIH-aligned rigor questions
13Where applicable, address:
15- rigor of the prior research forming the scientific premise;
16- unbiased and well-controlled design;
17- relevant biological variables such as sex, age, weight, or health condition;
18- authentication and validity of key biological/chemical resources;
19- transparent methods, analysis, interpretation, and reporting.
21Apply only the elements relevant to the science and explain omissions.

NIH-aligned rigor questions

Where applicable, address:

  • rigor of the prior research forming the scientific premise;
  • unbiased and well-controlled design;
  • relevant biological variables such as sex, age, weight, or health condition;
  • authentication and validity of key biological/chemical resources;
  • transparent methods, analysis, interpretation, and reporting.

Apply only the elements relevant to the science and explain omissions.

Raw lines 11 to 22
23## Core design record
25Every design should state:
27- study system and target population;
28- experimental/observational unit and analysis unit;
29- sampling frame and recruitment/selection;
30- interventions/exposures and comparator versions;
31- allocation, randomization, concealment, and masking;
32- outcomes, timing, measurement IDs, and quality control;
33- positive, negative, vehicle/sham, procedural, or reference controls as applicable;
34- inclusion, exclusion, attrition, and stopping;
35- sample-size, precision, or information rationale;
36- analysis IDs and estimands;
37- safety, ethics, feasibility, data, and regulatory gates;
38- replication, transport, and external-validation plan.

Core design record

Every design should state:

  • study system and target population;
  • experimental/observational unit and analysis unit;
  • sampling frame and recruitment/selection;
  • interventions/exposures and comparator versions;
  • allocation, randomization, concealment, and masking;
  • outcomes, timing, measurement IDs, and quality control;
  • positive, negative, vehicle/sham, procedural, or reference controls as applicable;
  • inclusion, exclusion, attrition, and stopping;
  • sample-size, precision, or information rationale;
  • analysis IDs and estimands;
  • safety, ethics, feasibility, data, and regulatory gates;
  • replication, transport, and external-validation plan.
Raw lines 23 to 39
40## Experimental designs

Experimental designs

Raw lines 40 to 41
42### Randomized intervention
44Useful for causal contrasts when intervention, allocation, and ethics permit.
46Check:
48- allocation sequence and concealment;
49- intervention versions, adherence, contamination, and co-interventions;
50- masking of participants, providers, outcome assessors, and analysts where feasible;
51- primary estimand and intercurrent events;
52- intention-to-treat or other analysis population aligned to the estimand;
53- harms, stopping, missing outcomes, and protocol deviations.
55Randomization does not solve measurement bias, nonadherence, post-randomization selection, interference, or poor external validity.

Randomized intervention

Useful for causal contrasts when intervention, allocation, and ethics permit.

Check:

  • allocation sequence and concealment;
  • intervention versions, adherence, contamination, and co-interventions;
  • masking of participants, providers, outcome assessors, and analysts where feasible;
  • primary estimand and intercurrent events;
  • intention-to-treat or other analysis population aligned to the estimand;
  • harms, stopping, missing outcomes, and protocol deviations.

Randomization does not solve measurement bias, nonadherence, post-randomization selection, interference, or poor external validity.

Raw lines 42 to 56
57### Factorial design
59Useful for multiple interventions and interactions.
61Check:
63- scientific meaning and scale of interaction;
64- power/precision for interactions, not only main effects;
65- compatibility and safety of combined conditions;
66- multiplicity and hierarchy;
67- whether sparse combinations undermine interpretation.

Factorial design

Useful for multiple interventions and interactions.

Check:

  • scientific meaning and scale of interaction;
  • power/precision for interactions, not only main effects;
  • compatibility and safety of combined conditions;
  • multiplicity and hierarchy;
  • whether sparse combinations undermine interpretation.
Raw lines 57 to 68
69### Within-unit or crossover design
71Useful when effects are reversible and carryover can be controlled.
73Check:
75- period and sequence effects;
76- washout rationale;
77- time trends and learning;
78- missing periods;
79- whether the condition is stable and intervention reversible.

Within-unit or crossover design

Useful when effects are reversible and carryover can be controlled.

Check:

  • period and sequence effects;
  • washout rationale;
  • time trends and learning;
  • missing periods;
  • whether the condition is stable and intervention reversible.
Raw lines 69 to 80
81### Perturbation and rescue
83Useful for mechanistic candidates when ethically and technically appropriate.
85Check:
87- perturbation specificity and off-target effects;
88- manipulation check;
89- rescue interpretation and overexpression artifacts;
90- temporal order;
91- orthogonal perturbations and measurements;
92- relevant negative and positive controls.
94A rescue can still be explained by compensatory or non-specific effects.

Perturbation and rescue

Useful for mechanistic candidates when ethically and technically appropriate.

Check:

  • perturbation specificity and off-target effects;
  • manipulation check;
  • rescue interpretation and overexpression artifacts;
  • temporal order;
  • orthogonal perturbations and measurements;
  • relevant negative and positive controls.

A rescue can still be explained by compensatory or non-specific effects.

Raw lines 81 to 95
96### Time-course
98Useful when candidates predict different ordering or dynamics.
100Check:
102- sampling times justified by expected process;
103- independent versus repeated units;
104- baseline and pre-trend;
105- measurement stability across time;
106- multiple looks and timepoint multiplicity;
107- lag, feedback, and reverse causation.

Time-course

Useful when candidates predict different ordering or dynamics.

Check:

  • sampling times justified by expected process;
  • independent versus repeated units;
  • baseline and pre-trend;
  • measurement stability across time;
  • multiple looks and timepoint multiplicity;
  • lag, feedback, and reverse causation.
Raw lines 96 to 108
109## Observational designs

Observational designs

Raw lines 109 to 110
111### Cross-sectional
113Can estimate prevalence and associations at a defined time. It usually cannot establish temporal direction. Explicitly consider selection, reverse causation, survival/prevalence bias, and common-method measurement.

Cross-sectional

Can estimate prevalence and associations at a defined time. It usually cannot establish temporal direction. Explicitly consider selection, reverse causation, survival/prevalence bias, and common-method measurement.

Raw lines 111 to 114
115### Cohort/longitudinal
117Can establish measured temporal ordering and incidence. It does not eliminate confounding.
119Check:
121- time zero and eligibility;
122- exposure updates and time-varying confounding;
123- loss to follow-up and informative censoring;
124- competing events;
125- immortal-time and delayed-entry risks;
126- outcome ascertainment changes.

Cohort/longitudinal

Can establish measured temporal ordering and incidence. It does not eliminate confounding.

Check:

  • time zero and eligibility;
  • exposure updates and time-varying confounding;
  • loss to follow-up and informative censoring;
  • competing events;
  • immortal-time and delayed-entry risks;
  • outcome ascertainment changes.
Raw lines 115 to 127
128### Case-control
130Efficient for some rare outcomes.
132Check:
134- source population and control sampling;
135- matching implications;
136- exposure measurement and recall;
137- selection mechanisms;
138- correct effect measure and sampling analysis.

Case-control

Efficient for some rare outcomes.

Check:

  • source population and control sampling;
  • matching implications;
  • exposure measurement and recall;
  • selection mechanisms;
  • correct effect measure and sampling analysis.
Raw lines 128 to 139
140### Natural/quasi-experimental
142Can strengthen causal identification when an assignment mechanism or discontinuity is credible.
144Check:
146- assignment mechanism and manipulation;
147- continuity, parallel trends, exclusion, or instrument assumptions as applicable;
148- anticipation and spillovers;
149- bandwidth/window choices;
150- placebo/negative-control tests;
151- sensitivity to specification and clustering.
153The design label alone does not establish identification.

Natural/quasi-experimental

Can strengthen causal identification when an assignment mechanism or discontinuity is credible.

Check:

  • assignment mechanism and manipulation;
  • continuity, parallel trends, exclusion, or instrument assumptions as applicable;
  • anticipation and spillovers;
  • bandwidth/window choices;
  • placebo/negative-control tests;
  • sensitivity to specification and clustering.

The design label alone does not establish identification.

Raw lines 140 to 154
155## Computational and theoretical designs

Computational and theoretical designs

Raw lines 155 to 156
157### Simulation
159Use to test implications of assumptions, estimator behavior, or model dynamics.
161Record:
163- data-generating process and parameter ranges;
164- rationale for scenarios;
165- seeds and software versions;
166- performance targets and uncertainty;
167- failure cases and sensitivity;
168- separation between simulated truth and empirical validity.
170Simulation can show consequences within a model, not that the model describes nature.

Simulation

Use to test implications of assumptions, estimator behavior, or model dynamics.

Record:

  • data-generating process and parameter ranges;
  • rationale for scenarios;
  • seeds and software versions;
  • performance targets and uncertainty;
  • failure cases and sensitivity;
  • separation between simulated truth and empirical validity.

Simulation can show consequences within a model, not that the model describes nature.

Raw lines 157 to 171
172### Predictive model evaluation
174Separate prediction from causation.
176Check:
178- target population, outcome, time origin, and horizon;
179- leakage and preprocessing;
180- train/tune/test independence;
181- calibration and discrimination;
182- uncertainty and subgroup performance;
183- temporal/geographic/external validation;
184- dataset shift and update policy.

Predictive model evaluation

Separate prediction from causation.

Check:

  • target population, outcome, time origin, and horizon;
  • leakage and preprocessing;
  • train/tune/test independence;
  • calibration and discrimination;
  • uncertainty and subgroup performance;
  • temporal/geographic/external validation;
  • dataset shift and update policy.
Raw lines 172 to 185
186### Secondary-data analysis
188Record provenance, data-generating process, inclusion, missingness, transformations, version, and prior analysis exposure. Avoid using the same data to generate and confirm a hypothesis without transparent separation or independent validation.

Secondary-data analysis

Record provenance, data-generating process, inclusion, missingness, transformations, version, and prior analysis exposure. Avoid using the same data to generate and confirm a hypothesis without transparent separation or independent validation.

Raw lines 186 to 189
190## Controls
192### Positive control
194A condition expected to produce a known response. It checks whether the system and measurement can detect a relevant effect.

Positive control

A condition expected to produce a known response. It checks whether the system and measurement can detect a relevant effect.

Raw lines 192 to 195
196### Procedural control
198Matches handling, timing, delivery, or processing without the target active component.

Procedural control

Matches handling, timing, delivery, or processing without the target active component.

Raw lines 196 to 199
200### Negative control
202Should not operate through the target mechanism but should share relevant bias pathways. State assumptions and failure interpretation.

Negative control

Should not operate through the target mechanism but should share relevant bias pathways. State assumptions and failure interpretation.

Raw lines 200 to 203
204### Null comparator
206A comparator representing no intervention or no difference may be useful, but it is not equivalent to a negative control and may not isolate placebo, handling, expectancy, or background trends.

Null comparator

A comparator representing no intervention or no difference may be useful, but it is not equivalent to a negative control and may not isolate placebo, handling, expectancy, or background trends.

Raw lines 204 to 207
208## Measurement validity
210Before collecting target outcomes:
212- define constructs and proxies;
213- verify instrument validity in the target context;
214- assess reliability/repeatability;
215- calibrate and authenticate resources;
216- prespecify detection limits and quality failures;
217- plan masking and standardized acquisition;
218- define missing/invalid values;
219- test cross-site, cross-device, cross-group, or longitudinal comparability where relevant.
221A precise measure can be precisely wrong. Technical replicates do not replace independent biological, participant, site, or experimental units.

Measurement validity

Before collecting target outcomes:

  • define constructs and proxies;
  • verify instrument validity in the target context;
  • assess reliability/repeatability;
  • calibrate and authenticate resources;
  • prespecify detection limits and quality failures;
  • plan masking and standardized acquisition;
  • define missing/invalid values;
  • test cross-site, cross-device, cross-group, or longitudinal comparability where relevant.

A precise measure can be precisely wrong. Technical replicates do not replace independent biological, participant, site, or experimental units.

Raw lines 208 to 222
223## Sample size and precision
225Do not use universal minima.
227Base planning on:
229- primary estimand and effect/precision target;
230- expected variability and dependence;
231- allocation ratio;
232- attrition/missingness;
233- multiplicity or sequential design;
234- model complexity;
235- feasibility and ethical burden;
236- uncertainty in planning values.
238Report assumptions and sensitivity to them. Pilot data may be too unstable for definitive effect-size planning; use external evidence, conservative ranges, or precision-based goals where appropriate.

Sample size and precision

Do not use universal minima.

Base planning on:

  • primary estimand and effect/precision target;
  • expected variability and dependence;
  • allocation ratio;
  • attrition/missingness;
  • multiplicity or sequential design;
  • model complexity;
  • feasibility and ethical burden;
  • uncertainty in planning values.

Report assumptions and sensitivity to them. Pilot data may be too unstable for definitive effect-size planning; use external evidence, conservative ranges, or precision-based goals where appropriate.

Raw lines 223 to 239
240## Multiplicity
242Inventory:
244- candidate hypotheses;
245- outcomes and timepoints;
246- subgroups and interactions;
247- model specifications and transformations;
248- interim looks and stopping;
249- repeated datasets or cohorts.
251Prespecify a strategy appropriate to the inferential goal, such as:
253- family-wise error control;
254- false-discovery-rate control;
255- hierarchical/gatekeeping testing;
256- multilevel estimation;
257- clearly labeled exploratory analysis without confirmatory claims.
259Do not report only favorable analyses. Threshold crossing is not a quality score or probability that a candidate is true.

Multiplicity

Inventory:

  • candidate hypotheses;
  • outcomes and timepoints;
  • subgroups and interactions;
  • model specifications and transformations;
  • interim looks and stopping;
  • repeated datasets or cohorts.

Prespecify a strategy appropriate to the inferential goal, such as:

  • family-wise error control;
  • false-discovery-rate control;
  • hierarchical/gatekeeping testing;
  • multilevel estimation;
  • clearly labeled exploratory analysis without confirmatory claims.

Do not report only favorable analyses. Threshold crossing is not a quality score or probability that a candidate is true.

Raw lines 240 to 260
261## Missing data and deviations
263Define:
265- missingness by variable, time, and group;
266- reasons and data-collection process;
267- primary handling;
268- assumptions;
269- sensitivity analyses;
270- protocol and analysis deviations.
272Complete-case analysis is not automatically unbiased. Record deviations without overwriting the original plan.

Missing data and deviations

Define:

  • missingness by variable, time, and group;
  • reasons and data-collection process;
  • primary handling;
  • assumptions;
  • sensitivity analyses;
  • protocol and analysis deviations.

Complete-case analysis is not automatically unbiased. Record deviations without overwriting the original plan.

Raw lines 261 to 273
274## Replication and open materials
276Following the National Academies terminology:
278- reproducibility uses the same data/code/conditions;
279- replicability collects new data to address the same question.
281Plan:
283- code, environment, seeds, and workflow capture;
284- provenance and versioning;
285- shareable materials and justified restrictions;
286- independent replication;
287- boundary-condition and transport tests;
288- reporting of null and contrary results.
290Open sharing remains subject to consent, privacy, community governance, intellectual property, biosecurity, and other controls.

Replication and open materials

Following the National Academies terminology:

  • reproducibility uses the same data/code/conditions;
  • replicability collects new data to address the same question.

Plan:

  • code, environment, seeds, and workflow capture;
  • provenance and versioning;
  • shareable materials and justified restrictions;
  • independent replication;
  • boundary-condition and transport tests;
  • reporting of null and contrary results.

Open sharing remains subject to consent, privacy, community governance, intellectual property, biosecurity, and other controls.

Raw lines 274 to 291
292## Intervention reporting
294For randomized intervention work:
296- use SPIRIT 2025 and its explanation/elaboration for protocol completeness;
297- use CONSORT 2025 and its explanation/elaboration for result reporting;
298- include trial registration, protocol and statistical-analysis-plan access, outcomes, harms, intervention/comparator details, analysis populations, missing data, and important changes;
299- use applicable extensions.
301These are reporting guidelines. They do not replace ethics review, trial registration rules, statistical expertise, or regulatory requirements.

Intervention reporting

For randomized intervention work:

  • use SPIRIT 2025 and its explanation/elaboration for protocol completeness;
  • use CONSORT 2025 and its explanation/elaboration for result reporting;
  • include trial registration, protocol and statistical-analysis-plan access, outcomes, harms, intervention/comparator details, analysis populations, missing data, and important changes;
  • use applicable extensions.

These are reporting guidelines. They do not replace ethics review, trial registration rules, statistical expertise, or regulatory requirements.

Raw lines 292 to 301