This field represents a population of colonies spread across an apiary site with a real environmental gradient — forage quality rises from one side of the field to the other, exactly the kind of confound that biases small, badly-placed studies. Each time you draw a sample, some colonies are assigned to a control group (teal) and some to a treatment group (amber); unsampled colonies stay grey. The floating bars above sampled hives show a simulated yield outcome for each colony.
Power is computed analytically with the standard two-sample normal-approximation
formula power = Φ(d·√(n/2) − z_(1−α/2)), and the "n needed for 80% power"
panel solves the same formula for n at the conventional 0.80 target. The curve on the
right plots power against sample size for your current effect size and α, with a
marker at your chosen n.
Underpowered apiary trials are common in beekeeping research because colonies are expensive and slow to replicate — a published meta-analysis is often the only practical way to reach adequate power, which is exactly why pre-registering a power analysis before data collection is considered best practice.
A 3D apiary field lets you draw samples of colonies with different sampling methods and sample sizes, then watch statistical power, the sample size needed for 80% power, and sampling bias update live as floating yield bars and a power curve.
Statistical power rises with sample size and effect size and falls as the significance threshold tightens. Clustering a sample in one part of a field with an environmental gradient (forage quality) confounds the comparison and produces measurable sampling bias — even though it feels "convenient."
Set the sample size per group, the effect size you expect to detect, and the significance level. Switch between random and clustered sampling to see how representativeness changes the bias statistic, and watch the marker move along the power curve on the right.
Because colonies are costly and slow to replicate, many apiary studies are underpowered by design — running a power analysis before data collection (not after) is one of the simplest ways to make research honest about what it can and can't detect.