All problems
Slope t Statistic
Problem
The t statistic for an OLS slope is the slope divided by its standard error.
Given the slope and its standard error, return the statistic.
Hint
It measures how many standard errors the slope is from zero.
Test cases
case 1
in: [2,0.5]
expected: 4
case 2
in: [-1,0.25]
expected: -4
case 3
in: [0,1]
expected: 0
Starter codePython
def slope_t_statistic(slope, se):
# Your code here
pass3 test cases · run your code against them in the editor