experimental-design
Что он делает
Этот инструмент помогает планировать научные эксперименты или исследования. Он подсказывает, как распределить участников или образцы по разным группам, как ввести случайность и как объединять похожие единицы, чтобы результаты были понятными и надежными.
Когда использовать
- ✓Когда вы планируете исследование и решаете, как разделить участников.
- ✓Когда хотите, чтобы результаты были надежными, и избежать распространенных ошибок.
- ✓Когда нужно составить план проверки разных условий или методов лечения.
Ссылка на скилл
https://github.com/K-Dense-AI/scientific-agent-skills/blob/main/skills/experimental-design/SKILL.mdСкопируйте и вставьте её в ваш ИИ (Claude, ChatGPT или Cursor) с просьбой следовать инструкциям.
Как использовать
Самый простой способ: скопируйте сообщение и вставьте его в свой ИИ. Он прочитает скилл и выполнит инструкции.
Готовое сообщение для вставки
Для Claude Code, Codex или Cursor: запустите в папке проекта, и скилл установится.
Скачайте SKILL.md и положите его в папку скиллов вашего агента.
Пример запроса к вашему ИИ
“Я хочу сравнить два препарата. Как разделить 100 пациентов на две группы, чтобы сравнение было честным?”
5 новых скиллов в неделю. 1 минута чтения.
Как это работает
Инструмент опирается на принципы вроде рандомизации, чтобы избежать систематической ошибки, репликации для оценки изменчивости и блокирования для контроля факторов, которые могут влиять на результаты. Он помогает выбрать лучший план до сбора данных.
Технический текст (оригинальный SKILL.md)
Оригинальный текст автора на английском, прямо с GitHub.
Experimental Design
Overview
The 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.
The three ideas behind almost every good design (Fisher's principles):
- 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.
- 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.
- Blocking / 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.
This 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.
When to Use This Skill
- Planning any comparative experiment or trial and deciding how to assign units
- Randomizing subjects/samples to arms (simple, blocked, stratified, or cluster)
- Removing nuisance variation by blocking or stratification
- Designing multi-factor experiments: full or fractional factorial, screening designs
- Optimizing a response over continuous factors (response-surface designs)
- Within-subject / repeated-measures, crossover, split-plot, or Latin-square designs
- Cluster- or group-randomized designs (sites, clinics, classrooms, litters)
- Deciding the number and level of replicates and avoiding pseudoreplication
- Sequential, group-sequential, or adaptive designs with interim analyses
- Laying out plates/batches and randomizing run order to defeat drift
Installation
uv venv --python 3.13 .venv-design
uv pip install --python .venv-design/bin/python "numpy==2.5.3" "pandas==3.0.6" "pydoe==1.5.0"
pyDOE3 was archived in May 2026; active
development returned to pydoe. The bundled
wrappers target pydoe==1.5.0, imported as lowercase pydoe, and return
designs in real factor units. All seven DOE wrappers and both script demos were
executed with Python 3.13, NumPy 2.5.3, pandas 3.0.6, and SciPy 1.18.1. On
Windows, the environment interpreter is .venv-design/Scripts/python.exe.
Archive the environment versions and exported schedules: a seed alone does not
promise identical output across package or script upgrades.
Choosing a design
Start from the question and the structure of your units, not from a favorite design.
What are you trying to learn?
│
├─ Compare a few predefined conditions (A vs B vs C)?
│ ├─ Units independent, possibly with a known nuisance factor (day, batch, site)?
│ │ → Completely randomized (no nuisance) or RANDOMIZED BLOCK design.
│ ├─ Each unit can receive every condition in sequence (washout possible)?
│ │ → CROSSOVER / repeated-measures design (watch carry-over and correlation).
│ └─ You can only randomize groups, not individuals (schools, clinics)?
│ → CLUSTER-randomized design (account for clustering; see pseudoreplication).
│
├─ Screen MANY factors (5+) to find the few that matter?
│ → FRACTIONAL FACTORIAL or PLACKETT-BURMAN screening design.
│
├─ Quantify main effects AND interactions among a handful of factors?
│ → FULL 2^k FACTORIAL design.
│
├─ Find the settings that OPTIMIZE a response (curvature matters)?
│ → RESPONSE-SURFACE design: central composite or Box-Behnken.
│
└─ Explore a simulation/computer model over a continuous space?
→ SPACE-FILLING design: Latin hypercube.
Detailed guidance per branch:
- Randomization, blocking, stratification, controls →
references/randomization_and_blocking.md - Factorial, fractional-factorial, screening, response-surface, DOE concepts (aliasing, resolution) →
references/factorial_and_doe.md
…
Частые вопросы
Что такое рандомизация в эксперименте?
Это случайное распределение методов или групп, например, как при броске монеты. Так неизвестные факторы не влияют на результаты, и можно делать выводы о причинно-следственной связи.
Что такое репликация и почему она важна?
Репликация означает повторение эксперимента или измерения на независимых единицах. Это важно для оценки естественной изменчивости данных и того, чтобы наблюдаемый эффект не был просто случайностью.
Что такое блокирование?
Это группировка похожих единиц (например, пациентов из одной больницы или образцов из одной партии) с последующей рандомизацией внутри этих групп. Это помогает убрать из итогового результата нежелательную вариацию, делая основной эффект более заметным.
Подробности
Оригинальное описание автора
Designs 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/samples to groups, mentions randomization, blocking, stratification, controls, factorial or fractional-factorial designs, design of experiments (DOE), screening
Популярность
- Звёзды на GitHub
- 51k
- Место в рейтинге
- #3458
- Лицензия
- MIT
- Обновлён
- 15.10.2026
Комментарии
- …
Другие скиллы из этого репозитория
13c-metabolic-flux
51kОценивает метаболические потоки по данным изотопной метки углерода-13 для анализа клеточного метаболизма.
adaptyv
51kПланирует эксперименты по характеристике белков через API Adaptyv: стоимость, отправка последовательностей и результаты.
aeon
51kРешает задачи машинного обучения на временных рядах: классификация, прогноз, аномалии и паттерны.
alphagenome
51kНаходит заранее рассчитанные эффекты генетических вариантов с оценками и объяснениями.
Похожие скиллы
add-model-provider
394kПомогает агенту подключить нового провайдера ИИ-моделей к OpenClaw безопасными командами, хранить ключи API не в открытом виде и провести живой тест.
acp-router
394kПомогает агенту передать задачу инструменту для программирования, например Claude Code или Cursor, через OpenClaw, чтобы работа шла в этом инструменте.
browser-automation
394kУчит агента пошагово управлять веб-страницами: входить в аккаунты, работать с вкладками и восстанавливаться, если страница перестала отвечать.