What is the difference between linear regression and logistic regression?

后端 未结 15 1379
一向
一向 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:59

    In linear regression the outcome is continuous whereas in logistic regression, the outcome has only a limited number of possible values(discrete).

    example: In a scenario,the given value of x is size of a plot in square feet then predicting y ie rate of the plot comes under linear regression.

    If, instead, you wanted to predict, based on size, whether the plot would sell for more than 300000 Rs, you would use logistic regression. The possible outputs are either Yes, the plot will sell for more than 300000 Rs, or No.

提交回复
热议问题