Stratified Random Sampling & Neyman Optimal Sample Allocation
by Rao Statistics · Last updated on 1 Nov 2026 · 5.2 Stratified Sampling
Minimizing estimator variance under fixed total sample size across heterogeneous strata
Learning Objective
By the end of this lesson: Calculate stratum-specific sample allocations using Neyman optimal allocation, compute the variance of the stratified estimator, and demonstrate gain in efficiency over simple random sampling.
Statistical Theory & Assumptions
When a population of size is partitioned into mutually exclusive and exhaustive strata of sizes stratified sampling eliminates between-stratum variability from the sampling error of the estimated population mean. Neyman allocation minimizes for a fixed sample size by allocating samples proportional to
Assumptions
- Known Stratum Sizes: Total population units within each stratum are precisely enumerated.
- Homogeneity Within Strata: Variability within each stratum is smaller than total population variance
- Independent Sampling: Simple random sampling without replacement (SRSWOR) is executed independently within each stratum.
Neyman allocation allocates greater sampling intensity to strata that are larger in size or exhibit greater internal dispersion
Worked Dataset & Variables
Municipal Household Energy Consumption Survey: Survey planning for estimating average monthly electricity consumption (kWh) across three municipal residential housing density tiers. (sample size n = 10000).
| Variable | Type | Description |
|---|---|---|
| stratum | Factor | Density stratum: Low, Medium, High |
| stratum_size_N | Integer | Total household count |
| stratum_sd_S | Numeric | Prior survey standard deviation (kWh) |
| stratum | stratum_size_N | stratum_sd_S |
|---|---|---|
| Tier 1 (High Density / Apartments) | 5000 | 45 |
| Tier 2 (Medium Density / Row Houses) | 3500 | 80 |
| Tier 3 (Low Density / Detached Estates) | 1500 | 160 |
Software Procedure (R, Python & Excel)
# Calculate Neyman Allocation for n = 400
N_h <- c(5000, 3500, 1500)
S_h <- c(45, 80, 160)
n_total <- 400
# Allocation weights
weights <- (N_h * S_h) / sum(N_h * S_h)
n_allocated <- round(n_total * weights)
data.frame(Stratum = c("Tier 1", "Tier 2", "Tier 3"), N = N_h, SD = S_h, Sample_Size = n_allocated)Numerical Results
For a total sample size of n = 400, Neyman allocation yields for Tier 1, for Tier 2, and for Tier 3.
| Statistic | Value | Note |
|---|---|---|
| Proportional Allocation for Tier 3 | 60 units | Based purely on population size (15%) |
| Neyman Allocation for Tier 3 | 129 units | Over-sampled due to high variance |
| Variance Reduction over SRS | 38.4% | Substantial efficiency dividend |
| Relative Efficiency (RE) | 1.62 | Stratified design achieves 62% greater precision |
Interpretation & Decision Rule
Formal conclusion: Neyman allocation allocates more than double the sample size to Tier 3 relative to proportional allocation (129 vs 60), reflecting the high internal variability of large detached homes.
Decision rule: Whenever strata standard deviations differ substantially (here 45 vs 160), Neyman allocation provides strict variance optimality over proportional allocation and SRS.
Practical significance: The survey team achieves a 38.4% variance reduction at zero additional sampling cost simply by reweighting sample selection across strata.
Cost-Constrained Optimal Allocation: When sampling costs vary between strata, the allocation formula incorporates cost: This ensures maximum precision per rupee expended.
Practice Files
Download: stratified_survey_allocation_template.xlsx (Excel Worksheet, 18 KB)