Simple random sampling · without replacement · N = 100,000 · n = 1,000
100,000 voters. Some will vote D, some R, some will vote for others and some will not turn out. A survey reaches 1,000 of them and reports p̂ = y / n, the proportion of D voters. Every possible sample is drawn at most once. The orange outline shows where all 1.7 × 102430 of them land.
Simulate drawing one sample at a time, or let the simulation keep drawing new samples. You can change the electorate size or the sample size.
100,000 voters · drag to set the electorate
Press Run or Draw sample
y = number of D voters · n = sample size · 95% CI = p̂ ± t(999) × SE(p̂)
* Assuming a simple random sample with full population coverage, without any nonresponse and no measurement error.