Logistic regression vs linear regression

I played around with interactive plot in lab. I added data points that shows in left corner in blue circle. so how those data points in Benign side that means it’s predicted as benign it should be malignant. it’s like a Logistic regression it’s not work pretty well in this example. therefore has same consequences of linear regression does. Any idea about that ?

Since the X and 0 regions are overlapping, you can’t separate them linearly.
This is an example where simple logistic regression can’t solve it.

1 Like