Checking the variance of a row-wise sum
Two lists with fixed separate variances can produce row-wise sums with very different variances. This worksheet uses the same three values in three pairings to show why the pairing decides the result.
Variances add only with the covariance term
For paired lists X and Y, the variance of the row-wise sum is Var(X) + Var(Y) + 2 Cov(X, Y). The first two terms come from the separate lists. The third comes from how the lists line up row by row, and it can be positive, zero or negative. A rule that says variances add holds only when the covariance is zero. This worksheet works with finite lists and the population variance, which divides the sum of squared deviations by the number of rows. The same structure applies to sample variance, which divides by one less, because the covariance term scales the same way.
One list with itself
Start with X = 1, 2, 3. The mean is 2 and the squared deviations are 1, 0 and 1, so the sum is 2 and the population variance is 2/3, about 0.6667. Reversing the list to 3, 2, 1 changes the order but not the set of values, so its variance is also 2/3. This is the key fact behind the worksheet: reordering one list leaves its own variance untouched. Any difference in the variance of a sum must therefore come from how the rows pair up, because the individual variances are the same in every arrangement below.
Aligned pairing doubles the spread
Add the list to itself row by row. The sums are 2, 4 and 6, with mean 4 and squared deviations 4, 0 and 4, so the sum is 8 and the population variance is 8/3, about 2.667. The formula agrees: 2/3 + 2/3 + 2 × (2/3) = 8/3, since the covariance of a list with itself equals its variance. When both components rise and fall together, their movements reinforce each other. Doubling every value multiplies the standard deviation by 2 and the variance by 4, and four times 2/3 is 8/3, a consistent check from a different direction. Real data can behave this way when two components share a common driver, such as hourly load and hourly demand that both climb in the same busy hours.
Reversed pairing cancels the spread
Add the list to its reverse. Row by row the sums are 1 + 3, 2 + 2 and 3 + 1, which gives 4, 4 and 4. Every sum is equal, so the variance is 0. In formula terms the covariance is -2/3, and 2/3 + 2/3 + 2 × (-2/3) = 0. Whenever one component is high, the other is low by the same amount, and the movements cancel exactly. A hand check confirms it quickly: the sums have a mean of 4 and every deviation from it is zero. The two component lists look identical in the two cases, with the same values and the same variances, and yet the sums have variances of 8/3 and 0. That contrast is the reason the pairing has to be preserved in any dataset.
A pairing between the extremes
Other pairings land in between. Pair X = 1, 2, 3 with Y = 2, 1, 3. The sums are 3, 3 and 6, with mean 4 and squared deviations 1, 1 and 4, so the sum is 6 and the population variance is 2. Here the covariance is 1/3, and 2/3 + 2/3 + 2 × (1/3) = 2. Of the six possible orderings of the three values, one gives 8/3, one gives 0, and the others give values between, such as 2 here. Each ordering is a different dataset with the same marginal summaries, so the separate variances cannot identify the variance of the sum. The variance tool makes the comparison easy: paste each list of sums and read off the result, instead of working through the covariance by hand for every ordering you want to examine.
Different scales in the two lists
The same rule works when the components have different sizes. Add X = 1, 2, 3 to Y = 10, 20, 30. The sums are 11, 22 and 33, with mean 22 and squared deviations 121, 0 and 121, so the sum is 242 and the population variance is 242/3, about 80.667. By formula, Var(X) is 2/3, Var(Y) is 200/3, and the covariance is 20/3, giving (2 + 200 + 40) / 3 = 242/3. The larger list dominates the total, but the covariance term, 40/3, still contributes. Ignoring it would put the variance at 202/3, about 67.33, which understates the result by roughly 13.33.
Population or sample mode
The variance tool offers both modes, and the worksheet cases use the population mode. For the aligned sums 2, 4 and 6 the sample variance is 8 divided by 2, which is 4, compared with 8/3 for the population version. Use population mode when the list is the entire group of interest, and sample mode when it stands in for a larger group and you want an estimate of that group's variance. The choice rescales every variance by the same factor of n/(n - 1), so the comparison among pairings is unchanged, but mixing modes between the components and the sum breaks the formula above.
Keeping rows intact in real data
The practical rule is to store paired values in one table and keep each row together through every filter and sort. Sorting one column on its own scrambles the pairing and changes the variance of any row-wise sum. Do not infer independence from two marginal lists, and do not apply an additive-variance rule unless you have evidence that the covariance is zero. Examples include totals built from daily components, combined measurement errors, or portfolio-style sums of related series. This worksheet covers finite paired lists only and does not extend to probability distributions or to sampling theory.
Budgeting a combined measurement
The pairing question shows up whenever two quantities are added into one reported figure. Picture a daily total made from two sources, with each source varying by a few units from day to day. If a busy day in one source tends to be a busy day in the other, the total swings more than the separate variances suggest, and capacity planned from the separate figures will fall short. If the sources move in opposite directions, as with a task that shifts work from one queue to the other, the total is steadier than either part. In both cases the remedy is the same: compute the variance of the actual row-wise totals. A direct calculation on the summed list uses the real pairing, whatever its covariance happens to be, and avoids the guesswork.
Reproduce the checks
One component variance
Open the Variance Calculator and enter:
- Numbers
1,2,3- Calculation mode
population
Expected output:
Variance
0.6666666666666666Reversing the list preserves this separate variance.
Aligned row sums
Open the Variance Calculator and enter:
- Numbers
2,4,6- Calculation mode
population
Expected output:
Variance
2.6666666666666665Aligned movements amplify variation.
Reversed-pair row sums
Open the Variance Calculator and enter:
- Numbers
4,4,4- Calculation mode
population
Expected output:
Variance
0The opposite movements cancel exactly.
References and implementation scope
The examples describe the behavior of the linked Computandum tools. A successful local check does not establish that another application accepts the same format or applies the same limits.
Sources
- Primary definition and convention reference ↗ · 2026-10-08