I'm beginning with the regression analysis and I'm quite confused with the generalized linear regression.
I understand, that the ordinary linear models can be described with a formula
$$ y_i = \beta_1 x_1 + \beta_2 x_2 + \cdots + \beta_n x_n + \epsilon_i $$
and when using generalized linear regression I'd expect it to be something like this
$$ g\left(y_i\right) = \beta_1 x_1 + \beta_2 x_2 + \cdots + \beta_n x_n + \epsilon_i, $$ $g$ being the link function.
But, instead I came across this formula
$$ g\left(E[\mathbf{y}]\right) = \mathbf{x'}\mathbf{\beta} $$
and I don't get, what's the expected value in the left doing there.
Could you, please, explain it a little?