R-squared, Clearly Explained!!!

Поділитися
Вставка
  • Опубліковано 7 лис 2024

КОМЕНТАРІ • 243

  • @statquest
    @statquest  2 роки тому +10

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

    • @computerconcepts3352
      @computerconcepts3352 2 роки тому +1

      👍

    • @DrOats22
      @DrOats22 Рік тому +2

      Hi, Josh! I just wanted to say thank you for these videos! The way you explain concepts has been honestly life changing for me (in terms of my academic career). Concepts that I've struggled with for years are finally becoming clear. I just wanted to take a moment to express my appreciation, and let you know how impactful these videos are!

    • @statquest
      @statquest  Рік тому

      @@DrOats22 Thank you very much! :)

  • @herpsenderpsen
    @herpsenderpsen Рік тому +107

    This is such a breath of fresh air as opposed to the unecessarily difficult 'explanations' we have to work with in statistical analysis courses. Your videos are awesome.

  • @damonguzman
    @damonguzman 7 місяців тому +8

    You're videos are the single greatest resource for my education on machine learning and AI. If I lost access to your videos, I would be devastated.

    • @statquest
      @statquest  7 місяців тому

      Glad you like them!

  • @skyblue7014
    @skyblue7014 Рік тому +11

    one of the most well explained about R, thanks for sharing! no time wasted in this video!

  • @false_binary
    @false_binary Рік тому +11

    Excellent vid & totally helped me again with my regression homework! One of the toughest challenges I have is writing and speaking Regression! One of your last slides around 10:29 helped me learn how to connect a positive / negative variable relationship with R2...love you guys, seriously!

  • @vcello6450
    @vcello6450 2 роки тому +38

    Yes!! Thanks for this. You are saving grad students around the world!

    • @statquest
      @statquest  2 роки тому +5

      Happy to help!

    • @wbdill
      @wbdill 2 роки тому +8

      And former grad students who haven't touched linear regression in 25 years! :) What a great concise refresher. BAM!

  • @kevingutierrez38
    @kevingutierrez38 Рік тому +6

    This is just what I was expecting from an explanation of what R-squared is. Thank you very much for making it clear and simple

  • @Monoglossia
    @Monoglossia Рік тому +13

    It's INSANE how clear this is, thank you!

  • @mikas9098
    @mikas9098 7 місяців тому +5

    clicked for the title, stayed for the content. thanks for this

  • @shahjahanbd2000
    @shahjahanbd2000 Рік тому +3

    Your videos are the most helpful and easiest to follow!

  • @snowwolf4148
    @snowwolf4148 Рік тому +10

    Beautifully explained! Loved the “Correlations close to 0 are lame “😂

  • @Syca_Red
    @Syca_Red Рік тому +2

    When I saw "is the mean wweight the best way to predit mouse weight", I thought, "it is stupid". And then when I see the formula of R-square, I found that "I was stupid". Awesome videos and it really helps.

  • @OfisLab
    @OfisLab Рік тому +2

    All stats courses any level of education must be taught like that. Otherwise for majority of the people stats is ambiguous and difficult to understand. But feel like lecturers are saying this is time consuming, we have a lot of topics to cover and etc. Luckily we have nice UA-cam channel and online documents to supplement the courses. Thanks for the great video!

    • @statquest
      @statquest  Рік тому

      Thank you very much! I appreciate it.

  • @averysmith
    @averysmith Рік тому +3

    Josh, I'm literally teaching my students this today! Going to refer them to this video.

    • @statquest
      @statquest  Рік тому +1

      BAM! Avery, I'm glad this is helpful. This is actually the first StatQuest I ever made, back in the day. I had to re-upload it yesterday due to some oddness on behalf of UA-cam, but it's still a classic and the video that got the whole thing started.

  • @Matt-qi5ff
    @Matt-qi5ff Рік тому +2

    This is excellent. Why can't professors explain as well and clearly as you? I had a linear regression class yesterday and I had never even heard about variation before, only standard deviation. I didn't know the reason it was squared either. Thanks a lot

  • @lacrimosa2994
    @lacrimosa2994 Рік тому +3

    Thank you so much!!! You explain these concepts so easily!! Saving lives one video at a time 😁💕

  • @surinderpalsingh4258
    @surinderpalsingh4258 Рік тому +3

    people have no idea how much of a gold this video is

  • @ronram6125
    @ronram6125 8 місяців тому +3

    You keep this up and I’ll have to forward my tuition to your address.

  • @armpistolguy435
    @armpistolguy435 8 місяців тому +2

    Holy mother of god THANK YOU for this video, I was looking online at a bunch of websites (some paywalled) and none of them explained them as well as this video. Thank you for providing examples and explaining the how rather than the what.
    😁😁

    • @statquest
      @statquest  8 місяців тому +1

      Glad I could help!

  • @JC-to3lq
    @JC-to3lq Рік тому +2

    mind blown. amazingly well explained thank you!

  • @B-hooktuber
    @B-hooktuber 7 місяців тому +1

    Incredible explainations. I'm so glad I found this chanel/book!

  • @joshliao00607
    @joshliao00607 Рік тому +1

    That's so intuitive! You really save my Midterm

  • @mohamedasiqshajahan1200
    @mohamedasiqshajahan1200 9 місяців тому +6

    Excellent explanation. Consider this comment as 1million likes.❤❤

    • @statquest
      @statquest  9 місяців тому

      Thank you very much! :)

  • @pulzewidth
    @pulzewidth Рік тому +2

    Thank you UNC-Chapel Hill for saving my life on my AP Stats test. I hope my EA is accepted.

    • @statquest
      @statquest  Рік тому +1

      BAM! Congratulations and good luck!

  • @desisto007
    @desisto007 8 місяців тому +2

    Just awesome plain explanation 🎉

  • @vijaythapa9200
    @vijaythapa9200 10 місяців тому +1

    Very clearly explained. Thank you

  • @isaaccarroll2092
    @isaaccarroll2092 Рік тому +1

    StatQuest is the best thing to come out of UNC since MJ

  • @govarthenanrajadurai9817
    @govarthenanrajadurai9817 4 місяці тому +1

    @ 03:30 How did you choose which line (which angle, starting point) to fit to the data?
    Shouldn't there be a method to find a line so that the line's R squared equals plain old R's squared?

    • @statquest
      @statquest  4 місяці тому +1

      There is an analytical method, meaning an equation we can plug our data in to get a result, that will give us the line the minimizes the sum of the squared residuals. The line that minimizes the sum of the squared residuals is defined as the best fitting line. Alternatively, we can use an iterative method like Gradient Descent to find the best fitting line. For details on Gradient Descent, see: ua-cam.com/video/sDv4f4s2SB8/v-deo.html

  • @thegeek0017
    @thegeek0017 11 місяців тому +2

    This is a good video. Funny, yet informative.

    • @statquest
      @statquest  11 місяців тому

      Glad you enjoyed it!

  • @AgusBektiR
    @AgusBektiR 2 роки тому +1

    Thank for repost this precious r-squared explanation. Yesterday i cant play this modul because of payment bla bla bla bla. Super thanks !

    • @statquest
      @statquest  2 роки тому

      Sorry you had trouble and I hope it never, ever happens again. It was very, very frustrating from my end since I've tried to hard to make my videos free for the world.

  • @oleg0667
    @oleg0667 9 місяців тому +1

    Great clear explanation! Thanks!

    • @statquest
      @statquest  9 місяців тому

      Glad it was helpful!

  • @Angus-jd6ng
    @Angus-jd6ng 5 місяців тому +1

    very clear and concise

  • @itsbosco1025
    @itsbosco1025 Рік тому +1

    Very clear and helpful, thank you

  • @jamiehaskellyarn
    @jamiehaskellyarn Рік тому +1

    Thank you for this video! I have a much better understanding now

  • @sonaliverma4099
    @sonaliverma4099 Рік тому +1

    Thank you so much for explaining everything in easier way !

  • @namelessbecky
    @namelessbecky 5 місяців тому +1

    Thank you. Very useful.

    • @statquest
      @statquest  5 місяців тому

      Glad it was helpful!

  • @Ligress
    @Ligress Рік тому +2

    thank you so much, subscribing right now!

  • @louCanitz
    @louCanitz Рік тому +1

    Thank you so much and thank you UNC Chapel Hill for enabling you to make these

  • @jessamynfinneran5036
    @jessamynfinneran5036 11 місяців тому +1

    This was wonderful. Thank you so much!

    • @statquest
      @statquest  11 місяців тому

      Glad you enjoyed it!

  • @DigitalOutlawed
    @DigitalOutlawed 3 місяці тому

    Amazing Explanation.

  • @madsgamess
    @madsgamess 8 днів тому +1

    Great video. Thank you

  • @prabhu__why_not
    @prabhu__why_not 9 місяців тому +5

    Time spent sniffing a rock 🤣🤣🤣

  • @squaidinkarts
    @squaidinkarts 5 місяців тому +1

    Banger intro, man

  • @mjollnirboy
    @mjollnirboy 9 місяців тому +1

    Such a beautiful explanation. Thank You! :-)

    • @statquest
      @statquest  9 місяців тому

      You're very welcome!

  • @AdnanKhan-cx9it
    @AdnanKhan-cx9it Рік тому

    thanks for the nice explanation. I wonder what is the difference between R2 formulation the one you explained and this one --> , R2 = 1 - SSE / SST, where SSE is sum of squared errors, and SST is sum of data variance.

    • @statquest
      @statquest  Рік тому

      There is no difference. One formula can be derived directly from the other.

  • @michaelr1624
    @michaelr1624 Рік тому

    Hi, I see a lot of your Analytics videos are repeated. Are these refreshed with new info or simply repeated?
    Do I need to watch both or just the newest one?

    • @statquest
      @statquest  Рік тому

      They are the same. For some strange reason, about a year ago some of my videos got stuck behind a paywall. So I re-uploaded all of the videos behind the paywall so that they would, once again, be available to everyone for free. It now seems that whatever freak event happened back then has become undone, so now I have 2 copies of a handful of videos.

  • @princechiloane7659
    @princechiloane7659 Рік тому +1

    🤣🤣 The Intro . I'm enjoying stats thanks to you

  • @JKentJr
    @JKentJr Рік тому +1

    Starmer = Hero

  • @manyapahwa7086
    @manyapahwa7086 Рік тому +1

    just beautiful!!

  • @karlamembrila8050
    @karlamembrila8050 6 місяців тому

    Hi thanks for your videos! Any chance is there a statquest for adjusted R-squared?

    • @statquest
      @statquest  6 місяців тому +1

      I mention it in my video on linear regression: ua-cam.com/video/nk2CQITm_eo/v-deo.html

  • @mohammadrezaghiasy6618
    @mohammadrezaghiasy6618 Рік тому

    Hi Sir
    I am madly addicted to your WAY OF EXPLAINING
    I personally owe you a lot
    I love math, the way you quest it
    recently I was researching on DEA as you surely know data envelopment analysis
    I now, know what does it mean and how to calculate it. can even pyomo code it. use it blindly ...
    but
    WHAT IS THE MAIN IDEA BEHIND DEA?
    Clearly Explained...
    searched the web
    there is no remarkable article or video etc
    I was thinking if you could make such genius video

    • @statquest
      @statquest  Рік тому +2

      I'm glad you like my videos and I'll keep that topic in mind.

  • @ShivamPratap-d9z
    @ShivamPratap-d9z 10 місяців тому

    r^2 = R^2 holds only for simple linear regression as I know, please correct me if i am wrong.

    • @statquest
      @statquest  10 місяців тому +1

      Yep. That's what this video was originally intended to explain - how R^2 relates to linear regression. That's why we compare the fitted straight line to a horizontal line at the mean.

    • @ShivamPratap-d9z
      @ShivamPratap-d9z 10 місяців тому +1

      @@statquest Thanks

  • @reetapantsar
    @reetapantsar Рік тому +1

    this makes sm sense tysm

  • @time573
    @time573 Рік тому +1

    I can't believe this videos are fresh new. I'm sorry for everyone who had to give Statistics without watching these first

  • @andyn6053
    @andyn6053 4 місяці тому

    How to apply it in multivariable linear regression? Calculate R^2 for each feature vs the dependant variable? Could it then be used as a feature selection method? Is that what is called Pearson correlation?

    • @statquest
      @statquest  4 місяці тому +1

      For multivariable linear regression, are still comparing the model (the fit line) to the mean of the values on the y-axis. For more details, see: ua-cam.com/video/nk2CQITm_eo/v-deo.html

  • @artbag4502
    @artbag4502 7 місяців тому

    I have a question: in some cases I get an out of sample R squared which is negative, for example with multiple linear regression or even simple one-variable linear regression. Does that tell me the model is less capable of predicting the response compared to a simple mean? While in sample, there is there no difference between the R squared of a simple linear regression and the square of Person's correlation between two variables?

    • @statquest
      @statquest  7 місяців тому +1

      I'm not sure I understand what you mean by "out of sample" and "in sample", but if you are calculating R^2 using data the model was not originally fit to, then it is possible to get negative values.

    • @artbag4502
      @artbag4502 7 місяців тому +1

      @@statquest ah I see!
      I meant that sometimes I would fit a model on a training set, and among the metrics to evaluate its performance on a dev/test set I would use the R squared, occasionally obtaining negative values. But I see now that it's a pretty different scope compared to the one proposed in your video, since I'm not trying to measure how related two variables are, but rather trying to evaluate a model! Thank you for your reply btw!!

  • @niceyzuzu5036
    @niceyzuzu5036 Місяць тому +1

    Bring back stat quest

    • @statquest
      @statquest  Місяць тому +1

      I hope to have some new stuff out soon.

  • @nak6608
    @nak6608 Рік тому +1

    Is variance different from variation? At 2:15 we find the sum of the squared differences but we don't divide it by the number of observations - 1. Is there a reason for this?

    • @statquest
      @statquest  Рік тому +2

      In this case we don't need to divide by n-1 because the denominators will cancel out, leaving us with just the numerators. So we save our selves a step and omit it.

    • @nak6608
      @nak6608 Рік тому +1

      @@statquest Thank you! It's so obvious now that you pointed it out lol

  • @Jerry-ws3mz
    @Jerry-ws3mz Рік тому +1

    thanki you so much.

  • @lukhanyozimela9715
    @lukhanyozimela9715 3 місяці тому

    This variation around the mean/regression line that you speak of, is that the mean squared error?

    • @statquest
      @statquest  3 місяці тому +1

      It's related: stats.stackexchange.com/questions/140536/whats-the-difference-between-the-variance-and-the-mean-squared-error

  • @youssefhunter5225
    @youssefhunter5225 3 місяці тому +1

    you are very good

  • @lorenzoplaserrano8734
    @lorenzoplaserrano8734 2 роки тому +2

    yay more new videos ☺️

  • @semp770
    @semp770 Рік тому

    Nice video, but Is var(x) supposed to be the variation or the variance?

    • @statquest
      @statquest  Рік тому +1

      Variation and variance are often used interchangeably and, in this case, it's OK.

  • @tonycardinal413
    @tonycardinal413 Рік тому

    Thanks ! Ques: is R squared the % of y variance explained by X or explained by the model( regression equation) ?

    • @statquest
      @statquest  Рік тому

      It depends on the model. If the model only contains a single variable, X, then R-squared tells us the % of variance explained by the model, or X. Both are true. However, we can also calculate R-squared for models with many variables. For details, see: ua-cam.com/video/nk2CQITm_eo/v-deo.html and ua-cam.com/video/zITIFTsivN8/v-deo.html

  • @muhammadariffahmi9088
    @muhammadariffahmi9088 9 місяців тому +1

    thanks bro

  • @structuralcraft
    @structuralcraft Рік тому

    Sometimes a single video is better than a whole pdf

  • @shikhakansal4402
    @shikhakansal4402 Рік тому

    I love Statquest videos however, this video had me confused. I tried to study R-Squared from other sources and they told me a different formula which was,
    R squared = 1-(SSR/SST). Are there different kinds of R squared used in different situations?

    • @statquest
      @statquest  Рік тому

      It's the same formula, just written differently. However, you can do the algebra and show that they are equal to each other. See: en.wikipedia.org/wiki/Coefficient_of_determination

    • @shikhakansal4402
      @shikhakansal4402 Рік тому +1

      @@statquest Thanks. Thats helpful. I will try that.

  • @Akarshvyas911
    @Akarshvyas911 18 днів тому

    i have a doubt this R square is used to test the accuracy of our model, and it is also used to select the parameters for our model, it will be very helpful if you can come up with a video explaining how to create a full fledged model with proper steps

    • @statquest
      @statquest  17 днів тому

      See: ua-cam.com/video/u1cc1r_Y7M0/v-deo.html and ua-cam.com/video/hokALdIst8k/v-deo.html and ua-cam.com/video/Hrr2anyK_5s/v-deo.html

    • @Akarshvyas911
      @Akarshvyas911 2 дні тому +1

      @@statquest wow thanks didn't saw old videos great ❤❤❤❤

  • @Johnny2tc
    @Johnny2tc Рік тому +1

    Ty

  • @kaebee2003
    @kaebee2003 9 місяців тому

    If I only know the angle between the two lines, Will I be able to find the R2 value? (Like Tan theta?)

  • @krish4659
    @krish4659 6 місяців тому

    10:00 explains 25% of original varaition means , 25% less variation compared to that of mean line. right?

    • @krish4659
      @krish4659 6 місяців тому

      coeffficient of correlation is square root of coefficient of determination ? 🙂

    • @statquest
      @statquest  6 місяців тому

      Yep, 25% less variation around the regression line than around the mean.

  • @livrepensador
    @livrepensador Місяць тому +1

    I loved the video! I would like to give this video ten likes!

  • @dylanknight8664
    @dylanknight8664 Рік тому +1

    Stat Quest ✊

  • @bt78646
    @bt78646 5 місяців тому +1

    You are the boss

  • @arjungupta6622
    @arjungupta6622 Рік тому

    Hi Josh, can you also explain the F test?

    • @statquest
      @statquest  Рік тому

      Sure, see: ua-cam.com/video/nk2CQITm_eo/v-deo.html and ua-cam.com/video/NF5_btOaCig/v-deo.html

  • @saagerbabung5652
    @saagerbabung5652 Рік тому

    The square of correlation coefficient (i.e., predicted and true values) is equal to "R squared" only in linear regression, and not in any other regression like decision tree regressor, support vector regressor, THIS is not mentioned in the video?

    • @statquest
      @statquest  Рік тому

      That is correct. When I made this video, way back in early 2015, I only had linear regression in mind.

  • @karimmohanad2k01
    @karimmohanad2k01 4 місяці тому +1

    not all heroes wear capes

  • @darkerufo
    @darkerufo 3 місяці тому

    I'm repeating my question from the original video here:
    4:21 I do not understand how this - var(blue line) - is calculated manually.
    Thank you.

    • @statquest
      @statquest  3 місяці тому +1

      You may actually want to watch the whole linear regression playlist: ua-cam.com/play/PLblh5JKOoLUIzaEkCLIUxQFjPIlapw8nU.html

    • @darkerufo
      @darkerufo 3 місяці тому +1

      @@statquest You replied so quickly. I will look at this, thank you!

  • @ArnieStein
    @ArnieStein 2 роки тому +1

    Awesome!!!

  • @vivaines
    @vivaines 2 роки тому

    How did he get the var(mean) of 32 and the var(line) 32? are they just points?

    • @jeffwang1442
      @jeffwang1442 2 роки тому +1

      Var(mean) and var(line) are numbers that are calculated by the sum of squares residuals. For example, for the var(mean), what you do is you find the difference between the mean and every point, square those, and then sune them up. In the video, this comes out to 32. Similarly, for the var(line) you find the difference between the points and the line, squaring, and summing

    • @statquest
      @statquest  2 роки тому

      You can also see: ua-cam.com/video/SzZ6GpcfoQY/v-deo.html

  • @LegoMacman
    @LegoMacman 8 місяців тому +1

    DOUBLE BAM!!!

  • @TheEternalDao
    @TheEternalDao Рік тому

    Can you make a video explaining ETA squared?

  • @MirGlobalAcademy
    @MirGlobalAcademy 2 роки тому +2

    Nice

  • @satya7171
    @satya7171 11 місяців тому

    Please explain adjusted r square also

    • @statquest
      @statquest  11 місяців тому

      I describe adjusted R-squared in my video on linear regression, here: ua-cam.com/video/nk2CQITm_eo/v-deo.html

  • @computerconcepts3352
    @computerconcepts3352 2 роки тому +1

    Noice 👍 Doice 👍 Ice 👍, ....wait, is this a re-upload?

    • @statquest
      @statquest  2 роки тому +3

      Yes. Without telling me, UA-cam put the original behind a paywall, so I re-uploaded it so it would still be free.

    • @computerconcepts3352
      @computerconcepts3352 2 роки тому

      @@statquest oofty doof oof oof, Noice 👍 Thanks 👍

  • @bashiransari6258
    @bashiransari6258 Рік тому +1

    Cool !!

  • @user-cx5wq9rn6e
    @user-cx5wq9rn6e Рік тому

    mate can u update the resolution please.

    • @statquest
      @statquest  Рік тому

      Unfortunately updating old videos is a lot harder than you would expect. :(

  • @ShailendraSingh-ex6yj
    @ShailendraSingh-ex6yj Рік тому

    Why is 4 months ago potato quality? Thank you so much for this.

    • @statquest
      @statquest  Рік тому

      What time point in the video, minutes and seconds, are you asking about?

    • @ShailendraSingh-ex6yj
      @ShailendraSingh-ex6yj Рік тому +1

      @@statquest apologies, it was my attempt at humour. I'm sure it's part of your earlier series that you've re-uploaded recently. The video is fantastic in content.

  • @namelessbecky
    @namelessbecky 5 місяців тому

    why does this video only have the resolution of 360p?

    • @statquest
      @statquest  5 місяців тому

      It's super old, but people still watch it a lot.

  • @rubenestebangarciagomez7040
    @rubenestebangarciagomez7040 2 роки тому

    is this a repost Josh?

    • @statquest
      @statquest  2 роки тому +4

      Yes. Something weird happened to the original and now it is behind a paywall. I contacted UA-cam and they said there was nothing I could do about it, so I had to re-upload. Sorry for the trouble.

    • @rubenestebangarciagomez7040
      @rubenestebangarciagomez7040 2 роки тому

      @@statquest In other thing.... what would you think of Statquest en Español! (pum!, the most spanish onomatopeia for bam!) I could help in the translation

    • @statquest
      @statquest  2 роки тому

      @@rubenestebangarciagomez7040 I think it would be great and it's a dream of mine that I want to come true. I've even been trying to learn spanish on my own (but I'm a slow learner). For StatQuest, I've been using AI to create overdubs for my new videos and I think it is OK. If it's good enough, the cool thing is that it can be used for a ton of different languages.

    • @rubenestebangarciagomez7040
      @rubenestebangarciagomez7040 2 роки тому +1

      @@statquest I'll try to contact you later. Even will try to sing and play ukulele intros...

  • @hooramirdamadi7513
    @hooramirdamadi7513 8 днів тому +1

    I don't khow how to say thank you to be enough

  • @svensalvatore8702
    @svensalvatore8702 4 місяці тому +1

    BAM!

  • @primakovch8332
    @primakovch8332 Рік тому

    This is great. Can I get a BAM!!! ??

  • @trestenpool9045
    @trestenpool9045 Рік тому

    How do I get access to wach some of the videos labeled "Pay to watch" such as ua-cam.com/video/nk2CQITm_eo/v-deo.html. Do I have to become a certain level member or just pay for the video itself?

    • @statquest
      @statquest  Рік тому +1

      I've contacted UA-cam and am trying to do everything I can to fix this problem. In the mean time, I've re-uploaded that video so that you can still watch it for free: statquest.org/video-index/ NOTE: Whenever you see a note saying you have to pay to watch a video, just scroll down to the first pinned comment and you will see a link to a free version.

  • @supahotfire8886
    @supahotfire8886 5 місяців тому +1

    So there's a 6% correlation between sniffing rocks and a mouse's weight? Lol

  • @yourfutureself4327
    @yourfutureself4327 Рік тому +1

    💚

  • @alex-st9in
    @alex-st9in Рік тому +1

    Time spent sniffing a rock 😂😂😂

  • @allenwang9660
    @allenwang9660 2 роки тому +4

    First! Bam

  • @plica06
    @plica06 Рік тому

    This is a re-upload from 8-years ago.

    • @statquest
      @statquest  Рік тому

      Yep. For some reason the original ended up behind a paywall, so I had to re-upload it.

  • @user-ff5sx6pg3d
    @user-ff5sx6pg3d 10 місяців тому +8

    I hate to be a smart ass but I think you are wrong, R^2 COULD BE NEGATIVE, a simple example is if you have a very bad regressor that way too away from all training points, then the variance could be very very large, so variance of the mean minus variance of the model could be negative, the video here is very misleading.

    • @statquest
      @statquest  10 місяців тому +5

      You are correct. However, when I made this video I was thinking of R-squared only in the context of linear regression, and in that context, R^2 can't be negative. In that context, the worst your model can do is the mean of the y-axis variable.

    • @atjjr
      @atjjr 4 місяці тому

      He might be meaning the correlation coefficient, r

    • @farshaddehqani3502
      @farshaddehqani3502 19 днів тому

      @@user-ff5sx6pg3d Slightly so but insignificant in practice. Not very misleading as you try to put it