Skip to content

A penalty on the intercept

Question

Why is an intercept usually excluded from ridge regularisation? What changes if you penalise it?

Short answer

An intercept represents the baseline level rather than sensitivity to a feature. Penalising it shrinks the baseline toward zero, so changing the target's origin can alter substantive predictions. Exclude its entry from the penalty matrix, or centre features and target and restore the training target mean afterward. Penalising an intercept can be intentional if a zero-baseline prior is justified.

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