sta-363-s20 / community

Discussion, Q&A, everything you want to say, formatted nicely
1 stars 0 forks source link

cubic spline degrees of freedom #71

Closed Cindyyyhey closed 4 years ago

Cindyyyhey commented 4 years ago

屏幕快照 2020-03-31 上午12 27 45 Hi Professor McGowan! Since we know that cubic spline with k knots have k+4 degrees of freedom, we have 3+4=7 degrees of freedom in total. 6 are used for horsepower variable and 1 df used for weight variable . Why don't we need to count the df of intercept here?

LucyMcGowan commented 4 years ago

Yes there are 6 for horsepower, 1 for the intercept (that’s k+4) and 1 for weight, so 8 total for everything in the model.

Cindyyyhey commented 4 years ago

Got it, Thanks!