2.4: Changes to a Data Set
- Page ID
- 236848
\( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)
\( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)
\( \newcommand{\dsum}{\displaystyle\sum\limits} \)
\( \newcommand{\dint}{\displaystyle\int\limits} \)
\( \newcommand{\dlim}{\displaystyle\lim\limits} \)
\( \newcommand{\id}{\mathrm{id}}\) \( \newcommand{\Span}{\mathrm{span}}\)
( \newcommand{\kernel}{\mathrm{null}\,}\) \( \newcommand{\range}{\mathrm{range}\,}\)
\( \newcommand{\RealPart}{\mathrm{Re}}\) \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\)
\( \newcommand{\Argument}{\mathrm{Arg}}\) \( \newcommand{\norm}[1]{\| #1 \|}\)
\( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\)
\( \newcommand{\Span}{\mathrm{span}}\)
\( \newcommand{\id}{\mathrm{id}}\)
\( \newcommand{\Span}{\mathrm{span}}\)
\( \newcommand{\kernel}{\mathrm{null}\,}\)
\( \newcommand{\range}{\mathrm{range}\,}\)
\( \newcommand{\RealPart}{\mathrm{Re}}\)
\( \newcommand{\ImaginaryPart}{\mathrm{Im}}\)
\( \newcommand{\Argument}{\mathrm{Arg}}\)
\( \newcommand{\norm}[1]{\| #1 \|}\)
\( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\)
\( \newcommand{\Span}{\mathrm{span}}\) \( \newcommand{\AA}{\unicode[.8,0]{x212B}}\)
\( \newcommand{\vectorA}[1]{\vec{#1}} % arrow\)
\( \newcommand{\vectorAt}[1]{\vec{\text{#1}}} % arrow\)
\( \newcommand{\vectorB}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)
\( \newcommand{\vectorC}[1]{\textbf{#1}} \)
\( \newcommand{\vectorD}[1]{\overrightarrow{#1}} \)
\( \newcommand{\vectorDt}[1]{\overrightarrow{\text{#1}}} \)
\( \newcommand{\vectE}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash{\mathbf {#1}}}} \)
\( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)
\(\newcommand{\longvect}{\overrightarrow}\)
\( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)
\(\newcommand{\ket}[1]{\left| #1 \right>}\)
\(\newcommand{\bra}[1]{\left< #1 \right|}\)
\(\newcommand{\braket}[2]{\left< #1 \vphantom{#2} \right| \left. #2 \vphantom{#1} \right>}\)
\(\newcommand{\braopket}[3]{\left< #1 \vphantom{#2}\vphantom{#3} \right| #2 \vphantom{#1}\vphantom{#3} \left| #3 \vphantom{#1}\vphantom{#2} \right>}\)
\(\newcommand{\qmvec}[1]{\mathbf{\vec{#1}}}\)
\(\newcommand{\op}[1]{\hat{\mathbf{#1}}}\)
\(\newcommand{\expect}[1]{\langle #1 \rangle}\)
\(\newcommand{\dfn}[1]{\emph{\textbf{#1}}}\)
- Describe effects of adding or subtracting a constant to all values in a data set.
- Describe effects of multiplying or dividing all values in a data set by a constant.
- Describe the effect of changing an extreme value within a data set.
- Tell whether measures are resistant or non‑resistant.
Introduction
In this section, we explore how measures of center, position, and spread respond when changes are made to a data set. We will examine two types of changes: altering every value in the data set through addition and subtraction or multiplication and division, and altering only a single value within the set. Understanding how these transformations affect the mean, median, quartiles, range, and standard deviation helps us predict how a data set behaves when it is shifted or rescaled, and how sensitive each measure is to individual data values.
Shifting the Data: Adding or Subtracting a Constant
In this section, we examine what happens to measures of center, position, and spread when the same constant is added to (or subtracted from) every value in a data set. This type of transformation shifts the entire data set left or right on a number line without changing the spacing between the values. To see how this affects different statistical measures, we explore a simple scenario:
Ms. Maple gives a science quiz to 6 students. Their scores (out of 40 points) are
20 28 32 33 35 38.
This table gives some measures of center, position, and spread for this data set:
|
Center |
\(\\[6pt] \bar{x}=\dfrac{20+28+32+33+35+38}{6}=\frac{186}{6}=31 \\[6pt] \) \(\text{Median} = \dfrac{32+33}{2}=32.5 \) |
|---|---|
|
Position |
\( \\[6pt] \text{Five-number Summary: } [20, 28, 32.5, 35, 38] \) |
|
Spread |
\(\\[6pt] \text{Range: } = 38-20=18 \\[6pt]\) \(\text{IQR: } = 35-28=7\\[6pt]\) \(\text{MAD: } = \frac{28}{6} \approx 4.67 \\[6pt]\) \(s \approx 6.45 \) |
Ms. Maples thinks that the quiz should be worth 50 points instead of 40 points. She decides to add 10 points to every score. How does this change affect the summary statistics for the group of scores?
Solution
Here's a table of the transformed data. Notice that each score has been increased by 10 points.
|
\(x\) |
20 |
28 |
32 |
33 |
35 |
38 |
|---|---|---|---|---|---|---|
|
\(x+10\) |
30 |
38 |
42 |
43 |
45 |
48 |
|
Center |
\( \\[6pt] \bar{x}=\dfrac{30+38+42+43+45+48}{6}=\frac{246}{6}=41 \\[6pt] \) \(\text{Median} = \dfrac{42+43}{2}=42.5 \) |
|---|---|
|
Position |
\( \\[6pt] \text{Five-number Summary: } [30, 38, 42.5, 45, 48] \) |
|
Spread |
\( \\[6pt] \text{Range: } = 48-30=18 \\[6pt] \) \(\text{IQR: } = 45-38=7 \\[6pt] \) \(\text{MAD: } = \frac{28}{6} \approx 4.67 \\[6pt] \) \(s \approx 6.4 \) |
Comparing the summary statistics for the adjusted scores with those from the original data set, we see that adding 10 points to every score increases each measure of center and position by exactly 10 points. Both the mean and median increase by 10, and every value in the five‑number summary shifts higher by 10 as well. This behavior is expected: when every data value is shifted to the right on a number line by the same amount, all measures that depend on center or position of the data shift by that same amount.
In contrast, the measures of spread -- the range, IQR, MAD, and sample standard deviation -- remain unchanged. Shifting every data value by the same constant does not make the data more or less spread out. Because all values move together, the distances between the data values stay exactly the same. Spread measures, which depend on those distances, do not change.
These patterns always hold: adding or subtracting a constant affects measures of center and position but does not affect measures of spread.
Rescaling the Data: Multiplying or Dividing by a Constant
What happens to the measures of center, position, and spread when we multiply the same value by every value in the data set? This type of transformation scales the entire data set. Let's explore this idea by adjusting the original quiz scores again.
Ms. Maple thinks that the quiz should be worth 80 points instead of 40 points and decides to double every score. How does multiplying by 2 affect the summary statistics for the group of scores?
Solution
|
\(x\) |
20 |
28 |
32 |
33 |
35 |
38 |
|---|---|---|---|---|---|---|
|
\(2 \cdot x\) |
40 |
56 |
64 |
66 |
70 |
76 |
|
Center |
\( \\[6pt] \bar{x}=\dfrac{40+56+64+66+70+76}{6}=\frac{372}{6}=62 \\[6pt] \) \(\text{Median} = \dfrac{64+66}{2}=65 \) |
|---|---|
|
Position |
\( \\[6pt] \text{Five-number Summary: } [40, 56, 65, 70, 76] \) |
|
Spread |
\( \\[6pt] \text{Range: } = 76-40=36 \\[6pt] \) \(\text{IQR: } = 70-56=14 \\[6pt] \) \(\text{MAD: } = \frac{56}{6} \approx 9.33 \\[6pt] \) \(s \approx 12.9 \) |
Comparing the two tables, we see that multiplying each individual score by 2 doubles the measures of center -- the mean and median -- as well as the measures of position, such as the five‑number summary. This mirrors what happened when a constant was added: any measure that depends on the location of the data is scaled by the same factor applied to every data value.
However, in contrast to addition, the measures of spread -- the range, IQR, MAD, and sample standard deviation -- also double. This occurs because multiplying the data values stretches the distances between them. For example, doubling 20 increases it by 20 points, while doubling 38 increases it by 38 points. Larger values move farther than smaller values, so the overall spread widens. The spread measures reflect this increased distance among the data points.
This pattern will always hold. Multiplying every value in a data set by a constant multiplies all measures of center, position, and spread by that same constant. The same is true when dividing every data value by a constant: all measures of center, position, and spread are divided by that constant as well.
A sample of fitness trackers sold at TrackTime Electronics was collected. Summary statistics for the prices (in dollars) are shown below.
| Statistic | Value |
|---|---|
| Mean | $129.50 |
| Standard deviation | $42.30 |
| Median | $118.00 |
| Q3 | $155.00 |
| Range | $160.00 |
TrackTime Electronics decides to offer a promotion by reducing the price of every fitness tracker by $25. Find the new value of each statistic after the discount is applied.
Solution
Subtracting a constant from every data value shifts the entire set of data lower by that constant. Measures of center and location (mean, median, quartiles) decrease by the same amount, while measures of spread (range, IQR, MAD, standard deviation) remain unchanged.
| Statistic | Value | Value After Promotion Is Applied |
|---|---|---|
| Mean | $129.50 | Mean changes by the same amount. The new mean is \($129.50 - $25 = $104.50\). |
| Standard deviation | $42.30 | Standard deviation does not change when every value is shifted. The new standard deviation is $42.30. |
| Median | $118.00 | Median changes by the same amount. The new median is \($118.00 - $25 = $93.00\). |
| Q3 | $155.00 | Q3 changes by the same amount. The new Q3 is \($155.00 - $25 = $130.00\) |
| Range | $160.00 | Range does not change when every value is shifted. The new range is $160.00. |
A greenhouse records the heights of a sample of houseplants. The mean is 42.0 cm with standard deviation 6.5 cm. The median is 40.0 cm with IQR 15 cm.
After a month of consistent care, every plant grows exactly 3.2 cm. Find the new value of each statistic after the growth occurred.
- Answer
-
mean = 45.2 cm, standard deviation = 6.5 cm, median = 43.2 cm, and IQR = 15 cm.
The mean and standard deviation for a data set are 65 and 12.5, respectively.
If all values in the data set are doubled, what is the mean and standard deviation?
- Answer
-
mean = 130, standard deviation = 25.
On a 40‑question multiple choice exam, a teacher records the number of problems each student answered correctly. From the class results, the teacher calculates the
- Mean: 28.7 problems
- Median: 29 problems
- Standard deviation: 4.3 problems
To determine the exam grade, the teacher uses the following rule:
- Each correctly answered problem is worth 3 points.
- Every student receives an additional 5 points for writing their name on the exam.
That is, if a student answered \(x\) problems correctly, their grade \(G\) is
\(G=3x+5\).
Find the mean, median, and standard deviation of the exam grades.
Solution
Two separate transformations are applied to the original data set of problems correct. First, each number of correct problems is multiplied by 3 (a scale). Then, 5 points are added (a shift).
Remember:
- Measures of center and location (mean, median) are affected by both a scale and a shift.
- Measures of spread (standard deviation) are affected only by a scale.
The mean changes in the same way when the data is scaled by 3 and then shifted by 5. The mean of the grades is \(3(28.7)+5=86.1+5=91.1\).
The median changes in the same way both when the data is scaled by 3 and shifted by 5. The median of the grades is \(3(29)+5=87+5=92\).
The standard deviation changes in the same way when the data is scaled by 3, but it does not change when the data is shifted by 5. The standard deviation of the grades is \(3(4.3)=12.9\).
Effect of Adding/Removing a Data Value on the Measures of Center
Recall that one way to understand the mean is to think of it as a balancing point of the data set. Each data value contributes weight to one side or the other, and the mean is the point at which the data would balance if placed on a number line. Because of this, adding a new data value—or removing an existing one—will generally shift the balancing point unless the value happens to lie exactly at the mean.
When a new data value is added above the mean, the balance shifts to the right, causing the mean to increase. Likewise, removing a data value that is below the mean also causes the mean to increase, because the remaining values are, on average, larger. Conversely, adding a data value below the mean or removing a data value above the mean will cause the mean to decrease. In short, the mean moves in the direction of the new imbalance created by adding or removing a value.
The median can also be affected when a data value is added or removed, but not always. Because the median depends only on the position of values rather than their magnitudes, adding or removing a value may shift the middle position—or it may leave the middle position unchanged. For example, adding a value far above or far below the existing data might not change which value falls in the middle, while adding a value near the center could shift the median.
In summary, adding or removing a single data value can change both the mean and the median, but the mean is always affected unless the new value equals the mean, while the median is affected only when the middle position of the ordered data changes.
In the data set {1, 2, 3, 4, 4, 6, 6}, the median is 4.
What happens to the median if the value 3 is removed? What if one of the 6's is removed?
Solution
If the value 3 is removed, the median of {1, 2, 4, 4, 6, 6} is still 4. It's unchanged.
If the value 6 is removed, the median of {1, 2, 3, 4, 4, 6} is now 3.5. It changes.
In either case, the median does not change dramatically.
It is also important to recognize that adding or removing an extreme value—a value far from the rest of the data—will affect the mean much more than the median. The mean is sensitive to the magnitude of every data value because it incorporates all values directly in its calculation. In contrast, the median depends only on the position of values in the ordered list, not on how large or small those values are. As a result, extreme values can pull the mean noticeably upward or downward, while the median often remains unchanged or changes only slightly.
Let’s explore an easy example to see this difference in action.
Consider the very simple data set {1, 2, 3}. The mean is 2 and the median is 2. Suppose we include a huge value in the data set, like 100, so that the new data set is {1, 2, 3, 100}.
What happens to the median and mean?
Solution
The median increases only slightly—from 2 to 2.5—because the median depends on position, not magnitude. The extreme value 100 is placed at the end of the ordered list and does not strongly influence the middle position.
The mean becomes
\(\bar{x}= \dfrac{1+2+3+100}{4}=\dfrac{106}{4}=26.5\).
The mean increases dramatically -- from 2 to 26.5 -- because the mean incorporates all data values directly. The extreme value 100 heavily pulls the mean upward.
Four friends play a round of golf and their scores are {70, 71, 71, 103}. What effect does removing the 103 have on the mean and median of the set?
Solution
Removing the score 103 has no effect on the median -- it stays at 71. This makes sense because the median depends only on the center position of the ordered data, and the extreme value does not influence which value lies in the middle.
However, removing 103 has a large effect on the mean. The mean drops from 78.75 to 70.67, a change of more than eight points. This happens because the mean incorporates all data values, and the extreme score of 103 pulls the mean upward. Once that value is removed, the mean falls back to a level that more accurately reflects the tightly clustered scores.
This example illustrates that the mean is highly sensitive to extreme values, while the median is much more resistant to them.
Chuck selected 12 grocery items, each with a different price. The mean cost of the items was $7.41, and the median cost was $5.35. One of the items was a prime rib priced at $39.99. Chuck then decided to put the prime rib back and purchase only the remaining 11 items.
Describe how removing the prime rib affects the mean and the median of the prices.
Solution
Removing an item that is both extremely large and greater than the mean will cause the mean to decrease. The total cost decreases by $39.99 while the number of items decreases by only one, so the mean of the remaining 11 items must be lower.
The median also decreases, but only slightly. With 12 items, the median is the average of the 6th and 7th prices when ordered. After removing the largest item, the data set has 11 items, so the median becomes the 6th price alone. Because the removed value was the maximum, the middle of the data set shifts downward.
Thus, both the mean and the median decrease, but the mean decreases more noticeably.
Resistant vs. Non-resistant Measures
Statistical measures that change noticeably in the presence of extreme values or outliers are called non‑resistant measures. The mean is a non‑resistant measure of center because a single unusually large or small value can pull it upward or downward. In contrast, the median is largely unaffected by outliers, making it a resistant measure of center.
Measures of spread behave similarly. The interquartile range (IQR) is resistant because it is computed using only the first and third quartiles; extreme values do not influence its calculation. However, the range, mean absolute deviation (MAD), and standard deviation all incorporate the most extreme observations and are therefore non‑resistant measures of spread.
When selecting appropriate measures of center and spread, it is essential to consider whether outliers are present. If the data contain extreme values, the median and IQR provide more reliable descriptions of the distribution. In contrast, the mean, range, MAD, and standard deviation may be overly influenced by outliers and fail to represent the overall pattern of the data.
A group of 9 friends likes to bowl together, and each friend keeps track of their all‑time highest score in a single game. Eight of the friends have high scores between 140 and 180. Angie’s original high score is 195, which is higher than everyone else’s. Later, Angie bowls an even better game and raises her all‑time high score to 240 (replacing the 195).
Describe how Angie’s new high score will affect the median, mean, range, Q3, IQR, and standard deviation of the 9 high scores.
Solution
- Median: With 9 scores, the median is the 5th value in the ordered list. Changing only the largest value does not change the 5th value, so the median stays the same.
- Mean: The mean is the sum of all 9 scores divided by 9. Angie’s high score increases from 195 to 240, raising the total by \(240−195=45\) points. Since the total increases while the number of scores stays 9, the mean increases.
- Range: The range is the difference between the maximum and minimum. The minimum score does not change, but the maximum increases from 195 to 240. Therefore, the range increases by 45.
- Q3: For 9 ordered values, the upper half consists of the 4 largest values (positions #6–9). Angie’s score is the 9th (largest) value. Q3 is the median of the upper half, which depends on the middle of positions #6–9, not on the largest value alone. Since only the largest value changes, Q3 stays the same.
- IQR: The interquartile range is IQR=Q3−Q1. We have already seen that Q3 does not change, and none of the lower scores (which determine Q1) change either. Thus, the IQR stays the same.
- Standard deviation: Standard deviation measures how far the scores typically are from the mean. Making the largest score even larger increases the spread of the data and pulls the mean upward. Angie’s new score is farther from the mean than her old score, so the standard deviation increases.
A teacher records the heights of 9 children in her class. Eight of the children have heights between 118 cm and 135 cm. Leo’s height is originally 108 cm, which is lower than everyone else’s.
Later in the year, Leo grows to 112 cm, replacing the old minimum value of 108 cm. All other heights remain the same
Tell whether each of these statistics for the heights of the 9 children increases, decreases, or remains the same.
- mean
- median
- range
- Q1
- IQR
- standard deviation
- Answer
-
- increases
- remains the same
- decreases
- remains the same
- remains the same
- decreases
Section Summary
Adding or subtracting a constant from every value in a data set shifts the entire distribution without changing its spread. The mean, median, and the five‑number summary all increase or decrease by exactly that constant. Measures of spread -- such as the range, IQR, MAD, and standard deviation -- remain unchanged because the distances between data points stay the same.
Multiplying or dividing every data value by a constant scales the entire distribution. In this case, all numerical measures -- including the mean, median, five‑number summary, range, IQR, MAD, and standard deviation -- are multiplied or divided by that constant.
Some measures respond strongly to extreme values, while others do not. Resistant measures, such as the median and IQR, are largely unaffected by outliers and provide reliable descriptions of center and spread when the data contain extreme values. Non‑resistant measures, including the mean, range, MAD, and standard deviation, can be distorted by unusually large or small observations. When a data set includes outliers, choosing resistant measures—specifically the median for center and the IQR for spread—gives a more accurate and meaningful summary of the distribution.
Section 2.4 Review Questions
- Susan owns a small business that employs 5 other people. Susan makes $80,000 and pays the other 5 employees between $40,000 and $50,000 a year.
- If Susan gives everyone a $2000 raise (including herself), describe how this will affect the mean, median, IQR, and standard deviation of the salaries.
- If Susan gives everyone a 10% raise (including herself), describe how this will affect the mean, median, IQR, and standard deviation of the salaries. (Hint: Each new salary will be 110% of the old salary.)
- If Susan gives only herself a $10,000 raise, describe how this will affect the mean, median, IQR, and standard deviation of the deviation of the salaries.
- A café tracks the weights of individual bags of roasted coffee beans. From a recent sample, the mean bag weight is 6.75 pounds, and the standard deviation is 1.25 pounds.The café decides to include an additional 2.3‑pound promotional sampler inside every bag. What are the new mean and new standard deviation of the bag weights?
- A bakery measures the weights of individual bags of flour and finds that the mean weight is 6.75 pounds with a standard deviation of 1.25 pounds. Since 1 pound = 16 ounces, what are the mean and standard deviation of the flour bag weights in ounces?
- Sam played 5 rounds of golf and his lowest score on any round was 78. Later it was discovered that Sam broke a rule while playing so that score was removed from the data set. Describe the effect of removing the score of 78 on the mean and median.
- In Lois’ 2nd grade class, all the students were between 45 and 52 inches in height. One day Lucas, who is 62 inches tall, joined the class. Describe the effect of Lucas joining the class on the mean height and median height.
- Mr. Franklin was interested his average monthly electric bill. He gathered his bills for the past 12 months and calculated some descriptive statistics.
|
Mean |
Standard Deviation |
Minimum |
Q1 |
Median |
Q3 |
Maximum |
|---|---|---|---|---|---|---|
|
$174.23 |
$72.56 |
$94.75 |
$124.56 |
$146.50 |
$168.50 |
$412.00 |
After doing the calculations, he noticed that the maximum monthly bill for $412 should have been $212. How will making the correction affect each of the descriptive statistics below? State increases, decreases, or stays the same.
- mean
- standard deviation
- median
- IQR
- range
- The table shows the descriptive statistics for Ms. Baxter's 2nd period history exam. Terry made the lowest score of 64.
|
mean |
standard deviation |
Minimum |
Q1 |
Median |
Q3 |
Maximum |
|---|---|---|---|---|---|---|
|
82.2 |
22.4 |
64 |
75 |
84 |
88 |
96 |
It was later discovered that Terry had cheated, so Ms. Baxter changed his score to 0. What effect does changing Terry's score from 64 to 0 have on each of the descriptive statistics below? State increases, decreases, or stays the same.
- mean
- standard deviation
- median
- IQR
- range
- A sample of smart phones sold by WorstBuy was collected. Some summary statistics about the prices of the phones (in dollars) are shown below.
|
Mean |
Standard Deviation |
Median |
Q3 |
Range |
|---|---|---|---|---|
|
$251.69 |
$132.42 |
$246.00 |
$377.00 |
$441.00 |
WorstBuy decides to run a sale on all its smartphones by marking each phone down by $40.00. Find the values of the statistics once the sale price has taken effect.
- mean
- standard deviation
- median
- Q3
- range

