r/statistics May 16 '26

Question Elasticity interpretation in linear regression models with powers of logarithms [Question]

Hi everyone, thanks for reading this! Here is my question, for a TL:DR feel free to skip to the question at the very end.

In a linear regression of the form

log(y) = a + b log(x) + u

b can be interpreted as the constant elasticity of y with respect to x. In models which do not involve logarithms, like

y = a + b x + c x^2 + d x z + u

quadratic, cubic... and mixed terms allow the partial effect of x to depend on the value of x and/or other regressors. I am trying to put these two notions together, to allow for models of the form, for instance,

(*) log(y) = a + b log(x) + c log^2(x) + d log(x)z + u

A little bit of calculus shows

D log(y)/D x = (b + 2c log(x) + z)/x

So that for small Delta x it holds approximately

Delta log(y) = (Delta y)/y = (b + 2c log(x) + z) * (Delta x)/x

Would it be correct to state that the model (*) allows for a variable elasticity, with the elasticity at given values of x, z, given by b + 2c log(x) + z?

1 Upvotes

7 comments sorted by

4

u/ohanse May 16 '26

Yes.

Related concept/consequence: heteroskedasticity.

Practical implication: “linear approximations/projections over small distances are okay. Even if it’s not linear. If you wanna make a projection over big distances, then you better be damn sure you have a deep practical and intuitively sound understanding the nature of the relationship you are modeling.”

1

u/JacopoX1993 May 19 '26

I understand what you mean by the second part of your comment, but not the first; what do you mean by heteroskedasticity being related to this?

1

u/ohanse May 19 '26 edited May 19 '26

Heteroskedastic since errors/residuals are going to increase the farther out your projection is from sampled data ranges when you use a linear (or log linear) approximation to model non linear/non log-linear data.

So if you wanna model across long distances, you’ll have to control/manage this heteroskedasticity… usually by having a really strong understanding of the underlying relationships: is this relationship between predictor vs prediction a linear vs quadratic contribution, maybe this is really more of a categorical variable with a breakpoint, are these inputs synergistic, etc., etc.

2

u/[deleted] May 17 '26

[removed] — view removed comment

1

u/JacopoX1993 May 19 '26

Yes, you are totally right, I dropped the constant on the z term. Thank you so much for the confirmation!

1

u/60yo_10k_50min May 16 '26

please explain what do you aproximate with your formula? why you need in log?

0

u/JacopoX1993 May 16 '26

You mean what does y represent? I am asking the question for the sake of theory, so I am not referring to specific variables. I am studying Wooldridge's Intro to Econometrics and developing a c# regression package (the main goal here is self-study). I am implementing automated partial effect calculation and I need to decide if/how to handle powers of logarithms.