Imagine testing whether a new supplemental feed increases honey yield. You place some hives on "treatment" feed and others as a control, wait through the season, and weigh the honey. But the field itself is never uniform — one edge might sit closer to a hedgerow with better forage, catch more sun, or sit in a wind-sheltered dip. If your treatment hives happen to cluster in the better spot, you cannot tell whether a yield difference came from the feed or from the location. This simulation lets you build that field trial yourself and watch how design choices change what you can honestly conclude.
A rule of thumb in field ecology and apiculture research is that randomisation protects against confounds you didn't think to measure, while replication protects against confounds you can't remove — no amount of replication fixes a systematically biased design, and no amount of randomisation substitutes for enough colonies to see past natural variability.
A 3D apiary field trial where you assign hives to control and treatment groups, then watch a live results chart reveal how randomisation, replication and confounding variables shape what a study can honestly conclude.
Hives sit on a field with a hidden forage-quality gradient. Clustering treatment hives on the richer side inflates the observed effect; randomised assignment cancels that bias out on average, letting replication and noise decide whether the effect is detectable.
Switch between Randomised and Clustered assignment, then adjust replicates, the true treatment effect, the field's confound strength and colony-to-colony noise. Run new trials to see the bar chart, bias and t-statistic shift.
Randomisation doesn't eliminate confounding in any single trial — it only guarantees that, averaged over many trials, confounds don't systematically favour one group, which is why pre-registered, replicated designs matter so much in field research.