Detecting viruses like Deformed Wing Virus (DWV) or Chronic Bee Paralysis Virus (CBPV) in a colony, or across an apiary, depends entirely on how the sample of bees is collected — not just how many bees are tested. This apiary shows six hives, each hosting a hidden population of bees where some fraction is truly infected (the slider you set). Drawing a sample and testing it produces an estimate of that true prevalence, which will always carry some sampling error.
A grab sample from a single hive can look statistically "solid" — a big number of bees, a tight textbook confidence interval — while still being badly wrong about the apiary as a whole, because it never captures the colony-to-colony variation. Reliable surveillance protocols specify not just a minimum sample size but a spatial sampling design.
A 3D apiary of six hives holds a hidden population of bees with a true viral infection rate. Choose a sample size and collection method to draw bees from the apiary, and watch estimated prevalence and a live confidence meter respond.
Margin of error shrinks with sample size, but the collection method matters just as much: a grab sample from a single hive inherits that hive's own bias and inflates the effective margin of error through a design effect, while spreading collection across hives is more statistically efficient.
Set the true prevalence and sample size, then pick a collection method. Sampled bees turn red (infected) or green (clean) and swell in size; watch the estimated prevalence, margin of error, and reliability meter update instantly.
Because infection naturally clusters within a colony, a "big" sample of 100 bees from one hive can be statistically weaker than a stratified sample of 30 bees spread across several hives.