Hi prasad,
Right, tricky, you say “when a sample variance is used to estimate the population variance 1 df is being lost” and that’s a good start: in order to estimate the sample variance, we need a sample mean, so we are we are “reusing” one data point (losing one independent observation)...the concept extends…
Chh 7 refers to two-variable regression not to sample mean. Always we refer to estimators! But before estimator = sample mean, now with a two-variable regression, we have three estimators:
slope
intercept
predicted Y
The test for all three of these estimators uses the standard error of regression (SER) as an input into the standard error;
in an analogy to how we need to “consume” 1 sample mean in order to produce a sample variance,
we need to consume slope and intercept in order to produce the SER that gives us a standard error to use for the test
(just as sample variance gives us a standard error for test of sample mean)
In this way, to get a SER that we need for the test will always require k = the number of slope + intercept estimators:
two variable regrssion: df = n -2
3 variable: df = n - 3
k variable: df = n - k
etc
(so we can safely say that k = number of variables and d.f. = n - k but technically k is not the variables but k is the coefficients; ie., the intercept is consumed not the Y variable)
Hope this helps, David