Covariance and correlation

แชร์
ฝัง
  • เผยแพร่เมื่อ 13 ธ.ค. 2024

ความคิดเห็น • 106

  • @cgabt1109
    @cgabt1109 3 ปีที่แล้ว +32

    Good content lasts forever. This has been useful for me, old engineer dog in his mid 50's , relearning statistics. I couldn't get my head around the differences between these two measures - your video did the trick!

    • @luckyprod9013
      @luckyprod9013 2 ปีที่แล้ว +2

      Man i feel you, 45 years old here and relearning math for my trading after 20 years spent on excel in corporate finance lol

    • @jospremji
      @jospremji ปีที่แล้ว

      @@luckyprod9013 hey, im into trading as well. how are you using statistics for your trading?

  • @SpartacanUsuals
    @SpartacanUsuals  11 ปีที่แล้ว +15

    Hi, thanks for your comment. Good question. Essentially what it means is that the maximum covariance between two random variables, X and Y, is given by when the two variables are the same. In this case the sqrt(var(x).var(x))=var(x). The proof of this depends on the Cauchy-Schwarz inequality, and was a little too involved for me to post here. However, I have added it to my list of videos to do in the future. Best, Ben

    • @ARM26878
      @ARM26878 2 ปีที่แล้ว

      Hi Ben, have u gotten around to making that video? if yes could you please post the link? Thanks

  • @CodeWithZeyad
    @CodeWithZeyad 7 วันที่ผ่านมา

    the video is 11 years old and still the best resource i found to learn this topic, thank you so much!

  • @meshreporting
    @meshreporting 10 ปีที่แล้ว +69

    These videos have been nothing but helpful. Thank you so much!

    • @SpartacanUsuals
      @SpartacanUsuals  10 ปีที่แล้ว +11

      Hi, glad to hear they are useful! All the best, Ben

  • @harunsuaidi7349
    @harunsuaidi7349 4 ปีที่แล้ว +1

    Ah, so that's where it comes from. I'm an Art graduate learning Statistics for my master degree in Instructional Technology. I never quite got how one could figure out the mathematical expression of the relationship between two sets of data. Now that you explained it, it becomes much clearer. Damn, mathematicians are smart.

  • @gabrielasantana3809
    @gabrielasantana3809 3 ปีที่แล้ว

    This guy just has a video for every question, thank you

  • @talkohavy
    @talkohavy 7 ปีที่แล้ว +11

    Well done!
    I'm taking a course called Linear Regression
    and I learned a lot from your video.
    Thank you for the lesson.

  • @h-s7218
    @h-s7218 2 ปีที่แล้ว +2

    this video was just a piece of art ! thank you so much! well explained and really clear and smooth !

  • @darynaivaskevych1907
    @darynaivaskevych1907 5 ปีที่แล้ว +7

    Thank you for the brilliant explanation!
    I finally understand why these formulas are like this.

  • @batuhantekmen6607
    @batuhantekmen6607 3 ปีที่แล้ว +1

    Very intuitive and can be watched along with a formal explanation or numerical calculations! Thank you.

  • @tjfirhfjejUTH24
    @tjfirhfjejUTH24 8 ปีที่แล้ว +5

    good video very clear. if anyone is having trouble make sure you really understand joint pdfs, and expected values.

  • @owenlie
    @owenlie 3 ปีที่แล้ว

    Straight to the brain! Thank You!

  • @COSMOPOLITANWORLD
    @COSMOPOLITANWORLD 2 ปีที่แล้ว

    You made it easy to understand! Thanks a lot!!

  • @edentrainor776
    @edentrainor776 4 ปีที่แล้ว

    This is such a damn clear ad well explained explanation it hurts.

  • @antibioticsOfWorld
    @antibioticsOfWorld 3 ปีที่แล้ว

    thank you !! i am doing masters in data science and it helped me to understand the basics properly

  • @emilylawrence6051
    @emilylawrence6051 3 ปีที่แล้ว

    What kind of people disliked this video? this video is amazing! Thank you Ben!

  • @thebeautifulrainbow
    @thebeautifulrainbow หลายเดือนก่อน

    Simply, thank you.

  • @ARM26878
    @ARM26878 2 ปีที่แล้ว

    at 4:50 whats the intuition that the covariance of x,y can never exceed variance of x times variance of y" ? Thanks

    • @ARM26878
      @ARM26878 2 ปีที่แล้ว

      probably you meant - the covariance of x,y can never exceed std dev of x times std dev of y" ? I'm still not sure about its intuition.

  • @nackyding
    @nackyding 3 ปีที่แล้ว

    Thank you for the concise definition.

  • @Jdonovanford
    @Jdonovanford 7 ปีที่แล้ว

    I've read that the formula for betas is beta=cov(x,y)/var(x). However, the formula given in many places for betas does not divide by n (or n-2): beta=sum[(x-x_m)*(y-ym)]/sum(x-x_m)^2. IN this formula, neither the numerator or denominator are divided by N or n-1… to be called covariance and variance.

  • @shashikalaraju5769
    @shashikalaraju5769 4 ปีที่แล้ว

    Perfect. You are amazing teacher. You inspire me. Thank you

  • @july-9319
    @july-9319 4 ปีที่แล้ว

    thank you for the intuition, ben!

  • @kunstkt
    @kunstkt 11 ปีที่แล้ว +2

    Towards the end you say that var(x)*var(y) is "the greatest possible way in which x and y can covary". What does that mean?

    • @diodin8587
      @diodin8587 4 ปีที่แล้ว

      +1

    • @kunstkt
      @kunstkt 4 ปีที่แล้ว +1

      @@diodin8587 corr=cov/sd(x)*sd(y). The strongest possible correlations are 1 and -1, and they correspond to covariances of sd(x)*sd(y) and -sd(x)*sd(y). He must have meant the square root of var(x)*var(y).

  • @myvoice8167
    @myvoice8167 8 ปีที่แล้ว

    Hello Sir,You are such a good instructor.Great job!!!!!! May God Bless you and your loved ones..

  • @tymothylim6550
    @tymothylim6550 3 ปีที่แล้ว

    Thank you very much for this video, Ben. It really helped me understand the intuition behind the formulae, as well as the relation between Cov and Corr! The visuals helped a lot with explaining, too!

  • @kejeros
    @kejeros 9 ปีที่แล้ว +6

    Thank you so much. I am actually getting excited for this final now. haha!

  • @kamalgurnani924
    @kamalgurnani924 6 ปีที่แล้ว +1

    Thanks a lot for explaining the idea behind that intuition!!!

  • @SachinModi9
    @SachinModi9 2 ปีที่แล้ว

    Ben Ji, Awesome video..

  • @moliv8927
    @moliv8927 ปีที่แล้ว

    Good video, explained well and on point

  • @Kike_Reloaded
    @Kike_Reloaded 3 ปีที่แล้ว

    Great explanation, thanks for sharing!

  • @isabelchen3302
    @isabelchen3302 ปีที่แล้ว

    This is wonderful, thank you!

  • @alextessier5727
    @alextessier5727 9 ปีที่แล้ว

    So helpful to finally understand the difference and the why's! Thank you!

  • @nicholaschen5821
    @nicholaschen5821 8 ปีที่แล้ว +2

    well, u said when P=1, it means X and Y are perfect positively related. Is that mean the gradian of the line is one or this just mean the points are in the same line and no matter the degree between the line and X-axis?

    • @SpartacanUsuals
      @SpartacanUsuals  8 ปีที่แล้ว

      +Nicholas Chen Thanks for your comment - good question. If two variables are perfectly correlated then it means we can draw a perfectly straight line through samples from both variables. It doesn't require however, that the relationship is 1:1 between them. Essentially perfect correlation just means that we if we had one variable we could perfectly (ie with no error) predict the other variable. Does that make sense? Best, Ben

    • @nicholaschen5821
      @nicholaschen5821 8 ปีที่แล้ว

      Thank you, that is a very helpful answer!!!

  • @nickpenacl_
    @nickpenacl_ 8 ปีที่แล้ว

    question not related with topic ... which instrument (system) did you use for write in the board, will appreciate your explain

  • @Stirner219
    @Stirner219 7 ปีที่แล้ว

    It's really nice that you also explain the underlying logic of cov and cor. B/C doing without understanding is not much worth. Thanx :)

  • @Itsjustme.katieg
    @Itsjustme.katieg 6 ปีที่แล้ว +2

    This is an awesome explanation. It would be even better if there was an example to accompany it

  • @imzhaodong
    @imzhaodong 10 ปีที่แล้ว +4

    I would say these videos are just awesome. thank you so much for effort.

  • @SciFiFactory
    @SciFiFactory 4 ปีที่แล้ว

    Ah, so it is basically the normalized slope of a linear function?
    y=m*x
    with the slope [m]=[y/x]
    Then times x on both sides:
    y*x=m*x^2
    On the left side would be the covariance, if you were to substitute it with (y-mu) and (x-mu).
    And then to normalize the units on both sides they are divided by something that has the same units as y*x.
    So here we use the standard deviations sy=sqrt(var(y)) and sx=sqrt(var(x)) ....
    But I am confused why it never gets bigger than the standard deviation? I mean, aren't like 32% of the samples out side of the standard deviation?
    So that in 32% of the cases you have something like (y-mu)>=sy , or in 5% of the cases you have something like (y-mu)>=2*sy ?

  • @JackTheOrangePumpkin
    @JackTheOrangePumpkin 4 ปีที่แล้ว

    Thanks, this was really enlightening

  • @MochitoMaker
    @MochitoMaker 7 ปีที่แล้ว +1

    I don't get why in one case we have X>Mx and we get +++ and then we have the same equation with X>Mx and we get +- -
    What's the logic?
    Thanks.

    • @ugurgudelek
      @ugurgudelek 5 ปีที่แล้ว

      X and Y dont have to be perfectly correlated. So, in some X>Mx cases, Y can be smaller than its mean.

  • @기바랜드
    @기바랜드 6 ปีที่แล้ว

    Really appreciate for the perfect explanation.

  • @palashmyaccount
    @palashmyaccount 4 ปีที่แล้ว

    Great Explanation. Thank you!

  • @hondopirat2735
    @hondopirat2735 6 ปีที่แล้ว

    Super Catalin, très utile !

  • @amanuelnigatu4621
    @amanuelnigatu4621 11 หลายเดือนก่อน

    this what I want intuition tnx man

  • @najlahs7311
    @najlahs7311 3 ปีที่แล้ว

    Thaaaaaank youuuuuu. So breif and clear.

  • @horizontaalschaalbaar9470
    @horizontaalschaalbaar9470 7 ปีที่แล้ว

    Love the black background. For some unknown(?) reason, almost all programs use white backgrounds, which I hate because I don't want to be sitting in front of a big ball of light. Tip: there are great plugins to make webpages "dark".

    • @horizontaalschaalbaar9470
      @horizontaalschaalbaar9470 7 ปีที่แล้ว

      I readded this comment because it was deleted. Why??? Strange things happen here... It even had likes gd!!!

  • @Elsmeire
    @Elsmeire 9 ปีที่แล้ว

    Exam in two days, great videos

  • @husseinfarag7937
    @husseinfarag7937 4 ปีที่แล้ว

    Thanks man, this was really helpful

  • @waihinlee3899
    @waihinlee3899 5 ปีที่แล้ว

    Thank you, very clear explanation.

  • @christinating1340
    @christinating1340 8 ปีที่แล้ว

    why use covariance when correlation can tell you the direction and strengh of a relationship in a standardized/comparable form? What does covariance give us that correlation does not?

    • @DmitriNesteruk
      @DmitriNesteruk 8 ปีที่แล้ว +1

      There are plenty of places where covariance is used _in lieu_ of correlation. For example, in Modern Portfolio Theory we calculate the covariance matrix in order to be able to calculate the efficient frontier.

  • @Skandawin78
    @Skandawin78 6 ปีที่แล้ว +2

    very good explanation. thanks.
    what is colinearity?

  • @utkarsh5667
    @utkarsh5667 4 ปีที่แล้ว

    how did you prove that cov(X,Y)=0 implies there is no correlation between the random variables?

  • @saraw8951
    @saraw8951 5 ปีที่แล้ว

    Thank you so much! it's really helpful for my paper

  • @randomyoutubeaccount6906
    @randomyoutubeaccount6906 4 ปีที่แล้ว

    I needed an example. What id Mew? and the expectation, is that the mean? also do we use the total of x and y anywhere? Sorry i'm bad at math and got lost in this video at the same point every time I watched.

  • @emanuelhuber4312
    @emanuelhuber4312 5 ปีที่แล้ว

    Thank you! Awesome video

  • @sidekick3rida
    @sidekick3rida 2 ปีที่แล้ว

    What does it mean to "plot a realization?"

  • @EOCmodernRS
    @EOCmodernRS 6 ปีที่แล้ว

    I'm not looking for a formula, I'm looking for examples. I don't get the formula. In my head it says ''(E(x)-E(x))*(E(y)-E(y), which is 0. I don't get the formula....

  • @sophievanbeek7768
    @sophievanbeek7768 5 ปีที่แล้ว

    This is helping me so much, thank you!

    • @TrangPham-cy5km
      @TrangPham-cy5km 5 ปีที่แล้ว

      Sophie Van Beek i dont know how to identity the (+) or (-)of Y. Can you help me

  • @shrijithr9345
    @shrijithr9345 3 ปีที่แล้ว

    Can someone tell me or point to me someplace where it's explained "How we 'know' that the covariance of x,y can never exceed variance of x times variance of y" ?

    • @ARM26878
      @ARM26878 2 ปีที่แล้ว

      I have the exact same doubt. Did u find out the answer?

  • @aref6561
    @aref6561 8 ปีที่แล้ว

    Thank you very much. This was very helpful.

  • @Banaan1985
    @Banaan1985 8 ปีที่แล้ว

    Cheers dude. Helpful video

  • @priyankpatel4041
    @priyankpatel4041 6 ปีที่แล้ว

    can you give about jtc cross correlation detail

  • @Darius1295
    @Darius1295 6 ปีที่แล้ว

    Important to point out that Covariance and Correlation can be zero even if the two variables are dependent.

  • @Josh54152
    @Josh54152 9 ปีที่แล้ว

    This is very good, thank you for your help.

  • @jfregnard
    @jfregnard 7 ปีที่แล้ว

    Very helpful. Thanks !

  • @piersanna8866
    @piersanna8866 4 ปีที่แล้ว

    you say, if x is higher than its mean, then y tends to be also positive. But seconds later yous say if x is higher than its mean then the second parenthesis is likely to be negative. this doesn't make sense and is a contradiction.... could someone please explain????

    • @mohammadrezakhedmati7777
      @mohammadrezakhedmati7777 3 ปีที่แล้ว

      He's talking about two different scenarios. In the first one, he assumes X and Y are positively correlated ( just like the first graph he drew) and in the second one he assumes these variables are negatively correlated (second graph). That's why the sign of the second parenthesis varies. You've probably figured this out by now, but I tried to give my explanation just in case someone else has the same question. Cheers!

  • @andrescheepers3223
    @andrescheepers3223 5 ปีที่แล้ว

    really enjoys the word sort've...

  • @henriquebenassi
    @henriquebenassi 5 ปีที่แล้ว

    Excellent.

  • @trent_tsu
    @trent_tsu 3 ปีที่แล้ว

    thank u very much!

  • @arunthashapiruthviraj2783
    @arunthashapiruthviraj2783 3 ปีที่แล้ว

    Clear my doubt

  • @sanathgunawardena832
    @sanathgunawardena832 2 ปีที่แล้ว

    Nice!

  • @GK-qv3xd
    @GK-qv3xd 6 ปีที่แล้ว

    Brilliant!

  • @hugovreugdenhil
    @hugovreugdenhil 9 ปีที่แล้ว

    Thanks

  • @robertotosacanogalarza9021
    @robertotosacanogalarza9021 4 ปีที่แล้ว

    Good!

  • @GEconomaster112
    @GEconomaster112 8 หลายเดือนก่อน

    Giga chad, thanks!!

  • @khazovaru9892
    @khazovaru9892 6 ปีที่แล้ว +1

    Thank youuuuuuuuu 😘😘😘😘

  • @magnusonx1
    @magnusonx1 7 ปีที่แล้ว

    British accent....NICE ! ! ! Wishing all Yankees could have British accents

  • @pomegranate8593
    @pomegranate8593 3 ปีที่แล้ว

    cheers lad

  • @pkavenger9990
    @pkavenger9990 2 ปีที่แล้ว

    In future I think Universities will go obsolete. Any Government can pay experts to make a course and just upload it. Why burn your fuel and energy to get to a place and then spend so much energy coming back home to learn the same thing you can learn from just TH-cam.

  • @zip9267
    @zip9267 5 ปีที่แล้ว

    help

  • @joannaqian7755
    @joannaqian7755 ปีที่แล้ว

    save my life

  • @hamzatarq7000
    @hamzatarq7000 2 ปีที่แล้ว

    100%

  • @krunkerdylan6146
    @krunkerdylan6146 6 หลายเดือนก่อน

    cut out the 'sort of' 🤣such a brit!

  • @bebla8381
    @bebla8381 4 ปีที่แล้ว

    i want the fucking explanation for the formula, the intuitive reason of why it is what it is. why is that so hard to find? the ACTUAL intuitive explanation for the formula, every fucking video about covariance they show you the formula and thats it.. it makes me wonder if anyone actually understands where the formula truly comes from

  • @tastsolakis1519
    @tastsolakis1519 6 ปีที่แล้ว

    thanks for the explanation really good! Next time though please talk a little more clear!

  • @deedi9001
    @deedi9001 4 ปีที่แล้ว

    The logic is fucking confusing

  • @GuglielmoRiva97
    @GuglielmoRiva97 4 ปีที่แล้ว

    try saying "sort of" less often

  • @ilhamkseibi6157
    @ilhamkseibi6157 8 ปีที่แล้ว

    oh man, things with you sounds much more complicated, if you are trying to do something like khan academy, well you are not

  • @deepak2012able
    @deepak2012able ปีที่แล้ว

    Thankyou