Linear Regression, Clearly Explained!!!

The concepts behind linear regression, fitting a line to data with least squares and R-squared, are pretty darn simple, so let's get down to it! NOTE: This StatQuest comes with a companion video for how to do linear regression in R: • Linear Regression in R...
You can also find example code at the StatQuest github: github.com/StatQuest/linear_r...
For a complete index of all the StatQuest videos, check out:
statquest.org/video-index/
If you'd like to support StatQuest, please consider...
Patreon: / statquest
...or...
KZread Membership: / @statquest
...buying my book, a study guide, a t-shirt or hoodie, or a song from the StatQuest store...
statquest.org/statquest-store/
...or just donating to StatQuest!
www.paypal.me/statquest
Lastly, if you want to keep up with me as I research and create new StatQuests, follow me on twitter:
/ joshuastarmer
0:00 Awesome song and introduction
0:37 The Main Ideas!!!
1:12 Review of fitting a line to data
4:00 Review of R-squared
12:13 R-squared for a multivariable model
14:16 Why adding variables will never reduce R-squared
16:08 Calculating a p-value for R-squared
25:26 The F-distribution
Correction:
25:39 I should have (Pfit - Pmean) instead of the other way around.
#statquest #regression

Пікірлер: 1 500

  • @statquest
    @statquest Жыл бұрын

    Correction: 25:39 I should have (Pfit - Pmean) instead of the other way around. Support StatQuest by buying my book The StatQuest Illustrated Guide to Machine Learning or a Study Guide or Merch!!! statquest.org/statquest-store/

  • @udaychopra4802
    @udaychopra48024 жыл бұрын

    I have seen almost all the playlists. BAM! I have told my many friends about this channel. Double BAM!! I come back again and again to revise my concepts. Triple BAMM!!! There will be generations who are gonna come back and learn here. More power to you. (so many BAMS)

  • @udaychopra4802

    @udaychopra4802

    4 жыл бұрын

    we talk in terms of BAMs now. little BAM.

  • @statquest

    @statquest

    4 жыл бұрын

    This is awesome! So many BAMS!!! :) Even a little BAM. :)

  • @ah2522

    @ah2522

    4 жыл бұрын

    @@statquest hooray!

  • @statquest

    @statquest

    4 жыл бұрын

    @@ah2522 Yes! Hooray!!! :)

  • @vaibhavdani4470

    @vaibhavdani4470

    4 жыл бұрын

    @@statquest BAM...Hooray are on my tip of tongue now days !!

  • @AnuragTK
    @AnuragTK4 жыл бұрын

    God bless the friendly folks in the genetics department at the University of North Carolina at Chapel Hill

  • @statquest

    @statquest

    4 жыл бұрын

    Thanks! :)

  • @98Luthfi

    @98Luthfi

    3 жыл бұрын

    amen

  • @omar24191

    @omar24191

    3 жыл бұрын

    Amen (2)!!!!

  • @ycao6
    @ycao64 жыл бұрын

    Every time I saw your video, I just feel you’re probably the only person that don’t want to use math to confuse people or destroy people’s confidence. I appreciate that.

  • @statquest

    @statquest

    4 жыл бұрын

    Thanks! :)

  • @Glock_50

    @Glock_50

    2 жыл бұрын

    You are awsome explaining!

  • @armangilang9654

    @armangilang9654

    2 жыл бұрын

    ya, you broken the legs of math mistery

  • @amanjang7531

    @amanjang7531

    2 жыл бұрын

    30 years old and for the first time i am not afraid of mathematics a big part thanks to finding this channel in Graduate school.

  • @tinacole1450

    @tinacole1450

    Жыл бұрын

    ha ha.. great comment. Josh does a great job at making complex stuff seem okay to understand.

  • @lazarus8011
    @lazarus80113 жыл бұрын

    The clarity of your speech with no unessesary details in your visuals makes learning these methods so much easier thankyou.

  • @statquest

    @statquest

    3 жыл бұрын

    Glad it was helpful!

  • @tonywang7933
    @tonywang7933 Жыл бұрын

    Thank you, throughout years of undergrad courses, I have never seen an instructor is willing to take the time to explain all these basic yet extremely important concepts.

  • @statquest

    @statquest

    Жыл бұрын

    Thank you! :)

  • @statquest
    @statquest4 жыл бұрын

    Support StatQuest by buying my book The StatQuest Illustrated Guide to Machine Learning or a Study Guide or Merch!!! statquest.org/statquest-store/

  • @ramnewton8936

    @ramnewton8936

    4 жыл бұрын

    Had the same doubt; this clears things up, thanks! Maybe consider pinning this so it shows up on top always?

  • @sureshkm

    @sureshkm

    3 жыл бұрын

    @StatQuest I think, we need the same correction in the study guide 'statquest_linear_regression_study_guide' Page 5 of 6 as well.

  • @ssriv47

    @ssriv47

    3 жыл бұрын

    statquest website is not working. It is showing database error. Please look into it.

  • @statquest

    @statquest

    3 жыл бұрын

    @@ssriv47 Thanks! The site is back up.

  • @jbtechcon7434

    @jbtechcon7434

    3 жыл бұрын

    Is that a typo at 19:25? You said the numerators are the same, but they're not. Are you missing parentheses?

  • @monicakulkarni3319
    @monicakulkarni33194 жыл бұрын

    You are statistically one of my favourite KZread channels!

  • @statquest

    @statquest

    4 жыл бұрын

    I love it! Thank you. :)

  • @felixwhise4165

    @felixwhise4165

    4 жыл бұрын

    Which are the others? :)

  • @questscape

    @questscape

    3 жыл бұрын

    @@felixwhise4165 For me Brandon Foltz is another awesome channel!

  • @zulucharlie5244
    @zulucharlie5244 Жыл бұрын

    I've published high-impact scientific papers in several different life science fields, and this is my go-to source to refresh my memory for all basic statistics knowledge. Most universities should abandon all attempts at teaching statistics to students in lectures, vector them to this channel, and then provide one-on-one tutoring to help students get across the line and master the material. Seriously great stuff here; you have made the world a better place - thank you.

  • @statquest

    @statquest

    Жыл бұрын

    Wow! Thank you very much! :)

  • @iarasouza8029
    @iarasouza80294 жыл бұрын

    This is by far the best resource for someone who does not have any background in math (or even for someone who does) to learn about key concepts of statistics. Thank you!

  • @statquest

    @statquest

    4 жыл бұрын

    Wow, thanks!

  • @confidenceinterval4849

    @confidenceinterval4849

    Жыл бұрын

    You can learn more about linear regression in simple words here kzread.info/dash/bejne/g4Vtr6OniJycY7A.html

  • @bu8291
    @bu82916 жыл бұрын

    More people should discover your channel, you make it very easy to understand statistics :)

  • @kakusniper
    @kakusniper6 жыл бұрын

    I never understood statistics in my life till now, you make it look so easy. Thanks again.

  • @dominicj7977
    @dominicj79775 жыл бұрын

    This is the most intuitive explanation I have seen of these terms. Although I have known these since a couple of years, I have never seen or read a similar kind of explanation anywhere else.

  • @rohitamalnerkar2152
    @rohitamalnerkar21524 жыл бұрын

    Mr. Josh Me and my friend circle thoroughly watch your all videos related to data science and we all think you are doing an amazing job. The amount of efforts you put make our ideas more and more clearer. I can't thank you enough for your generous work. Keep it up. Love from India.

  • @statquest

    @statquest

    4 жыл бұрын

    Thank you very much!!! I really appreciate your feedback.

  • @cuberootme
    @cuberootme Жыл бұрын

    You are the best instructor. I will watch all your videos. It really helps me in ML. Hope I will find a good job!

  • @statquest

    @statquest

    Жыл бұрын

    I hope so too!

  • @ali57555
    @ali57555 Жыл бұрын

    I really like how you explain things in the most simple way. I thought I knew what Adj R^2 is, but watching your video made me really understand it. Thank you a lot. Please don't stop making our world simpler to understand.

  • @statquest

    @statquest

    Жыл бұрын

    Thank you very much! :)

  • @sudhakarmadakaful
    @sudhakarmadakaful4 жыл бұрын

    Linear Regression is well-explained in this video. Love the humor in between too!!!!

  • @statquest

    @statquest

    4 жыл бұрын

    Thank you! :)

  • @rezat.ashtiani1338
    @rezat.ashtiani13382 жыл бұрын

    The most clear and simple explanation of multiple linear regression I’ve ever seen, and I’ve seen MANY! Thank you for this video!

  • @statquest

    @statquest

    2 жыл бұрын

    Glad it was helpful!

  • @vijaypawar5003
    @vijaypawar50033 жыл бұрын

    Your videos are so simple and easy to grasp with all those conceptual explanations and graphics you use. They make learning fun. Thanks to KZread for getting this to us and a bigger thanks to you for sharing it with the world.

  • @statquest

    @statquest

    3 жыл бұрын

    Thank you! :)

  • @prayaglehana7187
    @prayaglehana71875 жыл бұрын

    I have gone through all of his videos.. and believe me he is the one that will make your concepts clear !

  • @statquest

    @statquest

    5 жыл бұрын

    Thanks! :)

  • @malamals

    @malamals

    4 жыл бұрын

    couldn't have agreed more on this.

  • @ericstefko4852
    @ericstefko48524 ай бұрын

    Without a doubt this is the best explanation of Linear Regression to be found anywhere.

  • @statquest

    @statquest

    4 ай бұрын

    Thank you very much!

  • @sharvarisosale2780
    @sharvarisosale27803 жыл бұрын

    I love this channel and your explanations are amazing! It's so lucid and I actually feel like making an effort into understanding things. Your channel is one of the main reasons I have a job now. I've been recommending your channel and courses to every person I know! Triple BAM! 🌟

  • @statquest

    @statquest

    3 жыл бұрын

    Awesome and thank you!

  • @aarondorcas
    @aarondorcas5 жыл бұрын

    You make statistics that easy to understand, thanks for your extensive work!

  • @swathisukumar2219
    @swathisukumar22193 жыл бұрын

    Hi Josh, your videos are so explicit that learning statistics seem less challenging. I can't express my gratitude for you in mere words, nonetheless "Thank you so much". The concepts are so clearly explained. You are such an amazing teacher and with your generosity and passion, you are helping so many of us out here across the world. May God bless you always. More power and love to you from India.

  • @statquest

    @statquest

    3 жыл бұрын

    Wow, thank you!

  • @AB-iq9tl
    @AB-iq9tl Жыл бұрын

    your channel is THE BEST in explaining core concepts of stats and ML. I would have been lost without it. Your way of explanation is just amazing..its basically what i like..short, crisp, clear and precise. So many people are indebted to you for making these videos. Please keep up the good work and i cant THANK YOU enough for your hard work.

  • @statquest

    @statquest

    Жыл бұрын

    Thank you very much! :)

  • @shekharrudrabhatla8594
    @shekharrudrabhatla85945 жыл бұрын

    Awesome.. never looked at R-squared this way. Thank you :)

  • @statquest

    @statquest

    5 жыл бұрын

    Hooray!! I'm glad you like the video :)

  • @Get-A-Load-Of-This
    @Get-A-Load-Of-This6 жыл бұрын

    This is the best statistics channel on youtube! Thanks Joshua and the friendly folks.

  • @smdsouza8
    @smdsouza85 жыл бұрын

    I love your videos. It’s a true talent to be able to explain these concepts so clearly

  • @statquest

    @statquest

    5 жыл бұрын

    Thank you so much! :)

  • @wz5445
    @wz54453 жыл бұрын

    Thank you so much ;-; this is so helpful!!! Our school literally threw us course notes without much of an explanation, and this video is so useful!!! Triple kudos!!!

  • @statquest

    @statquest

    3 жыл бұрын

    Glad it helped!

  • @arishali9248
    @arishali92484 жыл бұрын

    This is amazing !!! Thank you !! I have been using linear regression for years and this is the first time I understood R squared so clearly! BAM !

  • @statquest

    @statquest

    4 жыл бұрын

    Hooray! :)

  • @matthewdong9368
    @matthewdong93685 жыл бұрын

    This is literally the BEST materials on stats fundamentals I could ever find, thank you so so much, Josh!!! I wish I watched your vids way earlier!

  • @statquest

    @statquest

    5 жыл бұрын

    Hooray!!!! Thank you so much! I'm so glad to hear that you like my videos. :)

  • @Privacy-LOST
    @Privacy-LOST5 жыл бұрын

    Mind Blown at 7:37. The most obvious things are sometimes the most striking. I have been hammered these concepts at college with barely any context and now it all makes sense thanks to you sir

  • @statquest

    @statquest

    5 жыл бұрын

    Hooray!! Yes, that's the big moment for me, too. I realized that R^2 made much more sense if I could "see it". Once I made that realization, I knew I had to make this video. I'm glad you appreciate it too!

  • @anshulnarela9888
    @anshulnarela9888 Жыл бұрын

    More power to you Josh!! Nobody eplains these basic concepts like you do. Thanks a lot!

  • @statquest

    @statquest

    Жыл бұрын

    Thank you! :)

  • @false_binary
    @false_binary Жыл бұрын

    Holy crud StatQuest w/Josh Starmer, this vid just catapulted me into my first grad school course I started this pm! OLS is primary focus and this vid was the perfect primer for our assigned readings ahead. TY!!! 🤯

  • @statquest

    @statquest

    Жыл бұрын

    Good luck! :)

  • @Brandon-oc8lr
    @Brandon-oc8lr5 жыл бұрын

    Probably one of the most informative videos on these concepts I've ever seen. Thank you!

  • @statquest

    @statquest

    5 жыл бұрын

    Hooray!! I'm so glad you like my video. :)

  • @ayush612
    @ayush6126 жыл бұрын

    Thank you so much for the videos you upload... I am actually wasting my time trying to describe in words how helpful and intuitive your videos are in understanding pillar concepts of statistics... Thank you so much!

  • @statquest

    @statquest

    6 жыл бұрын

    It's really nice to hear how much you like the videos! I'm glad I can help. :)

  • @ayush612

    @ayush612

    6 жыл бұрын

    Sorry josh, can't stop myself from appreciating you.. I guess I qualify to be called a fan of your channel and your voice.. Will definitely buy your tracks from my first income ! 😎

  • @statquest

    @statquest

    6 жыл бұрын

    Thanks!!! :)

  • @jamesshin4901
    @jamesshin49014 жыл бұрын

    Love your presentation!! What a great job you have been doing to educate people and lessen the confusion!! Many thanks!!!

  • @statquest

    @statquest

    4 жыл бұрын

    Thank you! :)

  • @anan7b66
    @anan7b666 жыл бұрын

    Thank you so much for dissecting the terminology along with highlighting equations as you explain. Great way to understand and build the right intuition. The confusing usage of terminology and equations are the hardest and time consuming part that delays the learning process. This is so far the right mix of theory and equations I have come across. Cheers.

  • @ssriv47
    @ssriv473 жыл бұрын

    I was in search for few days how to learn stats for ML. BAM! I stumbled upon this channel and everything is so bright and clear like a pleasant sunny day. It seems we have to learn how to pronounce BAM correctly and everything else is transferred to our mind between a BAM and double BAM. God bless Josh Starmer !

  • @statquest

    @statquest

    3 жыл бұрын

    bam!

  • @pietronickl8779
    @pietronickl87793 жыл бұрын

    better than several stats courses I took 🙃 thanks a lot for your work! really appreciate the focus on getting an intuition for the formulae. Too many courses just state them without communicating that..

  • @statquest

    @statquest

    3 жыл бұрын

    Thank you very much! :)

  • @confidenceinterval4849

    @confidenceinterval4849

    Жыл бұрын

    You can learn more about intuition of linear regression here kzread.info/dash/bejne/g4Vtr6OniJycY7A.html

  • @navjotsingh2251
    @navjotsingh22512 жыл бұрын

    Honestly, you are saving people all around the world! Currently doing a data analysis course in the UK and these videos are helping me understand statistics better!!!

  • @statquest

    @statquest

    2 жыл бұрын

    BAM! And good luck with your course.

  • @ramnewton8936
    @ramnewton89364 жыл бұрын

    Using size and transparency of ink to represent the 3rd dimension is a brilliant idea. I have struggled with visualizing 3D graphs, this is by far one of the best ways I've seen. Kudos!

  • @statquest

    @statquest

    4 жыл бұрын

    Nice!

  • @AJ-et3vf
    @AJ-et3vf2 жыл бұрын

    Awesome! Riveting, straightforward, and jam-packed with well-taught information ❤️❤️❤️

  • @statquest

    @statquest

    2 жыл бұрын

    Thanks so much!

  • @silentsuicide4544
    @silentsuicide45442 жыл бұрын

    I'm learning concepts from machine learning and beside courses and books I'm trying to come back to this channel on daily basis since i find the content very straight forward. For example, i find statistics and probability the hardest to learn and i really struggle when it comes down to feature selection as i don't get for example all those statistical tests to determine the significance, as i cannot understand why for example we use f-distribution to determine r^2 p-value, and here we go, plain and simple, it took few minutes and i get the concept whereas learning from Google can be sometimes really challenging. Thanks again!

  • @statquest

    @statquest

    2 жыл бұрын

    Glad the video was helpful! :)

  • @michaeld6854
    @michaeld68544 жыл бұрын

    Explanation so simple, and more importantly fun - thanks!

  • @statquest

    @statquest

    4 жыл бұрын

    Hooray! :)

  • @rakeshdey3993
    @rakeshdey39934 жыл бұрын

    You are such an amazing teacher, Josh !! Respect !! Please keep doing the awesome work. I learn so much from your videos. Thank you..

  • @statquest

    @statquest

    4 жыл бұрын

    I appreciate that!

  • @ikechang1967
    @ikechang19673 жыл бұрын

    You folks are tearing down the barriers that have prevented me from understanding statistics for so many years. Thank you and thank you again!!

  • @statquest

    @statquest

    3 жыл бұрын

    Thanks!

  • @sdfsdf5313
    @sdfsdf53134 жыл бұрын

    Really thankful for all the mesmerizing videos. Throughly enjoyed the content (Purchased few study guides. Quite helpful) . I am still struggling to get a good video on linear regression assumptions with code ( all 10 assumptions) with full explanation on how to detect when the assumptions are violated and what to do next. Just a suggestion :)

  • @statquest

    @statquest

    4 жыл бұрын

    It's a good suggestion. I will put that on the to-do list. And thank you very much for supporting StatQuest!!! BAM!

  • @AI_Financier
    @AI_Financier2 жыл бұрын

    Even with a PhD in engineering from a top 100 university in the world with lots of publications, this is the first time when F test synched with me, Thank you Josh

  • @statquest

    @statquest

    2 жыл бұрын

    BAM! :)

  • @adancastro2220
    @adancastro22202 жыл бұрын

    I found that this Video explains about 60% of my current understanding of linear regression... Thank you friendly people ;)

  • @statquest

    @statquest

    2 жыл бұрын

    Glad it helped!

  • @imperfectclark
    @imperfectclark2 жыл бұрын

    This is the video I share to friends interested in machine learning (*not* demos of python that show model creation in a few lines of code that give no context for what's actually happening + why it works!)

  • @statquest

    @statquest

    2 жыл бұрын

    Bam! :)

  • @imad_uddin
    @imad_uddin3 жыл бұрын

    What an amazing explanation of r squared. Cant appreciate enough! Subscribed

  • @statquest

    @statquest

    3 жыл бұрын

    Awesome, thank you!

  • @salnaud8898
    @salnaud88985 жыл бұрын

    Thank you very much. Good on ya mate. Finally I got the answers of my questions that I was looking for a long time. Cheers,

  • @statquest

    @statquest

    5 жыл бұрын

    Awesome! :)

  • @nachiketpensalwar
    @nachiketpensalwar5 ай бұрын

    a lot better than other videos... easy to understand concepts this way. thank you for free content.

  • @statquest

    @statquest

    5 ай бұрын

    Glad it was helpful!

  • @alecvan7143
    @alecvan71434 жыл бұрын

    Incredibly clear, watching your videos not only do I learn, but I clear up things I hadn't very well understood in the past!

  • @statquest

    @statquest

    4 жыл бұрын

    You're totally binging! And that's awesome. TRIPLE BAM!!! I'm so glad that you like my videos and they are helping you understand statistics etc.

  • @alecvan7143

    @alecvan7143

    4 жыл бұрын

    @@statquest Definitely! I'm even watching them now to study for my upcoming actuarial exam! :D

  • @statquest

    @statquest

    4 жыл бұрын

    @@alecvan7143 Good luck and let me know how the exam goes.

  • @alecvan7143

    @alecvan7143

    4 жыл бұрын

    @@statquest Will do, thank you :)

  • @alecvan7143

    @alecvan7143

    4 жыл бұрын

    @@statquest Exam went quite well thanks to your videos ;). Cheers!

  • @hazel6330
    @hazel63302 жыл бұрын

    This is the best explanation that I have ever heard. Truly appreciate your efforts .. true genius👍👍👍

  • @statquest

    @statquest

    2 жыл бұрын

    Thank you! :)

  • @yondchang
    @yondchang6 жыл бұрын

    Great video, just note Rsqured can actually be negative, it happens when you fit the data worse than a horizontal line.

  • @ZowieFaerieYeah
    @ZowieFaerieYeah2 жыл бұрын

    These videos are the best! Thank you soooooo much! Big smiles from a recent psych graduate revising stats concepts for a job interview.

  • @statquest

    @statquest

    2 жыл бұрын

    Good luck with the interview! BAM! :)

  • @PunmasterSTP
    @PunmasterSTP3 ай бұрын

    I've used regression lines relatively frequently while tutoring students, but it's always good to review the logic and concepts. Thanks for another awesome vid!

  • @statquest

    @statquest

    3 ай бұрын

    Glad it was helpful!

  • @derrickc.8486
    @derrickc.84868 ай бұрын

    Wow, I took Statistics I and II at the doctoral level and struggled through Stats I, but II was a bit easier. I wish my Statistics professor had made it as interesting, meaningful, and easy to learn and understand as you did in this video. I have a much better understanding of what linear regression is about and I've a renewed interest in learning more about the hows and whys of statistics so I can apply it in my profession. Thank you!

  • @statquest

    @statquest

    8 ай бұрын

    Hooray! I'm glad my video was helpful! :)

  • @merryjoy48
    @merryjoy484 жыл бұрын

    Waiting eagerly for the video on degrees of freedom a topic that has eluded me for a very long time. Can't wait for the BAMS on that one.

  • @yrrep27
    @yrrep27 Жыл бұрын

    "This is the frowny face of bad times" got a hearty laugh out of me.

  • @statquest

    @statquest

    Жыл бұрын

    Bam! :)

  • @elatior
    @elatior6 жыл бұрын

    I wish I could have seen your video when I was in university. You have made it so clear and easy to understand. Thanks for making these videos!

  • @user-rc4ro7yv5o
    @user-rc4ro7yv5o2 жыл бұрын

    Oh, I wish I have more hours in a day to watch all of your videos 🤤 I'm crying how good they are! 🤩🤩

  • @statquest

    @statquest

    2 жыл бұрын

    Thank you so much 😀

  • @kesavkumar7710
    @kesavkumar77104 жыл бұрын

    I never missed intro song of the video.This is real BAM..!! The concepts anyway going to be clear.

  • @statquest

    @statquest

    4 жыл бұрын

    :)

  • @benbernanke4037
    @benbernanke40374 жыл бұрын

    The way you visualised those ols at the beginning, BAM!

  • @statquest

    @statquest

    4 жыл бұрын

    Thanks! :)

  • @mogasawara
    @mogasawara5 жыл бұрын

    You explain the material so well. Thank you very much and please keep up the great work!

  • @statquest

    @statquest

    5 жыл бұрын

    You're welcome!!! I'm glad that you like the videos. :)

  • @meenasirishaallamsetty713
    @meenasirishaallamsetty7134 жыл бұрын

    OMG!!! you are so helpful, before I saw your videos, all these topics didn't make sense. On by the way please bring the BAM back!!! kind of liked it

  • @statquest

    @statquest

    4 жыл бұрын

    Thank you very much! The BAM is back!!!! :)

  • @joseangelmartinez308
    @joseangelmartinez3083 жыл бұрын

    How can someone explain so wel?? HUGE BAM!

  • @statquest

    @statquest

    3 жыл бұрын

    Thank you! :)

  • 6 жыл бұрын

    Your videos are absolutely fantastic. You present the information and terminology in a consistent and easy to follow way, and you never make any big leaps between steps (which is unfortunately too common with math teachers who just assume intuition which may not be immediately obvious to everyone).

  • @statquest

    @statquest

    6 жыл бұрын

    Thanks so much! Yes, I try to keep the leaps as small as possible and I try to make sure I can "draw" the math. My rule is this - if I can draw a picture of what an equation is doing, than I understand it.

  • 6 жыл бұрын

    Great way to teach, humans are very visual creatures... I am wondering if there should be a bracket around ss(mean)-ss(fit) in the formula for F @ 19:15 ? Also looking forward to your video of degrees of freedom!

  • @statquest

    @statquest

    6 жыл бұрын

    Yep, a bracket would make that clearer. You divide [ss(mean) - ss(fit)] by the degrees of freedom. Thanks for pointing that out! :)

  • @satu272
    @satu2725 жыл бұрын

    These videos are great, I have been on a binge this weekend :) Your explanations have really taken away my confusion. I would really like to see that video about degrees of freedom.

  • @statquest

    @statquest

    5 жыл бұрын

    Thank you! Yes, I'd love to do one on degrees of freedom. I'm working it out in my head and hopefully will get to it soon. :)

  • @gurubuxgill

    @gurubuxgill

    5 жыл бұрын

    @@statquest Still Waiting for this one DoF. Thanks for all the good stuff.

  • @xzhou6686
    @xzhou66865 жыл бұрын

    Hey Josh, thanks for the great videos! One quick question. At 19:13 where the equation for F turns up, should the numerator be (SS(mean)-SS(fit))/(pfit-pmean) or SS(mean)-SS(fit)/(pfit-pmean)? wondered if there is a pair of bracket missing there.

  • @statquest

    @statquest

    5 жыл бұрын

    You are correct, a pair of brackets would have made this clearer! Sorry for the confusion. It should be: [SS(mean)-SS(fit)] / (pfit-pmean)

  • @Privacy-LOST
    @Privacy-LOST5 жыл бұрын

    3:00 I've been doing this for 10+ years without having ever seen it that way. Brilliant.

  • @statquest

    @statquest

    5 жыл бұрын

    Awesome!!! :)

  • @Leila0S
    @Leila0S2 жыл бұрын

    Your channel the new year's gift to me. Thank you thank you, thank you.

  • @statquest

    @statquest

    2 жыл бұрын

    Wow, thank you

  • @xondiego
    @xondiego2 жыл бұрын

    Geez, such a beautiful explanation. God bless you. Normally when you're doing the computation, all the teachers I had never explained with the ssmean minus the ssfit over ssmean, but that made heaps of sense why... Lovely.

  • @statquest

    @statquest

    2 жыл бұрын

    Wow, thank you!

  • @BrianRisk
    @BrianRisk5 жыл бұрын

    “Womp womp. Here’s the frowny face of sad times.” CRACKED ME UP 😂

  • @statquest

    @statquest

    5 жыл бұрын

    Here's the happy face! :)

  • @mohitnagarkoti4086
    @mohitnagarkoti40864 жыл бұрын

    This is my 7+ time on this video, I just love to revise. :) In case anyone wondering why we are using mean here, For a single variable the best fit line is Mean Example : You tell me what's the average height of your class? You will calculate mean right? That's why mean

  • @statquest

    @statquest

    4 жыл бұрын

    Nice!

  • @hm.tusher
    @hm.tusher Жыл бұрын

    Flabbergasted by the simplicity of the explanations!

  • @statquest

    @statquest

    Жыл бұрын

    Thanks!

  • @malamals
    @malamals4 жыл бұрын

    Your videos are super easy to have an intuition, about what we are studying without having the intuition. i'm truly great-full for that. Please make videos on Neural network concepts. A much needed in the largely developing technological world.

  • @statquest

    @statquest

    4 жыл бұрын

    My plan is to make a neural network video later in the fall.

  • @seauxmean4074
    @seauxmean40744 жыл бұрын

    the opening theme is awesome

  • @statquest

    @statquest

    4 жыл бұрын

    Ha! :)

  • @jackignatev
    @jackignatev4 жыл бұрын

    Infinity BAM! Your videos are awesome!

  • @statquest

    @statquest

    4 жыл бұрын

    Thank you very much! :)

  • @jamiyana4969
    @jamiyana4969 Жыл бұрын

    Literally the best explaination you will ever find on KZread, Thanks a lot!

  • @statquest

    @statquest

    Жыл бұрын

    Wow, thanks!

  • @because2022
    @because20225 ай бұрын

    Thank you so much. Your dedicated effort in content creation and flawless delivery is awesome. Keep doing well.

  • @statquest

    @statquest

    5 ай бұрын

    Thank you! Will do!

  • @TTortrix
    @TTortrix4 жыл бұрын

    I wish i would have found this when I was in my statistics class. Then I would have been like "Bam!", I understand P values, R^2, and SS.

  • @statquest

    @statquest

    4 жыл бұрын

    BAM! :)

  • @joerich10
    @joerich106 жыл бұрын

    Another fantastic vid. Just to clarify, the p value of the F statistic is to be interpreted as the probability that the R2 was obtained by random chance alone. If it is

  • @statquest

    @statquest

    6 жыл бұрын

    You got it! :)

  • @saicharangarrepalli9590
    @saicharangarrepalli95904 жыл бұрын

    That was a really cool intro. That got me hooked. Then the quality of the lecture was top notch.

  • @statquest

    @statquest

    4 жыл бұрын

    Thank you! :)

  • @autogenes
    @autogenes2 жыл бұрын

    I love teachers who can induce interest in their subjects

  • @statquest

    @statquest

    2 жыл бұрын

    Thank you!

  • @nathanx.675
    @nathanx.6754 жыл бұрын

    Who’s watching this two days before their midterm? Baaaaaaam!

  • @statquest

    @statquest

    4 жыл бұрын

    Yes! It's that time of year. Good luck!!!! :)

  • @pi2019
    @pi20195 жыл бұрын

    Hi I have 2 questions: 1) When we are creating the histogram with different F values, where are these random datasets coming from? are they related to our original dataset in someway? I mean are comparing the same features (eg predicting mouse height from mouse weight?) 2)I didn't get the part about p-value being defined as the number of more extreme values divided by all values. From your lecture on p-values explained- a p-value was defined was the sum of probability of current event + anything with an equal probability + rarer events.

  • @statquest

    @statquest

    5 жыл бұрын

    1) Those random datasets are related to the original dataset in that they have the same number of points and the same range along the y-axis and the same domain along the x-axis. Other than that, they are just random values. The idea is to compare what you observed to noise. If the noise generated a lot of F-values that were larger than the F-value we got from the observed data, then we wouldn't think that the observed data is all that special (and thus, the observed data would have a large p-value). 2) That's a little bit of a typo - I mean to say, "the number of randomly generated F-values equal to or more extreme divided by the all of the values". The "division" is what turns the values into a probability. Does that make sense?

  • @pi2019

    @pi2019

    5 жыл бұрын

    @@statquest Thank you! can you please confirm whether my thought process is correct or not for the 2 points above: 1) So these random datasets have the same range and domain but can be unrelated to the our dataset in terms of the list of features. We use these datasets to create our histogram (and then the curve) to see how does our observation fair. If there are a lot of f-values greater than ours in the curve, then our observation is not good? 2) For the p-value we take the probability of distribution which is equal, less or rarer than our the point on the distribution, this point is determined by our calculated f-value?

  • @statquest

    @statquest

    5 жыл бұрын

    @@pi2019 You are 100% correct for point #1. For point #2 you are 99% correct. The only thing is that the F-distribution isn't symmetric (like the normal distribution) and F-values can only be positive. Thus, we don't have to look at values "less than" the observed F-value when calculating the p-value. Does that make sense? One thing I would like to make sure is clear is that the randomization in the video is only intended to illustrate how the p-value is calculated. In practice, we just refer to the F-distribution and don't do the randomization.

  • @pi2019

    @pi2019

    5 жыл бұрын

    @@statquest Thank you it makes perfect sense!!

  • @Frank-zk5ru
    @Frank-zk5ru5 жыл бұрын

    Really love the way you teach. Thanks!

  • @monicasethuraman5772
    @monicasethuraman5772 Жыл бұрын

    I like the way to review the previous concept , before heading to the other concept. It is really helpful. Ur voice goes very well , increasing an interest to listen and learn more. Thank you so much for sharing your knowledge😇😇

  • @statquest

    @statquest

    Жыл бұрын

    Happy to help! :)

  • @statsmama
    @statsmama4 жыл бұрын

    When will the video on degrees of freedom be coming out? :D :D :D

  • @statquest

    @statquest

    4 жыл бұрын

    Good question. One day! :)

  • @suneelvarma4821
    @suneelvarma48214 жыл бұрын

    In the Hindi language 'Josh' = 'Energy', I just realized the meaning

  • @statquest

    @statquest

    4 жыл бұрын

    That's awesome! :)

  • @naomyduarteg
    @naomyduarteg Жыл бұрын

    You are the best! And you certainly got even better through the years (I just watched the "R^2 explained" video from 8 years ago).

  • @statquest

    @statquest

    Жыл бұрын

    Thank you!

  • @Relative0
    @Relative05 жыл бұрын

    As the variation of the sum of the squares around the line taking in to account the mouse weight is less than the variation of the sum of the squares around the line average mouse size alone: "some of the variation in mouse size is explained by taking weight in to account" DOUBLE BAM! Thanks a lot Josh, you really help make sense of this stuff.

  • @statquest

    @statquest

    5 жыл бұрын

    Double BAM!!! :)

  • @rutu1011
    @rutu1011 Жыл бұрын

    All these exams I tok and tortured myself..where were you? This is the first and only channel that makes stat look interesting!!!

  • @statquest

    @statquest

    Жыл бұрын

    Thank you!

  • @LouisChiaki
    @LouisChiaki3 жыл бұрын

    This introduction of R^2 makes much more sense than the typical confusing RSS TSS terms!

  • @statquest

    @statquest

    3 жыл бұрын

    Thanks!

  • @nguyentuongvy2110
    @nguyentuongvy21102 жыл бұрын

    This is the first time I have watched a intelligible video about R. Thanks really much for your sharing. Love you and wish you healthy.

  • @statquest

    @statquest

    2 жыл бұрын

    Thank you!

  • @modernaone
    @modernaone3 жыл бұрын

    What a great video that explains abstract concepts very graphically. This way, a whole complex chapter of a statistical book is presented here so interesting! My compliments to the author of the graphics, the video and the content of it. I owe you big time....thanks so much! You got a new faithful subscriber and promoter of the channel !!! 😃🙏😃🙏👏🏻👏🏻👏🏻

  • @statquest

    @statquest

    3 жыл бұрын

    Thank you very much! :)

  • @wadezhou8204
    @wadezhou82042 жыл бұрын

    What a great video! it's absolute a clear explanation! Thank you Josh!

  • @statquest

    @statquest

    2 жыл бұрын

    Thank you very much! :)