本文へスキップ
Skillpedia
エージェント51k · #3458

experimental-design

できること

このツールは、科学的な実験や研究の計画を立てるのに役立ちます。参加者や試料をどのように異なるグループに分けるか、どのようにランダム性を取り入れるか、結果が明確で信頼できるものになるように似た単位をどのようにまとめるかを決めます。

使う場面

  • ✓研究を計画し、参加者をどのように分けるかを決めるとき。
  • ✓結果が信頼できるものになるよう、よくある誤りを避けたいとき。
  • ✓異なる条件や治療法を検証する計画を立てる必要があるとき。

スキルのリンク

https://github.com/K-Dense-AI/scientific-agent-skills/blob/main/skills/experimental-design/SKILL.md

コピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。

使い方

いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。

貼り付け用メッセージ

このスキルを使って手伝ってください:https://github.com/K-Dense-AI/scientific-agent-skills/blob/main/skills/experimental-design/SKILL.md このリンクのSKILL.mdファイルを読んで、私の作業でその指示に従ってください。
こういうスキルを、AIが自分で見つけてくれたら?無料のSkillpedia MCPをインストール。1行で、作業の前に15,000+のスキルから探してくれます。1分でインストール →

AIへの頼み方の例

“2種類の薬を比較したいと思っています。比較が公平であることを確実にするために、100人の患者をどのように2つのグループに分ければよいでしょうか?”

毎週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

repo: K-Dense-AI/scientific-agent-skills

人気

GitHubのスター
51k
ランキング
#3458
ライセンス
MIT
更新日
2026/10/15

このスキルは役に立ちますか?

0

ログイン して投票しましょう。

コメント

  • …

このリポジトリの他のスキル

似ているスキル