ARITHMETIC WORKSHEETS

Checking a mean and median after adding the same constant

Adding the same amount to every value in a list moves the mean and the median by that amount and leaves the spread alone. This guide checks it on 2, 5, 8 shifted by 10.

A uniform shift

Start with the list 2, 5, 8. Its mean is (2 + 5 + 8) / 3 = 5 and its median, the middle value, is 5. Add 10 to every entry and the list becomes 12, 15, 18. The mean is now 45 / 3 = 15, and the median is 15. Both measures of location rose by exactly 10. The minimum moved from 2 to 12 and the maximum from 8 to 18, each by 10, and the count stayed at 3. The average calculator reports all of these for each list, so you can confirm the shift in one pass.

Why the mean shifts by the constant

The mean of the shifted list is the sum of (x + c) divided by n. Splitting the sum gives the sum of x plus n × c, and dividing by n gives the original mean plus c. For the example, the original sum is 15 and the shifted sum is 15 + 3 × 10 = 45. Dividing by 3 gives 5 and 15. The argument works for any constant, positive, negative or fractional, and for any list length. Try a fractional shift on the same list: adding 0.5 gives 2.5, 5.5 and 8.5, whose sum is 16.5 and whose mean is 5.5, which is 5 + 0.5. The median is also 5.5, the middle entry of the shifted list. Nothing about the result depends on the shift being a whole number or on the original values being whole numbers. It relies only on the fact that the constant is added once to each of the n entries.

Why the median shifts too

The median depends on the order of the values. Adding the same constant to every value does not change which value is in the middle, since every pair keeps its difference. The sorted order of 12, 15, 18 is the same as that of 2, 5, 8. The middle element is the same entry, now larger by 10. For lists with an even count, the median is the average of the two middle values, and that average shifts by the constant as well. For 1, 2, 4, 9, the median is 3 and the mean is 4. After adding 10, the list 11, 12, 14, 19 has median 13 and mean 14.

A shift by a negative number

A negative constant works the same way. Subtract 3 from 2, 5, 8 and the list becomes -1, 2, 5. The mean is 2 and the median is 2, each 3 below the originals. The minimum is -1, the maximum 5. Subtraction is addition of a negative constant, so there is nothing new here. It is worth trying once, because spreadsheets sometimes treat a pasted minus sign as text, and a list with a shifted sign has a different mean than one where the sign was kept.

What the shift leaves alone

Measures of spread are unchanged by the shift, because every pairwise distance between values stays the same. The range of 2, 5, 8 is 6, and so is the range of 12, 15, 18. The variance and the standard deviation are unchanged for the same reason: deviations from the mean are identical before and after. The shift moves the location of the data without changing their shape. Scaling behaves differently. Multiply 2, 5, 8 by 10 to get 20, 50, 80 and the mean becomes 50, while the spread is multiplied by 10 as well.

Temperature scales as a real case

Converting Celsius to kelvin adds 273.15 to every reading. A set of readings of 20, 22 and 25 degrees Celsius has a mean of about 22.333, and the same readings in kelvin, 293.15, 295.15 and 298.15, have a mean of about 295.483. The mean moved by 273.15 and the differences between readings stayed the same. This is also why a temperature change of 5 degrees Celsius equals a change of 5 kelvin. Converting to Fahrenheit is different, since it also multiplies by 9/5, which scales the spread.

Making sure the transformation is uniform

The result holds only when the same constant is added to every entry. Adding 10 to one value gives a different outcome. If 8 became 18 in the list 2, 5, 8 and the others stayed, the list would be 2, 5, 18, with mean 8.333 and median 5. The mean moved by one third of the added amount, and the median did not move at all. In a spreadsheet, a common slip is applying a formula to part of a column. Compare the count of changed cells with the count of rows before trusting a shifted column. A second safeguard is to compute the minimum and maximum before and after, because both must move by exactly the constant. If the minimum moved by 10 and the maximum by 0, the transformation skipped at least one row. The list 2, 5, 18 shows how a partial shift looks in the summary: the maximum jumped by 10, but the minimum stayed at 2.

Where shifts appear in practice

Shifts show up when data are recoded to a different zero point. Examples include measuring heights from a floor offset, converting clock times to minutes after a reference time, or expressing a score as the number of points above a passing mark. In each case, location statistics can be computed on the original scale and then shifted, which is sometimes simpler than recomputing. The reverse also works: subtract the offset from a reported mean to get the mean on the original scale, as long as the offset applied to every value.

Why a constant shift is only a transformation

The worksheet checks a mathematical transformation of a complete list. It is not a correction method for measurement data, and it makes no claim that a constant offset is a valid adjustment for any instrument. Keep the original values and the intended transformation separate, so the shift can be audited and undone. Use the original and shifted summaries side by side, and confirm that the mean and median differ by the constant while the spread statistics match. For the list used here, the differences are 10 for the mean, 10 for the median, 10 for the minimum and 10 for the maximum, and the count is 3 both times. Any row of that comparison that deviates points to a mistake in the transformation rather than in the statistics, so the table works as a test of the spreadsheet itself.

Reproduce the checks

Original list

Open the Average calculator and enter:

Values
2,5,8

Expected output:

Arithmetic mean

5

Median

5

Minimum

2

Maximum

8

Number of values

3

This supplies the baseline summary.

Uniformly shifted list

Open the Average calculator and enter:

Values
12,15,18

Expected output:

Arithmetic mean

15

Median

15

Minimum

12

Maximum

18

Number of values

3

Every location value increases by ten.

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

Related tasks