Logistic regression and linear regression

Source: Internet
Author: User

Same point:
Both are generalized linear models GLM (generalized linear models)

Different points:
1. Linear regression requires that the dependent variable (assuming y) is a continuous numeric variable, while the logistic regression requires that the dependent variable is a discrete type variable, such as the most common two classification problem, 1 represents a positive sample, and 0 represents a negative sample
2. Linear regression requires the self-variable to obey the normal distribution, and the distribution of the logistic regression to the variable is not required
3. Linear regression requires that the independent variable has a linear relationship with the dependent variable, and logistic regression does not require
4. Linear regression is the direct analysis of the relationship between the dependent variable and the independent variable, and the logistic regression is the relationship between the probability and the independent variable that the dependent variable takes a certain value.

The main difference is the 1th

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.