Why Weighted Spread Matters
A weighted mean describes a survey distribution’s center, but it does not describe how widely its values vary. Two populations can have the same mean and very different distributions: one may cluster close to the mean, while another may contain many low and high values. A measure of spread helps describe that difference.
In survey analysis, each responding unit can represent a different amount of the target population. The weighted variance therefore gives more influence to values that represent more population members. It is a descriptive summary of the weighted distribution. It is not, by itself, a measure of how precisely a survey has estimated the population mean.
The notation \(\widehat{\sigma}^{\,2}_w\) emphasizes that the weighted distribution is usually calculated from survey records and used to describe a target population. If the data instead enumerate every member of a population, with weights representing the number of population members at each value, the same calculation gives that population’s variance exactly. With a sample and survey weights, it is a weighted descriptive estimate; its accuracy depends on the survey design and the suitability of the weights.
Two Equivalent Calculation Forms
The defining formula uses squared deviations from the weighted mean. A second form uses weighted first and second moments. It can be convenient when a table already reports weighted totals of \(x_i\) and \(x_i^2\).
To justify the identity, write each squared deviation as \(x_i^2-2x_i\bar{x}_w+\bar{x}_w^2\), multiply by \(w_i\), and sum. Dividing by \(W\) gives
The second equality uses \(\sum_i w_i x_i/W=\bar{x}_w\) and \(\sum_i w_i/W=1\). Substituting the weighted-mean formula for \(\bar{x}_w\) gives the stated equivalent formula. In practice, either form should use unrounded totals and means until the final result is reported.
Worked Example: A Weighted Distribution With Integer Frequencies
Suppose a hypothetical distribution records a test score \(x_i\) and the number \(w_i\) of population members with that score. The scores are 0, 2, and 4 points, with frequencies 1, 3, and 2. Find the weighted mean, variance, and standard deviation. Because the weights are population frequencies, this calculation describes the full distribution represented by the table.
The total frequency is \(W=1+3+2=6\). The weighted mean is
Using the squared-deviation definition,
The standard deviation is \(\sqrt{17/9}=\sqrt{17}/3\approx 1.374\) points. Thus, the weighted distribution’s standard deviation is about 1.374 points. It summarizes spread around the weighted mean; it does not say that each score is within 1.374 points of the mean.
Worked Calculations From Survey Records
When survey weights are expansion weights, the records represent unequal amounts of the target population. For example, a weight of 3,000 indicates more represented population mass than a weight of 500. For a variance, the important operations are to calculate the weighted center and then average squared deviations using the total weight as the denominator.
Worked Example: Variance of a Discrete Survey Measure
In a hypothetical survey, six respondents report the number of clinic visits in the past year. Their values are 1, 2, 2, 4, 5, and 6 visits, and each record has weight 1. Calculate the weighted variance and standard deviation. Equal weights are nonnegative and have positive total weight, so the formula applies; in this example the weighted summaries equal the ordinary descriptive summaries of these six records.
The weighted total and weighted sum of squares are \(\sum_i w_i x_i=20\) visits and \(\sum_i w_i x_i^2=86\) visits\(^2\), with \(W=6\). The weighted mean is \(20/6=10/3\approx3.333\) visits. Applying the moment formula with exact fractions gives
Therefore, \(\widehat{\sigma}_w=\sqrt{29}/3\approx1.795\) visits. The variance is in visits squared, while the standard deviation returns to visits. Rounding the mean before squaring can change the displayed arithmetic, so the exact fractions are retained through the calculation.
Worked Example: Expansion Weights and a Population-Style Summary
Consider hypothetical survey records for weekly travel time, measured in minutes. Three respondents report 10, 20, and 30 minutes, with expansion weights 2, 1, and 3. Assume the records are eligible for this summary, the weights are the intended nonnegative representation weights for the target distribution, and their total is positive. Find the weighted variance and standard deviation.
Here \(W=2+1+3=6\). The weighted mean is
The weighted second moment is \(\{2(10^2)+1(20^2)+3(30^2)\}/6=3300/6=550\) minutes\(^2\). Thus,
and the weighted standard deviation is \(\sqrt{725/9}\approx8.975\) minutes. The larger weight on the 30-minute record gives that value more influence on both the weighted mean and the distribution’s spread than the 20-minute record receives. The calculation describes the weighted distribution; it does not establish how uncertain the estimated mean is.
Descriptive Spread Is Not Sampling Uncertainty
A variance or standard deviation describes differences among the values in a distribution. A standard error describes the sampling variability of an estimator across repeated samples under a specified design. These answer different questions. In a survey, the standard deviation of an outcome can be large even when the mean is estimated precisely, or modest while the mean is estimated imprecisely because of the design or limited effective information.
The weighted variance formula above uses the values and their weights. It does not include the information needed to calculate design-based uncertainty, such as how units were selected, whether sampling was clustered or stratified, and how the weights were constructed. Consequently, taking \(\widehat{\sigma}_w/\sqrt{n}\) is not generally a valid standard error for a survey-weighted mean. Design-consistent standard errors require methods that account for the survey design.
| Quantity | What it describes | Units |
|---|---|---|
| Weighted variance | Weighted average squared distance of values from their weighted mean | Squared outcome units |
| Weighted standard deviation | Spread of values around the weighted mean, on the outcome scale | Outcome units |
| Standard error of a weighted mean | Sampling variability of the estimated mean under a specified survey design | Outcome units |
Denominator, Units, and Common Pitfalls
This is a population-style descriptive variance: divide the weighted sum of squared deviations by \(W\), the sum of the weights. Do not substitute \(W-1\) as a routine correction. The familiar sample-variance correction is intended for a different setting: estimating an unknown variance from a simple random sample under particular assumptions. It is not the defining denominator for the weighted distribution summary taught here, and it does not automatically correct complex-survey estimates.
Units provide a useful check. If \(x_i\) is measured in minutes, then \(x_i-\bar{x}_w\) is in minutes, its square is in minutes\(^2\), and the weighted variance is in minutes\(^2\). Taking the square root produces a standard deviation in minutes. Reporting a variance in the original units, or a standard deviation in squared units, signals a unit error.
Another important check is nonnegativity. Each \(w_i(x_i-\bar{x}_w)^2\) is nonnegative when \(w_i\geq0\), so their sum divided by \(W>0\) cannot be negative. A slightly negative result from the moment formula can arise from rounding or numerical precision; recalculate using unrounded values or the squared-deviation formula rather than interpreting it as a meaningful negative variance.
Check Your Understanding
Answer each question using the definitions and distinctions in this tutorial.
- A weighted distribution has \(W=10\), weighted mean 4, and weighted sum of squared deviations 30. What are its weighted variance and standard deviation, including units if the values are in kilograms?
- Why does the weighted population-variance formula divide by \(W\) rather than routinely using \(W-1\)?
- A variable is measured in hours. What are the units of its weighted variance and its weighted standard deviation?
- Explain why a weighted standard deviation alone does not determine the design-based standard error of a weighted mean.
- Using the moment formula, what two weighted quantities are needed to calculate variance, in addition to the total weight?