If you log-transform your dependent variable, how does the interpretation of your coefficients change?

Quick Overview

Asks how log-transforming the outcome in a linear regression changes the meaning of its coefficients. Tests interpreting coefficients on a log scale, when the usual shortcut breaks, back-transforming predictions to the original units and when a log outcome is appropriate.

If you log-transform your dependent variable, how does the interpretation of your coefficients change?

Role: Data Scientist

Category: Machine Learning

Difficulty: medium

Interview Round: Other

If you log-transform your dependent variable, how does the interpretation of your coefficients change? Assume an ordinary least squares regression of $\log y$ on a set of predictors, where $y$ is something like wages or prices. ```hint Exponentiate Write the model for $\log y$, raise one predictor by one unit, and exponentiate both sides to see what happens to $y$ itself. ``` ### What a Strong Answer Covers - What a one-unit change in a predictor does to $y$, stated exactly - When the common approximation for small coefficients holds, and when it breaks - Which summary of $y$ the coefficient describes, and why back-transformed predictions need a correction - Why and when to log the outcome, including the requirement that $y$ be positive ### Follow-up Questions - How do you interpret the coefficient when both $y$ and $x$ are logged? - In a log-$y$ model, a binary treatment indicator has a coefficient of 0.4. What is the effect of treatment on $y$? - Your outcome has many zeros. What can you do instead of taking $\log y$? - How would you turn predictions from the log model into predicted means in the original units?

Overview: Asks how log-transforming the outcome in a linear regression changes the meaning of its coefficients. Tests interpreting coefficients on a log scale, when the usual shortcut breaks, back-transforming predictions to the original units and when a log outcome is appropriate.

Nov 25, 2026
mediumData ScientistOtherMachine Learning
0
0

If you log-transform your dependent variable, how does the interpretation of your coefficients change?

Assume an ordinary least squares regression of log⁡y\log y on a set of predictors, where yy is something like wages or prices.

What a Strong Answer Covers Guidance

  • What a one-unit change in a predictor does to yy , stated exactly
  • When the common approximation for small coefficients holds, and when it breaks
  • Which summary of yy the coefficient describes, and why back-transformed predictions need a correction
  • Why and when to log the outcome, including the requirement that yy be positive

Follow-up Questions Guidance

  • How do you interpret the coefficient when both yy and xx are logged?
  • In a log- yy model, a binary treatment indicator has a coefficient of 0.4. What is the effect of treatment on yy ?
  • Your outcome has many zeros. What can you do instead of taking log⁡y\log y ?
  • How would you turn predictions from the log model into predicted means in the original units?