Skip to content
DeepForgeby svx
All problems
EasyStatisticsst-324

Root Mean Square Value

Problem

The root mean square is sqrt(mean(x_i^2)), which penalizes large deviations more than the arithmetic mean.

Given the values, return the root mean square.

Hint

Average the squares before taking the square root.

Test cases

case 1
in: [[1,2,3]]
expected: 2.160246899469287
case 2
in: [[0,0]]
expected: 0
case 3
in: [[3,4]]
expected: 3.5355339059327378
Starter codePython
def root_mean_square_value(values):
    # Your code here
    pass

3 test cases · run your code against them in the editor