ARITHMETIC WORKSHEETS

Comparing signed cancellation with root mean square

The values 3 and negative 3 average to zero but have a root mean square of 3. This guide shows why squaring first keeps the size of both values.

Cancellation in the arithmetic mean

The arithmetic mean adds the values and divides by their count. A positive value and a negative value of the same size add to zero, so the mean of 3 and negative 3 is 0. That answer is correct for what the mean measures, which is the balance point of signed values. It says nothing about how far the values are from zero. A signal that swings between plus 3 and minus 3 and a signal that sits at zero all the time have the same mean. When the size of the swing matters, as it does for alternating currents, vibrations and errors that can go either way, the mean is the wrong summary.

The three steps of RMS

Root mean square is the name for three operations in order: square each value, take the mean of the squares, then take the square root of that mean. For 3 and negative 3 the squares are 9 and 9. Their mean is 9, and the square root of 9 is 3. The root mean square is 3, the typical size of the values ignoring sign. The formula is the square root of the sum of squares divided by the count. Squaring removes the sign because any real number squared is nonnegative, and the final root brings the result back to the units of the original values.

Comparing the two outputs

The average calculator returns a mean of 0 for the list 3, negative 3, and the root mean square calculator returns 3 for the same list. The difference is the whole point. The mean describes direction and balance, the RMS describes magnitude. For a list of values that are all the same sign, the two numbers are closer. The list 3 and 4 has a mean of 3.5 and an RMS of about 3.5355, the square root of 12.5. The RMS is never smaller than the absolute value of the mean, and it equals that absolute value only when all values are identical.

A relation between RMS, mean and spread

For a list treated as a full population, the mean square equals the square of the mean plus the variance. For 3 and negative 3, the mean is 0, the variance is 9 and the mean square is 9, which matches. This shows that RMS combines the central value and the spread. When the mean is zero, RMS equals the standard deviation of the population. When the spread is zero, as with a list of equal values, RMS equals the absolute value of the common number. The relation is a handy check on a result, and it explains why RMS is sensitive to large values.

Alternating signals as an example

A square wave that alternates between plus 1 and minus 1 has a mean of 0 and an RMS of 1, and the list 1, negative 1, 1, negative 1 confirms it in the calculator. For a sine wave, the RMS equals the peak value divided by the square root of 2, about 0.7071 times the peak. This is why a mains supply quoted as 230 volts RMS has a peak near 325 volts, since 230 times 1.4142 is about 325. The worksheet itself uses abstract numbers, but these familiar cases show where the same calculation appears in practice.

Why the sign is lost

RMS summarizes the size of the values and cannot tell you which direction they pointed. The lists 3, negative 3 and 3, 3 and negative 3, negative 3 all have an RMS of 3. If sign matters, report the mean alongside the RMS, because the pair gives both the balance and the magnitude. A list with a mean of 2 and an RMS of 3 differs from a list with a mean of 0 and an RMS of 3 in the way the values are arranged, even though both have the same RMS.

Weighting large values

Squaring gives larger values more influence than smaller ones. In the list 1, 1, 1, 7 the arithmetic mean is 2.5, while the RMS is the square root of 13, about 3.6056, because the 7 contributes 49 to the sum of squares. An RMS much higher than the mean signals a few large entries or a wide spread. This sensitivity is useful when large deviations are costly, and it is a drawback when an outlier is a recording error. As with any summary, check the raw list before relying on one number.

Input checks

The calculator expects a list of numbers separated by commas. Negative values are entered with a leading minus sign, as in 3,-3. The count must be at least one, and the result is always zero or positive. If an RMS result comes out negative or smaller than the absolute mean, an input was misread. Entering the same list in the average calculator and checking the mean alongside the RMS is a quick sanity test, and so is verifying that RMS squared times the count equals the sum of squares. For 3 and negative 3, 3 squared is 9, times 2 is 18, and the squares 9 plus 9 also total 18. Blank entries and stray text are the usual cause of surprising output, so read the list back before trusting the number, especially when a minus sign was typed as a dash or a decimal point as a comma.

RMS needs measurement context

The worksheet uses two abstract numbers to contrast cancellation with magnitude. Applying RMS to a physical measurement needs the context of the measurement, such as sampling over a full cycle, the units of the signal and whether the instrument reports true RMS or an estimate based on an assumed waveform. Those points are outside the example. Here the lesson is the order of operations and the reason that squaring comes before averaging. The order matters because the operations do not commute. Taking the mean first and squaring afterward gives the square of the mean, which is 0 for this pair, and averaging absolute values gives a third answer, 3, that happens to match here and diverges for other lists. For 1 and 7, the mean of absolute values is 4, while the RMS is the square root of 25, which is 5. Each summary answers a different question, so name the one you use.

Reproduce the checks

Arithmetic cancellation

Open the Average calculator and enter:

Values
3,-3

Expected output:

Arithmetic mean

0

The signed contributions sum to zero.

Squared-magnitude summary

Open the Root Mean Square Calculator and enter:

Numbers
3,-3

Expected output:

Rms

3

Both squared contributions are positive nine.

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