Covariance, Clearly Explained!!!

Поділитися
Вставка
  • Опубліковано 17 чер 2024
  • Covariance is one of those statistical terms that you might have heard before but didn't quite understand. It sounds fancy, but it's really quite simple and it is a computational stepping stone to many other interesting concepts like correlation. This video describes covariance, what it does and doesn't do, how it's computed, and why it is more useful as a computational stepping stone rather than an end in itself.
    NOTE: This StatQuest assumes you already know about "variance". If not check out the quest: • Calculating the Mean, ...
    And if you are interested in Part 2, which explains Correlation, here's the link: • Pearson's Correlation,...
    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...
    UA-cam 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
    0:00 Awesome song and introduction
    0:24 Review of variance
    1:07 Motivation for Covariance
    5:59 Types of Covariance relationships
    7:32 How to calculate covariance
    17:00 Why covariance is hard to interpret
    20:31 Motivation for Correlation
    21:20 Summary
    Correction:
    16:45 We should be dividing by 4-1, not 5-1. Oops! :)
    #statquest #covariance

КОМЕНТАРІ • 761

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

    Correction:
    16:45 We should be dividing by 4-1, not 5-1. Oops! :)
    Support StatQuest by buying my book The StatQuest Illustrated Guide to Machine Learning or a Study Guide or Merch!!! statquest.org/statquest-store/

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

      @武逸仙 The minus one provides an unbiased estimate. For an explanation of why there is a bias, see: ua-cam.com/video/sHRBg6BhKjI/v-deo.html

    • @raj-nz4bj
      @raj-nz4bj 4 роки тому +2

      Great content for learners like us.
      Subscribed your channel.
      Even watched ads on video.

    • @ankitaace5
      @ankitaace5 4 роки тому

      Shouldn't it be 5-1?

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

      @@ankitaace5 Since n=4 (there are 4 points in the graph), we have 4-1 in the denominator.

    • @ankitaace5
      @ankitaace5 4 роки тому +1

      @@statquest Bam!! The whole video I was counting five dots , and then at 16:45 it was four dots. My bad!

  • @Sandeep-zu6we
    @Sandeep-zu6we 3 роки тому +75

    I don't know why, but I feel like there should be "Superlike" button on these types of youtube videos

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

      BAM! :)

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

      Thanks Sandeep, the UA-cam gods listened to you and now there is a super thanks button 😉

  • @thej1091
    @thej1091 3 роки тому +51

    Thank you for repeating in the same video. It's so underrated.

  • @kirstitties
    @kirstitties 4 роки тому +166

    This is great. I failed year 10 and year 11 maths. As soon as you started talking about genes, my brain did that zoning out thing (monkey cymbals) but then you said "and if that's not your thing.... APPLES" ... I was like OK, I'm back, I'm here for it.... and then the doo doo doo doo to calculate gave me a smile. Top work. Subbed.

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

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

    • @dannyisrael
      @dannyisrael 3 роки тому +10

      hahaha, same. and I'm in year 4 computer science... The apples saved me.

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

      same here, my brain brought itself to a picture of gene (like sequence of gene) and try to figure out what that axis mean to the genes. I guess it is flaw of human brain. Brain cell likes to connect itself to other cells, connecting the dots, yet such connection has never happened.
      Like this: 'statistic' cell -> 'biology' cell, error occurred, need to resolve first before continue, this cause me zoning out haha

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

      Damn..this guy us good. Too good.

  • @rahulv7700
    @rahulv7700 3 місяці тому +5

    Bam! The clarity of concepts, simple yet effective graphics and your amazing voiceover just made this nasty concept so damn interesting! You got a new subscriber):

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

      Thank you very much!

  • @think2086
    @think2086 3 роки тому +28

    My cat thanks you. She learned a lot and is now doing my finances for me.

  • @moart87
    @moart87 4 роки тому +134

    The quality of the presentation keeps increasing Josh! Both from an entertainment and an educational point of view.

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

      Hooray!!!! Thank you! :)

    • @_Chafia
      @_Chafia 4 роки тому +5

      it deserves a book !

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

    Josh, I’m really glad for being able to share the same planet with guys like you. I’ve watched your SVD/PCA videos and now this has saved me hours of internet research and the headache that comes with it. This is the most lucid explanation of covariance in existence. Can’t thank you enough (not just for this video but for each and every content you delivered and will deliver) for all the effort you put down for us. You’re truly what I call a lifesaver. May God bless you! :)))

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

      Thank you very much! :)

  • @michaelblostein
    @michaelblostein 4 роки тому +24

    I watched numerous videos teaching statistics and although there are many good videos describing these subjects and showing the formulas, this is the only video series that actually shows the logic behind the formulas, and as I always tell my kids, when you understand something you don't need to remember it, and these videos finally help me really understand these terms. They are clear and presented very well. Couldn't think of a better way to reach this subject.

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

      Thank you very much! I'm really happy that you appreciate my videos. :)

  • @lugaresyplantas7819
    @lugaresyplantas7819 Рік тому +9

    It's incredible, repeat, INCREDIBLE how you manage to turn difficult things into simple, easy to understand things.
    Thank you so much josh !
    Greetings from Colombia 🐸

  • @newgnewgg5447
    @newgnewgg5447 4 роки тому +166

    You are a legend.

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

      Thank you! :)

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

      @@statquest not a legand..... you are hilarious sir,,,,,,,, no words to explain your intelligency and way of explaining

  • @SantiagoMolano04
    @SantiagoMolano04 3 місяці тому +4

    Our stats for engineerin prof really really makes us feel deserted, you have no idea how much hope finding your channel has injected into us. Bless.

  • @iandanforth
    @iandanforth 4 роки тому +6

    This is hugely useful! I very much appreciate that you don't skip steps no matter how small as part of the explanation.

  • @jasonq4816
    @jasonq4816 3 роки тому +15

    Not specifically on this video, but I hope you know your channel in general is a blessing to a lot of us out there. I took stats in undergrad and grad school and I can say with certainty you're the best stats teacher I have ever encountered. I don't use the word "enlightened" lightly but I sometimes feel that way after watching some of your videos on stats/machine learning. A lot of concepts I struggled with in undergrad/grad school and with CFA, somehow you're just able to explain them so effortlessly in a way I can understand. I really really wish you all the best with this channel!

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

      Wow! Thank you very much! :)

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

      Sir how large covariance means strong relationship. ... although covariance means differences in two data set plzzz explain this

  • @petercourt
    @petercourt 4 роки тому +5

    Fantastic video, thank you! Your videos are the best explained on youtube, I'm so appreciative that you put the effort in to make these!

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

      Thank you very much! :)

  • @vikranttyagiRN
    @vikranttyagiRN 4 роки тому +4

    Man you are phenomenal at explaining concepts in a way that's easier to understand. You are freaking awesome

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

      Thank you very much! :)

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

    Though am new to Stats and have been away from learning for 15+ yrs, you make it so easy and kind of fluidy to learn stats now! I love your videos. Thanks a ton! Please continue your videos until eternity..

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

      Thank you very much!!! I'll keep making the videos as long as I can. :)

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

    One of the best videos I've seen. Your channel helps me undestand math better than many channels that speak in my native language.

  • @caspase888
    @caspase888 4 роки тому +10

    Have always been waiting for a video from you ... thanks 👍👍👍

  • @paulqin4613
    @paulqin4613 3 роки тому +1

    The best channel I have ever found on UA-cam to get extra help in my statistics and data science study.

  • @prolixescalation1932
    @prolixescalation1932 3 роки тому +3

    Dude, you are the best. The form of the video, the explanations, the execution. The part that answered my main question was step by step calculation of an example, so thank you very much for this video - so much time saved!

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

      Thank you very much! I'm glad my video was helpful.

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

    I love your work.
    I didn´t understand covarice until i saw your explanation, I didn´t undertand it for 1 year!
    Awesome channel

  • @gurguer
    @gurguer 4 роки тому +3

    These videos in this channel are all great. They help me to clarify all basic concepts, which are very useful in the machine learning era.

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

    You are a legend. Your way of teaching is mindblowing. You make understanding concepts , a walk in the parkfield ! Thank you

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

    I thought I already knew covariance, but this video gave me new insight. StatQuest videos are very much fun. Thank you and BAM!

  • @aartijarwani
    @aartijarwani 4 роки тому +11

    I have never been so interested in Stats than I am right now, after watching this video of yours! thanks Josh:))

  • @chrisliu251
    @chrisliu251 4 роки тому +7

    Thank you for the amazing work. It's so much fun and very clear. After 7 pages of reading Covariance and Correlation, I felt confused. Your presentation makes it all clear for me! Thanks a lot !!

  • @taianeramos6594
    @taianeramos6594 4 роки тому +6

    What I like the most in this channel is the "bam" haha
    I really like that you make drawings to explain things. It is so much easier to understand this way.
    Thanks for doing all these videos. It is helping me a lot during my PhD!

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

      Thank you very much! :)

  • @tealbaron
    @tealbaron 4 роки тому +6

    Outstanding channel! Thank you very much Josh. Request for time series analysis if you have the time!

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

    I really appreciate the effort you put into making these educational videos. You're my hero!

  • @RaynerGS
    @RaynerGS 3 роки тому +4

    Incredible, how he can manage to explain so clearly, way to go!

  • @james08613
    @james08613 4 роки тому +4

    Love you man !!!
    You make statistics and machine learning algorithms very easy to understand.

  • @12tacco
    @12tacco 4 роки тому +15

    This is ridiculous, it's so easy to follow and understand! Better than watching Netflix 😅. These videos are amazing man!

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

    Had problems understanding this for a whole year, you solved all of that in 20 minutes, god bless you

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

    Brilliant channel, now every time I don't get a statistical concept seen in class I go look for the Quest!!! Actually even when I think I understand I still check the Quest :) Thank you so much for your amazing work, Josh.

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

      Wow!!! Thank you very much!!! :)

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

    It is the best video there is on Co variance. Made life absolutely easy. Thanks a lot from India🇮🇳 🥰!! DOUBLE BAMMM!

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

    I love you! Thank you for your videos, they are super clear and entertaining even though is statistics. You have just cleared a huge doubt I had. Also I guess they take a loooot of time to make, so I really appreciate it.

  • @mohamednassef8612
    @mohamednassef8612 4 роки тому +4

    Thank you Josh for this amazing work! I really enjoyed your presentations and I appreciate the hard effort made in them :)

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

    Thank you. Concepts become easy with these clear explanations.

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

    Seriously Josh, you are THE BEST !!! Thanks for such clear explanations.

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

    I want to give you a hundred likes after watching your video. It's very smooth and easy to understand. You're suitable for being called "teacher" in this world. Thanks man.

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

      I appreciate that!

  • @PattamaHannok
    @PattamaHannok 4 роки тому +5

    Bam!! I really enjoyed watching some of your videos during my free time. Thanks for sharing a nerd thing in the fun way. Thumbs up for you ;)

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

    Hello Josh! Just wanted to thank you behalf of my friend for helping her to get through an interview with your videos. SO THANK YOU!!!

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

      Hooray!!! That's great news. Thanks for letting me know. :)

  • @dr.bigfudge6497
    @dr.bigfudge6497 2 роки тому +3

    your explanation are just too good, I hope every teacher becomes like you

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

    You are great! the way you illustrate everything and the animations are awesome!

  • @user-gc5ih9fm5y
    @user-gc5ih9fm5y 9 місяців тому +1

    I kinda tried to figure out something like this when I was trying to understand covariance few weeks ago but with your visual explaination it is way easier to understand. Thank you very much for StatQuest

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

      Glad I could help!

  • @mitch6151
    @mitch6151 28 днів тому +1

    Thank you for your outstanding teaching. This teacher is a legend.

  • @supratimnayak2494
    @supratimnayak2494 4 роки тому +8

    Humor and substance together, legend!!

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

    dude i have been studying this for years
    it is the first time to really understand the covariance
    ty

  • @user-jh4lh1rc7z
    @user-jh4lh1rc7z 3 роки тому +1

    I'm not gonna lie. The best explanation I've ever heard about covariance. so much more worth than 3hours length lecture from my professor

  • @inkarhappy
    @inkarhappy 3 роки тому +1

    Hooray:) I found a super videos about the basics of statistics on UA-cam! Watching your videos like " do do do do do do" and I understood ,BAM!

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

    Amazing, this was exactly what I was looking for. An explanation for why the formula works

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

    Thank you, Josh. I am a university student who just learned covariance like never before. Thank you so much.

  • @woodypham6474
    @woodypham6474 3 роки тому +1

    Whats on earth that we have such a good stat teacher like you!!!

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

    I will be waiting for part 2 of covariance. I got a better understanding of covariance. thank you.

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

      Part 2 will come out on Monday, August 5th (just a few days from now).

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

    thank you for explaining it so well! ive been studying statistics for 4 years + now but because covariance is, as you said, hard to interpret, so I never actually had a firm grasp of what it is (even thou ive used it countless times) this is so helpful

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

    i love your videos and humor. i'm learning more here than i am in my masters.

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

    12:35 : laughed hard at this "bam".
    thanks for the content Josh! so much value on these videos!

  • @rainfeedermusic
    @rainfeedermusic 3 роки тому +4

    I tried to understand covariance and correlation from 2-3 other sources where I confronted equations and got intimidated quickly. Watching this video and next one helped me gain the confidence to understand these concepts.

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

    appreciate the effort involved in making these videos.

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

      Thank you very much! :)

  • @Mark-vr2nx
    @Mark-vr2nx 4 роки тому +5

    Thanks a lot! I now have a much clearer view of covariance even I've already learned it years ago.

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

      Awesome! I'm glad the video helped clear things up. :)

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

    This channel is awesome. I love your teaching style ❤️❤️❤️

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

      Thank you very much! :)

  • @alinelermer6664
    @alinelermer6664 3 роки тому +1

    Best Covariance and Correlation explanation ever!

  • @GauravSharma-ui4yd
    @GauravSharma-ui4yd 4 роки тому +3

    Great explanation 💯, really very interesting.
    Josh I request you when you get some time please make videos on quantum Gaussian mixture models and deep learning related models like cnn, rnn, lstm etc.

  • @tahaelmaliani917
    @tahaelmaliani917 3 роки тому +1

    Very clear and detailed explaintion of covariance. You rock man

  • @erdiozyldrm7108
    @erdiozyldrm7108 3 роки тому +1

    So precious, very understandable. Asthonishing job. Thanks a lot.

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

    Extremely entertaining and helpful. BAM!

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

      Glad it was helpful!

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

    Best channel for learning stats

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

    The best teacher ever. Thank you😊

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

      Thank you very much! :)

  • @waterbottle_9087
    @waterbottle_9087 4 роки тому +5

    BAM!
    Thanks Josh. I'm glad I found this channel.
    Are there quizzes or exercises I can do to test my knowledge on the subject matter after watching the videos?

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

      I have some quizzes on the StatQuest video index. Look for "StatTest!" statquest.org/video-index/

  • @tassoskat8623
    @tassoskat8623 3 роки тому +1

    Simply the best! You made my day a little better again 😃

  • @young1773
    @young1773 3 роки тому +1

    I feel more comfortable and clear listening to these videos than live classroom. And that makes me wonder the point of going to college while I am more efficient study alone at home.

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

      One day I hope that I can provide a full on-line course in statistics.

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

    tnx Josh.You’re great as always.

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

    Thanks for the great videos, positive correlation between watching and understanding

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

      Hooray!!! Thank you so much for supporting StatQuest!!! BAM!!! :)

  • @athomas4875
    @athomas4875 4 роки тому +1

    best explanation for covariance and correlation. Thanks so much!

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

      Hooray! Glad it was helpful!

  • @Marius-vw9hp
    @Marius-vw9hp 4 роки тому +2

    Very full description made for us that needs the whole picture to understand it. Thanks.

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

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

    • @Marius-vw9hp
      @Marius-vw9hp 4 роки тому

      @@statquest BTW, is there any logical reason for calling it CO variance? Is covariance to variance like cosine is to sine?

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

      It is called "covariance" in the way we say that two people "Co-operate". In other words, if the covariance is a large value (either positive or negative), than the two variables move together.

    • @Marius-vw9hp
      @Marius-vw9hp 4 роки тому +1

      @@statquest ok thanks :)

  • @Skallagrim1993
    @Skallagrim1993 4 роки тому +1

    Thank you very much, the video is extremely helpful

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

    Brilliant explanation. Thank you!

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

      Glad you enjoyed it!

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

    Thank you so much! You are like a gift ❤️

  • @aureal710
    @aureal710 3 роки тому +1

    Wouuw triple BAM, your explanation is very easy to consume. Great Josh!!!!

  • @AzlanShahAShafiuddin
    @AzlanShahAShafiuddin 3 роки тому +1

    You make statistics interesting to learn

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

    Amazing. thank you for such a fun and informative video

  • @user-kn9wu7ts9m
    @user-kn9wu7ts9m 3 роки тому +1

    Thanks a lot ! it give me an intuitive explanation of the covariance !

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

    great job as always; definitely getting a t-shirt!

  • @VictorCaldo
    @VictorCaldo 4 роки тому +1

    I love these videos, thank you sir!

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

    Awesome as always!

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

    possibly one of the best explanation.

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

    You are a great stat teacher on UA-cam

  • @AzureSupremuZ
    @AzureSupremuZ 4 роки тому +1

    Underrated Video. Thanks a lot.

  • @amizan23
    @amizan23 3 роки тому +1

    Your videos are way better than most of the paid courses.

  • @nicolasabino94
    @nicolasabino94 4 роки тому +1

    everything Crystal Clear! great video

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

    Thanks so much brother, this is the way everyone should learn. this dude is awesome. Thanks buddy

  • @data-science-ai
    @data-science-ai 2 роки тому +1

    Statquest is all I need

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

    Wonderful explanation and edition

  • @AnkitKumar-wq4kc
    @AnkitKumar-wq4kc 2 роки тому +1

    This is pure gold!

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

    Great explanation, thanks!!

  • @masontsai1360
    @masontsai1360 3 роки тому +1

    the best one explaining this topic!

  • @ilhambintang3425
    @ilhambintang3425 4 роки тому +1

    Amazing explanation. You save my day

  • @abhishekbhargav9080
    @abhishekbhargav9080 3 роки тому +1

    At about 8:50, i got enlightened about the formula of covariance, i will never forget it in my life now, thank you

  • @mwerensteijn
    @mwerensteijn 6 днів тому +1

    Super helpful, thank you so much!