Ridge regression

    Ridge regression is least-squares regression with a penalty on the size of the coefficients, which steadies the estimates when inputs are correlated.

    Last reviewed

    When two channels rise and fall together, ordinary regression can swing wildly, loading credit onto one and taking it from the other. The ridge penalty damps that by shrinking both toward zero. Meta's open-source Robyn uses ridge regression at its core. The strength of the penalty is a setting, and the choice changes the answer.

    Topic
    Mix modeling

    Related terms

    Regularization
    Regularization is a penalty added to a model's fitting process that discourages extreme coefficient values, trading a little fit for estimates that are more stable.
    Ordinary least squares (OLS)
    Ordinary least squares is the basic form of regression: it picks the coefficients that make the sum of squared gaps between predicted and actual values as small as possible.
    Multicollinearity
    Multicollinearity is when two or more inputs to a model move together so closely that the model can't tell their separate effects apart.
    Robyn
    Robyn is an open-source marketing mix modeling package from Meta, written in R, that fits many candidate models using ridge regression and an automated search over settings.
    Hyperparameter
    A hyperparameter is a setting that shapes how a model is built or fitted and is chosen outside the main estimation, such as an adstock decay rate, a saturation shape, or the strength of a penalty.

    Want a second opinion?

    Tell us what you're trying to decide and what data you have, and we'll tell you what we'd do. Or take the short readiness quiz first. It's a rough screen, not a verdict. Both open on the home page.