How does a prior turn maximum likelihood into penalized estimation, and why is it equivalent to regularization?

Quick Overview

Asks how putting a prior on a parameter turns maximum likelihood into a penalized objective, and why the log-prior acts as a regularization term. Tests MAP estimation, the Gaussian and Laplace priors behind ridge and lasso, and the limits of the equivalence.

How does a prior turn maximum likelihood into penalized estimation, and why is it equivalent to regularization?

Role: Data Scientist

Category: Statistics & Math

Difficulty: medium

Interview Round: Other

How does placing a prior on a parameter turn likelihood maximization into penalized estimation, and why is a prior mathematically equivalent to a regularization term? Linear regression with Gaussian noise is a good running example. ```hint Take logs Write the posterior with Bayes' rule and take its log. Which terms depend on $\theta$, and which can be dropped? ``` ```hint Try a specific prior Put a zero-mean Gaussian prior on each weight and write out its negative log. Which familiar penalty do you get, and what sets its strength? ``` ### What a Strong Answer Covers - The step from Bayes' rule to an objective made of a log-likelihood term and a log-prior term. - Which common priors produce which familiar penalties, and how the prior's scale maps to the penalty strength. - What happens with a flat prior and as the amount of data grows. - Where the equivalence stops, such as a point estimate versus the full posterior, or reparameterization. ### Follow-up Questions - Which prior corresponds to the elastic net penalty? - Why does an L1 penalty produce exact zeros while the posterior under a Laplace prior puts no mass at exactly zero? - Is the MAP estimate unchanged if you reparameterize $\theta$? Why or why not? - How could you choose the regularization strength in a Bayesian way, without cross-validation?

Overview: Asks how putting a prior on a parameter turns maximum likelihood into a penalized objective, and why the log-prior acts as a regularization term. Tests MAP estimation, the Gaussian and Laplace priors behind ridge and lasso, and the limits of the equivalence.

General logo
General
Nov 24, 2026
mediumData ScientistOtherStatistics & Math
0
0

How does placing a prior on a parameter turn likelihood maximization into penalized estimation, and why is a prior mathematically equivalent to a regularization term?

Linear regression with Gaussian noise is a good running example.

What a Strong Answer Covers Guidance

  • The step from Bayes' rule to an objective made of a log-likelihood term and a log-prior term.
  • Which common priors produce which familiar penalties, and how the prior's scale maps to the penalty strength.
  • What happens with a flat prior and as the amount of data grows.
  • Where the equivalence stops, such as a point estimate versus the full posterior, or reparameterization.

Follow-up Questions Guidance

  • Which prior corresponds to the elastic net penalty?
  • Why does an L1 penalty produce exact zeros while the posterior under a Laplace prior puts no mass at exactly zero?
  • Is the MAP estimate unchanged if you reparameterize θ\theta ? Why or why not?
  • How could you choose the regularization strength in a Bayesian way, without cross-validation?