R-squared, Clearly Explained!!!

Sdílet
Vložit
  • čas přidán 3. 08. 2024
  • R-squared is one of the most useful metrics in statistics. It can give you a sense of how good your model is.
    For a complete index of all the StatQuest videos, check out:
    statquest.org/video-index/
    If you'd like to support StatQuest, please consider...
    Buying The StatQuest Illustrated Guide to Machine Learning!!!
    PDF - statquest.gumroad.com/l/wvtmc
    Paperback - www.amazon.com/dp/B09ZCKR4H6
    Kindle eBook - www.amazon.com/dp/B09ZG79HXC
    Patreon: / statquest
    ...or...
    CZcams Membership: / @statquest
    ...a cool StatQuest t-shirt or sweatshirt:
    shop.spreadshirt.com/statques...
    ...buying one or two of my songs (or go large and get a whole album!)
    joshuastarmer.bandcamp.com/
    ...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
    #statquest #statistics #rsquared

Komentáře • 713

  • @statquest
    @statquest  Před 4 lety +135

    NOTE: When I first made this video, I was thinking about how R-squared relates to Linear Regression, which will not fit a line worse than the mean of the y-axis values. This is because if the values along the x-axis are truly useless in terms of predicting y-axis values, then the slope of the line used to make predictions will be 0, and the intercept will equal the mean. However, it is possible to simply draw a line that fits the data worse than the mean and get a negative R^2.
    Support StatQuest by buying my book The StatQuest Illustrated Guide to Machine Learning or a Study Guide or Merch!!! statquest.org/statquest-store/

    • @mattkilgore7323
      @mattkilgore7323 Před 4 lety +1

      With enough variables in the data set, it would be easy to create a set of r-squared values so that the cumulative percent "explained by" the different variables goes over 100%. That's why I was never a fan of that terminology. Students think it implies causation when it doesn't. Otherwise, great video.

    • @statquest
      @statquest  Před 4 lety +28

      @@mattkilgore7323 Maybe I should have made it more clear, but if you have a large model with a lot of variables, then you don't add together a bunch of individual R-squared values to find the total R-squared. You calculate a single r-squared value fro the entire model. In other words r-squared refers to the models, not the individual variables.

    • @huiwang2854
      @huiwang2854 Před 4 lety

      StatQuest with Josh Starmer If you only consider all unbiased lines, (mean of predicted ys equal mean of real ys), then no negative R^2.

    • @sunilkumarsamji8507
      @sunilkumarsamji8507 Před 4 lety +1

      @@mattkilgore7323 Hi Matt can you explain the point you trying to make in a bit more detailed manner

    • @mattkilgore7323
      @mattkilgore7323 Před 4 lety +2

      The phrase "explained by" can be deceptive, as students often think it means "caused by." But this is not what it means in the context of r-squared. Does that help?

  • @dannysnee4945
    @dannysnee4945 Před 4 lety +231

    So glad this channel exists. It's rare that CZcams videos on stats are this well done

    • @statquest
      @statquest  Před 4 lety +6

      Thanks!

    • @shashankkhare1023
      @shashankkhare1023 Před 4 lety +4

      @@statquest You are a lifesaver. I am surprised you dont have more subsciptions. I would recommend your channel to my colleagues, thank you so much :)

    • @statquest
      @statquest  Před 4 lety +7

      @@shashankkhare1023 Thank you very much!!! Recommending my channel to your colleagues is the best complement you can give me. :)

    • @VinodKumar-nn7go
      @VinodKumar-nn7go Před 2 lety

      you can watch and learn from Dr. Ami Gates. Her videos are great..

  • @kinvert
    @kinvert Před 4 lety +266

    So all this time I spent sniffing rocks to grow bigger was for nothing???

  • @ramprakash7872
    @ramprakash7872 Před 5 lety +12

    You have explained the concept so neatly,clearly ( most importantly in an easier manner ) so that one could get deeper understanding of the concept, a fact that lot many text books / videos / articles failed to do. Keep making such videos !

  • @joenah5651
    @joenah5651 Před 3 lety +39

    Thank you so much for making this sooooooo clear, I've struggled to understand the meaning of R2 for a week and you just made it clear to me in 10 min.

  • @DD-hh4tz
    @DD-hh4tz Před 5 lety +7

    Your videos are so easy to understand, and also explains the intuition behind. I really love the way you start the video, unlike other bouring lectures.

  • @muffinman1
    @muffinman1 Před 4 lety +29

    "sniff/weight relationship" debunked by StatQuest. Give this man a Nobel. :)

  • @cartulinito
    @cartulinito Před rokem +1

    I started following you 4 months ago, now I'm starting over from the very first video, I'll watch them all and understand everything.
    Thank you very much for this content.

  • @dikshyapattanaik3528
    @dikshyapattanaik3528 Před 3 lety +6

    Your channel is blessing in disguise. Visual aids and the explanations are so smooth and easy to understand. Thank you very much.

  • @gri189
    @gri189 Před rokem +1

    Just recently found your channel. These are by FAR the most straight forward explanations I found so far. You sir are a godsend.

  • @alecvan7143
    @alecvan7143 Před 4 lety +66

    I can't believe the simple relationship between R^2 and R was never made clear to me! Amazing as always!

    • @statquest
      @statquest  Před 4 lety +5

      Awesome!!!! Thank you very much.

    • @pablo_brianese
      @pablo_brianese Před 3 lety

      I also appreciated his comments on the subject, and him sharing his opinions and intuitions.

    • @bleakmess
      @bleakmess Před rokem

      Just a quick question?

  • @sanketbadhe3572
    @sanketbadhe3572 Před 5 lety +6

    I read a lot on R square from different books and articles but this was the really different and very intuitive approach. Visualization is the best way to understand statistics and I think most books lack there.

  • @amirmohamed2428
    @amirmohamed2428 Před 3 lety +6

    I had stats exam coming up and didn't know this particularly well, Thanks for making it much more simpler!

  • @vamanieperumal5262
    @vamanieperumal5262 Před 4 lety +6

    this is the best channel ever that can exist about statistics :D wonderful explanation and illustrations and the music! :) am glad I found this at the right time !

    • @statquest
      @statquest  Před 4 lety

      Thank you so much 😀

    • @baxtables
      @baxtables Před 4 lety

      Are u glad u found it or are u asking us if u are glad??😆😆

  • @yashshah1936
    @yashshah1936 Před 4 lety +6

    Josh you are the best!!! Your every video has been helpful to god knows how many times in my studies. Much much love

  • @ivandeetlefs
    @ivandeetlefs Před 2 lety +2

    I would rather name this video VERY CLEARLY EXPLAINED. Thank you.

  • @hewhomustnotbenamed5912
    @hewhomustnotbenamed5912 Před 4 lety +4

    Added this to my useful tutorials and math playlists.
    Thanks StatQuests.

  • @thisis7734
    @thisis7734 Před 4 lety +5

    Amazing explanation!!Made it very simply for me to understand!! :)
    I went through so much content for this..thank you

    • @statquest
      @statquest  Před 4 lety +2

      Hooray! I'm glad the video was helpful.

  • @samuelliaw951
    @samuelliaw951 Před 3 lety +2

    cool! you have cleared all the fogs around r2 in my head once for all. appreciate your explanation!

  • @prateeksachdeva1611
    @prateeksachdeva1611 Před rokem +1

    Could not have even imagined such intuitive explanation of this topic before watching this video. Thanks Josh!

  • @kowsergazi
    @kowsergazi Před 6 lety +1

    No one could make me understand R Squared in such easy way. Watched many videos. All made it complicated. Thanks.

    • @statquest
      @statquest  Před 6 lety

      Hooray!!! I'm glad to hear the video was helpful! :)

  • @ashokcgl
    @ashokcgl Před 2 lety +1

    Just impeccable. I don't think any other better illustration exists other than this. Thank you

  • @tanmaymhatre6370
    @tanmaymhatre6370 Před 3 lety +2

    love the way you explain things in casual manner

  • @Steve-go3zp
    @Steve-go3zp Před 3 lety +1

    I have been looking at a variety of stats videos and these are clearly the best. I am so impressed with StatQuest that I renamed my four dogs, "StatQuest," "StatQuest," "StatQuest," and "John Stamos" because, of course...

  • @ailsasun9308
    @ailsasun9308 Před rokem +1

    The introductions are the cutest thing I have ever seen - the videos are also super duper helpful!

  • @Love4ever1223
    @Love4ever1223 Před 4 lety +1

    god bless, i have been searching high and low for this kind of video. Thank you!!!!

  • @sanjaykrish8719
    @sanjaykrish8719 Před 6 lety +8

    Very beautifully explained. Many thanks to the folks of Genetics Department at the University of North Carolina at Chapel Hill.

  • @srikanth9450
    @srikanth9450 Před 3 lety +4

    I have found a great channel for stats and trix.... BAM! it covers all the areas I want to learn.. Double BAM!! It's indeed clearly explained... Triple BAM!!!

  • @wayne02058
    @wayne02058 Před 3 lety +3

    a simple concept explained simply. thank you for the straight forward explanation

  • @AdilKhan-sh9fv
    @AdilKhan-sh9fv Před 3 lety +3

    This channel has become my go-to resource for anything stat related.

  • @rabbisheryl9613
    @rabbisheryl9613 Před 4 lety +4

    aha! we meet again, and I thank you again!!! wow, I wish you were teaching my class!!

    • @statquest
      @statquest  Před 4 lety

      Ha! I'm glad my videos are so helpful. :)

  • @lilmoesk899
    @lilmoesk899 Před 7 lety

    Super useful as always. Please continue with the videos (for example, prediction interval vs. confidence interval or maybe p-values vs. randomization tests or logistic regression...)! I liked your explanation because it never occurred to me that R^2 was basically the same as calculating percent change (diff/original)x100.

  • @firasal-nasir1909
    @firasal-nasir1909 Před 4 měsíci +1

    watching this again, thank you very much. I jumped into more advanced stuff because of your videos. 🙏🙏

  • @rajsingh9869
    @rajsingh9869 Před rokem +1

    really boom...I was confused from past 3 days to understand regression value ...now I understand. Thanks

  • @thyang3999
    @thyang3999 Před 4 lety +2

    Thank you very much, your video is very easy way to understand, makes me want to go through the Statistics course again.

  • @fredyrojas7884
    @fredyrojas7884 Před 2 lety +1

    These videos are pretty cool. I can always come back and refresh concepts.

  • @goodester6924
    @goodester6924 Před 4 lety +2

    Was struggling to understand this concept but this video explained everything!

  • @paololara3115
    @paololara3115 Před 4 lety +1

    Thank you, this was a life-giver! Josh Starmer, you just might have become a part of something which will be big

  • @shinhyelee3169
    @shinhyelee3169 Před 5 lety +4

    Ah! this is the best video explaining R squared! Thank a lot!

  • @mohdbasryt
    @mohdbasryt Před 3 lety +3

    Great teachers make everything interesting! Thanks Josh

  • @stevenpatterson8119
    @stevenpatterson8119 Před rokem +1

    This helped me clearly understand R^2. Trying to grasp this from reading a textbook was impossible for me.

  • @minilamabianco
    @minilamabianco Před 4 lety +8

    You are a rarity ❤️ really love how you explain statistics! Please tell us more 🙏🏻♥️♥️♥️

  • @elfmas
    @elfmas Před 3 lety +1

    Thanks, every question/doubt that I had instantly got answered about 10 seconds later.

  • @MrClevermind
    @MrClevermind Před 4 lety +1

    Thank you, you're helping us with these videos.

  • @dearwriter9659
    @dearwriter9659 Před 2 lety +1

    Now I understand the R squared much better! Thank goodness for this video!

  • @mohammadhassanjafari481
    @mohammadhassanjafari481 Před 2 lety +1

    I did not see anyone explain the statistics better than you
    God bless you ...

  • @AydinCGur
    @AydinCGur Před rokem +1

    Wonderful explanation again. I easily understood the concept. I'm grateful.

  • @senwang8468
    @senwang8468 Před 4 lety +5

    这样的创作者请给我来一百个!thank you for your videos!I really appreciate what you have done, and look forward to seeing more of them~

  • @nithyashreevenkataraman3
    @nithyashreevenkataraman3 Před 3 lety +1

    Thank you so much, I've learned so much from you in the past week! Very grateful

  • @nicholesutter80
    @nicholesutter80 Před 3 lety +1

    Working on my MPA stats final and this video has been so helpful

  • @manikyar7115
    @manikyar7115 Před 2 lety +3

    Really enjoying your videos. Moreover everything is crystal clear and I am able to understand them. Double BAM

    • @statquest
      @statquest  Před 2 lety

      Hooray!!! That's great news. BAM! :)

  • @samuelgrubb2976
    @samuelgrubb2976 Před rokem +1

    I never comment, but today is not that day. Thank you so much for this!!!! I am in graduate school and am still struggling to understand these concepts, you're a life saver

  • @sweetheart.nikkilee430
    @sweetheart.nikkilee430 Před 4 lety +2

    wow this is the best explanation ive ever seen, thank u!!!!!

  • @mohitsrivastava5880
    @mohitsrivastava5880 Před 4 lety +1

    Thanks for the simple explanation. Much appreciated.

  • @sebastianc09
    @sebastianc09 Před 2 lety +1

    I'm truly grateful for your videos!

  • @sudhitiwaridwivedi3096
    @sudhitiwaridwivedi3096 Před 5 lety +2

    Undoubtedly d best and to the point explanation. Thanks a lot

  • @adnanshahnawaz6808
    @adnanshahnawaz6808 Před rokem +1

    "time spent sniffing a rock"! had me cracking😂.... btw thanks josh for putting such great content up... this channel is the my primary source of building my statistics foundations....

  • @guthrie_the_wizard
    @guthrie_the_wizard Před 2 lety +1

    Thanks very much! Your videos rock. Great pacing, excellent points.

  • @Gattomorto12
    @Gattomorto12 Před 7 lety

    Nice video! I'll recommend it to family and friends.

  • @kumarransing8489
    @kumarransing8489 Před rokem +1

    Really good explanation as to why r squared is significant in describing variation in data. Thank you!

  • @mmhamed1
    @mmhamed1 Před 2 lety +1

    You know what i decided to start watching your videos from the beginnimg .. baaam .. thanks

  • @pablo_brianese
    @pablo_brianese Před 3 lety +2

    Thank you for this precious material

  • @footballistaedit25
    @footballistaedit25 Před 2 lety +1

    Thanks for sharing, Sir. It helps me a lot

  • @anacarolinamartinelli9065

    This video is absoluted amazing! R^2 and R finaly understood!

  • @funnyclipsutd
    @funnyclipsutd Před 4 lety +2

    After watching your videos, I aced my stats module!

    • @statquest
      @statquest  Před 4 lety +1

      TRIPLE BAM!!! Congratulations!!! :)

  • @KARAB1NAS
    @KARAB1NAS Před 5 lety

    Nice explanation. To the point.

  • @PeterXLuo
    @PeterXLuo Před 3 lety +1

    best video explaining R and R squared ever!

  • @KIKI-NJ
    @KIKI-NJ Před 3 lety +1

    So proud of me because I'm watching these videos. Very very goood job thanks 😊 👍 👏

  • @emmanuelskywalker1581
    @emmanuelskywalker1581 Před 5 lety +1

    AWESOME! thanks for the explanation.

    • @statquest
      @statquest  Před 5 lety

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

  • @AmosFolarin
    @AmosFolarin Před 5 lety +12

    Beautiful explanation :)

  • @mosama22
    @mosama22 Před 2 lety +1

    Thank you Josh, this was really a beautiful explanation :-)

  • @ricardoagnelo2995
    @ricardoagnelo2995 Před 5 lety +5

    Good explanation and your videos really are funny... good job

    • @statquest
      @statquest  Před 5 lety +1

      Hooray! I'm glad you like the videos and my silly jokes. ;)

  • @kwanpakshing
    @kwanpakshing Před 3 lety +1

    The best explaination I can find

  • @vivekmenon4118
    @vivekmenon4118 Před 4 lety +1

    Well explained. Thank you!!!

  • @carbon273
    @carbon273 Před 4 lety +1

    Zedstatistics coupled with statQuest is just absolutely magnifique

  • @jonathanlee8755
    @jonathanlee8755 Před 4 lety +2

    Amazing video! Thank you very much!

  • @anilsarode6164
    @anilsarode6164 Před 4 lety +4

    hats off and thanks a lot you will make me cry. thanks once again.

  • @sheldonsebastian7232
    @sheldonsebastian7232 Před 4 lety +2

    B - E - A - utiful explanation. Thanks

  • @toast34
    @toast34 Před 10 měsíci

    Came here from the Pearson's correlation video. Thank you so much for this
    I just wish that you could show in the video:
    • how (Var(mean)-Var(line)) / Var(mean) is equal to [Covar(x,y) / (Var(x)^-2)(Var(y)^-2)]^2
    • whether (Var(mean)-Var(line)) / Var(mean) using mean and differences from the x-axis also yields the same value
    Again, thank you for the video

    • @statquest
      @statquest  Před 10 měsíci +1

      I'll keep that in mind.

  • @gbchrs
    @gbchrs Před 2 lety +1

    woah thanks for this one too Josh! finally gets R2

  • @abdullahattia2491
    @abdullahattia2491 Před rokem +1

    my dude I understood and I am happy
    8-year-old video is this good
    liked, subbed and thank you!

    • @statquest
      @statquest  Před rokem +1

      My dude! Thank you very much! :)

  • @isa..333
    @isa..333 Před rokem +1

    this is bizarelly useful for my exam tomorrow

  • @mishtimaithli
    @mishtimaithli Před 2 lety +1

    phew...!!! finally this concept is clear in my head :) thank you sooo much

  • @donfeto7636
    @donfeto7636 Před 4 lety +3

    Thank You Statquest your video and my knowledge of R^2 have a R^2 of 99.99

  • @rashminaik6242
    @rashminaik6242 Před 4 lety +1

    Very well explained!! Thanks

  • @busyshah
    @busyshah Před 3 lety +3

    You know only a level of mastery can achieve this level of ease.

  • @amiralessigue9075
    @amiralessigue9075 Před 6 lety +1

    the best explanation as usual

  • @gloriachen5050
    @gloriachen5050 Před 3 lety

    I really love this channel, thank you so much! one question is that is the blue line caculated from the least squared method?

  • @junepark9591
    @junepark9591 Před rokem +1

    Beutifully explained. Thank you so much.

  • @DiegoMachida
    @DiegoMachida Před 2 lety +1

    You goddamm beautiful man, Im eating your videos like candy nowadays, Im finishing an electrical and comms engineering degree and working with some computer science and I usually get hammered with statistical questions when I finish presenting my models, thanks to your uploads i've held my own against some nasty expert old timers, thank you for this.

  • @bachxuanquang2837
    @bachxuanquang2837 Před 2 lety +1

    Very clear explanation!

  • @beenasfarastodecidetouseve6733

    Mr StatQuest I love you

  • @koonsickgreen6272
    @koonsickgreen6272 Před rokem +1

    Dude..this friggin rocks.. THAKS YOU!!!!!

  • @gvtronrox4204
    @gvtronrox4204 Před 3 měsíci +1

    This is sooo good... wish i found this video earlier.

  • @amj.composer
    @amj.composer Před 2 lety +1

    Gosh, this was SO helpful.

  • @RAJIBLOCHANDAS
    @RAJIBLOCHANDAS Před 2 lety +1

    Nice explanation!

  • @tymothylim6550
    @tymothylim6550 Před 2 lety +1

    Great video! Thanks a lot!

  • @vijaypalmanit
    @vijaypalmanit Před 8 lety +2

    one of the best explanation, thanks a lot for making this video..

  • @unlearningcommunism4742
    @unlearningcommunism4742 Před 2 lety +1

    I've stared binge watching the entire channel :D

    • @statquest
      @statquest  Před 2 lety

      BAM! :)

    • @unlearningcommunism4742
      @unlearningcommunism4742 Před 2 lety

      @@statquest Do you know someone doing TDA (topological data analysis) / AYASDI Software?
      Man it's a good stuff...

    • @statquest
      @statquest  Před 2 lety

      @@unlearningcommunism4742 I'll look into it.

    • @unlearningcommunism4742
      @unlearningcommunism4742 Před 2 lety +1

      @@statquest Obscure stuff, my postdoc actually, but it makes everything - better. I've personally tested a lot of things with it from images, to soil samples, languages, FTIR spectra... And it gives the edge every time.

  • @intfxdx
    @intfxdx Před 2 lety +1

    Awesome explanation