In what circumstances does the RMSE formula have a $k$ in the denominator?
StackOverflow's What does RMS stand for? shows this formula for RMSE:
$$RMSE=\sqrt{\frac1{n-k}\sum_i(y_i-\hat{y}_i)^2}$$
But most other sources don't have the "k" For example, https://www.statisticshowto.datasciencecentral.com/rmse/ or http://statweb.stanford.edu/~susan/courses/s60/split/node60.html
$$RMSE=\sqrt{\frac{\sum_{i=1}^n(\hat{y}_i-y_i)^2}{n}}$$
However, a little knowledge is a dangerous thing because a user is now questioning why I'm using subtracting k, because neither he (nor I) have seen k included in discussions on the web other than the first reference in my top post.
Where can I find an authoritative reference to subtracting k?
– Robert Frank Apr 06 '19 at 21:13