Skip to content
DeepForgeby svx
All problems
HardStatisticsst-347

Standard Error of the Slope

Problem

The standard error of the OLS slope is sqrt(MSE / Sxx) with MSE = SSE / (n - 2).

Given SSE, the sample size, and Sxx, return the standard error.

Hint

Divide the mean squared error by the predictor sum of squares.

Test cases

case 1
in: [10,12,20]
expected: 0.22360679774997896
case 2
in: [5,7,5]
expected: 0.4472135954999579
case 3
in: [0,10,4]
expected: 0
Starter codePython
def standard_error_of_the_slope(sse, n, sxx):
    # Your code here
    pass

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