An unequal-probability sample can overrepresent some records while still supporting an unbiased estimate of a finite population total. The adjustment depends on each record's probability of appearing in the sample, not simply on assigning an arbitrary weight after viewing the data.
The phrase unbiased has a precise sampling meaning here. Hold the population values fixed, repeat the declared sample-selection design, and average its estimates over those possible samples. That design average equals the target total. An individual sample estimate can still be far from the total.
Use a fully specified invented population
Let three distinct robot-related records A, B and C have fixed numeric values 2, 6 and 9. Their population total is 17 and their population mean is 17/3, approximately 5.666667. These values are mathematical inputs, not inspection results or measured robot performance.
Select exactly two distinct records. The complete sample design assigns probability 1/2 to sample {A,B}, probability 1/3 to {A,C}, and probability 1/6 to {B,C}. These probabilities sum to one. The model contains no other possible sample and no second draw of an already included record.
Statistics Canada's methodological reference defines the Horvitz-Thompson total through positive inclusion probabilities and design expectation. The original robsurvey manual distinguishes its weighted total from a normalized Hajek mean. The small design and calculations here are independently constructed; no survey software was run.
Calculate inclusion rather than sample probability
A appears in either {A,B} or {A,C}, so its inclusion probability is pi_A = 1/2+1/3 = 5/6. Similarly pi_B = 1/2+1/6 = 2/3, and pi_C = 1/3+1/6 = 1/2.
Their sum is two, matching the fixed number of included records. Each pi describes one record's presence somewhere in the selected sample. It is different from the probability assigned to an entire two-record sample.
The inverse inclusion weights are 6/5, 3/2 and 2. Record C has the smallest inclusion probability and receives the largest expansion weight. That relationship follows from the declared design, not from its observed value being nine.
Expand sampled contributions to a total
The Horvitz-Thompson estimator is T_hat = sum over included records of y_i/pi_i. For sample {A,B}, it gives 2 times 6/5 plus 6 times 3/2 = 2.4+9 = 11.4.
For {A,C}, the result is 2.4+18 = 20.4. For {B,C}, it is 9+18 = 27. None of these three possible estimates equals the true total 17.
Nevertheless, their design expectation is (1/2)11.4 + (1/3)20.4 + (1/6)27 = 5.7+6.8+4.5 = 17. The estimator is unbiased across this complete selection design while every individual outcome has an estimation error.
Its design variance is (1/2)(11.4-17)^2 + (1/3)(20.4-17)^2 + (1/6)(27-17)^2 = 36.2. This variation arises from which fixed records are sampled, rather than from measurement noise added to their values.
Prove the expectation with indicators
Let I_i be one if record i appears and zero otherwise. Then T_hat = sum over all population records of I_i y_i/pi_i. Taking expectations gives sum y_i E[I_i]/pi_i.
By definition E[I_i] = pi_i, so every term reduces to y_i. The result is the population total. Independence between inclusion indicators is unnecessary for this expectation proof; the fixed two-record design actually makes their presences dependent.
All relevant pi_i must be known and positive. A record with zero chance of inclusion cannot have its unknown contribution recovered by dividing by zero. An estimated or incorrectly specified selection probability changes what the calculation establishes.
Estimate a mean using the known population size
Because N = 3 is known, dividing T_hat by three yields an unbiased estimate of the population mean. The possible mean estimates are 3.8, 6.8 and 9, with design expectation 17/3.
This denominator is the known population size, not the sample size two and not the sum of the observed weights. The estimated total represents all three population records even though only two values appear in each sample.
For comparison, the ordinary unweighted sample means are 4, 5.5 and 7.5. Their design average is (1/2)4+(1/3)5.5+(1/6)7.5 = 61/12, approximately 5.083333. Under this unequal design, they do not average to the population mean.
Normalizing the weights creates a ratio estimator
Another possible statistic divides sum w_i y_i by sum w_i in each observed sample. For {A,B}, the result is 11.4/2.7 = 38/9, approximately 4.222222. For {A,C}, it is 20.4/3.2 = 51/8 = 6.375. For {B,C}, it is 27/3.5 = 54/7, approximately 7.714286.
Their design expectation is 2783/504, approximately 5.521825. It differs from 17/3. The normalization introduced a random denominator correlated with the weighted total, so the earlier linear expectation proof no longer applies.
This is the distinction between the known-size Horvitz-Thompson mean and this Hajek-style ratio. The example does not claim that a normalized ratio is never useful. It establishes that normalizing weights changes the statistic and does not automatically preserve exact design unbiasedness.
Retain what the sampling design actually supplies
If all three two-record samples instead had equal probability, every record would have inclusion probability 2/3. The Horvitz-Thompson total would then be three halves of the sampled sum, and dividing by three would recover the ordinary two-record sample mean.
Unequal-probability designs require different bookkeeping because their records do not have equal chances of appearing. The target population, fixed values, possible samples, inclusion probabilities and estimator denominator belong together. Those definitions support a design-based estimate; they do not by themselves validate measurement quality, unrecorded selection mechanisms or any causal interpretation.
Sources checked October 24, 2026:
Statistics Canada: HT Estimator and Its Drawback: https://www150.statcan.gc.ca/n1/pub/12-001-x/2019001/article/00007/02-eng.htm
R robsurvey: Weighted Total and Mean: https://search.r-project.org/CRAN/refmans/robsurvey/html/weighted_mean.html
Concept illustration: A small desktop robot beside a laptop showing a generic workflow provides robotics context for this analytical model. The image does not depict the article's numerical example, a verified experiment, a product specification, or deployment evidence.