- Introduced by
- Morris H. Hansen, William N. Hurwitz; D. G. Horvitz and D. J. Thompson (theoretical framework)
- Year
- 1940s–1952 (formalized in large-scale government survey work and the Horvitz-Thompson estimator)
- Type
- Probability sampling design
- Family
- Sampling
What does it do?
Weighted sampling is a probability-based design in which units are selected with unequal probabilities proportional to a known auxiliary measure of size or importance.
Sampling weights — the inverse of inclusion probabilities — are applied during analysis so that each sampled unit correctly represents the population units it stands for. The approach underpins large-scale government, health, and social surveys where simple random sampling would be inefficient.
The intuition behind the method
Imagine a national household survey where urban areas contain vastly more residents than rural ones. Drawing the same number of households from each region would over-represent rural residents. Weighted sampling deliberately gives larger or denser units a higher chance of selection, then assigns each sampled unit a weight equal to the inverse of that probability. When you multiply every observation by its weight before computing means or totals, the distortion introduced by unequal selection cancels out and the estimates correctly reflect the whole population.
History
Probability proportional to size methods were developed in the 1940s by Morris H. Hansen and William N. Hurwitz for large-scale government surveys. D. G. Horvitz and D. J. Thompson's 1952 paper generalized the theory and introduced the Horvitz-Thompson estimator, which is design-unbiased under any probability sampling scheme with known inclusion probabilities.
When to use it
Use weighted sampling when the population is heterogeneous and an auxiliary size variable is available that correlates with the outcome, making equal-probability sampling inefficient; when rare but important sub-groups must be represented without over-sampling the whole population; or when combining frames with different coverage probabilities. It is standard for national household surveys, establishment surveys, health surveillance, and multi-stage assessments. Do not use it when no reliable auxiliary variable exists — a weakly correlated size measure inflates rather than reduces variance. Avoid it also when the analytic team cannot apply design-based variance estimation: ignoring weights yields biased point estimates, and using ordinary standard errors on weighted data produces anti-conservative inference.
Limitations and considerations
- Requires a reliable auxiliary size variable; a poorly chosen or outdated measure can increase variance rather than reduce it.
- Highly variable weights inflate the design effect and can make weighted estimates less precise than a simple random sample of the same size.
- Design-based analysis requires specialist software and survey-aware estimation procedures; routine regression output on weighted data is incorrect.
- Non-response and frame undercoverage can bias estimates even after weighting if the auxiliary variable does not predict response propensity.
- Weight construction and documentation are more complex and costly than equal-probability designs.
Source conditions do not replace independent scientific review or validation by an analysis engine.
Strengths
- Increases statistical efficiency when the size measure is strongly correlated with the outcome, reducing variance compared to simple random sampling at the same total n.
- Allows representative coverage of rare sub-groups by boosting their selection probabilities without proportionally inflating total sample size.
- Produces design-unbiased estimates for the whole population and planned sub-domains when weights are correctly applied via the Horvitz-Thompson framework.
- Base weights can be post-stratified or calibrated to external benchmarks to further reduce bias from frame imperfections or differential non-response.
- Design-based estimators are implemented in established survey-analysis packages, including those named in the FAQ, so weighted results can be reproduced in standard tools.
Applications
- National health surveillance surveys (e.g., NHANES) where certain demographic strata are oversampled and weights restore national representativeness.
- Business and establishment surveys where firms are selected with probability proportional to revenue or employment to reduce variance for aggregate economic estimates.
- Exit polls and election surveys where polling stations are sampled with probability proportional to registered voter count.
- Educational large-scale assessments (e.g., PISA, TIMSS) using multi-stage PPS designs with replicate weights for design-consistent variance estimation.
- Epidemiological studies with enriched enrollment of rare exposures, corrected by inverse-probability weighting in the analysis phase.
- Web panel surveys where opt-in respondents are reweighted to census benchmarks to reduce volunteer bias.
How it works
How it works
Enumerate all units in the target population and identify a reliable auxiliary variable — the size measure — that is positively correlated with the survey outcome. Examples include census household count for a health survey or registered voter count for an exit poll. This auxiliary information drives the entire weighting scheme and must be available before sampling begins.
Compute the inclusion probability pi_i for each unit in proportion to its size relative to the total. For a PPS design with fixed sample size n and size measure x_i, where X is the sum of all x_i, the inclusion probability is approximately pi_i = n * x_i / X. This approximation requires n * x_i / X <= 1 for every unit; units for which it would exceed 1 are taken with certainty and removed from the random draw. The base sampling weight is the inverse: w_i = 1 / pi_i. Units with smaller selection probabilities receive larger weights, compensating for their lower chance of entering the sample. These base weights may later be adjusted for non-response and calibrated to external population totals.
Formula
w_i = 1 / \pi_i
Draw the sample using an unequal-probability scheme — common methods include probability proportional to size (PPS) systematic selection, Poisson sampling, or rejective sampling. Every unit must have a strictly positive inclusion probability so the design remains a legitimate probability sample and the Horvitz-Thompson estimator remains valid.
Administer the survey instrument to all selected units and record the outcome variable y_i alongside the unit's design weight. Track non-response patterns carefully: differential non-response across size classes or sub-groups can bias estimates even when base design weights are correctly applied, requiring additional non-response weight adjustments.
Estimate population totals using the Horvitz-Thompson estimator: Y-hat = sum(w_i * y_i) over the sampled units. Means, proportions, and regression coefficients are computed on the weighted data using survey-aware software. The weights account for the complex design; ignoring them produces biased estimates whenever selection probabilities correlate with outcomes. When units are instead drawn with replacement, each draw selecting unit i with per-draw probability p_i = x_i / X, the Hansen-Hurwitz estimator is used in place of the Horvitz-Thompson form: (1/n) times the sum of y_i / p_i over the draws. It depends only on the per-draw probabilities, so explicit inclusion probabilities are not needed.
Formula
\hat{Y}_{HT} = \sum_{i \in s} w_i \, y_iCompute design-consistent variance estimates using Taylor linearization, jackknife repeated replication, or balanced repeated replication (BRR). Standard OLS or simple formula-based standard errors are incorrect for weighted samples. Use a survey-aware procedure such as R's survey package, Stata's svy suite, or SAS PROC SURVEYREG, declaring the design weights, strata, and primary sampling unit identifiers.
Common pitfalls
- Ignoring weights in analysis: running unweighted regressions on a weighted sample produces biased coefficients whenever selection probabilities correlate with outcomes — the single most common error in practice.
- Using OLS standard errors on weighted data: even when point estimates are corrected by weighting, standard errors computed without accounting for the complex design are typically too small, producing false significance.
- Extreme weight trimming without documentation: capping outlier weights reduces variance but introduces bias; any trimming threshold must be reported and its effect on key estimates must be assessed.
- Confusing design weights with frequency weights: statistical software treats these differently — using the wrong weight type corrupts both point estimates and standard errors.
- Neglecting non-response adjustment: applying only base design weights when response rates differ systematically across sub-groups leaves substantial non-response bias uncorrected.
Frequently asked questions
What is the difference between a sampling weight and an analytic weight?
A sampling (design) weight is the inverse of a unit's probability of selection; it tells the analyst how many population units each sampled unit represents. An analytic weight is a user-defined precision weight used in some model-fitting routines to down-weight noisy observations. In survey analysis you need design weights — or calibrated final weights that incorporate design, non-response, and post-stratification — not arbitrary analytic weights.
Do I still need to use weights if my sample is very large?
Yes. Large sample size does not remove bias from ignoring weights; it simply means you estimate a biased quantity more precisely. If selection probabilities correlate with the outcome — which is the whole point of the design — unweighted estimates are systematically wrong regardless of n.
What software correctly applies survey weights?
R's survey package (Thomas Lumley), Stata's svy suite, SAS PROC SURVEYMEANS and SURVEYREG, SPSS Complex Samples, and Mplus (for structural equation models) all implement design-consistent point and variance estimation. Always declare the design — weights, strata, and primary sampling unit identifiers — before running any estimation command.
When should I trim extreme weights?
When a handful of units carry very large weights relative to the rest, they dominate estimates and inflate variance. A common practice is to cap weights at the 95th or 99th percentile and renormalize so total weights still sum to the population size. Choose the threshold by inspecting the weight distribution, report it, and compare key estimates before and after trimming.
How does weighted sampling differ from post-stratification?
Weighted sampling refers to the design phase: units are selected with unequal probabilities. Post-stratification is an analytic adjustment applied after data collection to force sample margins to match known population totals. Both produce survey weights; post-stratification is commonly applied on top of design weights to reduce residual bias from frame imperfections or differential non-response.
Related methods
Sources
Cochran, W. G. (1977). Sampling Techniques (3rd ed.). John Wiley & Sons.
ISBN: 978-0471162407Horvitz, D. G., & Thompson, D. J. (1952). A generalization of sampling without replacement from a finite universe. Journal of the American Statistical Association, 47(260), 663-685.
Open DOI reference