Multiple Regression: Two Independent Variables Case - Part 1
In this video we detail how to calculate the coefficients for a multiple regression. In particular, we detail how to calculate the slope and intercept coefficients for the case of two independent variables and a single dependent variable.
Пікірлер: 196
Finally someone who can explain how b0 is calculated in multiple linear regressions! Even in my Books they didnt explain it well enough to understand
I am here because I was asked how to calculate this in a face to face DS interview for a tech giant. Can you believe that? Yes, and I very well faltered cause generally we use python/matlab to figure out the coefficients for us, we hardly do the math ourselves. Never-mind, its never too late to learn anything. Thanks a lot to the person who spent 28 minutes of his precious time for this. You are the reason why internet should be free forever.
@MathsAndStats
3 жыл бұрын
Hi Soumya. Thanks for the kind words and I hope your interview went well. Please share. Kindest regards. Jonathan
Excellent summary; it really helped - a lot - to see this manually broken down, step-by-step, by hand. Great work and really appreciate it. For everyone else out there, note: There are a lot of sites that skip steps, gloss over things, or simply get the math wrong (frustrating), whereas this video does not miss a beat the whole way through.
Thank you so much. Been struggling with this for a while. Well explained. Just perfect.
i was hardly looking for such a video and finally got it! really great explanation and teaching. thanks a lot :)
this is the most explanatory video i ever watched and understood on regression. thank you for sharing
Finally I understand, all they do is give us the final answer in class no explanation. Our lecturer just gives us notes not even explaining. Thank u sir , may u live long.
@MathsAndStats
2 жыл бұрын
Hi. I'm glad it was helpful. Please share. Regards. Jonathan.
thanks so much. I can't wrap my head around this stuff without real , ground up examples.
Very well explained, looked for it all over but your video helped it out. Please keep posting more such explanations on Statistics on KZread.
Thank you for the nice explanation, I really needed this for my monograph!
this is the only video on youtube where i could learn calculating coefficients!!! thnx so much... the demonstration using some software would hv been much better than flipping sheets of paper but we'll take it
Don’t typically comment on math videos, but this video is a piece of art. Cheers
Thank You!! Now, time to figure out how to do this during exam along with 10 other questions under 2 hours :) Update: I've graduated and got my degree y'all
@sid7_lol
3 жыл бұрын
Tru 😂 😂
@sultanalajmi6089
3 жыл бұрын
😂😂😂😂😂😂😂👏🏻
@aghaammar6439
3 жыл бұрын
Just practice 🙂
@arduav1
3 жыл бұрын
🤣🤣
@kirokubbeezy1
3 жыл бұрын
Did you pass?
Thank you, Professor.It was a Clear and a Brief Explanation
amazing, easy to grasp and understandable content.
Thank you for the example and solutions. Great explanation. Really appreciate it soooo much😥😥😥
Great video It really helps to see it step by step by hand. Thanks a lot:)
Thanks a lot. The explanation is wonderful.
wonderful explaination. as a bonus, it felt like connor mcgregor was teaching me regression. haha
Excellent ! Thanks so much for this high value sharing
Thank you,huge help I'm more than confident to do my ecometrics
Thank you sir, I wasted an hour watching multiple videos on this topic but none were explained as clearly as you did
Great Video . I searched for it since long time
well explained ! THANK YOU SIR ! :)
Thank you. It helped me. Useful video man.
Thank you so much, it's clearly explained. Please put more clips on statistic concepts and their interpritations
You've done me the magic...God bless you
This video was very helpful. Thank you so much!
This man is GOLDEN!!!!!!!!!!!!!!!!!!!!!!!!
You are a savior... Thanks, Sir :)
Indeed, you put a lot of work in this video. Thankyou, it was very helpful. Keep posting
Thank you! Wonderful explanation
Fantastic video, thank you so much
Thank you so much sir,the video was really helpful
excellent video sir thank you very much
Thank you, I wanted to code this from scratch in Python and you really helped me.
@creativedrift8979
3 жыл бұрын
me too, except I was using c++. :)
@ahmetsemihkarakas1597
3 жыл бұрын
me too, except I was using matlab :)
appreciate your effort sir...thanks a lot
I'm real thank you!!! for your great explanation and can I understand
Dear Jonathan sir, nice and clear calculation steps explained, which will help me in my examination. if you also share the formula to calculate standard errors for intercept and independent variables in case of multiple regression, it would be very much helpful.
Thank you.This a very useful video.
thank you sir! excellent explanation!
This helped a lot, thanks!
Great video, I can know solve this quiz! Thank you very much
Many thanks, it was very helpful❤
Absolutely wonderful🥰, you made my day✌️
thanks alot..this really helped me..BIG UP👏
Very useful - I teach this too at a more basic level and this was great! Thanks
@MathsAndStats
3 жыл бұрын
Hi Andrew. Thanks for the kind words. Regards. Jonathan.
Thank you! I am working on PBI and I was looking for a way to do it on DAX.
Thank you so much! I was trying to figure out what formula the LINEST function of excel uses for multiple Regression, I was able to figure using this video
Wonderful....
Thank you. ..well explained
Many thanks, that was helpful!
thank you so much sir, you really make me understand it
Quite an eye opener content you have posted..😊I would really appreciate if you could post another one showing how to derive the coefficients of a multiple linear regression with 2 independent variables.
@raidzeromatt
Жыл бұрын
Yes, I looked for part 2 and it doesn't look like he ever did one That would be a huge help
Well done
Very well explained
that was a good one 👍
thank you so much for saving me from a mental breakdown
Thank u so much. I especially logged in my mail id to like and comment this video and this is my first ever comment on any KZread video in last 15 years. From the last 2 years i was searching to find an answer, How to put the values of constant and slope in equation? and today i got my answer. Highly appreciation from Pakistan.
@MathsAndStats
3 жыл бұрын
Hi Kamran. Thank you for the kind words and I am really happy that the video was helpful. It would be great if you could subscribe and share with your friends. Thank you from Ireland. Jonathan.
huge thank to you
Thank you very much Sir ❤️
How are the p-values calculated in multiple regression case? How to interpret them?
this is amazing ! Thank you s much.
Quite an insight. Thank you. I do have a question though, is there a formula for more than 2 variables that does not involve matrix calculations.
@MichaelCarrPilot
7 ай бұрын
I'm wondering the same thing! I have a need to have 3+ input but sitll only one output.
nice video so helpful
Good video
If I want to transform this regression model into a LASSO regression model with penalty terms, how do I calculate the new model along with the penalty terms? For example, if I want to set lambda (λ) to 0.005.
thankyou so much. today i have exam test and i understand about this subject. :)
@behailumimi
2 жыл бұрын
I'm very comfortable. Please please post The Three variables case(OLS)
Thank you. you saved my exam. may god bless you
@MathsAndStats
4 жыл бұрын
Hi Mandara, That's good to hear. Please share. Regards. Jonathan
Thank you! But, and when I have 4 independent variable? How it goes?
Thank you sooooooo much *-*
It's epic!
Hi, can you help me understand how b1 can be calculated if we would have three independent variables?
Thank you so much sir
Can you do nonlinear regression for two or more independent variables?
suppose if there is a b3 and b4 what is the formula for that
Excellent decent explanation of two dependant varialble OLS. But I need for 3 variables.
@Radmud
4 жыл бұрын
Multiple regression with 3 variables is explained on this page: openprairie.sdstate.edu/cgi/viewcontent.cgi?article=1055&context=agexperimentsta_tb Regression for more than 3 variables can also be deduced from the equations in the link.
Thank you sir
By which method you are explaining (linear correlation coefficient method)???
THANK YOU
Thank you ❤️
than you sir
Thank you
You saved me!
Thanku sir 🌸
Thnks sir 😊
Thank you, Sir!
@amosmuigaimwangi4797
4 жыл бұрын
Anjila Yap hi anjila
thanks man
can you explain intuitively why b1 and b2 are calculated the way it is?
What is the formula for b1 incase if we have 3 independent variables
how is it for three independent variables?
If we add B3x3 than how to solve.. And also how to solve its Beta hypothesis individual..
Nailed it 😎
Thank you so much for the work done
@MathsAndStats
3 жыл бұрын
Thanks, Mugwerian. Please share. Regards. Jonathan.
why do they equal the x variable when the x variable corresponds with the alignment of the c, right? that’s the only part i didn’t get
I have this all in several spreadsheets and have it all calculate it but can it be adjusted to have more than 2 input variables to get one output?
@MathsAndStats
7 ай бұрын
Hi Michael. You can extend it to more than two independent variables, but the parameter solution equations are huge. If you have it in Excel, you would be better generating the model results using the Excel Data Analysis Toolpak. Jonathan
@MichaelCarrPilot
7 ай бұрын
@@MathsAndStats I appreciate your reply. I believe I got it figured out. I actually sent you an email to your Ireland College email with a link to one of the spreadsheets I’m using this converted to work with excel formulas.
How can I find a simple multiple regression equation using three variables
sir, i have one que ... what if we have more than two independent variable ? How we will calculate the equation ?
Thank you. It was very well explained 👍
@MathsAndStats
3 жыл бұрын
No problem, Malika. It would be great if you could share with your friends. Kindest regards. Jonatha
@malikamirzoshoeva5878
3 жыл бұрын
@@MathsAndStats Sure)
What will be the new formula for b1 if you have now 3 independent variables? Please answer, I'm having trouble in this part
@uzairkabeer
Жыл бұрын
I'll recommend you should use the matrix method for 3 or more. But if you follow the both formulas in the video you'll see there is a rhythm in the formulas, What I mean by that is, every new Xn we are multiplying it's summation on numerator and denominator. So, the formula of b1 given that we have three x values will look like this: b1= [ (Σ x2^2) (Σ x3^2) (Σ x1 y) - (Σ x1 x2 x3) (Σ x2 y) (Σ x3 y) ] / [ (Σ x1^2) (Σ x2^2) (Σ x3^2) - ( Σ x1 x2 x3)^2 ]