Econometrics: Control Variables

  Рет қаралды 23,430

Econometrics, Causality, and Coding with Dr. HK

Econometrics, Causality, and Coding with Dr. HK

Күн бұрын

Пікірлер
@pedrocolangelo5844
@pedrocolangelo5844 3 жыл бұрын
Seriously, with this enthusiasm of yours, you could easily explain any subject in the whole world to me and I would never get bored. I wish tons of likes and subscriptions to you!
@NickHuntingtonKlein
@NickHuntingtonKlein 3 жыл бұрын
Thank you!
@niltonpereiradossantos9774
@niltonpereiradossantos9774 10 ай бұрын
Nobody taught me how to identify control variables, until now. It will be so helpful to my PhD thesis. Thanks from Brazil. God bless you!
@GradStudentTutorials
@GradStudentTutorials 10 ай бұрын
This is the best video of control variables that I've seen.
@cesarrubio4533
@cesarrubio4533 2 жыл бұрын
Thanks a lot, you save my day, i couldn´t find a channel explaining this in my native language
@andrews9719
@andrews9719 2 жыл бұрын
I'm taking a multiple regression course for a data analysis masters, and this video really helped piece things together! Thinking about control variables as variables that cut out the parts of the relationship we don't want to consider in our model is a really useful way of thinking about controls... hopefully I got that right. Thanks!
@zzz11221
@zzz11221 11 ай бұрын
nice I am a technical buisness bachelor student and need to integrate control variables into my regression I have absolutely no idea how. nobody ever teached us.
@Matthew-eb3di
@Matthew-eb3di 6 ай бұрын
This is the best explanation and animation I’ve ever seen for multiple regression and control variables! 🎉🤩
@goelnikhils
@goelnikhils Жыл бұрын
Amazing Video on Control Variables. Why to use
@alexandreborges1242
@alexandreborges1242 2 жыл бұрын
This is the best explanation of control variables I've ever seen. Thank you, HK.
@sushankmishra53
@sushankmishra53 10 ай бұрын
Loved this...Smooth and Straight to the point👏
@bakther
@bakther 4 жыл бұрын
Excellent contents in the subject matter. It is valuable to build knowledge and skills. I am really thankful for such efforts.
@statistics5371
@statistics5371 3 жыл бұрын
6:23 a great explanation, explains a lot of misleading results from a positive to a negative relationship, THank You!!
@haggaisimon7748
@haggaisimon7748 3 жыл бұрын
Super!!! i finally learned while clustering can explain positive relationship when in fact there's a negative relationship! Thank you!
@theflyingdutchman6424
@theflyingdutchman6424 Жыл бұрын
Superb video, helped me a lot to refresh my understanding in under 10 minutes. Comes in really helpful as I am working on my Bachelors Thesis! Thank you for your work!
@tamartomaradze6045
@tamartomaradze6045 Жыл бұрын
Great explanation of the control variables! Thank you, Professor!
@shichengxu7390
@shichengxu7390 2 жыл бұрын
Thank you so much, I finally understand what is control variable..
@majsketchup
@majsketchup 3 жыл бұрын
Thank you! Very clear and ENERGETIC which is rare in these parts (of youtube)
@guzwall
@guzwall 5 ай бұрын
Great explanation!!
@madsboyd-madsen3463
@madsboyd-madsen3463 2 жыл бұрын
Remarkably good explanation.
@ranygo8233
@ranygo8233 2 жыл бұрын
Very clear explanations. Thanks
@Sami-yh5nh
@Sami-yh5nh Жыл бұрын
Thank you. The concepts are simply enough but my ADHD makes it incredibly difficult to focus. Your video helped.
@hhmmm5719
@hhmmm5719 Жыл бұрын
Thank you this was very well explained
@talharehman9458
@talharehman9458 3 жыл бұрын
Absolutely Amazing!
@fabiominatto4650
@fabiominatto4650 4 жыл бұрын
Excelent video Your content is awesome This animation that explain what a control variable do is very helpful!
@spelabajc1775
@spelabajc1775 2 жыл бұрын
Thank you for explaining this in a simple way.
@williamtownsend3395
@williamtownsend3395 3 жыл бұрын
You explain things so well. Thank you for posting this!
@1812CE
@1812CE 4 жыл бұрын
Hey Nick! Could you answer me a question? I have a model (OLS) with a key explanatory variable and its effects on my dependent variable, and some (5) control variables. My main explanatory variable is significant, but only two of the control variables are significant; although, the model is itself statistically significant. My objective for the paper is just to tell if some effects caused by my explanatory variable are found, and its direction (positive or negative). Do you recommend keeping all the variables in the regression output table, telling which are not significant, and making clear that it doesn't fully matter for the objective of the paper? Sorry for this long and broad question. Thanks!
@NickHuntingtonKlein
@NickHuntingtonKlein 4 жыл бұрын
Keep em in! Even imprecisely estimated controls can improve the coef on your variable of interest. Also, generally, you almost never want to make a decision about model building on the basis of a statistical significance test. Model building is a theoretical task, sig tests are sample based
@1812CE
@1812CE 4 жыл бұрын
@@NickHuntingtonKlein Thanks! You have really helped me with your videos. Keep going!
@ammarhussain3758
@ammarhussain3758 3 жыл бұрын
Thank you so much, you explained very well.
@devikasha
@devikasha 9 ай бұрын
Thank you! Thank you! Thank you!
@michaeldiehl4751
@michaeldiehl4751 3 жыл бұрын
just the explanation I was looking for, thank you!
@AyushSingh-cl8px
@AyushSingh-cl8px 3 жыл бұрын
Very helpful, thanks!
@ShaharukhQureshiAP
@ShaharukhQureshiAP 8 ай бұрын
Phenomenal explanation! Thank you for your effort. I have one follow-up question: can we also estimate the effect of two variables by controlling other variables? And do you recommend any book to read more. Thanks!
@NickHuntingtonKlein
@NickHuntingtonKlein 8 ай бұрын
You can - as long as each of them is separately identified, ie you have the controls for each. There is an issue with doing this via regression since the effects of the two variables "contaminate" each other a bit, but you can avoid this by saturation (or just estimating the two effects separately). As for a book I will of course recommend my own! Theeffectbook.net
@ShaharukhQureshiAP
@ShaharukhQureshiAP 8 ай бұрын
@@NickHuntingtonKlein Thank you Professor!
@mikayilmajidov
@mikayilmajidov Жыл бұрын
It's a very good visualization. Would be perfect to see a numerical illustration of this control element.
@NickHuntingtonKlein
@NickHuntingtonKlein Жыл бұрын
I walk through a numerical illustration in chapter 16 of my book, at theeffectbook.net
@mikayilmajidov
@mikayilmajidov Жыл бұрын
@@NickHuntingtonKlein thank you very much! Do I get it right that numerically it's similar to multiple regression? It's just a name to denote the fact that the variables have some relationahip to each other?
@NickHuntingtonKlein
@NickHuntingtonKlein Жыл бұрын
@@mikayilmajidov yes, a regression with control variables in it is inherently a multiple regression.
@mikayilmajidov
@mikayilmajidov Жыл бұрын
@@NickHuntingtonKlein thank you! Will subscribe to the channel
@ernestgeorgin1051
@ernestgeorgin1051 4 жыл бұрын
Very clear explanations, thank you very much!
@xiaoligong8745
@xiaoligong8745 3 жыл бұрын
Hello, Nick, could you explain what it means by "conditioning on a set of covariates?" Does it mean the same as controlling for these variables?
@NickHuntingtonKlein
@NickHuntingtonKlein 3 жыл бұрын
Yep, same thing
@niazahmed3301
@niazahmed3301 3 жыл бұрын
well-explained and easy to capture the intuition. Thanks a lot. :D
@JoaoVitorBRgomes
@JoaoVitorBRgomes 2 жыл бұрын
At the end slide as you add to the scatterplot variable W, you write as Z, also I think it is a little confusing because you start showing the relationship already controlled by Z (or W) instead of showing it in a scatterplot first without control.
@marc7731
@marc7731 3 жыл бұрын
A bit late to the video, but this was extremely useful! Million thanks :)
@dk1up
@dk1up 2 жыл бұрын
PLEASE REPLY ASAP!! GDP = shadow economy + inflation + government debt + Unemployment I am looking to investigate the impact of Shadow economy on GDP, and what I just listed is my econometric model. Would inflation, gov debt and unemployment thus be my control variable? thank you
@NickHuntingtonKlein
@NickHuntingtonKlein 2 жыл бұрын
Yes
@dk1up
@dk1up 2 жыл бұрын
@@NickHuntingtonKlein I love you. thank you
@abrenenemamar
@abrenenemamar 3 жыл бұрын
Thank you for the video. I have a few questions. How do we know what covariates to include/ exclude in/from our model? Also, how do we determine how many covariates to include in our model? Do we simply use theoretical knowledge or do we have tests that we can do?
@NickHuntingtonKlein
@NickHuntingtonKlein 3 жыл бұрын
My series on causality, especially on causal diagrams, goes deep on which controls to include, at least if your goal is causal identification. The theory should do most of the work in determining your model. That said, there are tools like LASSO, variance inflation factors, and information criteria to help with model selection when you're thinking of adding/removing variables for statistical reasons instead of theoretical ones
@leticiaasiimirwe8822
@leticiaasiimirwe8822 3 жыл бұрын
Excellent video sir. Quick question. When using control variables lets say.. exchange rates from the world bank data base (time series data). Do you make the values constant by using one specific value throughout the years or you use the timeseries data as is for the different years?
@NickHuntingtonKlein
@NickHuntingtonKlein 3 жыл бұрын
It would depend on what you were trying to control for - using a single value would control for aggregate differences between countries (sort of like a fixed effects control that doesn't go all the way to control for *all* fixed between-country differences, just exchange rates), but the time series variation would control for both between-country and within-country exchange rate differences over time. I'd imagine in most applications you'd want the full time series.
@leticiaasiimirwe8822
@leticiaasiimirwe8822 3 жыл бұрын
@@NickHuntingtonKlein thank you for the timely response. For clarity, lets say am analyzing the impact of international commodity trade on a certain country. goods exports and goods imports would be my independent variable. GDP my dependent variable. would it be okay to use services as a control variable? and do I use the actual time series for services or do I select a constant value to throughout all the years?
@NickHuntingtonKlein
@NickHuntingtonKlein 3 жыл бұрын
@@leticiaasiimirwe8822 Yes, services as a control for overall trade level (which would then make the effect on goods more about the proportion of all trade is goods trade, rather than about the absolute level of goods trade) makes sense. Id' recommend using the actual time series in that case.
@leticiaasiimirwe8822
@leticiaasiimirwe8822 3 жыл бұрын
@@NickHuntingtonKlein Thank you very much sir.
@johannesh1741
@johannesh1741 4 жыл бұрын
Very helpful!
@Djc99120
@Djc99120 3 жыл бұрын
But sir in the example used temperature can also partly explain shorts wearing....so does the problem of multicolinearity arises when we add temperature to the model ???
@NickHuntingtonKlein
@NickHuntingtonKlein 3 жыл бұрын
Yes, that's the idea - you want to take out the part of shorts-wearing that is explained by temperature as well. Having multiple correlated predictors is not a problem in regression unless the correlation between them is extremely strong (or perfect, in the case of perfect multicollinearity). If that's the case here - if nearly all of shorts-wearing is explained by temperature, then the regression estimates would be high variance and there'd be a multicollinearity problem, yes. But if that's the case, where we have to control for temperature but doing so removes nearly all the variation from shorts-wearing, that means that we simply don't have the variation in the data necessary to identify the effect we want.
@Djc99120
@Djc99120 3 жыл бұрын
@@NickHuntingtonKlein thank you very much sir for this clarification :)
@bjarkerugsted7539
@bjarkerugsted7539 2 жыл бұрын
Great video! had to like and subscribe I wonder tho, if i pick a control variable like fx. gender on a topic like wages... does that mean that I believe that gender has an impact on wages?..
@NickHuntingtonKlein
@NickHuntingtonKlein 2 жыл бұрын
Sort of. You're saying that gender is *related to* and *upstream of* both treatment and control, or on a back door path. It doesn't necessarily need to have a *direct* effect on wage
@NickHuntingtonKlein
@NickHuntingtonKlein 2 жыл бұрын
And thanks!
@bjarkerugsted7539
@bjarkerugsted7539 2 жыл бұрын
@@NickHuntingtonKlein thanks for the answer! very kind of you :)
@21LeonidasZ
@21LeonidasZ 2 жыл бұрын
Hello Nick, great video! I would like to ask two questions regarding the use of control variables: 1. Shouldn't we worry about multicollinearity since we know in fact that shortswearing and temperature are correlated? 2. Can we have a meaningful interpretation of the control variable coefficient as well (temperature) when we know it is correlated with shortswearing or its use is purely to fight the endogeneity problem? Thank you in advance.
@NickHuntingtonKlein
@NickHuntingtonKlein 2 жыл бұрын
The main point of adding controls is that they *are* correlated - otherwise adding the control doesn't reduce omitted variable bias. Adding uncorrelated controls can improve your model's precision but it doesn't do anything for endogeneity. Multicollinearity is only a problem in terms of variance inflation if the degree of correlation is extremely strong (and if it's so strong, you have to ask whether it's actually a necessary control or just another way of measuring your primary variable).
@21LeonidasZ
@21LeonidasZ 2 жыл бұрын
@@NickHuntingtonKlein Thank you for your reply. So as far as I understand variables being correlated doesn't necessarily mean that one would get highly inflated variance, and if that's the case then the control may be redundant (extremely high correlation).
@NickHuntingtonKlein
@NickHuntingtonKlein 2 жыл бұрын
@@21LeonidasZ correct
@IsabellaPaschuini
@IsabellaPaschuini 3 жыл бұрын
Man, you’re fucking good explaining this! Thanks a lot
@MitsosDA
@MitsosDA 3 жыл бұрын
What is the difference between a moderator and a control variable? Are they the same?
@NickHuntingtonKlein
@NickHuntingtonKlein 3 жыл бұрын
They're not really the same category. A control variable is any variable you adjust for/control for in your statistical model. A moderator is a variable that theoretically affects the relationship between treatment and outcome (for example, a treatment for cervical cancer reduces cancer rates by much more for people with cervixes vs those without). Mediators can be included in a statistical model as control variables, but also you might include a variable as a control for other reasons, like being on a back door path.
@fernplayz6369
@fernplayz6369 Жыл бұрын
So if I was looking to see if a person with a higher iq earns a higher wage what would be 2 good control variables to use out of the following? Education,experience,tenure,age,married or not, number of siblings, birth order, fathers education, mothers education or average weekly hours?
@fernplayz6369
@fernplayz6369 Жыл бұрын
Please answer as soon as possible I’ve been trying to figure out what would be best to use haha!
@NickHuntingtonKlein
@NickHuntingtonKlein Жыл бұрын
why two? if that's a homework question or something it's not very well done, i don't think there is a single right answer
@fernplayz6369
@fernplayz6369 Жыл бұрын
@@NickHuntingtonKleinwe are required to create a research paper and i have this data so my teacher wants two control variables to be implemented on the right side of the equation I came up withe the does iq effect wage part because I thought it would be interesting to see the results do you think it’s fine?
@NickHuntingtonKlein
@NickHuntingtonKlein Жыл бұрын
I see. In that case I'd probably say father's and mother's education are the best two. They are both proxies for your parents' socioeconomic standing (which affects your job opportunities and thus wages) and also your genetic endowment (which affects your IQ). So they're on back doors you'd want to close. The rest either affect only wages and not IQ (like hours, age, and experience), which are OK to include as controls to improve precision but don't solve any identification problems or are mixes of things that both cause and are caused by IQ (like education and marriage) and so have collider bias issues. I certainly don't think you can identify the effect of IQ on wages using only parental education as controls, but for the assignment you have that's what makes the most sense to go with. See my chapter on back door paths theeffectbook.net/ch-CausalPaths.html @@fernplayz6369
@fernplayz6369
@fernplayz6369 Жыл бұрын
⁠@@NickHuntingtonKlein is there anyway to live chat? Maybe I should try a different research question with my data?
@MK-sk9wr
@MK-sk9wr 4 жыл бұрын
what the hell happens at 0:50?
@NickHuntingtonKlein
@NickHuntingtonKlein 4 жыл бұрын
That's a fly
@mux3325
@mux3325 3 жыл бұрын
you're cool
@ibrahimq2126
@ibrahimq2126 9 ай бұрын
If I can give more than one like I will do it ❤
@fitfirst4468
@fitfirst4468 2 жыл бұрын
ah ha pandemic haircut , I caught you!
@pawekopytek7596
@pawekopytek7596 4 ай бұрын
It was 666 likes, sorry I ruined it 😉
@immigrantgetthejobdone3018
@immigrantgetthejobdone3018 2 жыл бұрын
thank you for the clear explanation and visual illustration!. I've been confused by "what is controlling for a long time ". thank you! so the 2 subtracting process is automatically done when we are doing OLS?
@NickHuntingtonKlein
@NickHuntingtonKlein 2 жыл бұрын
You're welcome! And the 2 subtractions process isn't *actually done* by OLS but it produces the exact same result with the same interpretation
Econometrics - Causal Diagrams
11:46
Econometrics, Causality, and Coding with Dr. HK
Рет қаралды 1,8 М.
Econometrics - Instrumental Variables
12:56
Econometrics, Causality, and Coding with Dr. HK
Рет қаралды 8 М.
SIZE DOESN’T MATTER @benjaminjiujitsu
00:46
Natan por Aí
Рет қаралды 7 МЛН
Accompanying my daughter to practice dance is so annoying #funny #cute#comedy
00:17
Funny daughter's daily life
Рет қаралды 25 МЛН
Econometrics - Within Variation and Fixed Effects
20:06
Econometrics, Causality, and Coding with Dr. HK
Рет қаралды 15 М.
What Language Should You Use for Econometrics?
20:51
Econometrics, Causality, and Coding with Dr. HK
Рет қаралды 4,6 М.
Control variables in regression
11:03
William Sundstrom
Рет қаралды 65 М.
Econometrics - Interaction Terms
11:44
Econometrics, Causality, and Coding with Dr. HK
Рет қаралды 21 М.
Multiple Regression from beginning to end in 30 minutes.
33:07
R Programming 101
Рет қаралды 17 М.
Econometrics - Difference in Differences
16:29
Econometrics, Causality, and Coding with Dr. HK
Рет қаралды 14 М.
Causality: Controlling
10:43
Econometrics, Causality, and Coding with Dr. HK
Рет қаралды 5 М.
Multicollinearity
21:01
Pat Obi
Рет қаралды 106 М.
Multiple regression: how to select variables for your model
10:46
R Programming 101
Рет қаралды 12 М.
Econometrics - Binary Dependent Variables (Probit, Logit, and Linear Probability Models)
12:46
Econometrics, Causality, and Coding with Dr. HK
Рет қаралды 17 М.