# Transforming skewed distribution of dependent variable in linear regression?

As I understand it, the skewness of the response variable in a linear regression does not need to be normal (only the residuals need to be normally distributed). However, I was generally wondering if I can log-transform my response variable so its distribution becomes more normal prior to regression and if this has any benefits/drawbacks.

For context, my response variable y is Medicaid coverage, which has a right-skew in the state I am analyzing. If I log transform this variable using np.log(y + 1), the distribution looks approximately normal. I was wondering if this would be appropriate for a linear regression, or if I don't even need to do this/it is bad practice to do this.

• log(y + 1) is bad practice because it is not scale-invariant; your conclusions should be the same regardless of whether coverage is in dollars or thousands of dollars (or whatever units you are using), but this is not true for this transformation.
– Noah
Mar 22, 2022 at 7:06
• Could you elaborate on what you mean by scale-invariant? @Noah Mar 22, 2022 at 7:08
• If you use generalized linear models with logarithmic link, then zeros are tolerated because the assumption is that the mean function is positive, not that all the data are. On the other hand, if you have lots of zeros, then you're perhaps looking at a zero-inflated response. Mar 22, 2022 at 7:18
• @homoscedasexual Stated again, your conclusions should be the same whether you measured coverage as individuals covered per 100,000 or individuals covered per 1,000. Using log(y + 1) means that your results will change depending on your scale (i.e., because 1 + 4316 is different from 1 + 43.16). Scale invariant means the conclusions do not depend on the scale of the variable (e.g., whether distance is measured in feet, inches, or meters or whether dollars is measured in thousands or millions).
– Noah
Mar 22, 2022 at 20:43
• Log of proportion can sometmes make sense, but you have the same problem with zeros. Again, generalized linear models with logit link may help here. Mar 23, 2022 at 10:34

But why take logs? One reason is if our interest is in multiplicative rather than additive notions of the DV. This frequently happens with money variables. We think about raises, or price increases, or whatever, in % terms, not amount terms. \$5 off on a car is meaningless. \$5 off on a sandwich is amazing.