I came across one question while learning linear regression is that the linear regression can be used for the classification by setting the threshold value and we can classify(predict) the quantitive variable in the data.So I came across a question why logistic regression is needed to do a classification problem when we can use the linear regression for classification.

# Why not linear regression can not be used for classification?

**Aarshay**#2

Hi Harry,

A similar discussion already exists:

Please go through this and discuss further if needed.

Cheers,

Aarshay