What is the difference between linear regression and logistic regression?

后端 未结 15 1375
一向
一向 2020-12-02 03:32

When we have to predict the value of a categorical (or discrete) outcome we use logistic regression. I believe we use linear regression to also predict the value of an outco

15条回答
  •  醉酒成梦
    2020-12-02 03:58

    | Basis                                                           | Linear                                                                         | Logistic                                                                                                            |
    |-----------------------------------------------------------------|--------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------|
    | Basic                                                           | The data is modelled using a straight line.                                    | The probability of some obtained event is represented as a linear function of a combination of predictor variables. |
    | Linear relationship between dependent and independent variables | Is required                                                                    | Not required                                                                                                        |
    | The independent variable                                        | Could be correlated with each other. (Specially in multiple linear regression) | Should not be correlated with each other (no multicollinearity exist).                                              |
    

提交回复
热议问题