Does Training R² Drop When You Add a Noise Predictor?
Statistics & ExperimentsModel answerLast updated
Decide whether the in-sample R² of an OLS fit can rise, stay flat, or fall when an irrelevant predictor is added, and how adjusted R² and held-out R² differ.
You have fitted an ordinary least-squares (OLS) linear regression on a fixed training set. You now add one more column to the design matrix: a feature that is pure noise, for example values drawn at random and unrelated to the target.
Refit the model by OLS on exactly the same training rows.
- Can the training R² go up, stay the same, or go down? Justify your answer with a short argument.
- State the assumptions your argument relies on (what is held fixed, what is being minimized, whether an intercept is included).
- Explain how the answer differs for adjusted R² and for R² measured on held-out data.
- Mention situations where the simple claim does not apply.
Hints
Hint 1
Think of the old model as a special case of the new one. Which coefficient value on the new column reproduces the old predictions exactly?
Hint 2
OLS picks the coefficients that minimize the residual sum of squares. What can you say about the minimum over a larger set of candidates versus a smaller one?
Hint 3
R² = 1 - RSS/TSS, and TSS depends only on the target, not on the features. Then compare adjusted R², which penalizes the number of parameters, and think about what changes when you evaluate on new data.
Model answer
Medium Try it yourself first — then compare your approach, complexity and edge cases.
Short answer
Training R² cannot decrease. It will stay the same or go up. With a random continuous feature it almost always goes up by a small amount, and it stays exactly the same only in degenerate cases. This is a fact about fitting, not about the feature being useful.
Assumptions
- The model is fitted by ordinary least squares, i.e. it minimizes the residual sum of squares (RSS) with no penalty.
- The same training rows and the same target are used before and after. No rows are dropped, for example because of missing values in the new column.
- The old features remain in the model and the intercept treatment is unchanged (an intercept is included in both fits, so R² = 1 - RSS/TSS is the usual definition).
- The solver finds the true minimizer (exact or well-converged), and the design matrix is not so degenerate that the problem is ill-posed.
Argument
-
Let the old model have predictors X and the new one have [X, z], where z is the random column.
-
Any old model's prediction Xb is also achievable in the new model by using coefficients (b, 0). So the old model's parameter set is a subset of the new one's (the models are nested).
-
OLS returns the minimum RSS over its parameter set. A minimum over a larger set cannot be larger than a minimum over a subset:
RSS_new ≤ RSS_old.
-
TSS = Σ(y - ȳ)² depends only on y, so it is identical in both fits.
-
Therefore R²_new = 1 - RSS_new/TSS ≥ 1 - RSS_old/TSS = R²_old.
Equality holds only if the optimal coefficient on z is exactly zero, which happens when z is orthogonal to the residual of the old fit (after accounting for the other columns). For a random continuous feature that is a measure-zero event, though it is possible with, say, a constant column that duplicates the intercept or a column that is an exact linear combination of existing ones.
Why a useless feature still helps in-sample
A random vector of length n has a nonzero sample correlation with the residual just by chance. The fit exploits that chance alignment to shave off a bit of RSS. The expected size of the gain is about one degree of freedom's worth: under the null where z is unrelated to y, the reduction in RSS is roughly σ² (one chi-square(1) term), so R² creeps up by about σ²/TSS on average. With small n or many noise columns this accumulates quickly, and with p ≥ n the fit can reach R² = 1 with nothing but noise.
Adjusted R²
Adjusted R² = 1 - (RSS/(n - p - 1)) / (TSS/(n - 1)).
Adding a feature lowers RSS a little but also lowers the denominator n - p - 1. For a useless feature, the RSS reduction is on average smaller than what is needed to offset the lost degree of freedom, so adjusted R² tends to decrease (or fluctuate around the old value). It increases only if the added feature's t-statistic exceeds 1 in absolute value, equivalently its partial F-statistic exceeds 1. So adjusted R² can go down or up, and with pure noise it will go up in some fraction of cases (roughly one third for large n, since P(|t| > 1) ≈ 0.32). It is a mild correction, not a rigorous test.
Held-out (test) R²
The extra coefficient was fitted to noise in the training sample, so it does not transfer. On new data, the noise column contributes random predictions scaled by the estimated coefficient, which adds variance. Expected test error therefore rises slightly (by roughly σ²/n per extra parameter in the fixed-design case, more with random designs), and test R² tends to decrease, though on a single test split it can move up or down by sampling noise. The gap between training and test R² grows. This is the bias-variance picture: no bias reduction, extra variance.
Where the claim breaks
- Regularized fits (ridge, lasso, elastic net): the objective is RSS plus a penalty, so what is guaranteed to be nonincreasing is the penalized objective, not RSS alone. Training R² can in principle fall in odd cases, though it usually still rises or is flat.
- Different samples: if adding the feature drops rows with missing values, TSS and RSS are computed on a different set and the comparison is invalid.
- No intercept: R² is defined with a different baseline (uncentered), so numbers are not comparable with the centered version, though the nesting argument still holds within a fixed definition.
- Non-OLS fitting: for example, early-stopped gradient descent or a non-converged solver may not reach the minimum, so monotonicity can fail numerically.
- Nonlinear or non-squared-loss models: the nesting argument carries over to any model class where the old model is a special case and the fit is a true minimizer of the training loss, but not for heuristics such as greedy trees.
Common mistakes
- Saying training R² "can decrease because the feature is noise." It cannot under OLS.
- Treating a small training R² increase as evidence the feature is informative. Use a partial F-test, cross-validation, or held-out R².
- Confusing adjusted R² with a guarantee. It is only a heuristic penalty.
- Forgetting that TSS must be the same in both fits.
Practical takeaway
Never judge a model or feature by training R² alone. Use adjusted R², information criteria (AIC/BIC), cross-validation, or a test set, and run a significance test on the added coefficient before concluding a feature helps.