Click here to Skip to main content
15,889,857 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
I understand how we calculate the Coefficeint and Intercept in the simple linear regression using least squares method and Gradient descent , now I am trying to understand how does multiple linear regression work , but the main issue is everywhere I looked the implementation is very abstracted using ML libraries like scikitlearn , I mean how do we even get this equation ?

Y=B + M1*X1 + M2*X2...MnXn

I am looking for the geometric meaning of the above equation used in multiple linear regression.

Any help is appreciated.

What I have tried:

I tried looking for resources online but the detailed are abstracted.
Posted
Updated 8-Mar-21 7:38am
Comments
Richard MacCutchan 8-Mar-21 8:06am    
I think the question is about mathematics, rather than programming.

Quote:
Y=B + M1*X1 + M2*X2...MnXn
Defines a hyperplane (see, for instance Hyperplane - Wikipedia[^]).

In two dimensions you have the usual straight line. In three dimensions you have the usual plane. When you have more than three dimensions, then, well..., you need a bit of imagination.
 
Share this answer
 
Quote:
How is the regression equation calculated in multiple linear regression ?

Looks like you need to study the subject.
Linear regression - Wikipedia[^]
Excel analysis toolpack Have a toll about it:
Analysis ToolPak in Excel - Easy Excel Tutorial[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900