Pearson's Correlation, Clearly Explained!!!

Поделиться
HTML-код
  • Опубликовано: 29 июн 2024
  • Correlation is one of the most basic statistical measures of how two different things might be related, which means it is very important to have a clear understanding of what it means and how it works. This StatQuest walks you through everything you need to know about Correlation. It tells you what it means, how to interpret it, and what its limitations are.
    NOTE: This StatQuest assumes you already know about "variance"... • Calculating the Mean, ...
    ...and covariance... • Covariance, Clearly Ex...
    ...and if you would like to learn more about R-squared, check out these 'Quests!
    R-squared, clearly explained: • R-squared, Clearly Exp...
    Linear Regression and R-squared: • Linear Regression, Cle...
    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...
    RUclips 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:55 Motivation for correlation
    2:32 Strong and weak relationships
    3:25 Correlation vs causation
    4:26 Correlation quantifies relationships
    6:00 Why correlation values need p-values
    9:50 Negative correlation values
    11:30 Correlation = 0, explained
    12:11 Small p-values do not imply high correlations
    13:38 How to calculate correlation
    16:32 Correlation vs R-squared
    17:31 Summary of concepts
    #statquest #correlation

Комментарии • 593

  • @statquest
    @statquest  4 года назад +95

    NOTE: Although I do not mention it by name in the video, this StatQuest covers Pearson's Correlation Coefficient. Unfortunately, this did not occur to me until after I posted the video, otherwise I would have mentioned it at least 20 times...so maybe it's better the way it turned out. ;)
    Support StatQuest by buying my book The StatQuest Illustrated Guide to Machine Learning or a Study Guide or Merch!!! statquest.org/statquest-store/

    • @sunilkumarsamji8507
      @sunilkumarsamji8507 4 года назад +2

      Hi Josh Thanks a lot for the wonderful work. it helps learners a lot. My query: At 9 : 08, it is mentioned p = 2.2 * 10 ^ -16 means low probability that a randomly selected point has similarly strong relationship. Does it mean to say that the hypothesis or prediction (line through the data points) of the trend cannot generalize with respect new data point a randomly selected data point? Is that what a low p means to say? At the same time a low p means high confidence level in the trend which means that high confidence level implies that a randomly selected that will have similarly stronger relationship? Let me please know if I am missing some point.

    • @statquest
      @statquest  4 года назад +28

      @@sunilkumarsamji8507 No. The p-value tells us that the probability that random noise could create the relationship we observed, or a stronger relationship. When you have small p-value, that means the probability that the relationship we observed is due to noise is small. This means we can have confidence that new observations will behave similarly to what we have seen before, rather than completely randomly. Does that make sense?

    • @inderjeetsinghintech
      @inderjeetsinghintech 4 года назад +1

      @@statquest yes, that is the reason we keep the threshold to only 5% or 0.05.

    • @lorisbach9905
      @lorisbach9905 3 года назад

      @@statquest Thanks for your amazing videos. I am watchng them all to try to catch up in statistics for my master degree in geology.
      In this video, I am unsure on how you calculated the p-values. Can you please explain a little ?

    • @statquest
      @statquest  3 года назад +3

      @@lorisbach9905 Unfortunately, I don't have a video that explains the p-values for Pearson's correlation coefficient in detail. However, I do have a video that explains the p-value for R-squared, which is very, very closely related (and is actually much more useful) here: ruclips.net/video/nk2CQITm_eo/видео.html

  • @bigorange6328
    @bigorange6328 4 года назад +182

    My days spent on statistics before knowing statquest were so wasted

  • @SumitOli007
    @SumitOli007 3 года назад +139

    I am crying rn, Statistics was the one thing that scared me in high school, never studied it in engineering & after watching tons of videos & losing hope. I finally found your channel.
    I am finally understanding bits and bytes of statistics & I owe everything to this beautiful pedagogy
    Infinite BAM

    • @statquest
      @statquest  3 года назад +6

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

  • @bartgacrama2295
    @bartgacrama2295 4 года назад +145

    You are a genius in pedagogy.

    • @statquest
      @statquest  4 года назад +4

      Thank you! :)

    • @anitapallenberg80
      @anitapallenberg80 4 года назад +4

      100 % agree! I love StatQuest with Josh Starmer!! ♥

    • @vikranttyagiRN
      @vikranttyagiRN 4 года назад +1

      @@anitapallenberg80 Me too. Alot

    • @Cat99
      @Cat99 3 года назад

      Simple, easy to understand.

  • @alberttamazyan
    @alberttamazyan 4 года назад +41

    I am so thankful to you!!! I tried learning statistics multiple times in my life and never succeded with any source. I discovered your stat quests about a week ago and I already feel so comfortable with many concepts in statistics! Huge thanks.

    • @statquest
      @statquest  4 года назад +1

      That's awesome! I'm glad the videos are helpful. :)

  • @bubbleworld4172
    @bubbleworld4172 4 года назад +43

    Appreciative bäm from Germany.

    • @statquest
      @statquest  4 года назад +15

      That's awesome! I'm glad Bam has an umlaut in German. ;) That makes it twice as cool. TWICE BÄM!

  • @TheCJD89
    @TheCJD89 4 года назад +11

    I just watched the Covariance and Correlation videos back to back. Very well put together and really easy to follow

  • @mathavraj9662
    @mathavraj9662 3 года назад +8

    As soon as I started the video, the differences between r-square, covariance and correlation were lingering in my mind. Glad you cleared them all!!

    • @statquest
      @statquest  3 года назад +1

      Glad it was helpful!

  • @allthingsconsdrble
    @allthingsconsdrble 5 месяцев назад +3

    Very much appreciate the crawl, walk, run approach with emphasis on conceptual understanding

  • @Alchemist10241
    @Alchemist10241 11 месяцев назад +1

    I've added this channels videos to my Anki cards and every time I review them I get even deeper insights. well done statquest

  • @arnabchanda2609
    @arnabchanda2609 4 года назад +3

    All My Life I have been looking out for you, glad that I found you... BAM!!!

  • @zumiao234
    @zumiao234 4 года назад +4

    Thank you! You actually help me to understand many basic concepts in a clear and easy-acceptable way, you are so smart and kind-hearted.

    • @statquest
      @statquest  4 года назад

      Thank you very much! :)

  • @reach2puneeths
    @reach2puneeths 4 года назад +3

    These are the best videos which explains the concept in simple way. Thanks for making these videos.
    Please upload Al and deep learning videos.

  • @BatkhuuByambajav
    @BatkhuuByambajav 2 года назад +1

    Bam Bam BAM...
    Eventually, I've fallen in love with your BAMs :)
    Addictive BAMs and gorgeously simple videos!
    Thanks a lot!

  • @user-zc5dp1yw6y
    @user-zc5dp1yw6y 11 месяцев назад +1

    Ohhh man!!! I'm instantly falling in love with this channel, definitly the best sense of humor to learn machine learning.

  • @blakebodycote1024
    @blakebodycote1024 Год назад +2

    I have yet to get into most of these concepts in my statistics major, but I am so thankful to have these bite-sized informational videos with lots of visual explanations to explain each concept so I can start practicing and studying machine learning early. Thank you so much for every single video you put out. Truly a blessing.

  • @kylebecker5083
    @kylebecker5083 3 года назад +2

    I've learned so much from this channel. Thanks, Josh.

    • @statquest
      @statquest  3 года назад +1

      Awesome, thank you!

  • @kaigordon2900
    @kaigordon2900 2 года назад +2

    Extremely helpful and clear with good examples and explanation! Wonderful, thank you!
    BAM!!!

  • @gtrstreet
    @gtrstreet 4 года назад +1

    Very well explained. I like that you give lots of examples and answer many of the possible questions in advance. Thanks a lot!

    • @statquest
      @statquest  4 года назад

      Thank you very much! :)

  • @terryliu3635
    @terryliu3635 4 года назад +2

    The best intro on correlation, thank you!

  • @2002budokan
    @2002budokan 3 года назад +1

    I find the best and non-boring stats explanations in this channel.

  • @shreyastudies4693
    @shreyastudies4693 Год назад +1

    You have a knack for teaching... this was an amazing video, thank you!!

  • @pasqualegiorio3651
    @pasqualegiorio3651 4 года назад +1

    Josh you are just a genius of Stat explanations, thank you.

    • @statquest
      @statquest  4 года назад

      Thank you very much! :)

  • @vamanieperumal5262
    @vamanieperumal5262 4 года назад +1

    I cant believe how all your videos are so perfect !

  • @Some_random_guy_16
    @Some_random_guy_16 4 года назад +2

    you are doing a great job enabling us to learn may super tough concepts relatively easy .. that too free of cost...thankss

    • @statquest
      @statquest  4 года назад +1

      Thank you very much! :)

  • @tatianajaramillo1148
    @tatianajaramillo1148 3 года назад +1

    Thank you for your time to explain and make this video!!!

    • @statquest
      @statquest  3 года назад

      Thank you very much! I really appreciate your feedback.

  • @felipebraga7753
    @felipebraga7753 2 года назад

    Cara, seu vídeo é mega claro, sem deixar de ser rigoroso! Super obrigado pelo trabalho!

  • @shubhamjain2423
    @shubhamjain2423 3 года назад +1

    Dear Josh, This video made my endless nights trying to grasp on this topic.

  • @hassanrevel
    @hassanrevel 2 года назад +1

    Josh you're super great man. I really enjoy listening you.

  • @harithagayathri7185
    @harithagayathri7185 4 года назад +1

    Josh, you explain in such a way that even layman can understand easily.
    A big shout out to all the hard work you put in for making these videos.👏👏

    • @statquest
      @statquest  4 года назад

      Thank you very much!!! :)

  • @AnayFereshetyan
    @AnayFereshetyan Год назад +1

    This was so incredibly helpful, thank you!

  • @user-jh4lh1rc7z
    @user-jh4lh1rc7z 3 года назад +2

    Bam....I started to think that statistics can be fun....Huge thanks from Korea

  • @calciumfree9626
    @calciumfree9626 4 года назад +2

    Big thanks! I couldn't get any intuition from my school lecture, and it's lucky for me to find this video a day before my exam for this!

    • @statquest
      @statquest  4 года назад +1

      Good luck on your exam! :)

  • @sherrynsherryn5071
    @sherrynsherryn5071 4 года назад +3

    Thank you from Indonesia, I love your videos!

  • @LOVEONLYLOVEable
    @LOVEONLYLOVEable 4 года назад +1

    If anyone finds a better teacher than this guy on you tube, do let me know 😎😎

  • @drditup
    @drditup 3 года назад +4

    you just explained this better than i ever heard. im a phd student (who for some reason wasn't given a decent statscourse through his master degree in robotics engineering. Needless to say, statistics are good for science)

  • @sashacollum7583
    @sashacollum7583 2 года назад +1

    Soooo thankful to have found this video. Why did it seem so hard to understand before?!

  • @vedprakash-bw2ms
    @vedprakash-bw2ms 4 года назад +25

    Stat quest is the best ..

  • @YeekyYeeky
    @YeekyYeeky 4 года назад +2

    your video makes it really easy to understand(even my english is not really strong , I can still understand almost all of them) , thank you from Thailand

    • @statquest
      @statquest  4 года назад

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

  • @sammiechung2711
    @sammiechung2711 4 года назад +1

    Thanks for your detailed and clear explanation. Saving much of my time to read books which hard to understand.

    • @statquest
      @statquest  4 года назад

      Thanks! I'm glad the video is helpful.

  • @tuankietly6076
    @tuankietly6076 4 года назад +2

    your video is so great and easy to understand!

  • @caspase888
    @caspase888 4 года назад +1

    Waiting for your videos is a cause worth waiting for 👍👍👍

  • @mostinho7
    @mostinho7 2 года назад +4

    Thanks!
    Great summary at 9:00
    Correlation strength nothing to do with slope, but with how many points the line goes through. Can have correlation of 1 with large slope or small slope as long as the points lie on a line.
    14:00 equation cov(x,y) in previous video

  • @arismenachekanian1804
    @arismenachekanian1804 6 месяцев назад +1

    Thank you for making this great video!

  • @taladiv3415
    @taladiv3415 2 года назад +1

    Guys like this help make the study world a better place!

  • @amizan23
    @amizan23 3 года назад +1

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

  • @delliscool4924
    @delliscool4924 3 месяца назад +1

    thank you , you are distinguished brilliant mind and great teacher for many

  • @wernhervonbraun4222
    @wernhervonbraun4222 2 года назад +2

    I'm very grateful to all of your videos. I want to support you but I am a student in 3rd world country. Even I get capable enough I'll surely contribute to this great project! Thank you

    • @statquest
      @statquest  2 года назад

      Thank you very much! BAM! :)

  • @PRODKAZ-fy8cx
    @PRODKAZ-fy8cx Год назад +1

    Thank you so much! This was so helpful.

  • @thesagecc
    @thesagecc 2 года назад +2

    As a graduate level I-O Psychology student.... thank you... I watched the summary first and then went back to watch the entire video

  • @draviaartistwithbat5756
    @draviaartistwithbat5756 4 года назад +11

    Thanks for the video.
    And please make next video series on hypothesis testing (z test, t test, anova, chi square)

    • @markobe08
      @markobe08 4 года назад

      That is right!!!

    • @statquest
      @statquest  4 года назад +7

      If you want to have a super deep understanding on t-tests and ANOVA, you should check out my StatQuest videos on Linear Models: ruclips.net/p/PLblh5JKOoLUIzaEkCLIUxQFjPIlapw8nU

    • @draviaartistwithbat5756
      @draviaartistwithbat5756 4 года назад

      Sure I will check it and let you know if anything else is needed. Thank you very much. You are doing great man keep up the good work.

  • @paveldvorak2014
    @paveldvorak2014 4 года назад +4

    @Josh, it is great you actually put the text on the screen, I cannot play sound but I can still follow closely what you are saying. Great videos, I hope you will later dive into more advanced topics in time series analysis (unit roots, ARIMA, GARCH, etc). Pls keep it up!

    • @statquest
      @statquest  4 года назад

      I'm glad you like my style. :)

  • @qiliu4100
    @qiliu4100 3 года назад

    I am familiar with the concepts you talk about.
    But I am a fan of your songs, so I am here to listen to the music.

  • @user-kn9wu7ts9m
    @user-kn9wu7ts9m 3 года назад +1

    It solves my confusion. Thanks a lot.

  • @TheEbbemonster
    @TheEbbemonster 4 года назад +10

    Very good - I would have liked to see a p-value calculation also :)

    • @SaintSaint
      @SaintSaint 2 года назад +1

      ruclips.net/video/vemZtEM63GY/видео.html ruclips.net/video/5Z9OIYA8He8/видео.html Both answer this.... but I agree... a quick explanation of p values would be the only extra credit that I felt was missing from this video. Much the way he did variance recap at the beginning.

  • @yulinliu850
    @yulinliu850 4 года назад +1

    Good job Josh! Thanks!

  • @mohammednadeem662
    @mohammednadeem662 3 года назад +1

    StatQeust is really amazing to learn and understand things very easy

  • @OlegGolubev_yolo
    @OlegGolubev_yolo Год назад +1

    How good you r at this. I tried really hard to understand what it this when i've been in university. but failed. Because there was no explanation why we need this. Only the words that it is "how x related to y"... I figured out what is it actually only 7 years later... Thanks a lot man

  • @santoshbala9690
    @santoshbala9690 4 года назад

    Hi Josh.. Very well explained... Thank you
    Please do a video on ACF & PACF (Auto Correlation & Partial Auto Correlation)

  • @arishali9248
    @arishali9248 4 года назад +1

    Love your videos mate

  • @amanzholdaribay9871
    @amanzholdaribay9871 4 года назад +2

    Thank you, man!

  • @joserobertopacheco298
    @joserobertopacheco298 11 месяцев назад +1

    the ultimate clearly explanation

  • @siddharthmishra8233
    @siddharthmishra8233 2 года назад +1

    always enjoys your song josh!

  • @robertdavis2855
    @robertdavis2855 4 месяца назад +1

    I didn't think that Machine Learning and humor were correlated but here we are...BAM!

  • @maheshsonawane8737
    @maheshsonawane8737 6 месяцев назад +1

    Thanks Josh!!!!!!!!!!!!!! Helps lot.

    • @statquest
      @statquest  6 месяцев назад +1

      Thank you! :)

    • @maheshsonawane8737
      @maheshsonawane8737 5 месяцев назад +1

      @@statquest I can't believe u replied. I am pursuing MS Data Science. Your work really give me better understanding. I will pay ur tuition fee when I get job. ✌🤟👆👍😎

  • @Bharathkumar-gv4ft
    @Bharathkumar-gv4ft 2 года назад +1

    p-value superbly explained!

  • @emov8326
    @emov8326 4 года назад +1

    I love your work

    • @statquest
      @statquest  4 года назад

      Thank you very much!!! :)

  • @sheldonsebastian7232
    @sheldonsebastian7232 4 года назад +1

    Amazing Video, Thanks!!!!!!!!!!!!

  • @ilhambintang3425
    @ilhambintang3425 4 года назад +1

    Best tutorial ever :)

  • @jairoalves8083
    @jairoalves8083 4 года назад +57

    how to obtain the p-value from this data?

    • @amanmanveen
      @amanmanveen 3 года назад +1

      @@minhtoto1542 Had the same question. Found this video helpful: ruclips.net/video/8Aw45HN5lnA/видео.html

    • @eugenefrancisco8279
      @eugenefrancisco8279 3 года назад

      You might be referring to a t-test for slope. You would need to calculate a sample regression line using the data and then obtain a p value by performing a test on the data with some null hypothesis.

  • @diegolazareno8020
    @diegolazareno8020 4 года назад +1

    Awesome video!

  • @botboy2134
    @botboy2134 3 года назад +1

    Wow on to the point video!!!

  • @Anteater23
    @Anteater23 2 года назад +1

    I love your videos.

  • @usama57926
    @usama57926 2 года назад +2

    amazing explanation....

  • @Roboticdock
    @Roboticdock 3 года назад +1

    Excellent!

  • @ForTheLoveOfHomes
    @ForTheLoveOfHomes 2 года назад +1

    Fun song! Thanks!

  • @marcoventura9451
    @marcoventura9451 3 года назад +1

    Great video.

  • @user-ew9qv2xn1e
    @user-ew9qv2xn1e 4 года назад +1

    NICE VIDEO AND EASILY UNDERSHANDING

  • @qinqinkong8330
    @qinqinkong8330 3 года назад +1

    Triple Bam!! Thanks for the great lecture, although I think the p-Value not only depend on the amount of data we have, but also depend on the strength of relationship. For example, given the same amount of data, the chance to generate stronger relationship from random points is smaller for higher correlation than lower correlation.

    • @statquest
      @statquest  3 года назад

      Yes, that's sometimes true, but not always (for example, if your sample size = 2), so I decided to focus on the things that are always true in my video, and that is Correlation is determined by the strength of the relationship and p-values are determined by sample size. In other words, if the sample size is too small you will never have a small p-value, and if the sample size is huge, then it doesn't matter what the correlation is, the p-value will probably be significant. For example, if we have any 2 data points, we can draw a line through them, and correlation = 1, however, the p-value = 1. In contrast, if we have enough data, it doesn't matter how close the correlation is to 0, we can still have a significant p-value.

    • @qinqinkong8330
      @qinqinkong8330 3 года назад +1

      @@statquest You reply my comments! Bam!!!!

    • @statquest
      @statquest  6 месяцев назад

      @@yangyu5525 Corrected!

  • @kudimaysey2459
    @kudimaysey2459 2 года назад +1

    Thanks statquest

  • @abhishek-shrm
    @abhishek-shrm 4 года назад +1

    Best video ever seen on correlation👍😁

    • @statquest
      @statquest  4 года назад +1

      Thank you very much! :)

    • @abhishek-shrm
      @abhishek-shrm 4 года назад +1

      @@statquest Welcome and thank you for making these videos😁

  • @niveditathatte3170
    @niveditathatte3170 4 года назад +1

    lovely explanation following you :-)

  • @difflyfe23
    @difflyfe23 4 месяца назад +1

    Awesome lecture

  • @kevinwidanagamage2104
    @kevinwidanagamage2104 7 месяцев назад

    thank you so much for this

    • @statquest
      @statquest  7 месяцев назад

      You're very welcome!

  • @robertobr234
    @robertobr234 2 года назад +1

    I really like it!

  • @1miffy1
    @1miffy1 Год назад +1

    When Phoebe decides to sing stats... xD
    Love the videos... lifesavers to sinking ships in the sea of numbers

    • @statquest
      @statquest  Год назад

      Check out: ruclips.net/video/D0efHEJsfHo/видео.html

    • @1miffy1
      @1miffy1 Год назад +1

      Omg xD best!

  • @vaibhavpandey7398
    @vaibhavpandey7398 Год назад

    Uncle josh, ur only one who answers my query of why can't squiggly line be made. Thanku

    • @statquest
      @statquest  Год назад

      It can be, but it's not as easy (however, modern neural networks can fit a squiggly line to just about anything. For details, see: ruclips.net/video/zxagGtF9MeU/видео.html ). When we use squiggly lines, we use R^2 instead of Pearson's Correlation because Pearson's correlation is explicitly defined for straight lines.

    • @vaibhavpandey7398
      @vaibhavpandey7398 Год назад

      @@statquest ok thanku.. It's entirely new for me

  • @pritikagowda5513
    @pritikagowda5513 10 месяцев назад +1

    CORRELATION ITS THE SENSATION, please make full version songs on stats haha!

  • @prateeknagaich13
    @prateeknagaich13 2 года назад +1

    Hi, great video. Can you please provide additional guidance on the following:
    a. How do you quantitatively determine the P-value for a correlation?
    b. What's the difference, both formulaically and conceptually between R2, Correlation, and Beta/coefficient in a regression?

    • @statquest
      @statquest  2 года назад

      For details on p-values and linear regression, see: ruclips.net/video/nk2CQITm_eo/видео.html

  • @persephonez7067
    @persephonez7067 4 года назад +1

    This is much better than the class in uni..

  • @jongcheulkim7284
    @jongcheulkim7284 2 года назад +1

    Thank you.

  • @aswathyskumar6622
    @aswathyskumar6622 Год назад +1

    Thankyou for that intro song though🥺♥️

  • @Clarkephix
    @Clarkephix 4 года назад +1

    First time hearing a female voice on your channel, and it's hilarious. Anyway, thanks for all of your videos, it helps me survive throughout my statistic course

  • @RagibShahariar
    @RagibShahariar 4 года назад +1

    you are the best :)

    • @statquest
      @statquest  4 года назад

      Thank you very much! :)

  • @taotaotan5671
    @taotaotan5671 4 года назад +1

    BAM.. Get addicted to your video

  • @sumitkumar-el3kc
    @sumitkumar-el3kc 3 года назад

    I love how you teach us like we're bunch of 7-8 year's old kids.

    • @statquest
      @statquest  3 года назад +1

      I just teach the way I teach myself.

  • @gdtoob
    @gdtoob 4 года назад +1

    Would you consider doing a video on the beta distribution?

  • @ifeanyichukwuadibemma9428
    @ifeanyichukwuadibemma9428 7 месяцев назад

    I understand this now! Double Bam!!!

  • @ashbk1911
    @ashbk1911 4 года назад +1

    You are the best

  • @youngmen747
    @youngmen747 Год назад +1

    Good video 👍