Root mean square
This is where the root mean square is helpful. The RMS first squares the difference values, it then calculates the average and finally takes the root of the result. The square and root operations cancel each other out. And the square operation also neatly solves our problem of negative numbers. Since we are now squaring numbers larger differences count heavier in the final value.