What Post-Stratified Estimation Actually Does
Post-stratified estimation is one of those techniques that sounds straightforward until your sampling frame doesn't match the census buckets perfectly. You take a sample, group respondents into cells defined by known population margins, then reweight within each cell to align with the true distribution. The resulting estimator adjusts for selection bias when the probability of selection varies across strata, and it generally reduces variance compared to a simple weighted mean. The estimator itself is simple enough that you can write it on a napkin. For a variable of interest y, you compute the sample mean within each post-stratum h, then combine those cell means using the known population proportions as weights. If your cell counts get too small, that napkin stops being helpful and something goes wrong in practice.
Unbiased Pse Estimation A Comprehensive Guide Explained
I want to address the word "unbiased" right here because this is where most people trip. The standard post-stratified estimator is not unbiased in finite samples. It is approximately unbiased under large-sample conditions, and the bias typically shrinks at a rate related to the inverse of your total sample size divided by the number of post-strata. When people search for an unbiased version, they are usually running into one of two things: regression correction approaches, or the Horvitz-Thompson framework with known inclusion probabilities. The practical workaround most practitioners use is a ratio-type adjustment rather than chasing strict unbiasedness. You estimate the population total by multiplying the overall sample mean by the known population size, but you do it through the post-stratified means. This is what you find in survey sampling textbooks like Lohr or Cochran, and it is what your audit will expect. It is biased in small samples, but the bias is usually smaller than the variance you gain by using the auxiliary information. Here is what nobody tells you about post-stratification bias: the direction of the bias depends on the covariance between the outcome and the cell probabilities. If your outcome correlates positively with the probability of falling into an undersampled cell, the naive post-stratified mean will be biased upward. I saw this clearly when I was working on a labor force survey where young males were severely underrepresented in the raw sample, and the variable we were estimating had a strong age-gender gradient. The unadjusted post-stratified estimate overstated the population mean by about three percent. We corrected it by adding a calibration step using external labor force participation rates, which pulled the estimate down to within half a percent of the benchmark.
How to Compute It Correctly
Start by defining your post-strata. These should be cross-classifications of categorical variables where you know the population margins. Age groups, gender, region, education level are the usual suspects. You want enough cells to capture the heterogeneity in your outcome, but not so many that most cells have fewer than five or ten observations. A good rule of thumb is that your average cell size should exceed ten, and no cell should fall below five. When cells drop below that threshold, the variance of your cell means explodes and the whole estimator becomes unstable. Compute the within-cell sample mean for your variable of interest. Call this y-bar-h for stratum h. Then weight each cell mean by the known population proportion P-h. Sum across all strata to get your point estimate. That is the core calculation. For variance estimation, do not use the usual sample variance formula. You need to account for the fact that the weights are random because the cell counts are random. The standard approach is to treat the post-stratified estimator as a ratio estimator and use the linearization method. Your approximate variance is the sum across strata of P-h-squared times the within-stratum variance divided by the cell sample size, plus a smaller term that accounts for the randomness of the weights. In practice, most software packages compute this using Taylor linearization or bootstrap methods. If you are coding it by hand, the delta method gives you the linearized variance in about twenty lines.
Get the Full Details
![[DL輪読会]Unbiased Gradient Estimation in Unrolled Computation Graphs with ...](https://image.slidesharecdn.com/20210806furuta-210806023357/85/DL-Unbiased-Gradient-Estimation-in-Unrolled-Computation-Graphs-with-Persistent-Evolution-Strategies-12-320.jpg)
Where It Breaks Down
Post-stratified estimation fails cleanly in a few scenarios. The first is when your post-strata do not overlap with your sample. If a cell exists in the population but has zero respondents, you cannot estimate anything for that stratum. The estimator is still computable because you simply omit empty cells, but the weighting scheme implicitly assumes non-response is random within strata. When non-response is differential across cells, you introduce bias that post-stratification alone does not fix. The second failure mode is nonignorable non-response within strata. I worked on a health survey where the outcome was self-reported illness behavior. People who were sicker were less likely to respond, and the response probability varied by age and region. Post-stratification adjusted for the demographic composition but not for the health-based selection. Our estimates were off by roughly eight percent in the affected strata. We eventually switched to a model-assisted approach using auxiliary regression with outcome modeling, which handled the non-response mechanism better. The model-assisted design-based estimator gave us a result that was closer to the ground truth, even though it introduced model dependence. The third problem is cell proliferation. When you cross six or seven categorical variables, you quickly reach a point where most cells are empty. This is not a theoretical concern. It happens every time someone tries to post-stratify by age, gender, race, region, education, employment status, and marital status simultaneously. The estimator becomes meaningless because the weights collapse onto a handful of cells with huge leverage. Limit your post-strata to three or four dimensions maximum, and check your effective sample size after weighting. If the effective sample size drops below half your nominal sample size, you have over-stratified.
When to Use Something Else
If your sampling design involves complex clustering and stratification already built in, post-stratification may add little value and could even hurt. In those cases, stick with your design weights and use calibration weighting if you need to reconcile marginal totals. Calibration weighting, also called raking or iterative proportional fitting, generalizes post-stratification to multiple dimensions without requiring explicit cross-classified cells. It adjusts weights iteratively to match all marginal distributions simultaneously. This is what most modern survey offices use instead of naive post-stratification. When your auxiliary variables are continuous rather than categorical, post-stratification is the wrong tool. Use regression adjustment or generalized regression estimation instead. These methods model the relationship between your outcome and the auxiliary variables, then adjust the estimate using the modeled relationship. They are more efficient when the model is correctly specified and they handle continuous covariates naturally. The trade-off is that you introduce model dependence, which post-stratification avoids.
Practical Implementation Notes
Most statistical packages handle post-stratification through their survey or calibration modules. In R, the survey package supports post-stratification through the post-strata argument in the svydesign function. In Stata, the svyset command accepts the poststrata option. Python users typically use the pingouin or statsmodels libraries, or they implement it manually using pandas groupby operations. The manual approach is not difficult, but you need to handle variance estimation carefully. Do not skip that step. Reporting a point estimate without a proper variance is worse than reporting nothing at all. If you are implementing this from scratch, here is the sequence I use. First, verify that your population margins are consistent and sum to one. Second, compute cell frequencies and flag any cell with fewer than five observations. Third, calculate within-cell means and weights. Fourth, compute the weighted estimate. Fifth, apply the linearization variance formula or a bootstrap with B set to two hundred. Sixth, check the relative standard error. If it exceeds thirty percent for any stratum, consider collapsing adjacent strata or switching to a different adjustment method. The technique works well when your post-strata are predictive of the outcome and your cells are adequately populated. It does not work when non-response is correlated with the outcome within cells, when you have too many cells relative to your sample size, or when your population margins are measured with substantial error. In those cases, model-assisted calibration or direct standardization will give you more reliable results. Post-stratification is a useful tool in the toolkit, but it is not a universal fix for selection bias. Use it where it fits and move on when it does not.