Skip to content
← All questions

Why Squaring Deviations Prevents Cancellation in Variance Calculation

Why does squaring the deviations prevent positive and negative deviations from canceling out in variance calculation?

Squaring the deviations ensures that all terms in the sum are non-negative. Since the sum of deviations from the mean is always zero, adding them directly would result in a variance of zero regardless of the spread. Squaring preserves the magnitude of the deviation while eliminating the sign, allowing the average of these squared values to accurately reflect the dispersion of the data.

Conditions

  • The data points are distributed around a central mean.
  • The goal is to measure the spread or dispersion of the data.

Reasoning, step by step

  1. Calculate the deviation for each data point: xi−μx_i - \mu.
  2. Observe that some deviations are positive and some are negative.
  3. Note that the sum of these raw deviations is zero: ∑(xi−μ)=0\sum (x_i - \mu) = 0.
  4. Square each deviation: (xi−μ)2(x_i - \mu)^2, making all values positive or zero.
  5. Sum the squared deviations to get a positive total that reflects the overall spread.
  6. Divide by nn to find the average squared deviation (variance).

Example

In the video, the deviations are -3, 9, -15, -9, and 18. Their sum is 0. However, their squares are 9, 81, 225, 81, and 324, which sum to 720, a non-zero value indicating spread.

Common misconceptions

  • Believing that the sum of deviations is a useful measure of spread.
  • Thinking that squaring changes the order of magnitude unnecessarily without purpose.
  • Confusing variance with the mean absolute deviation.

Watch the explanation

Connected concepts

Explore next

Answers are generated from source material and independently checked. Consult the original video or creator if something is unclear.