I've been recently learning about GLM's after learning about ordinary linear regression. In simple linear regression, I believe that an error term is used in order to account for randomness in the actual response when we predict values, like the equation below:
Yi= β0+ βxi+ ϵi
Where ϵi follows a normal distribution with expectation 0 and variance sigma^2. However I believe that this assumes that our Y variable follows a normal distribution.
I was wondering what would be the equivalent error term (if any) for GLM's that we model assuming Y follows another distribution (such as Poisson or Gamma), and if it relates anyway to the "link" function used in GLMS.
Thanks!