HyperAIHyperAI

Command Palette

Search for a command to run...

Generalized Linear Model

Date

3 years ago

Generalized Linear ModelsIt is a flexible linear regression model that allows the dependent variable to have a distribution form other than the normal distribution.

definition

The generalized linear model is an extension of simple least squares regression. Assuming that each data observation latexYlatex {Y}latexY comes from an exponential family distribution, then the mean latexμlatex {\mu}latexμ of the distribution can be explained by the independent latexXlatex {X}latexX at that point:

latexE(y) = μ = g1(Xβ)latex {E{ \left( {y} \right) }\text{ }=\text{ } \mu \text{ }=\text{ }g\mathop{{}}\nolimits^{{-1}}{ \left( {X \beta } \right) }}latexE(y) = μ = g1(Xβ)

Among them, latexE(y)latex {E{ \left( {y} \right) }}latexE(y) is the expected value of latexylatex {y}latexy, latexXβlatex {X \beta }latexXβ is the linear estimation formula composed of the unknown to-be-estimated parameters latexβlatex {\beta }latexβ and the known variables latexXlatex {X}latexX, and latexglatex {g}latexg is the link function.

In this mode, the variance latexylatex {y}latexy of latexVlatex {V}latexV can be expressed as:

latexVar(y) = V(μ) = V(g1(Xβ))latex {Var{ \left( {y} \right) }\text{ }=\text{ }V{ \left( { \mu } \right) }\text{ }=\text{ }V{ \left( {g\mathop{{}}\nolimits^{{-1}}{ \left( {X \beta } \right) }} \right) }}latexVar(y) = V(μ) = V(g1(Xβ))

where latexVlatex {V}latexV can be viewed as a function of an exponential random variable, and the unknown parameter latexβlatex {\beta }latexβ is usually estimated using the maximum likelihood estimator, the almost maximum likelihood estimator, or the Bayesian method.

Model composition

The generalized linear model consists of the following main parts:

  1. Distribution function latexflatex {f}latexf from the exponential family.

  2. Linear predictor latexη = Xβlatex { \eta \text{ }=\text{ }X \beta }latexη = Xβ .

  3. The link function latexglatex {g}latexg such that latexE(y) = μ = g1(η)latex {E{ \left( {y} \right) }\text{ }=\text{ } \mu \text{ }=\text{ }g\mathop{{}}\nolimits^{{-1}}{ \left( {\eta } \right) }}latexE(y) = μ = g1(η) .

References

【1】Generalized linear model - Wikipedia

Build AI with AI

From idea to launch — accelerate your AI development with free AI co-coding, out-of-the-box environment and best price of GPUs.

AI Co-coding
Ready-to-use GPUs
Best Pricing

HyperAI Newsletters

Subscribe to our latest updates
We will deliver the latest updates of the week to your inbox at nine o'clock every Monday morning
Powered by MailChimp
Generalized Linear Model | Wiki | HyperAI