How to determine degree of freedom?
Why the Total variation (TSS) has n-1 degree of freedom, the sum of squared errors or residuals has n-(k+1) degree of freedom and the regression sum of squares has k degree of freedom? And why Durbin–Watson statistic use k and n to determine dl and du?
where n=number of observation, k=number of independent of variables.
By the way, I think error and residual are total different terms. But why the sum of squared errors and the sum of squared residuals are exactly the same term?