Saltar al contenido
Skillpedia
Agentes51 mil · #3458

experimental-design

Qué hace

Esta herramienta te ayuda a planificar experimentos o estudios científicos. Decide cómo organizar participantes o muestras en distintos grupos, cómo introducir la aleatoriedad y cómo agrupar unidades similares para que los resultados sean claros y fiables.

Cuándo usarla

  • ✓Cuando planificas un estudio y decides cómo dividir a los participantes.
  • ✓Cuando quieres que los resultados sean fiables, evitando errores habituales.
  • ✓Cuando necesitas un plan para probar distintas condiciones o tratamientos.

Link de la skill

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

Cópialo y pégalo en tu IA (Claude, ChatGPT o Cursor) pidiéndole que siga las instrucciones.

Cómo usar

La forma más fácil: copia el mensaje y pégalo en tu IA. Ella lee la skill y sigue las instrucciones.

Mensaje listo para pegar

Usa esta skill para ayudarme: https://github.com/K-Dense-AI/scientific-agent-skills/blob/main/skills/experimental-design/SKILL.md Lee el archivo SKILL.md de ese link y sigue sus instrucciones en mi tarea.
¿Quieres que tu IA encuentre skills como esta por sí sola?Instala el MCP gratis de Skillpedia: una línea, y busca entre 15.000+ skills antes de cada tarea.Instalar en 1 minuto →

Ejemplo de qué pedirle a la IA

“Quiero comparar dos fármacos. ¿Cómo debería dividir a 100 pacientes en dos grupos para que la comparación sea justa?”

5 skills nuevas por semana. 1 minuto de lectura.

Cómo funciona

La herramienta usa principios como la aleatorización para evitar sesgos, la replicación para estimar la variabilidad y el bloqueo para controlar factores que podrían influir en los resultados. Te ayuda a elegir el mejor plan antes de recoger los datos.

Contenido técnico (SKILL.md original)

Texto original del autor, en inglés, directo de 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

…

Preguntas frecuentes

¿Qué es la aleatorización en un experimento?

Es asignar tratamientos o grupos al azar, como si lanzaras una moneda, para que los factores desconocidos no influyan en los resultados. Así se pueden sacar conclusiones sobre causa y efecto.

¿Qué es la replicación y por qué es importante?

Replicar significa repetir el experimento o la medición en unidades independientes. Es fundamental para estimar la variabilidad natural de los datos y asegurarse de que el efecto observado no se deba solo al azar.

¿Qué es el bloqueo?

Consiste en agrupar unidades similares (por ejemplo, pacientes del mismo hospital o muestras del mismo lote) y luego aleatorizar dentro de esos grupos. Así se eliminan de los resultados finales las variaciones no deseadas de esos grupos, y el efecto principal se ve con más claridad.

Detalles

Descripción original del autor

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

Popularidad

Estrellas en GitHub
51 mil
Posición en el ranking
#3458
Licencia
MIT
Actualizada
15/10/2026

¿Te sirve esta skill?

0

Entra para votar.

Comentarios

  • …

Más skills de este repositorio

Skills parecidas