I am fitting an exponential model using GLM regression (assuming Gaussian error and a log link function) to 1000 trials, giving me 1000 slope-intercept pairs that are moderately correlated. I want to understand the reason for this correlation and whether it is simply an artifact of the y variable being measured at more or less the same values of x across trials, so the scale of x is basically fixed in each regression (see this post).
My question is, do we expect the slope and intercept to be correlated in this setting the same way they are in OLS regression or does the presence of this correlation suggest something different, given that:
- This is not the correlation of the slope-intercept sampling distributions for a particular trial (closer to the population distribution across all trials)
- This is not OLS regression (closer to nonlinear regression)
Based on your response, (1) the slope-intercept correlation should be the same for the OLS and GLM cases, and (2) I should be able to use the equation I shared in the linked post to approximate the expected correlation.
However, I don’t find either of these statements to be true. I find the correlation for the OLS example is -0.4 while for the GLM it is -0.5. Based on the equation in the post, the expected correlation is -0.7, which is exactly the correlation I get if I don’t fit an exponential model, but a line without transforming y. How could this be?
– Applesauce26 Dec 13 '23 at 12:37