Skip to content

Feature scaling changes the penalty

Question

A ridge model uses one feature in dollars and another in millions of dollars. Why can the units change the fitted model?

Short answer

A rescaled feature requires a correspondingly rescaled coefficient to produce the same prediction. Ridge penalises coefficients, so equivalent predictions can receive different penalties under different units. Fit scaling statistics on the training window and apply them unchanged to validation data. Leave the intercept unpenalised. Standardisation improves comparability, although intentional economic penalty weights may be appropriate.

Original question and answer written by SelfMadeQuant.com.

See the hint and the full worked solution in the question bank (free account).

Open the worked solution

Lessons behind this question

Start with a free lesson: Normal Distribution is part of a free topic. Create a free account, no card needed, to read it in full with worked solutions.

Read it free