linear vs logistics regression

Question

Why can’t linear regression be used in place of logistics regression for binary classification?

solved 0
Rohitsingh 2 months 1 Answer 67 views Member 0

Answer ( 1 )

  1. The reasons why linear regressions cannot be used in case of binary classification are as follows:

    Distribution of error terms: The distribution of data in case of linear and logistic regression is different. Linear regression assumes that error terms are normally distributed. In case of binary classification, this assumption does not hold true.

    Model output: In linear regression, the output is continuous. In case of binary classification, an output of a continuous value does not make sense. For binary classification problems, linear regression may predict values that can go beyond 0 and 1. If we want the output in the form of probabilities, which can be mapped to two different classes, then its range should be restricted to 0 and 1. As the logistic regression model can output probabilities with logistic/sigmoid function, it is preferred over linear regression.

    Variance of Residual errors: Linear regression assumes that the variance of random errors is constant. This assumption is also violated in case of logistic regression.

    Best answer

Leave an answer

Browse
Browse