Understanding Polynomial Regression Equation with multiple Independent Variable

0 votes

Understanding Polynomial Regression. I understand that we use polynomial regression for some kind of non Linear Data set and to give it a curve. I know the equation of writing a Polynomial Regression for single independent variable but i don't really understand how this equation is constructed for 2 variables?

y = a1 * x1 + a2 * x2 + a3 * x1*x2 + a4 * x1^2 + a5 * x2^2

What will be the equation for Polynomial Regression in case we have 3 or more variables? What actually is the logic behind developing these polynomial equation for more than one variable?

Mar 23, 2022 in Machine Learning by Dev
• 6,000 points
1,219 views

1 answer to this question.

0 votes

You can choose from the following options:

  • Powers (thus x1, x12, x13, and so on) up to whichever number you like (many stop at 2).
  • Cross products (x1 * x2, x1 * x3, etc.) 
  • Combinations (x12 * x2, x1 * x22, etc.) and then greater combinations (x1 * x2 * x3, and even powers) can be added.

However, this can soon grow out of hand, and you may wind up with an excessive number of features.
I'd stick to powers of two and cross products (just pairs) with no powers, similar to your example, and if you have three elements, then multiply all three of them, but if you have more than three, I wouldn't bother with triplets.
Polynomials are used to model the complex relationship between features, and they can sometimes be a decent approximation to more complex interactions (that are not really polynomial in their nature).

answered Mar 25, 2022 by Nandini
• 5,480 points

Related Questions In Machine Learning

0 votes
1 answer
0 votes
1 answer
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,744 views
+1 vote
2 answers

What is the difference between correlation and covariance?

Correlation and Co-variance both are used as ...READ MORE

answered Jul 24, 2018 in Data Analytics by Abhi
• 3,720 points
4,106 views
0 votes
1 answer

How do I become a data scientist step by step?

I am assuming that you are a ...READ MORE

answered Jul 26, 2018 in Data Analytics by Abhi
• 3,720 points
784 views
0 votes
1 answer

What is the difference between random forest and decision trees?

The basic difference is that Random Forest ...READ MORE

answered Jul 30, 2018 in Data Analytics by Abhi
• 3,720 points
2,202 views
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,027 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