Why Linear Regression is not suitable for classification? (2024)

There are two things that explain why Linear Regression is not suitable for classification. The first one is that Linear Regression deals with continuous values whereas classification problems mandate discrete values.

The second problem is regarding the shift in threshold value when new data points are added. Let us take a simple Linear Regression example and fit a line to it. The below graph shows the best fit line. To make the explanation a bit more simple let us take an example of a classification problem in healthcare. Basically, our aim here is to classify whether a person is sick or not.

Technically the hypothesis function for linear regression can be used for logistic regression also but there is a problem.

Why Linear Regression is not suitable for classification? (1)

The above graph shows the best fit line for the given points. This is a simple example and the real-world data is never this simple. So coming back, when we add another point to this dataset, our best fit line shifts to fit that point. Hence the line becomes like this

Why Linear Regression is not suitable for classification? (2)

So according to our example, if we have to classify whether a person is sick or not, this method is not reliable at all since we use a sigmoid function in logistic regression. If there is a shift in the line then the minimum threshold value for classifying the examples changes. So in the beginning, the threshold might be 0.5 but after adding few more data points the value might be 0.8. So the accuracy of the model takes a hit here. Also deploying a model with such instability in a field such as healthcare is not so good and can have dire consequences.

Hence to avoid this we use an algorithm called the Logistic Regression which is a binary classification algorithm to stepover these practical problems that hold back Linear Regression for classification.

Logistic Regression deals with discrete values unlike Linear Regression and also maintains the value of the threshold even when new data points are added.

Why Linear Regression is not suitable for classification? (2024)
Top Articles
Your Money or Your Life by Vicki Robin, Joe Dominguez: 9780143115762 | PenguinRandomHouse.com: Books
Buy Bitcoin Instantly with Google Pay
Tmf Saul's Investing Discussions
My E Chart Elliot
Stretchmark Camouflage Highland Park
Best Team In 2K23 Myteam
Lesson 3 Homework Practice Measures Of Variation Answer Key
OnTrigger Enter, Exit ...
Nioh 2: Divine Gear [Hands-on Experience]
Calmspirits Clapper
Craigslist Apartments In Philly
National Office Liquidators Llc
Bnsf.com/Workforce Hub
Simpsons Tapped Out Road To Riches
Salem Oregon Costco Gas Prices
V-Pay: Sicherheit, Kosten und Alternativen - BankingGeek
Trivago Sf
Strange World Showtimes Near Roxy Stadium 14
Where Is George The Pet Collector
The Largest Banks - ​​How to Transfer Money With Only Card Number and CVV (2024)
Stoney's Pizza & Gaming Parlor Danville Menu
Is Windbound Multiplayer
Teen Vogue Video Series
F45 Training O'fallon Il Photos
Masterbuilt Gravity Fan Not Working
Safeway Aciu
Craigslist Sf Garage Sales
Experity Installer
Redding Activity Partners
Opsahl Kostel Funeral Home & Crematory Yankton
Verizon TV and Internet Packages
Serenity Of Lathrop - Manteca Photos
Craigslist Org Sf
Mississippi State baseball vs Virginia score, highlights: Bulldogs crumble in the ninth, season ends in NCAA regional
Rage Of Harrogath Bugged
Check From Po Box 1111 Charlotte Nc 28201
303-615-0055
Casamba Mobile Login
Ukraine-Krieg - Militärexperte: "Momentum bei den Russen"
2132815089
Directions To Cvs Pharmacy
Walmart 24 Hrs Pharmacy
Matt Brickman Wikipedia
Deezy Jamaican Food
Value Village Silver Spring Photos
Rocket League Tracker: A useful tool for every player
The Largest Banks - ​​How to Transfer Money With Only Card Number and CVV (2024)
Food and Water Safety During Power Outages and Floods
R Detroit Lions
Rocket Bot Royale Unblocked Games 66
Jasgotgass2
Latest Posts
Article information

Author: Dean Jakubowski Ret

Last Updated:

Views: 6205

Rating: 5 / 5 (50 voted)

Reviews: 81% of readers found this page helpful

Author information

Name: Dean Jakubowski Ret

Birthday: 1996-05-10

Address: Apt. 425 4346 Santiago Islands, Shariside, AK 38830-1874

Phone: +96313309894162

Job: Legacy Sales Designer

Hobby: Baseball, Wood carving, Candle making, Jigsaw puzzles, Lacemaking, Parkour, Drawing

Introduction: My name is Dean Jakubowski Ret, I am a enthusiastic, friendly, homely, handsome, zealous, brainy, elegant person who loves writing and wants to share my knowledge and understanding with you.