Can we use Normal Equation for Logistic Regression

0 votes
Just like we use the Normal equation to find out the optimum theta value in Linear Regression, can/can't we use a similar formula for Logistic Regression ? If not, why ? I'd be grateful if could someone could explain the reasoning behind it. Thank You.
Mar 26, 2022 in Machine Learning by Nandini
• 5,480 points
1,022 views

1 answer to this question.

0 votes
Unfortunately, only one discriminative method in classification theory, linear regression, has closed form solutions (linear discriminant analysis/fisher discriminant are generative, and even they have a closed form solution due to the great simplicity of the distributions fitted).

Even with linear regression, it is considered a wonder that it "works." As far as I'm aware, proving that "you cannot solve logistic regulation in closed form" is nearly impossible; yet, the widespread consensus is that this will never be the case. You can achieve it if your features are binary only and you have a small number of them (since a solution is exponential in the number of features), as demonstrated a few years ago, but it is thought to be impossible in most cases.
So, what made it so effective for linear regression? Because, once you've computed your derivatives, you'll find that the outcome is a set of linear equations, m equations with m variables, which we know can be solved directly using matrix inversions (and other techniques). When the cost of logistic regression is differentiated, the resultant problem is no longer linear... Because it is convex (thus global optimum), but not linear, present mathematics does not give us with powerful tools to identify the optimum in closed form solution.
answered Mar 30, 2022 by Dev
• 6,000 points

Related Questions In Machine Learning

0 votes
1 answer

Can we change the sigmoid with tanh in Logistic regression transforms??

Hi@Deepanshu, Yes, you can use tanh instead of ...READ MORE

answered May 12, 2020 in Machine Learning by MD
• 95,460 points
2,716 views
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer

Can we use Normal Equation for Logistic Regression ?

Well not likely,  only one discriminative method ...READ MORE

answered Feb 24, 2022 in Machine Learning by Nandini
• 5,480 points
1,014 views
0 votes
1 answer

L2 regularization in Logistic regression vs NN

L2 Regularization is known as Ridge Regression. ...READ MORE

answered Mar 2, 2022 in Machine Learning by Nandini
• 5,480 points
1,849 views
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer

Why do we use gradient descent in linear regression?

An example you gave is one-dimensional, which ...READ MORE

answered Mar 23, 2022 in Machine Learning by Dev
• 6,000 points
1,457 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP