Experiment design simulator
Design an experiment, then find out how often it would have told the truth. The lab repeats it 1,000 times so you can see what too few replicates, no randomisation and pseudoreplication really do.
Loading the lab…
About this model
A real experiment gives you one answer. To judge a design you need to know what it would give if you could repeat it again and again. This lab does that: it simulates your experiment 1,000 times with a seeded random generator (the same seed always gives the same answer) and counts how often the test finds a difference. With a real difference, that share is the power. With no real difference, it is the false-positive rate, which a good test keeps near 5%.
The tests are one-way analysis of variance (the F test, which for two treatments is the t-test) and, for blocked layouts, the randomised complete block analysis. Power is also calculated exactly from the non-central F distribution and shown beside the simulation so you can see that they agree. The worked examples of EDS-201 are reproduced in the unit tests: power 0.78 at 16 and 0.81 at 17 per group for σ = 2 and δ = 2; blocked F of 29.5 against 2.2 with the blocks ignored; the t and F critical values. The gradient, the effect sizes and the sharing of variation inside a pot (ρ) are teaching choices, set so each lesson is visible.
Calibrated against: EDS-201 lessons 1.2, 2.1, 2.2, 2.3, 4.1, 4.2 and 4.3 (worked examples reproduced in the unit tests); Hurlbert 1984, Ecological Monographs 54: 187 (pseudoreplication); Cochran and Cox, Experimental Designs (randomised complete blocks); Johnson, Kotz and Balakrishnan, Continuous Univariate Distributions 2 (non-central F).
This is a teaching model. It shows how the variables behave and what to expect; your own instruments, reagents and material will differ, so always follow your lab's validated procedure.
Related lessons: Experiment design and statistics (EDS-201)