Langsung ke konten
Skillpedia
Agen51k ยท #3458

experimental-design

Fungsinya

Alat ini membantu merencanakan eksperimen atau penelitian ilmiah. Alat ini menentukan cara mengelompokkan peserta atau sampel ke dalam kelompok yang berbeda, cara memasukkan unsur keacakan, dan cara mengelompokkan unit yang serupa agar hasilnya jelas dan dapat diandalkan.

Kapan dipakai

  • โœ“Saat merencanakan penelitian dan menentukan cara membagi peserta.
  • โœ“Saat ingin memastikan hasil dapat diandalkan dengan menghindari kesalahan umum.
  • โœ“Saat perlu membuat rencana untuk menguji berbagai kondisi atau perlakuan.

Link skill

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

Salin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.

Cara pakai

Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.

Pesan siap tempel

Gunakan skill ini untuk membantu saya: https://github.com/K-Dense-AI/scientific-agent-skills/blob/main/skills/experimental-design/SKILL.md Baca file SKILL.md di link tersebut dan ikuti instruksinya untuk tugas saya.
Mau AI Anda menemukan skill seperti ini sendiri?Pasang MCP Skillpedia gratis: cukup satu baris, dan AI mencari di antara 15.000+ skill sebelum tiap tugas.Pasang dalam 1 menit โ†’

Contoh permintaan ke AI

โ€œSaya ingin membandingkan dua obat. Bagaimana cara membagi 100 pasien menjadi dua kelompok agar perbandingannya adil?โ€

5 skill baru setiap minggu. 1 menit baca.

Cara kerjanya

Alat ini menggunakan prinsip-prinsip seperti randomisasi untuk menghindari bias, replikasi untuk memperkirakan variabilitas, dan blocking untuk mengendalikan faktor yang mungkin memengaruhi hasil. Alat ini membantu memilih rencana terbaik sebelum data dikumpulkan.

Konten teknis (SKILL.md asli)

Teks asli dari pembuat, dalam bahasa Inggris, langsung dari 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

โ€ฆ

Pertanyaan umum

Apa itu randomisasi dalam eksperimen?

Randomisasi adalah proses menugaskan perlakuan atau kelompok secara acak, seperti melempar koin, sehingga faktor yang tidak diketahui tidak memengaruhi hasil. Dengan begitu, kesimpulan tentang sebab dan akibat bisa ditarik.

Apa itu replikasi dan mengapa penting?

Replikasi berarti mengulangi eksperimen atau pengukuran pada unit yang independen. Ini penting untuk memperkirakan variasi alami dalam data dan memastikan efek yang terlihat bukan hanya karena kebetulan.

Apa itu blocking?

Blocking adalah mengelompokkan unit yang serupa (misalnya pasien dari rumah sakit yang sama atau sampel dari batch yang sama), lalu melakukan randomisasi di dalam setiap kelompok. Cara ini membantu menghilangkan variasi yang tidak diinginkan dari hasil akhir sehingga efek utama lebih jelas.

Detail

Deskripsi asli dari pembuat

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

Popularitas

Bintang GitHub
51k
Peringkat
#3458
Lisensi
MIT
Diperbarui
15/10/2026

Apakah skill ini berguna?

0

Masuk untuk memberi suara.

Komentar

  • โ€ฆ

Skill lain dari repositori ini

Skill serupa