If you were to add 5 to each value in a data set, what effect would this have on the standard deviation of the data set?

2 Answers
Dec 20, 2014

Adding 5 to every value in a data set has no effect on the standard deviation of the data set.

Recall that the formula for standard deviation of a sample is:

s = sqrt((sum_(i=1)^n (x_i-barx)^2)/(n-1)s=ni=1(xi¯x)2n1

Of the terms in the equation, nn will not be affected by the adjustment, as we still have the same number of values. Recall that bar x = (sum_(i=1)^n x_i)/n¯x=ni=1xin. All of our x_ixi values are being modified by +5+5; what effect will this have on bar x¯x? Our new bar x¯x, denoted by bar x', can be calculated from our old x_i values as follows:

bar x' = (sum_(i=1)^n (x_i +5))/n.

Recall, sum_(i=1)^n (x_i +c) = sum_(i=1)^n x_i + sum_(i=1)^n c Further, if c is a constant that does not change as i changes (i.e. c = c_1 = c_2 = c_3 = ... = c_n), then we are adding c to itself n times, which is the same as multiplying c by n, such that sum_(i=1)^n c = nc. Thus:

bar x' = (sum_(i=1)^n (x_i +5))/n = (sum_(i=1)^n x+sum_(i=1)^n 5)/n = (sum_(i=1)^n x)/n + (sum_(i=1)^n 5)/n = (sum_(i=1)^n x)/n + (5n)/n = (sum_(i=1)^n x)/n + 5 = bar x +5

Thus, when calculating our standard deviation for the new x'_i, defined such that x'_i = x_i +5, our standard deviation will be:

s' = sqrt((sum_(i=1)^n(x'_i - bar x')^2) /(n-1)

Given that x'_i = x_i +5, and bar x' = bar x +5, each term in the summation will be (x_i +5 - bar x - 5)^2 = (x_i - bar x + 5 - 5)^2 = (x_i - bar x)^2, which is the term from our initial formula. Thus s' = s.

As a general rule, the median, mean, and quartiles will be changed by adding a constant to each value. However, the range, interquartile range, standard deviation and variance will remain the same. Multiplying every value by a constant, however, will multiply the mean, median, quartiles, range, interquartile range, and standard deviation by that constant, and multiply the variance (which is simply the square of the standard deviation) by the square of that constant.

Dec 20, 2014

Adding a constant to each value in a data set does not change the distance between values so the standard deviation remains the same.

For example, consider the following numbers

2,3,4,4,5,6,8,10 for this set of data the standard deviation would be

s = sqrt((sum_"i=1"^n(x_i-bar x )^2) / (n-1))

s = sqrt(((2-5.25 )^2+(3-5.25 )^2+...+(10-5.25 )^2) / (8-1))

s = 2.65922

If we were to add 5 to each value in this data set, the new set of values would be:
7,8,9,9,10,11,13,15

s = sqrt(((7-10.25 )^2+(8-10.25 )^2+...+(15-10.25 )^2) / (8-1))

s = 2.65922

As you can see the s.d. remains the same unless you multiply every value by a constant.

Standard Deviation Calculator