Skip to content
DeepForgeby svx
All problems
EasyStatisticsst-350

RMSE from SSE

Problem

The root mean squared error is sqrt(SSE / n).

Given the residual sum of squares and the number of observations, return the RMSE.

Hint

Take the square root after averaging the squared residuals.

Test cases

case 1
in: [10,10]
expected: 1
case 2
in: [4,1]
expected: 2
case 3
in: [0,5]
expected: 0
Starter codePython
def rmse_from_sse(sse, n):
    # Your code here
    pass

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