Works on this device
Stratified Sampling Calculator
Plan and analyse a stratified sample. Split the population into strata (groups), share the sample out over them, find how large the whole sample must be, and combine the results into one estimate with its standard error.
Enter your values
Check these values
Your values are worked out in this browser. They are not sent to a server.
Your result will show here
Fill in the values, then choose Calculate.
Your result
How it was worked out
How to use this calculator
- Choose a task: share a sample out over the strata, find the total sample size for a target margin, or work out the stratified mean.
- Add one row for each stratum. Type its population size, and for Neyman allocation or a sample size the standard deviation you expect in it.
- For the stratified mean, type the sample size, sample mean and sample standard deviation of each stratum.
- Choose Calculate. The table shows each stratum; you can download it as a CSV file.
The formulas
- Proportional allocation: n_h = n × N_h ÷ N. Every stratum is sampled at the same rate.
- Neyman allocation (Neyman, 1934): n_h = n × N_h S_h ÷ Σ N_h S_h. Strata that vary more get more of the sample.
- Rounding: every quota is rounded down; the units that are left go one by one to the strata with the largest remainders (a tie goes to the larger stratum, then to the upper row). A stratum whose quota is larger than the stratum is taken whole, and the rest is shared out again.
- Stratified mean: ȳ_st = Σ W_h ȳ_h with W_h = N_h ÷ N. Variance: Σ W_h² (1 − n_h ÷ N_h) s_h² ÷ n_h.
- Total sample for a margin E (Cochran, 1977): with V₀ = (E ÷ z)², Neyman n = (Σ W_h S_h)² ÷ (V₀ + Σ W_h S_h² ÷ N), proportional n = Σ W_h S_h² ÷ (V₀ + Σ W_h S_h² ÷ N).
Worked example
A population of 1,000 firms has 600 small, 300 medium and 100 large firms, with expected standard deviations of 12, 20 and 45 employees. A sample of 100 by proportional allocation is 60, 30 and 10.
By Neyman allocation the products N_h S_h are 7,200, 6,000 and 4,500 (sum 17,700). The quotas are 40.68, 33.90 and 25.42. Rounded down they are 40, 33 and 25; the 2 units left go to the largest remainders, so the sample is 41, 34 and 25.
With sample means of 48, 72 and 130 (SDs 11, 19 and 41) from samples of 60, 30 and 10, the stratified mean is 0.6 × 48 + 0.3 × 72 + 0.1 × 130 = 63.4, with a standard error of 1.7723. The 95% interval is 59.93 to 66.87.
Related calculators
Inside each stratum, choose the units by simple random sampling, or systematically with the Systematic Sampling Calculator. For one simple random sample, the Margin of Error Calculator gives the margin and the sample size, and the Finite Population Correction Calculator explains the correction used in each stratum here.
Limits you should know
- Neyman allocation needs standard deviations that you guess before the survey. Wrong guesses make it less efficient, but the estimate stays unbiased.
- The allocation assumes the same cost for every unit. Optimum allocation with different costs is not built.
- The interval uses z. With very small samples in some strata it is too narrow.
- A stratum with fewer than 2 units in its sample cannot give a standard deviation.