[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7ECBYPBZPYWSAD9JJW7GQGQ":3,"skill-same:01M7ECBYPBZPYWSAD9JJW7GQGQ":80},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":30,"commitSha":31,"skillDirectory":32,"forksCount":33,"repositoryHtmlUrl":34,"repositoryHomepageUrl":6,"ownerHtmlUrl":35,"ownerBlogUrl":6,"ownerDescription":36,"updatedAt":37,"install":38,"resources":51},"01M7ECBYPBZPYWSAD9JJW7GQGQ","experimental-design",null,"Design experiments and studies BEFORE data is collected — choosing a design, randomizing, blocking, and laying out treatment combinations so results are interpretable. Use whenever someone is planning a study, asks how to assign subjects\u002Fsamples to groups, mentions randomization, blocking, stratification, controls, factorial or fractional-factorial designs, design of experiments (DOE), screening many factors, response-surface optimization, crossover or repeated-measures or split-plot designs, cluster\u002Fgroup randomization, Latin squares, plate layouts, batch\u002Frun-order effects, replication vs. pseudoreplication, or sequential\u002Fadaptive\u002Fgroup-sequential designs. Trigger even for informal phrasings like \"how should I set up this experiment\", \"how do I avoid confounding\", \"what's the best way to test these 6 factors\", or \"assign these mice to conditions\". For computing the sample size or power once the design is chosen, use statistical-power; for analyzing data already collected, use statistical-analysis.","sanjeevafk\u002Fagent-skills","sanjeevafk","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F230678117?v=4","01M7C540EFY46ETG1NNWKS5X3Q","Sanjeev","01M7C540F366J5C1D587BMKH9Q",0,"MIT","https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fcollections\u002Fscientific-skills\u002Fexperimental-design\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: experimental-design\ndescription: Design experiments and studies BEFORE data is collected — choosing a design, randomizing, blocking, and laying out treatment combinations so results are interpretable. Use whenever someone is planning a study, asks how to assign subjects\u002Fsamples to groups, mentions randomization, blocking, stratification, controls, factorial or fractional-factorial designs, design of experiments (DOE), screening many factors, response-surface optimization, crossover or repeated-measures or split-plot designs, cluster\u002Fgroup randomization, Latin squares, plate layouts, batch\u002Frun-order effects, replication vs. pseudoreplication, or sequential\u002Fadaptive\u002Fgroup-sequential designs. Trigger even for informal phrasings like \"how should I set up this experiment\", \"how do I avoid confounding\", \"what's the best way to test these 6 factors\", or \"assign these mice to conditions\". For computing the sample size or power once the design is chosen, use statistical-power; for analyzing data already collected, use statistical-analysis.\nallowed-tools: Read Write Edit Bash\ncompatibility: Requires Python >=3.10. Scripts use numpy, pandas, and pyDOE3 (DOE matrices). Install with uv as shown below.\nlicense: MIT license\nmetadata:\n  version: \"1.1\"\n  skill-author: K-Dense Inc.\n---\n\n# Experimental Design\n\n## Overview\n\nThe design of a study — how units are assigned to conditions, what is held constant, what is varied, and in what structure — determines what questions the data can answer. No analysis can rescue a confounded or pseudoreplicated design after the fact. This skill is about the decisions made *before* data collection: picking a design that isolates the effect of interest, randomizing to license causal claims, blocking to remove known nuisance variation, and structuring multi-factor experiments so effects are estimable rather than tangled together.\n\nThe three ideas behind almost every good design (Fisher's principles):\n- **Randomization** — assign treatments at random so that confounders, known and unknown, are balanced in expectation. This is what turns a comparison into a causal claim.\n- **Replication** — independent repetition at the right level, so you can estimate variability and your effects aren't artifacts of a single unit. The most common fatal error is **pseudoreplication**: counting repeated measurements on the same unit as independent replicates.\n- **Blocking \u002F local control** — group similar units (by batch, day, site, litter) and randomize within blocks, removing that nuisance variation from the error term instead of letting it inflate noise.\n\nThis skill helps you choose among design types, generate the actual randomization or DOE layout (with reproducible scripts), and avoid the structural mistakes that make data uninterpretable.\n\n## When to Use This Skill\n\n- Planning any comparative experiment or trial and deciding how to assign units\n- Randomizing subjects\u002Fsamples to arms (simple, blocked, stratified, or cluster)\n- Removing nuisance variation by blocking or stratification\n- Designing multi-factor experiments: full or fractional factorial, screening designs\n- Optimizing a response over continuous factors (response-surface designs)\n- Within-subject \u002F repeated-measures, crossover, split-plot, or Latin-square designs\n- Cluster- or group-randomized designs (sites, clinics, classrooms, litters)\n- Deciding the number and level of replicates and avoiding pseudoreplication\n- Sequential, group-sequential, or adaptive designs with interim analyses\n- Laying out plates\u002Fbatches and randomizing run order to defeat drift\n\n## Installation\n\n```bash\nuv pip install \"numpy>=1.26\" \"pandas>=2.0\" pyDOE3\n```\n\n`pyDOE3` is the maintained successor to pyDOE\u002FpyDOE2 and supplies factorial,\nfractional-factorial, Plackett-Burman, central-composite, Box-Behnken, and\nLatin-hypercube generators. The bundled scripts wrap it to return designs in real\nfactor units with named columns and randomized run order.\n\n---\n\n## Choosing a design\n\nStart from the question and the structure of your units, not from a favorite design.\n\n```\nWhat are you trying to learn?\n│\n├─ Compare a few predefined conditions (A vs B vs C)?\n│   ├─ Units independent, possibly with a known nuisance factor (day, batch, site)?\n│   │     → Completely randomized (no nuisance) or RANDOMIZED BLOCK design.\n│   ├─ Each unit can receive every condition in sequence (washout possible)?\n│   │     → CROSSOVER \u002F repeated-measures design (more power, watch carry-over).\n│   └─ You can only randomize groups, not individuals (schools, clinics)?\n│         → CLUSTER-randomized design (analyze at the cluster level; see pseudoreplication).\n│\n├─ Screen MANY factors (5+) to find the few that matter?\n│     → FRACTIONAL FACTORIAL or PLACKETT-BURMAN screening design.\n│\n├─ Quantify main effects AND interactions among a handful of factors?\n│     → FULL 2^k FACTORIAL design.\n│\n├─ Find the settings that OPTIMIZE a response (curvature matters)?\n│     → RESPONSE-SURFACE design: central composite or Box-Behnken.\n│\n└─ Explore a simulation\u002Fcomputer model over a continuous space?\n      → SPACE-FILLING design: Latin hypercube.\n```\n\nDetailed guidance per branch:\n- **Randomization, blocking, stratification, controls** → `references\u002Frandomization_and_blocking.md`\n- **Factorial, fractional-factorial, screening, response-surface, DOE concepts (aliasing, resolution)** → `references\u002Ffactorial_and_doe.md`\n- **Crossover, repeated-measures, split-plot, Latin-square, cluster, nested designs** → `references\u002Fdesign_types.md`\n- **Sequential, group-sequential, and adaptive designs (interim analyses)** → `references\u002Fsequential_and_adaptive.md`\n\n---\n\n## Generating the design\n\nTwo scripts produce ready-to-use, reproducible layouts. Run them from the skill's\n`scripts\u002F` directory or add it to `sys.path`. Everything is seeded so the exact\nschedule can be archived and regenerated — a requirement for trial registration\nand good lab practice.\n\n### Randomization \u002F allocation schedules — `scripts\u002Frandomization.py`\n\n```python\nfrom randomization import (\n    simple_randomization, block_randomization,\n    stratified_block_randomization, cluster_randomization,\n    assign_factorial_runs, arm_balance,\n)\n\n# Permuted blocks keep the arms balanced throughout enrollment (use for n \u003C ~100\n# or sequential intake — simple randomization can drift out of balance with small n)\nsched = block_randomization(n=60, arms=[\"treatment\", \"control\"], seed=42)\n\n# Balance a prognostic variable across arms by randomizing within each stratum\nsched = stratified_block_randomization({\"siteA\": 30, \"siteB\": 30},\n                                       arms=[\"drug\", \"placebo\"], ratio=(2, 1), seed=42)\n\n# Randomize whole clusters, not individuals (the cluster is the unit)\nsched = cluster_randomization([\"clinic1\", \"clinic2\", \"clinic3\", \"clinic4\"], seed=42)\n\narm_balance(sched)            # sanity-check the counts per arm\nsched.to_csv(\"allocation_schedule.csv\", index=False)\n```\n\nChoosing among them: **simple** is fine for large n but can produce imbalance with\nsmall n; **block** guarantees balance throughout; **stratified block** additionally\nbalances a known prognostic factor; **cluster** is mandatory when the intervention\nis delivered at a group level. See `references\u002Frandomization_and_blocking.md`.\n\n### DOE matrices — `scripts\u002Fdoe_designs.py`\n\n```python\nfrom doe_designs import (\n    full_factorial, two_level_factorial, fractional_factorial,\n    plackett_burman, central_composite, box_behnken, latin_hypercube,\n)\n\n# Factors as real-world (low, high) ranges -> design comes back in real units\nfactors = {\"temp_C\": (20, 60), \"conc_mM\": (1, 10), \"pH\": (6, 8)}\n\n# Full 2^3: all main effects + all interactions (8 runs), run order randomized\ndesign = two_level_factorial(factors, seed=42)\n\n# Screen 7 factors cheaply (main effects only)\nmany = {f\"factor_{i}\": (0, 1) for i in range(7)}\ndesign = plackett_burman(many, seed=42)\n\n# Optimize over 2 factors with curvature (response-surface)\ndesign = central_composite({\"temp_C\": (20, 60), \"conc_mM\": (1, 10)}, seed=42)\n\ndesign.to_csv(\"experimental_runs.csv\", index=False)\n```\n\nRun order is randomized by default so factors aren't confounded with time\u002Fdrift\n(machine warm-up, reagent aging). See `references\u002Ffactorial_and_doe.md` for picking\ngenerators, reading the alias structure, and choosing resolution.\n\n---\n\n## The mistakes that ruin studies\n\nThese are structural — they can't be fixed in analysis, only in design.\n\n1. **Pseudoreplication.** Treating repeated measurements of one unit as independent\n   replicates: 3 mice with 100 cells each is n = 3 (mice), not n = 300 (cells), for\n   any treatment applied to the mouse. The replicate must be at the level the\n   treatment is randomized. This single error invalidates a large share of published\n   experiments. Randomize and replicate at the right level; analyze with the nesting\n   respected (mixed model). See `references\u002Fdesign_types.md`.\n2. **Confounding by a nuisance variable.** Running all treatment samples on Monday\n   and all controls on Tuesday confounds treatment with day. Randomize across, or\n   block on, every nuisance factor you can name (batch, day, plate, technician,\n   instrument, position).\n3. **No or broken randomization.** Convenience assignment (first-come → treatment)\n   lets confounders sneak in. Use a seeded schedule and follow it.\n4. **No proper control.** Without a concurrent control (and, where relevant, a\n   vehicle\u002Fsham and blinding), you can't separate the treatment effect from time,\n   placebo, or handling effects.\n5. **Batch effects mistaken for biology.** In omics especially, process samples in a\n   randomized\u002Fblocked order across batches; never let batch align with the condition.\n6. **Edge\u002Fposition effects on plates.** Evaporation and thermal gradients make plate\n   edges differ. Randomize or block sample positions; don't put all controls in\n   column 1.\n7. **Aliasing ignored in fractional designs.** A low-resolution fractional factorial\n   confounds main effects with interactions; know your alias structure before\n   concluding a factor \"has no effect.\"\n8. **Optimizing without curvature.** A two-level factorial can't detect a curved\n   response; you'll miss an interior optimum. Use a response-surface design.\n\n---\n\n## Workflow\n\n1. **State the question, the unit, and the response.** What is randomized? What is\n   measured? At what level is a true independent replicate? This determines everything.\n2. **List nuisance factors** (batch, day, site, operator, position) — plan to block,\n   stratify, or randomize across each.\n3. **Pick the design** using the decision tree and reference files.\n4. **Decide replication** at the correct level (and get n from the\n   **statistical-power** skill for the chosen design).\n5. **Generate the layout** with `randomization.py` \u002F `doe_designs.py`, seeded.\n6. **Randomize run\u002Fprocessing order** and plate\u002Fbatch positions.\n7. **Document** the design, seed, and schedule (pre-register if possible) so the\n   analysis is confirmatory and the layout is auditable.\n8. **Match the analysis to the design** — blocks, strata, clusters, and nesting must\n   appear in the model (hand off to **statistical-analysis** \u002F **statsmodels**).\n\n---\n\n## Resources\n\n### Scripts\n- `scripts\u002Frandomization.py` — seeded allocation schedules: `simple_randomization`,\n  `block_randomization`, `stratified_block_randomization`, `cluster_randomization`,\n  `assign_factorial_runs`, `arm_balance`.\n- `scripts\u002Fdoe_designs.py` — DOE matrices in real units: `full_factorial`,\n  `two_level_factorial`, `fractional_factorial`, `plackett_burman`,\n  `central_composite`, `box_behnken`, `latin_hypercube`.\n\n### References\n- `references\u002Frandomization_and_blocking.md` — randomization methods, blocking,\n  stratification, controls, blinding, batch\u002Fplate layout.\n- `references\u002Ffactorial_and_doe.md` — factorial and fractional designs, resolution\n  and aliasing, screening, and response-surface methodology.\n- `references\u002Fdesign_types.md` — completely randomized, randomized block, crossover,\n  repeated-measures, split-plot, Latin-square, cluster, and nested designs; the\n  pseudoreplication problem in depth.\n- `references\u002Fsequential_and_adaptive.md` — group-sequential designs, alpha spending,\n  interim stopping, and adaptive sample-size re-estimation.\n\n### Related skills\n- **statistical-power** — required sample size \u002F power for the design you've chosen.\n- **statistical-analysis** — running and reporting the analysis after collection.\n- **statsmodels** \u002F **pymc** — fitting the models the design implies.\n\n### Key references\n- Fisher, R. A. (1935). *The Design of Experiments*.\n- Montgomery, D. C. (2019). *Design and Analysis of Experiments* (10th ed.).\n- Hurlbert, S. H. (1984). Pseudoreplication and the design of ecological field\n  experiments. *Ecological Monographs*, 54(2), 187–211.\n- Lazic, S. E. (2016). *Experimental Design for Laboratory Biologists*.\n","# Experimental Design\n\n## Overview\n\nThe design of a study — how units are assigned to conditions, what is held constant, what is varied, and in what structure — determines what questions the data can answer. No analysis can rescue a confounded or pseudoreplicated design after the fact. This skill is about the decisions made *before* data collection: picking a design that isolates the effect of interest, randomizing to license causal claims, blocking to remove known nuisance variation, and structuring multi-factor experiments so effects are estimable rather than tangled together.\n\nThe three ideas behind almost every good design (Fisher's principles):\n- **Randomization** — assign treatments at random so that confounders, known and unknown, are balanced in expectation. This is what turns a comparison into a causal claim.\n- **Replication** — independent repetition at the right level, so you can estimate variability and your effects aren't artifacts of a single unit. The most common fatal error is **pseudoreplication**: counting repeated measurements on the same unit as independent replicates.\n- **Blocking \u002F local control** — group similar units (by batch, day, site, litter) and randomize within blocks, removing that nuisance variation from the error term instead of letting it inflate noise.\n\nThis skill helps you choose among design types, generate the actual randomization or DOE layout (with reproducible scripts), and avoid the structural mistakes that make data uninterpretable.\n\n## When to Use This Skill\n\n- Planning any comparative experiment or trial and deciding how to assign units\n- Randomizing subjects\u002Fsamples to arms (simple, blocked, stratified, or cluster)\n- Removing nuisance variation by blocking or stratification\n- Designing multi-factor experiments: full or fractional factorial, screening designs\n- Optimizing a response over continuous factors (response-surface designs)\n- Within-subject \u002F repeated-measures, crossover, split-plot, or Latin-square designs\n- Cluster- or group-randomized designs (sites, clinics, classrooms, litters)\n- Deciding the number and level of replicates and avoiding pseudoreplication\n- Sequential, group-sequential, or adaptive designs with interim analyses\n- Laying out plates\u002Fbatches and randomizing run order to defeat drift\n\n## Installation\n\n```bash\nuv pip install \"numpy>=1.26\" \"pandas>=2.0\" pyDOE3\n```\n\n`pyDOE3` is the maintained successor to pyDOE\u002FpyDOE2 and supplies factorial,\nfractional-factorial, Plackett-Burman, central-composite, Box-Behnken, and\nLatin-hypercube generators. The bundled scripts wrap it to return designs in real\nfactor units with named columns and randomized run order.\n\n---\n\n## Choosing a design\n\nStart from the question and the structure of your units, not from a favorite design.\n\n```\nWhat are you trying to learn?\n│\n├─ Compare a few predefined conditions (A vs B vs C)?\n│   ├─ Units independent, possibly with a known nuisance factor (day, batch, site)?\n│   │     → Completely randomized (no nuisance) or RANDOMIZED BLOCK design.\n│   ├─ Each unit can receive every condition in sequence (washout possible)?\n│   │     → CROSSOVER \u002F repeated-measures design (more power, watch carry-over).\n│   └─ You can only randomize groups, not individuals (schools, clinics)?\n│         → CLUSTER-randomized design (analyze at the cluster level; see pseudoreplication).\n│\n├─ Screen MANY factors (5+) to find the few that matter?\n│     → FRACTIONAL FACTORIAL or PLACKETT-BURMAN screening design.\n│\n├─ Quantify main effects AND interactions among a handful of factors?\n│     → FULL 2^k FACTORIAL design.\n│\n├─ Find the settings that OPTIMIZE a response (curvature matters)?\n│     → RESPONSE-SURFACE design: central composite or Box-Behnken.\n│\n└─ Explore a simulation\u002Fcomputer model over a continuous space?\n      → SPACE-FILLING design: Latin hypercube.\n```\n\nDetailed guidance per branch:\n- **Randomization, blocking, stratification, controls** → `references\u002Frandomization_and_blocking.md`\n- **Factorial, fractional-factorial, screening, response-surface, DOE concepts (aliasing, resolution)** → `references\u002Ffactorial_and_doe.md`\n- **Crossover, repeated-measures, split-plot, Latin-square, cluster, nested designs** → `references\u002Fdesign_types.md`\n- **Sequential, group-sequential, and adaptive designs (interim analyses)** → `references\u002Fsequential_and_adaptive.md`\n\n---\n\n## Generating the design\n\nTwo scripts produce ready-to-use, reproducible layouts. Run them from the skill's\n`scripts\u002F` directory or add it to `sys.path`. Everything is seeded so the exact\nschedule can be archived and regenerated — a requirement for trial registration\nand good lab practice.\n\n### Randomization \u002F allocation schedules — `scripts\u002Frandomization.py`\n\n```python\nfrom randomization import (\n    simple_randomization, block_randomization,\n    stratified_block_randomization, cluster_randomization,\n    assign_factorial_runs, arm_balance,\n)\n\n# Permuted blocks keep the arms balanced throughout enrollment (use for n \u003C ~100\n# or sequential intake — simple randomization can drift out of balance with small n)\nsched = block_randomization(n=60, arms=[\"treatment\", \"control\"], seed=42)\n\n# Balance a prognostic variable across arms by randomizing within each stratum\nsched = stratified_block_randomization({\"siteA\": 30, \"siteB\": 30},\n                                       arms=[\"drug\", \"placebo\"], ratio=(2, 1), seed=42)\n\n# Randomize whole clusters, not individuals (the cluster is the unit)\nsched = cluster_randomization([\"clinic1\", \"clinic2\", \"clinic3\", \"clinic4\"], seed=42)\n\narm_balance(sched)            # sanity-check the counts per arm\nsched.to_csv(\"allocation_schedule.csv\", index=False)\n```\n\nChoosing among them: **simple** is fine for large n but can produce imbalance with\nsmall n; **block** guarantees balance throughout; **stratified block** additionally\nbalances a known prognostic factor; **cluster** is mandatory when the intervention\nis delivered at a group level. See `references\u002Frandomization_and_blocking.md`.\n\n### DOE matrices — `scripts\u002Fdoe_designs.py`\n\n```python\nfrom doe_designs import (\n    full_factorial, two_level_factorial, fractional_factorial,\n    plackett_burman, central_composite, box_behnken, latin_hypercube,\n)\n\n# Factors as real-world (low, high) ranges -> design comes back in real units\nfactors = {\"temp_C\": (20, 60), \"conc_mM\": (1, 10), \"pH\": (6, 8)}\n\n# Full 2^3: all main effects + all interactions (8 runs), run order randomized\ndesign = two_level_factorial(factors, seed=42)\n\n# Screen 7 factors cheaply (main effects only)\nmany = {f\"factor_{i}\": (0, 1) for i in range(7)}\ndesign = plackett_burman(many, seed=42)\n\n# Optimize over 2 factors with curvature (response-surface)\ndesign = central_composite({\"temp_C\": (20, 60), \"conc_mM\": (1, 10)}, seed=42)\n\ndesign.to_csv(\"experimental_runs.csv\", index=False)\n```\n\nRun order is randomized by default so factors aren't confounded with time\u002Fdrift\n(machine warm-up, reagent aging). See `references\u002Ffactorial_and_doe.md` for picking\ngenerators, reading the alias structure, and choosing resolution.\n\n---\n\n## The mistakes that ruin studies\n\nThese are structural — they can't be fixed in analysis, only in design.\n\n1. **Pseudoreplication.** Treating repeated measurements of one unit as independent\n   replicates: 3 mice with 100 cells each is n = 3 (mice), not n = 300 (cells), for\n   any treatment applied to the mouse. The replicate must be at the level the\n   treatment is randomized. This single error invalidates a large share of published\n   experiments. Randomize and replicate at the right level; analyze with the nesting\n   respected (mixed model). See `references\u002Fdesign_types.md`.\n2. **Confounding by a nuisance variable.** Running all treatment samples on Monday\n   and all controls on Tuesday confounds treatment with day. Randomize across, or\n   block on, every nuisance factor you can name (batch, day, plate, technician,\n   instrument, position).\n3. **No or broken randomization.** Convenience assignment (first-come → treatment)\n   lets confounders sneak in. Use a seeded schedule and follow it.\n4. **No proper control.** Without a concurrent control (and, where relevant, a\n   vehicle\u002Fsham and blinding), you can't separate the treatment effect from time,\n   placebo, or handling effects.\n5. **Batch effects mistaken for biology.** In omics especially, process samples in a\n   randomized\u002Fblocked order across batches; never let batch align with the condition.\n6. **Edge\u002Fposition effects on plates.** Evaporation and thermal gradients make plate\n   edges differ. Randomize or block sample positions; don't put all controls in\n   column 1.\n7. **Aliasing ignored in fractional designs.** A low-resolution fractional factorial\n   confounds main effects with interactions; know your alias structure before\n   concluding a factor \"has no effect.\"\n8. **Optimizing without curvature.** A two-level factorial can't detect a curved\n   response; you'll miss an interior optimum. Use a response-surface design.\n\n---\n\n## Workflow\n\n1. **State the question, the unit, and the response.** What is randomized? What is\n   measured? At what level is a true independent replicate? This determines everything.\n2. **List nuisance factors** (batch, day, site, operator, position) — plan to block,\n   stratify, or randomize across each.\n3. **Pick the design** using the decision tree and reference files.\n4. **Decide replication** at the correct level (and get n from the\n   **statistical-power** skill for the chosen design).\n5. **Generate the layout** with `randomization.py` \u002F `doe_designs.py`, seeded.\n6. **Randomize run\u002Fprocessing order** and plate\u002Fbatch positions.\n7. **Document** the design, seed, and schedule (pre-register if possible) so the\n   analysis is confirmatory and the layout is auditable.\n8. **Match the analysis to the design** — blocks, strata, clusters, and nesting must\n   appear in the model (hand off to **statistical-analysis** \u002F **statsmodels**).\n\n---\n\n## Resources\n\n### Scripts\n- `scripts\u002Frandomization.py` — seeded allocation schedules: `simple_randomization`,\n  `block_randomization`, `stratified_block_randomization`, `cluster_randomization`,\n  `assign_factorial_runs`, `arm_balance`.\n- `scripts\u002Fdoe_designs.py` — DOE matrices in real units: `full_factorial`,\n  `two_level_factorial`, `fractional_factorial`, `plackett_burman`,\n  `central_composite`, `box_behnken`, `latin_hypercube`.\n\n### References\n- `references\u002Frandomization_and_blocking.md` — randomization methods, blocking,\n  stratification, controls, blinding, batch\u002Fplate layout.\n- `references\u002Ffactorial_and_doe.md` — factorial and fractional designs, resolution\n  and aliasing, screening, and response-surface methodology.\n- `references\u002Fdesign_types.md` — completely randomized, randomized block, crossover,\n  repeated-measures, split-plot, Latin-square, cluster, and nested designs; the\n  pseudoreplication problem in depth.\n- `references\u002Fsequential_and_adaptive.md` — group-sequential designs, alpha spending,\n  interim stopping, and adaptive sample-size re-estimation.\n\n### Related skills\n- **statistical-power** — required sample size \u002F power for the design you've chosen.\n- **statistical-analysis** — running and reporting the analysis after collection.\n- **statsmodels** \u002F **pymc** — fitting the models the design implies.\n\n### Key references\n- Fisher, R. A. (1935). *The Design of Experiments*.\n- Montgomery, D. C. (2019). *Design and Analysis of Experiments* (10th ed.).\n- Hurlbert, S. H. (1984). Pseudoreplication and the design of ecological field\n  experiments. *Ecological Monographs*, 54(2), 187–211.\n- Lazic, S. E. (2016). *Experimental Design for Laboratory Biologists*.\n",{"name":5,"license":24,"metadata":25,"description":7,"allowed-tools":28,"compatibility":29},"MIT license",{"version":26,"skill-author":27},"1.1","K-Dense Inc.","Read Write Edit Bash","Requires Python >=3.10. Scripts use numpy, pandas, and pyDOE3 (DOE matrices). Install with uv as shown below.","main","4e084e84eb42fc53e144c89c0f7f48b39c8a4b0f","collections\u002Fscientific-skills\u002Fexperimental-design",1,"https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills","https:\u002F\u002Fgithub.com\u002Fsanjeevafk","First make it work. Then make it right. Then make it fast.","2026-11-14 13:36:16",{"source":8,"skillName":5,"commands":39,"prompt":49,"zipAvailable":50},[40,43,46],{"tool":41,"command":42},"npx","npx skills add sanjeevafk\u002Fagent-skills --skill experimental-design",{"tool":44,"command":45},"bunx","bunx skills add sanjeevafk\u002Fagent-skills --skill experimental-design",{"tool":47,"command":48},"pnpm","pnpm dlx skills add sanjeevafk\u002Fagent-skills --skill experimental-design","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fcollections\u002Fscientific-skills\u002Fexperimental-design\u002FSKILL.md",true,[52,58,62,66,70,76],{"path":53,"resourceType":54,"resourceTypeDesc":55,"sizeBytes":56,"sourceHtmlUrl":57},"references\u002Fdesign_types.md","REFERENCE","参考文档",7323,"https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fcollections\u002Fscientific-skills\u002Fexperimental-design\u002Freferences\u002Fdesign_types.md",{"path":59,"resourceType":54,"resourceTypeDesc":55,"sizeBytes":60,"sourceHtmlUrl":61},"references\u002Ffactorial_and_doe.md",7073,"https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fcollections\u002Fscientific-skills\u002Fexperimental-design\u002Freferences\u002Ffactorial_and_doe.md",{"path":63,"resourceType":54,"resourceTypeDesc":55,"sizeBytes":64,"sourceHtmlUrl":65},"references\u002Frandomization_and_blocking.md",6360,"https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fcollections\u002Fscientific-skills\u002Fexperimental-design\u002Freferences\u002Frandomization_and_blocking.md",{"path":67,"resourceType":54,"resourceTypeDesc":55,"sizeBytes":68,"sourceHtmlUrl":69},"references\u002Fsequential_and_adaptive.md",5488,"https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fcollections\u002Fscientific-skills\u002Fexperimental-design\u002Freferences\u002Fsequential_and_adaptive.md",{"path":71,"resourceType":72,"resourceTypeDesc":73,"sizeBytes":74,"sourceHtmlUrl":75},"scripts\u002Fdoe_designs.py","SCRIPT","脚本",7812,"https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fcollections\u002Fscientific-skills\u002Fexperimental-design\u002Fscripts\u002Fdoe_designs.py",{"path":77,"resourceType":72,"resourceTypeDesc":73,"sizeBytes":78,"sourceHtmlUrl":79},"scripts\u002Frandomization.py",7046,"https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fcollections\u002Fscientific-skills\u002Fexperimental-design\u002Fscripts\u002Frandomization.py",[81,88,96,105,113,120],{"skillNo":82,"name":83,"nameZh":6,"description":84,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":85,"categories":86,"keywords":87,"publishedAt":19},"01M7EFHX67M3KKXT1BXVPA5ADT","zarr-python","Chunked N-D arrays for cloud storage (Zarr-Python 3). Compressed arrays, parallel I\u002FO, S3\u002FGCS via fsspec, NumPy\u002FDask\u002FXarray compatible, for large-scale scientific computing pipelines.","https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fzarr-python\u002FSKILL.md",[],[],{"skillNo":89,"name":90,"nameZh":6,"description":91,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":92,"sourceHtmlUrl":93,"categories":94,"keywords":95,"publishedAt":19},"01M7EFFQGM51TZBGRENXY50ZYM","whiteboard-diagrams","Create accurate, simple, hand-drawn whiteboard diagrams from a user's process, system, architecture, learning workflow, comparison, or causal explanation. Use when the user asks for a scribbly whiteboard visual, educational workflow graphic, hand-drawn explainer, or diagram like the bundled reference; ask one focused clarification question when the subject or relationships are missing, then generate and visually verify the final image.","https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fwhiteboard-diagrams\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fwhiteboard-diagrams\u002FSKILL.md",[],[],{"skillNo":97,"name":98,"nameZh":6,"description":99,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":100,"licenseFileUrl":101,"sourceHtmlUrl":102,"categories":103,"keywords":104,"publishedAt":19},"01M7EFF1CSQNTDMHFK4ZGY6NYK","webapp-testing","Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing browser screenshots, and viewing browser logs.","Apache-2.0","https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fwebapp-testing\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fwebapp-testing\u002FSKILL.md",[],[],{"skillNo":106,"name":107,"nameZh":6,"description":108,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":100,"licenseFileUrl":109,"sourceHtmlUrl":110,"categories":111,"keywords":112,"publishedAt":19},"01M7EFE8106X6C28FT8PA74427","web-artifacts-builder","Suite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web technologies (React, Tailwind CSS, shadcn\u002Fui). Use for complex artifacts requiring state management, routing, or shadcn\u002Fui components - not for simple single-file HTML\u002FJSX artifacts.","https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fweb-artifacts-builder\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fweb-artifacts-builder\u002FSKILL.md",[],[],{"skillNo":114,"name":115,"nameZh":6,"description":116,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":117,"categories":118,"keywords":119,"publishedAt":19},"01M7EFCSNZM9G7ZHS6F127Q71X","verification-loop","A comprehensive verification system for Claude Code sessions.","https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fverification-loop\u002FSKILL.md",[],[],{"skillNo":121,"name":122,"nameZh":6,"description":123,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":124,"sourceHtmlUrl":125,"categories":126,"keywords":127,"publishedAt":19},"01M7EFCE7EZMKPRYDDNKBQ9EEH","vercel-deploy","Deploy applications and websites to Vercel. Use when the user requests deployment actions like \"deploy my app\", \"deploy and give me the link\", \"push this live\", or \"create a preview deployment\".","https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fvercel-deploy\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fvercel-deploy\u002FSKILL.md",[],[]]