Talk:Cross-validation (statistics)

Claim about OLS' downward bias in the expected MSE
The article makes the following claim:


 * $$\begin{align}

\text{MSE} &= \frac 1 n \sum_{i=1}^n (y_i - \hat{y}_i)^2 = \frac 1 n \sum_{i=1}^n (y_i - a - \boldsymbol\beta^T \mathbf{x}_i)^2\\&= \frac{1}{n}\sum_{i=1}^n (y_i - a - \beta_1x_{i1} - \dots - \beta_px_{ip})^2 \end{align}$$

If the model is correctly specified, it can be shown under mild assumptions that the expected value of the MSE for the training set is (n &minus; p &minus; 1)/(n + p + 1) < 1 times the expected value of the MSE for the validation set (the expected value is taken over the distribution of training sets).

The text cites Trippa et al. (2015) specifically about the bias factor $$(n-p-1) / (n+p+1)$$. However, the paper does not seem to contain any discussion of this bias factor for OLS. Is there an algebraic proof available for OLS?

Based on a simple simulation, the claim seems to be true.

chery (talk) 16:32, 17 June 2022 (UTC); edited 17:37, 17 June 2022 (UTC)

"Swap sampling"
Is there another paper describing this method? The cited paper doesn't even call it "swap sampling" 24.13.125.183 (talk) 00:57, 15 February 2023 (UTC)

Unclear definition of cross validation
In "Motivation", the article says/defines cross-validation as: " If an independent sample of validation data is taken from the same population as the training data, it will generally turn out that the model does not fit the validation data as well as it fits the training data." What if instead, an independent sample of validation data is taken from a different population as the training data? It seems like a bad choice of syntax for that sentence. Eigenvoid (talk) 13:24, 18 May 2023 (UTC)

Outer test set
In the chapter "k*l-fold cross-validation", in the sentence: "The inner training sets are used to fit model parameters, while the outer test set is used as a validation set to provide an unbiased evaluation of the model fit." the text "outer test set" shouldn't be changed into "inner test set" since this is the validation of the fit of the model parameters? Cadoraghese (talk) 14:58, 30 September 2023 (UTC)