Multiple linear regression - explained with two simple examples

  Рет қаралды 52,402

TileStats

TileStats

2 жыл бұрын

See all my videos at www.tilestats.com/
In this video, we will see how multiple linear regression is computed. The focus is to understand how to interpret the coefficients in models with both categorical and numeric variables, and models with interaction terms.

Пікірлер: 31
@helenadesoba8894
@helenadesoba8894 2 жыл бұрын
Alas! I found a video I could relate with well when it comes to multiple linear regression. The examples you used gave more clarity. Thanks so much
@archer9056
@archer9056 3 ай бұрын
Best channel❤ but underrated .. Simple and intuitive explanation of complex concepts.. ❤
@joyceks1882
@joyceks1882 2 жыл бұрын
i've been looking for this example! so clear and well explained. thank you!!!
@tilestats
@tilestats 2 жыл бұрын
Thank you!
@tedransom8087
@tedransom8087 2 жыл бұрын
Thank you! I finally understood how to interpret the coefficients in a multiple linear regression model.
@tilestats
@tilestats 2 жыл бұрын
Great!
@fazlfazl2346
@fazlfazl2346 11 ай бұрын
Great explanation for interaction term. Thank you. One question though. Here you explained the meaning of interaction between a continuous variable and a categoric variable. How can we interpret the interaction when both the terms in the interaction are Continuous variables and when both the terms are Categoric variables?
@hopelesssuprem1867
@hopelesssuprem1867 Жыл бұрын
thank u for a good explanation
@dfdfgdfkih
@dfdfgdfkih 2 жыл бұрын
Well explained. Thanks a lot!
@tilestats
@tilestats 2 жыл бұрын
Thank you!
@MarinaOrgino
@MarinaOrgino 3 ай бұрын
Can I ask... Where did you get that 30.57 and 3.55?
@tilestats
@tilestats 3 ай бұрын
Have a look at this video kzbin.info/www/bejne/qpKzp4mvf7uWlaM
@salwaabbas549
@salwaabbas549 2 жыл бұрын
Thank you
@OMARRAFIQUE-oz5td
@OMARRAFIQUE-oz5td 11 ай бұрын
Thank you for this. What if we code Gender as 'M' and 'F' and not 0 and 1. Then at 10.50, it will be 12.9xM and not 12.9x1. Then how can we include 12.9xM in the intercept? What I mean is that 0 and 1 in this case are factors, can we multiply 12.9 with a factor (treating factor as a numeric)? Also we can choose any other number instead of 0 and 1 e.g. 3 and 9. Then in this case the intercepts will be different. So, this seems arbitrary as the Gender intercepts depend on the way we choose the numbers?
@tilestats
@tilestats 11 ай бұрын
You should always use 0 and 1 to recode a categorical variable because they represent absent or present. However, if you use a software, it will do this automatically.
@nordanvinden5351
@nordanvinden5351 9 ай бұрын
Very good.
@fazlfazl2346
@fazlfazl2346 11 ай бұрын
This is a great video. Does this mean we are actually analyzing men and women differently as we get two different regression lines: one for men and one for women. How will this compare if we run the model stratified by Gender?
@tilestats
@tilestats 11 ай бұрын
Yes, men and women are predicted differently by the model because they have separate regression lines.
@tomgu1893
@tomgu1893 7 ай бұрын
if I had a category such as car dealer which has more than just two options (so I can't just put 0 and 1) how would I go about incorporating that?
@tomgu1893
@tomgu1893 7 ай бұрын
say we had dealer a, dealer b and dealer c, where the difference is noticeable between them
@khaingzar3136
@khaingzar3136 Ай бұрын
Which software is used to get the equation for model Price = constant + Age.Coefficient + Mileage.Coefficient ?
@tilestats
@tilestats Ай бұрын
You have to create the equation on your own and then use the software to estimate the parameter values for the equation. I use R but you can use any other statistical software to get the same parameter values.
@MsJaguarundi
@MsJaguarundi 2 күн бұрын
Why do you change the example midway? You didn't explain how you calculated the equations.
@SantiagoValdezRoy
@SantiagoValdezRoy 5 ай бұрын
How is the code “0” or “1” determined? What if you had a third category? Would it be “2”? Only part that I didn’t follow fully.
@tilestats
@tilestats 5 ай бұрын
No, then you add an extra term in the equation. If term 1 = 0 and term 2 = 0 it will represent the baseline group(group 1) If term 1 = 1 and term 2 = 0 it will represent group 2, if term 1 = 0 and term 2 = 1, it will represent group 3.
@asleyarmelllevado5352
@asleyarmelllevado5352 Жыл бұрын
do you have the data to to solve the coefficients in your example ?
@tilestats
@tilestats Жыл бұрын
At minute 2:18, 7:03 and 12:38 you have all the data to reproduce the results, including estimating the coefficients.
@asleyllevado3050
@asleyllevado3050 Жыл бұрын
I still can't get it where the data is where you calculate the b0 and b1 and b2
@tilestats
@tilestats Жыл бұрын
I do not show how to calculate the coefficients by hand. I simply plug in the data in a statistical software to compute these. In this video: kzbin.info/www/bejne/qpKzp4mvf7uWlaM I show how to calculate parameters by hand, but only for simple linear regression. For multiple linear regression it is a bit more calculations and I currently do not have a video on that.
@zu1fuqar
@zu1fuqar 2 жыл бұрын
but how to cumpute coefficients in multiple regression?
@tilestats
@tilestats 2 жыл бұрын
Use a software, or if you must do this by hand I would recommend this page: www.statology.org/multiple-linear-regression-by-hand/ I also have a video on OLS for simple linear regression: kzbin.info/www/bejne/qpKzp4mvf7uWlaM
Permutations Combinations and the Hypergeometric distribution
13:08
Learn Statistical Regression in 40 mins! My best video ever. Legit.
40:25
That's how money comes into our family
00:14
Mamasoboliha
Рет қаралды 12 МЛН
Happy 4th of July 😂
00:12
Alyssa's Ways
Рет қаралды 63 МЛН
KINDNESS ALWAYS COME BACK
00:59
dednahype
Рет қаралды 161 МЛН
Simple and Multiple Linear Regression
13:38
DATAtab
Рет қаралды 146 М.
Statistics 101: Multiple Linear Regression, The Very Basics 📈
20:26
Brandon Foltz
Рет қаралды 1,3 МЛН
Multiple Linear Regression By Hand (formula): Solved Problem
42:24
Multiple regression: how to select variables for your model
10:46
R Programming 101
Рет қаралды 7 М.
Interpreting Linear Regression Results
16:08
Sergio Garcia, PhD
Рет қаралды 298 М.
Regression Analysis | Full Course
45:17
DATAtab
Рет қаралды 788 М.
Linear Regression, Clearly Explained!!!
27:27
StatQuest with Josh Starmer
Рет қаралды 1,3 МЛН
Statistics 101: Multiple Linear Regression, Dummy Variables
20:59
Brandon Foltz
Рет қаралды 339 М.