Linear model (2)--Generalized linear model

Source: Internet
Author: User

Outline:

    1. Review multivariate linear regression
    2. The basic form of generalized linear model
    3. Logarithmic linear regression
    4. Learning and reference

1. Review multivariate linear regression

In the last essay, the basic form of a linear model--multivariate linear regression--is described as follows:

Figure A

In multivariate linear regression, the predicted values of the model are all distributed in a straight line, so the model can work well only when the real distribution of the sample points is roughly the same as the shape of the desired line. The situation is roughly two:

Figure II

In Figure two, we think that the distribution of the sample point is linearly variable, so our model's predicted value directly approximation to the real value of the sample point y itself, but in real life, many times the distribution of sample points is not as shown in Figure two, then we have a model that can be extended to the linear model to adapt to more realistic situation? Let's say we have a collection of sample points like figure three;

Might

Before we learn how to get the predicted value of a model to approximate three straight lines, let's take a look at what a generalized linear model is.

2. Basic forms of generalized linear models

The basic form of the generalized linear model four:

Figure Four

Among them, G (·) As the link function, the function is to associate the predicted value of the linear regression model with the true value Y, which is a monotone, functional, four model called "Generalized linear Model".

Frankly speaking, the generalized linear model is to give the predictive value of the linear regression model to wear a small vest, for example, suppose there is a sample point set, sample point distribution Three, that is, the real value y is on the exponential scale change, we hope that the predicted value of linear regression will approximate three of the distribution, then, We should be based on the real value of the sample point y is an exponential variation of this feature, the predictive value of the linear regression model to wear the exponential change of the vest, and G (·) This function is to play the role of a vest.

Figure Five

3. Logarithmic linear regression

Logarithmic linear regression is g (·) =ln (·) The case of a sample point set that can be adapted to the true tag value y of a collection of samples when three changes are present.

When G (·) =ln (·) When y=e^ (wt*x+b), the concrete derivation of procedure six shows:

Figure Six

4. Learning and references

Zhou Zhihua Teacher's "machine learning", Tsinghua University Press.

Linear model (2)--Generalized linear model

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.