I got to know two reasons why we don't use Linear Regression for Classification:
For example- We want to predict a tumour is Malignant or Benign using one feature-x: Tumor size and we want to predict y: Malignant(1) or Benign(0). We can threshold the classifier output of hθ(x) at 0.5 as follows: If hθ(x) >= 0.5, predict 'y=1' If hθ(x) < 0.5 'predict y=0'
So if we apply this same technique with more training data:
1)it may predict wrong. 2)it may predict y>1 or y<0, but we need either 0 or 1 as answer in y.
Are there any better answers to my question?
Are there better reasons why we don't use linear regression for a classification problem?