experimental-design

Plan randomized experiments and generate reproducible allocation schedules.

74|5|Updated Dec 10, 2025
One-click install
npx skills add https://github.com/dralkh/seerai --skill experimental-design-dralkh
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: experimental-design
Source: https://github.com/dralkh/seerai/tree/main/skills/experimental-design
Command: npx skills add https://github.com/dralkh/seerai --skill experimental-design-dralkh

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires numpy, pandas, pyDOE3, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill helps you plan studies so the results are actually interpretable. It guides you to choose the right experimental structure before data collection, avoid confounding and pseudoreplication, and balance known nuisance factors like batch, day, site, or plate position.

Core Features & Use Cases

  • Randomization and allocation: Create reproducible assignment schedules for simple, blocked, stratified, or cluster-randomized studies.
  • Design of experiments: Build full, fractional, Plackett-Burman, central composite, Box-Behnken, and Latin hypercube designs for screening and optimization.
  • Replication-aware planning: Match the unit of randomization to the unit of inference so technical replicates are not mistaken for biological replicates.
  • Use case: Plan a lab experiment with several factors, randomize run order to reduce drift, and generate a layout that supports a valid analysis later.

Quick Start

Ask the Skill to design a randomized experiment for your factors, specify the unit of randomization and any blocking variables, and request a reproducible allocation table or DOE matrix.

Frequently Asked Questions about experimental-design

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create a randomized experiment design with blocking and stratification?

To create a randomized experiment design with blocking, you specify your treatment factors, unit of randomization, and nuisance variables like batch or site. The Skill then generates a reproducible, seeded allocation table that balances known nuisance factors across treatments.

What is pseudoreplication in experimental design and how do I avoid it?

Pseudoreplication in experimental design occurs when technical replicates are mistakenly treated as independent biological replicates during analysis. You avoid it by matching the unit of randomization to the unit of inference, ensuring correct handling of clustering and nesting in your study layout.

How do I generate a fractional factorial DOE matrix for screening multiple factors?

You generate a fractional factorial DOE matrix by requesting a screening design for your specified factors. The Skill builds alias-aware DOE matrices, including Plackett-Burman or fractional designs, to identify main effects while systematically reducing the required number of experimental runs.

Can I use Python to plan crossover and split-plot designs for cluster-randomized studies?

Yes, you can use Python to plan crossover, split-plot, and cluster-randomized designs. The Skill leverages numpy, pandas, and pyDOE3 to correctly handle clustering, nesting, and replication, producing balanced allocation schedules for complex experimental structures.

When do I need a central composite or Box-Behnken design instead of a full factorial layout?

You need a central composite or Box-Behnken design for response surface optimization rather than simple factor screening. These designs are used when you need to model curvature and find optimal treatment conditions, whereas full factorial layouts are better for identifying main factor effects.

Why does my factorial design have confounding and how can I fix it?

Your factorial design has confounding when aliasing structures overlap main effects with interactions, often due to insufficient runs. You fix it by generating alias-aware DOE matrices that systematically manage the confounding pattern, preventing main effects from being confounded with each other.