The covariance matrix

  Рет қаралды 102,615

Serrano.Academy

Serrano.Academy

Күн бұрын

Пікірлер: 93
@hansenmarc
@hansenmarc 2 жыл бұрын
When I remember that var(x) is the same as cov(x, x), the formulas in the covariance matrix seem more consistent and make more sense to me. In other words, the whole matrix can also be defined in terms of covariances alone.
@cocoarecords
@cocoarecords 4 жыл бұрын
seriously one of the best and most intuitive channels on this subject. I can show your videos to my child and he will understand
@blesucation
@blesucation Жыл бұрын
Just want to leave a comment so that more people could learn from your amazing videos! Many thanks for the wonderful and fun creation!!!
@shivkumarpippal1765
@shivkumarpippal1765 4 жыл бұрын
at 10:56, shouldn't it be divided by 10/3 instead of 4 as we've 3 and one third data points?
@SerranoAcademy
@SerranoAcademy 4 жыл бұрын
Yikes, you’re right!!!! Thank you! I’ll add a comment
@shivkumarpippal1765
@shivkumarpippal1765 4 жыл бұрын
@@SerranoAcademy Thank you. Excellent video BTW
@atinsood
@atinsood 4 жыл бұрын
thank you for this, there were so many hidden tidbits of knowledge in this. thank you for making these and appreciate the attention in explaining small details.
@deepthik2284
@deepthik2284 Жыл бұрын
You know the way how people understand. Keep posting videos. These are much elaborated.
@moudjarikhadidja6930
@moudjarikhadidja6930 3 жыл бұрын
Great video, very intuitive Thanks a lot. At 12:25 in the variance formula, we divide by the sum of all weights and not the sum of weights squared and it is the same for the covariance, right?
@prikas4313
@prikas4313 11 ай бұрын
Extremely helpful and easy to understand as someone new to this topic. Thank you for your work and actually showing examples with numbers for how each part in the covariance matrix was calculated.
@YanivGorali
@YanivGorali 2 жыл бұрын
After watching many videos on the subject, this one finally helped me understand. Thank you
@shubhamtalks9718
@shubhamtalks9718 4 жыл бұрын
While I know covariance matrix, It is always interesting to learn concepts from your perspective.
@wsylovezx
@wsylovezx 4 жыл бұрын
Thank you for this great video. A bit inconsistency between the correction 1/3 (under ur comments) and the formula alpha^2 (at 12:24). I think the formula is correct and in the concrete example 1/3 should changed to be 1/9.
@luccaemmanuel4012
@luccaemmanuel4012 2 жыл бұрын
this video deserves more views. Incredible work, thank you.
@3f3f-y4m
@3f3f-y4m 5 ай бұрын
Hi, in 11:23, why are you not subtracting the values by mean before squaring them? the formulae you showed earlier shows subtracting by mean
@ArduinoHocam
@ArduinoHocam 2 жыл бұрын
This is a great visualization and a perspective that should everyone need to know. To see what is the magic behind the scene, visualization is best way as always...
@blakete
@blakete Жыл бұрын
Fantastic video. Made the covariance very intuitive. Thank you!
@mikhailgritskikh7074
@mikhailgritskikh7074 4 жыл бұрын
In my opinion it would be useful to see connection between the covariance matrix and matrix transformations. Could you make a video on that please?
@mikoz8669
@mikoz8669 3 жыл бұрын
At 12:30, If the weighted covariance is divided by sum of ai squares, shouldn't it be (1/3)^2+1+1+1 = 28/9? Is it a typo?
@keshavkumar7769
@keshavkumar7769 3 жыл бұрын
At 1:26 you say variance in the y direction that goes in the diagonal is it correct ?
@kho2333
@kho2333 3 жыл бұрын
Hi Luis, fantastic and clear video but quick question, at 11:01 are we sure we need to square the 1/3 weight? I don't follow the intuition of this as I'd assume having a single point weighted 1/3 would be equivalent to a situation where that point has a weight of 1 and the remaining three points have weights of 3 (said another way, imagine three of the points [(-0.4, 0.8), (1.6, 0.8), (-0.4, -1.2)] being duplicates three times and stacked upon one another). If this were the case we'd calculate the variance of 10 points of equal weights [-0.4, -0.4, -0.4, 1.6, 1.6, 1.6, -2.4, -0.4, -0.4, -0.4] with a value of 1.44 Thank you in advance for any thoughts on this question and for making such a great video! I just pre-order your upcoming ML book this morning and subscribed to your channel.
@abhisheksolanki4163
@abhisheksolanki4163 2 жыл бұрын
best explanation of covariance on youtube
@ricardoraymond9037
@ricardoraymond9037 2 жыл бұрын
This guy has a gift to make the tough look easy!
@softpeachhy8967
@softpeachhy8967 3 жыл бұрын
thanks for the explanation! I'm confused about the portion or weighted points, what does it mean when a data point has a fraction? Besides, at 8:58 isn't the covariance divided by (n-1)?
@andileaudry3332
@andileaudry3332 2 жыл бұрын
Yeah i also think variance an covariance must be summation divided by (n-1)
@nicholasteong2485
@nicholasteong2485 3 жыл бұрын
Thanks! Luis for the awesome video about covariance. I would like to ask at 10:56 , shouldn't we divide by 1+1+1+(1/3)^2? same happen to finding covariance at 11:37. we should divide by 1+1+1+(1/3)^2, shouldn't we? please correct me if i was wrong.
@anythingit2399
@anythingit2399 3 жыл бұрын
Yes, You are right. he has added a comment for 10:56 and forgot about 11:37.
@ananyakapoor6851
@ananyakapoor6851 4 жыл бұрын
All your videos are fun to watch. Please continue making such high-quality content videos...👏
@denzowillis2590
@denzowillis2590 3 жыл бұрын
Thx a lot sir. I am new in the BI Worl and have been strugle to understand those notions. Problem resolved today ! Thx a lot again.
@simonpinnock2310
@simonpinnock2310 3 жыл бұрын
Very clearly explained, well done and many thanks!
@social.distancing
@social.distancing 2 жыл бұрын
The x value of the upper-right point in 11:04 turned magically from 1.6 to 2.6 in the next slide... isn't it a typo?
@pjakobsen
@pjakobsen 4 жыл бұрын
Hi Luis, this is an excellent video, and I thank you for making it. At 3:42 you say "Why square", then your answer is so the negative numbers do not cancel out the positive numbers. By that logic, then why not use absolute values and achieve the same. Turns out that the technical explanation for using squares seems hard to come by, and is not at all obvious. Perhaps you can do some digging and do another video on this? I found the discussions at Cross Validated forum to be helpful.
@jakewu9916
@jakewu9916 4 жыл бұрын
Thank you Luis for always putting sense before the equations. May I suggest a related topic to cover: Gaussian Process? So far the only KZbin video that I found intuitive is "Vincent Warmerdam: Gaussian Progress | PyData Berlin 2019". Even after watching several times, I feel that I'm still missing something fundamental, like how the conditioning on data works, or how to predict using multivariate features. A walkthrough of a real problem solved with Gaussian Process will be really helpful!
@nettwrrk
@nettwrrk 6 ай бұрын
thanks dude, couldn't understand any explanation of all that before i found your video
@yopedroaaron
@yopedroaaron 4 жыл бұрын
¡Gracias Luis!
@play150
@play150 Жыл бұрын
Amazing video!! Never felt like I understood as well I do now - favorited
@jarojaros
@jarojaros 10 ай бұрын
Thank you very much! ❤ Easily explained and everything included! :) 🎉
@harshitkapoor2977
@harshitkapoor2977 3 жыл бұрын
Thanks a lot ! ...was stuck at a concept in a research paper..resolved many doubts
@narasimedu
@narasimedu 3 жыл бұрын
Hello sir, I don't understand why in the weighted covariance formula the weights are squared? also in the numerator.
@jonykhan4395
@jonykhan4395 9 ай бұрын
Good video! Does the highly correlated future in our dataset produces less ERROR when regresson is run? How to determine if a particular feature in our dataset should be considered or not??
@katyadimitrovapetrova9343
@katyadimitrovapetrova9343 Жыл бұрын
absolutely brilliantly explained. thank you
@ash3844
@ash3844 9 ай бұрын
Very clearly explained!! Thanks
@Oliver-cn5xx
@Oliver-cn5xx 3 жыл бұрын
If the data in the examples in the beginning weren't centered at 0, what would multiplying just the coordinates (without subtracting the mean) represent?
@NoahElRhandour
@NoahElRhandour 3 жыл бұрын
Mr Serrano have you considered opening a patreon or something like that?
@cocoarecords
@cocoarecords 3 жыл бұрын
Luis can you tell us whats your approach when learning a new thing or concept like where do you head to first? is it google, youtube , or some text books
@xiding2086
@xiding2086 3 жыл бұрын
thank you! got a new view on the variance and covariance
@faizaafri5245
@faizaafri5245 2 жыл бұрын
thanks for your explanations, it's very helpful for me!
@leandrogcosta
@leandrogcosta Жыл бұрын
Very good explanation
@tianchangli4453
@tianchangli4453 2 жыл бұрын
Shouldn't the weight in covariance calculation be 1/3 instead of (1/3)^2? Also, the coefficient shouldn't be 1/4 anymore in the weighted case
@vperez4796
@vperez4796 3 жыл бұрын
XClent. I suppose in a two dimensional space is easier to explain variance than 4 dimensions. Is the variance of every point in space, time included? What if the space is expanding anisotropically (lets say due to gravity wave), could the variance have an extra term?.
@hich4155
@hich4155 3 жыл бұрын
Thanks a lot, that's the best explanation i found, bonne continuation 👍
@hungp.t.9915
@hungp.t.9915 3 жыл бұрын
at 4:10, shouldn't it be 8/3 instead of 8/4?
@hungp.t.9915
@hungp.t.9915 3 жыл бұрын
oh wait they have different formulas for population (all) and sample (part of all)
@OGIMxGaMeR
@OGIMxGaMeR 3 жыл бұрын
Does variance x = variance y implies covariance of 0?
@JOHNSMITH-ve3rq
@JOHNSMITH-ve3rq 3 жыл бұрын
Thanks so much for doing this dude
@sourav8051
@sourav8051 4 жыл бұрын
thanks. I am viewing your unlisted video! and I got the discount for the book, reading it in my kindle before sleep is a blessing. I have a little query: 1.what is meant the by half/3-4th of a point? the size of the point is virtual, which I confused at first time. now I get it: it is a portion of the vector associated with each point. now the classic question arrrises: how many clusters? how do we know? 2. It is similar to kmeans, where we pick k-cluster centres and here pick "k" gaussian distribution. Can you please compare different clusterings in one video and what is the limitations, change, or similarity between them and how to overcome the limitations, or in what situation which method is to be used in real world data?
@SerranoAcademy
@SerranoAcademy 4 жыл бұрын
Thanks Sourav, great questions! 1. In some algorithms like Gaussian mixture models, you need only a fraction of the point there. I imagine it as, if every point weighted 1 kg, then points are allowed to weight any fraction of that weight. As for how many clusters, there are many heuristics such as the elbow method that work, you can find it here: kzbin.info/www/bejne/h4mynIOse7JphLc 2. Yes, very similar to K-means. In k-means, we only update the mean, but in GMM we update mean, variances, and covariances. Also in k-means we have hard assignments (a point can belong to only one cluster), but in GMM (kzbin.info/www/bejne/p2iUf5ywbZppgac) we have soft assignments (this is why points can be split into several clusters, which goes back to question 1). In real life both are used, but there are times, for example in sound classification (telling voice apart from music and noise, etc), that the clusters really intersect, and you need a soft clustering algorithm to do a better job. Hope that helps! Let me know if there is anything else that needs clarification. :)
@mirabaltaji2306
@mirabaltaji2306 3 жыл бұрын
This is fantastic, Thank you!!
@omar-kv9jb
@omar-kv9jb Жыл бұрын
Great ♥ but can anyone explain why we divided by (sum of a^2) instead of (sum of a)... when we calculate the variance of weighted points ?!
@VidyaBhandary
@VidyaBhandary 4 жыл бұрын
Awesome ! Thank you so much. This is a very lucid explanation.
@meiyueliu1400
@meiyueliu1400 3 жыл бұрын
Thank you for the video. I have heard of the covariance matrix from the context of processing velocity-map imaging. I am finding it a bit hard to tie the information you have shared back to this context (how does constructing a covariance matrix help construct a covariance-map images?) Wonder if anyone can help me make the connection :)
@krupalshah1487
@krupalshah1487 3 жыл бұрын
Awesome video ! Thank you for making it.
@pontosinterligados
@pontosinterligados 3 жыл бұрын
Hola Luis!! your videos are very nice to get an intuitive approach of what I am doing. I have seen your videos about Covariance and PCA few times now. Any plans for iterative closest point relating two sets of points? Muchas gracias pelo trabajo!​
@teodorbaraki5212
@teodorbaraki5212 8 ай бұрын
"we should divide by 1+1+1+1/3, which is 10/3". Is it not squared as well? 1/(10/3)^2
@willsonlaw1243
@willsonlaw1243 2 жыл бұрын
Thanks, very neat and clean
@karanshamspirzadeh2385
@karanshamspirzadeh2385 2 жыл бұрын
Thank you very much , this help me so much 👏👍
@haneulkim4902
@haneulkim4902 3 жыл бұрын
Thanks Luis! Could you explain the reason behind shifting center of mass to the origin?
@kolavithonduraski5031
@kolavithonduraski5031 4 жыл бұрын
its nice when somebody explain this, who knows what he is talking about... very nice and thank. and for all the profesors and teachers out there who cant explain this like this dude.... quit your job 😑
@Ihsan_almohsin
@Ihsan_almohsin 2 жыл бұрын
you are simply awesome
@jonasmanuel
@jonasmanuel 3 жыл бұрын
Thank you, what a good explanation
@vjseomlol546
@vjseomlol546 Жыл бұрын
Why is the denominator in the example when alpha is not 1 "4" when sigma(alpha^2) should be (0.33^2 + 1^2 + 1^2 + 1^2)
@kudvenkatarabic
@kudvenkatarabic 4 жыл бұрын
I hope if you can make new lessons about generative modeling algorithms. It promosing for many fields. I have check your GAN lesson, but looking for more from amazing teacher.
@moeinpourmand329
@moeinpourmand329 3 жыл бұрын
This video was very useful for me
@seathru1232
@seathru1232 4 жыл бұрын
Thanks for this video, it's just perfect!
@AJ-et3vf
@AJ-et3vf 3 жыл бұрын
Thank you very much for this video
@PABLO-oq1kt
@PABLO-oq1kt 3 жыл бұрын
What type of software do you use to make this animation?
@SerranoAcademy
@SerranoAcademy 3 жыл бұрын
I use Keynote for the animations and iMovie for editing
@iknowright9533
@iknowright9533 11 ай бұрын
please inform us why we make it and why we make it the way it is.
@larissacury7714
@larissacury7714 7 ай бұрын
Thank you!
@abhishekjhanji3014
@abhishekjhanji3014 11 ай бұрын
I think in the second part of the video the calculation of the var(x) var(y) covar(x,y) is not done correctly..It should not be divided by 4 instead it should be divided by summation of square of weights..
@ailanfarid7314
@ailanfarid7314 4 жыл бұрын
Pretty good Man
@masterjames4581
@masterjames4581 4 жыл бұрын
logic math is interesting when focusing on abstract viewpoints
@v3d332
@v3d332 2 жыл бұрын
Good visuals, great teaching, best quality. Thank you! Your channel and StatQuest have been a huge help through understanding all this math. In this video, an extra example with a 3x3 or 4x4 covariance matrix would have been awesome, but I understand you might not have gone into it to simplify things (since 3D/4D)
@mr.p8766
@mr.p8766 2 жыл бұрын
thank you
@willw4096
@willw4096 Жыл бұрын
6:35 9:06
@user-wr4yl7tx3w
@user-wr4yl7tx3w 2 жыл бұрын
Curious why covariance could be related to information
@shankerkc01
@shankerkc01 2 жыл бұрын
Awesome.
@jineshr262
@jineshr262 3 жыл бұрын
You are Dope man, simply awesome
@tomgt428
@tomgt428 3 жыл бұрын
so cool
@amirrezajahantab
@amirrezajahantab 6 ай бұрын
🙏🙏🙏
@manoranjansahu7161
@manoranjansahu7161 2 жыл бұрын
Background music is annoying
@oxfordsculler8013
@oxfordsculler8013 4 жыл бұрын
Too many adverts. :-(
@shahulrahman2516
@shahulrahman2516 8 ай бұрын
Thank you
Covariance, Clearly Explained!!!
22:23
StatQuest with Josh Starmer
Рет қаралды 578 М.
Gaussian Mixture Models
17:27
Serrano.Academy
Рет қаралды 75 М.
Eigenvectors and eigenvalues | Chapter 14, Essence of linear algebra
17:16
Statistics 101: The Covariance Matrix
17:32
Brandon Foltz
Рет қаралды 274 М.
15 Machine Learning Lessons I Wish I Knew Earlier
18:48
Infinite Codes
Рет қаралды 107 М.
Principal Component Analysis (PCA)
26:34
Serrano.Academy
Рет қаралды 420 М.
Covariance Clearly Explained!
7:47
Normalized Nerd
Рет қаралды 104 М.
Bayes theorem, the geometry of changing beliefs
15:11
3Blue1Brown
Рет қаралды 4,6 МЛН
The Covariance Matrix : Data Science Basics
11:00
ritvikmath
Рет қаралды 245 М.
The Key Equation Behind Probability
26:24
Artem Kirsanov
Рет қаралды 166 М.
What is COVARIANCE? What is CORRELATION? Detailed video!
21:00
zedstatistics
Рет қаралды 136 М.
The Beta distribution in 12 minutes!
13:31
Serrano.Academy
Рет қаралды 93 М.