The KL Divergence : Data Science Basics

  Рет қаралды 39,669

ritvikmath

ritvikmath

Күн бұрын

understanding how to measure the difference between two distributions
Proof that KL Divergence is non-negative : • Jensen's Inequality : ...
My Patreon : www.patreon.com/user?u=49277905
0:00 How to Learn Math
1:57 Motivation for P(x) / Q(x)
7:21 Motivation for Log
11:43 Motivation for Leading P(x)
15:59 Application to Data Science

Пікірлер: 221
@szymonk.7237
@szymonk.7237 Жыл бұрын
Wow... 😳 I've never seen more genius, easy and intuitive explanation of KL-div 😳👏👏👏👏👏 Big thanks good man ! ❤️
@ritvikmath
@ritvikmath Жыл бұрын
Glad you liked it!
@anilaxsus6376
@anilaxsus6376 9 ай бұрын
I agree,
@murkyPurple123
@murkyPurple123 Жыл бұрын
Your bottom-up (instead of top-down) approach that you mentioned in the beginning of the video would be really great to see for all kinds of differrent concepts!
@ritvikmath
@ritvikmath Жыл бұрын
Great idea!
@DS-vu5yo
@DS-vu5yo 9 ай бұрын
That was the best description of why we use log that I have ever seen. Good work, man.
@zafersahinoglu5913
@zafersahinoglu5913 5 ай бұрын
I am a research scientist. You provide a clear and concise treatment of KL-Divergence. The best I have seen to date. Thanks.
@AdeOlubummo
@AdeOlubummo 10 сағат бұрын
Just fantastic! Even if I forget the formula for KL divergence, I can "re-engineer" it on demand.
@varadpuntambekar8895
@varadpuntambekar8895 Ай бұрын
I don't think I'm ever going to forget this. Thanks so much.
@user-li5lh1qs6s
@user-li5lh1qs6s Жыл бұрын
I'm in the middle of a $2,500 course, BUT → KZbin → your video... 👏🏻👏🏻👏🏻👏🏻👏🏻 Thank you for starting with the "why", and appealing to my brains desire to understand, not just do.
@tanvirazhar
@tanvirazhar 10 ай бұрын
Amazing. The pace you have explained, the approach...everything is just top-notch.
@asimosman3428
@asimosman3428 10 ай бұрын
This video is absolutely mind-blowing! The way it breaks down such a complex concept into an intuitive understanding is truly remarkable. Thank you!
@JBoy340a
@JBoy340a Жыл бұрын
That was great. I have struggled to understand certain aspects of KL Divergence, and this is a great way to think about it without getting bogged down in symbology.
@ritvikmath
@ritvikmath Жыл бұрын
Glad it was helpful!
@markozege
@markozege Жыл бұрын
Thank you for this, the best explanation of KL divergence that I have seen. Love how you approach it building gradually, really inspiring for how to learn math.
@eagermage3157
@eagermage3157 11 ай бұрын
Best Math Teacher ever. So clearly explained the design and thinking process of how the algo comes out. Many video just explain the formula which confused me why we should do this way... Thank you!
@mrcaljoe1
@mrcaljoe1 Жыл бұрын
I think you're channel and teaching style is brilliant. I wish I knew about this channel when I was doing my undergrad.
@anujadassanayake6202
@anujadassanayake6202 Жыл бұрын
Great explanation, this is the first time I'm learning about KL divergence and it was very easy to grasp because of the way you taught it
@thankyouthankyou1172
@thankyouthankyou1172 6 ай бұрын
I found out this professor is very good at explaining every tough concept! respect and many appreciations!
@trungphan9137
@trungphan9137 Жыл бұрын
This is mind blowing.... I love the way you go from the problem to the solution, it's clever way to understand this KL divergence
@ritvikmath
@ritvikmath Жыл бұрын
thanks!
@tampopo_yukki
@tampopo_yukki 8 ай бұрын
I love how you approach to the KL divergence!
@julianwebb9222
@julianwebb9222 Ай бұрын
That was great! Not just dumping the formula on you but walking you through its logic with simple steps. Loved it! ❤
@marka5968
@marka5968 Жыл бұрын
Wow. This is the best explanation of KL-divergence I've ever heard. So many over-complicated stuff out there but yours is absolutely genius.
@ritvikmath
@ritvikmath Жыл бұрын
Glad it was helpful!
@andrashorvath2411
@andrashorvath2411 Жыл бұрын
Fantastically clearly explained, congrats.
@trentbolt2006
@trentbolt2006 9 ай бұрын
You've really made my day with ur explanation. Thank you so much :D
@Mars.2024
@Mars.2024 4 ай бұрын
Everytime i have a math question your hannel is my first choice! Amazing ✅ thanks a million 🎉
@tayyibulhassan6227
@tayyibulhassan6227 10 ай бұрын
One of the BEST tutorials for sure
@godlyradmehr2004
@godlyradmehr2004 Ай бұрын
The best explanation I've ever seen about KL divergence ❤
@paigecarlson1742
@paigecarlson1742 2 ай бұрын
Outstanding. Really helping me through this info retrieval course!
@somdubey5436
@somdubey5436 5 ай бұрын
superb...I believe this is the best explanation I have ever come across for K L Divergence. Thanks a tonne.
@ChocolateMilkCultLeader
@ChocolateMilkCultLeader Жыл бұрын
This is the perfect video in Math. Love it. Shared with all my readers
@shamarbauyrzhan7997
@shamarbauyrzhan7997 Жыл бұрын
Let's celebrate a new video on this amazing chanel!!! Love your work!
@ritvikmath
@ritvikmath Жыл бұрын
🎉
@winstongraves8321
@winstongraves8321 Жыл бұрын
This was awesome. Really helpful to think through it backwards and “redevelop” our own function
@midnightwanders5876
@midnightwanders5876 Жыл бұрын
Great work! I've been a fan of your ,material for some time and in this video you have truly mastered your craft.
@ritvikmath
@ritvikmath Жыл бұрын
Wow, thank you!
@danscherb4130
@danscherb4130 Жыл бұрын
Another amazing video! Please keep them coming!
@yhoang6674
@yhoang6674 11 ай бұрын
In the 'Motivation for log,' you said that taking a simple average is not the right way to go, and then you try to find a function that makes f(4) and f(1/4) have opposite signs. That means you are trying to make two very different distributions have the smallest distance possible (canceling each other out), which is contradictory to what we expected. We expected them to be large.
@joesavage9077
@joesavage9077 3 күн бұрын
Wow!!! This approach to explaining was mind "opening". I got it! Thanks so much
@Hobbies_forkids
@Hobbies_forkids Жыл бұрын
Excellent way to explain it. Makes maths sounds logical and approachable 🎉
@mehmetozkan1479
@mehmetozkan1479 7 ай бұрын
I have never seen complex math explained this good Thank you very much!
@momcilomrkaic2214
@momcilomrkaic2214 3 ай бұрын
Your videos are great just keep going, I watched you for few years already
@user-vb1no5lq1e
@user-vb1no5lq1e 4 ай бұрын
me not know some of the fundamentals after listening to your explanation made a lot of sense, and I felt I understood the concept well. I am willing to watch your videos more often.
@0hexe
@0hexe Жыл бұрын
Amazing video, love the format!
@kasyaci
@kasyaci Жыл бұрын
That was one of the best explanations I have ever heard! Great job and many thanks!
@ritvikmath
@ritvikmath Жыл бұрын
Thanks!!
@MagmaMusen
@MagmaMusen 2 күн бұрын
Thanks!
@tom199520000
@tom199520000 2 ай бұрын
wahh.. i am studying computer science master degree. Your video really helps me a lot! please keep on doing such great work for us!
@manducchuc915
@manducchuc915 8 ай бұрын
Thanks, exactly the explanation I have been looking for!
@seansullivan6986
@seansullivan6986 17 күн бұрын
Excellent intuitive explanation!
@vzinko
@vzinko Жыл бұрын
Thank you as always for sharing your brilliant teachings, Ritvik. Could you please do a video on the Gram-Schmidt process and how orthonormal basis matrices are relevant to data science?
@vorushin
@vorushin 4 ай бұрын
Thank you for the great explanation! I totally agree that math is not given from above, but invented by people. And showing how the invention can be done is the best way to teach the new concepts. Thanks a lot!
@hpp496videos
@hpp496videos Жыл бұрын
This was incredibly illustrative!
@Justin-zw1hx
@Justin-zw1hx Жыл бұрын
dude, the explanation is so good, you rock!
@ritvikmath
@ritvikmath Жыл бұрын
Glad it helped!
@brandonkim4675
@brandonkim4675 Жыл бұрын
I recently got interested in learning machine learning and stumbled upon the stable diffusion, the current state of art open source image generation ai. That's where I encountered the KL divergence. The more I try to understand it, more complicated concepts and formulas are thrown at me. I managed to find some videos that explains how to derive it, but none of them explained why the hell logarithm is present in it for gods sake! And here you are, explaining every missing details from other videos and blog posts in a way that the person who knows very little about the subject can understand in a very satisfying and easy to follow way. Hats off to you, sir. I wish every teachers are like you.
@ritvikmath
@ritvikmath Жыл бұрын
Thanks and godspeed for your journey through machine learning !
@Andy-qi5nh
@Andy-qi5nh Жыл бұрын
Amazing teaching. It helps a lot in my process of data shift covariate detection project. Thanks
@ritvikmath
@ritvikmath Жыл бұрын
Glad it was helpful!
@sandipmehta2950
@sandipmehta2950 9 ай бұрын
amazing explanation. not many can do this. well done.
@RakshithReddy5555
@RakshithReddy5555 6 ай бұрын
Blew my mind, I wanted to understand what kl divergence is to understand the recent Gen AI papers and couldn't. This video helped me a lot.
@user-co6pu8zv3v
@user-co6pu8zv3v Жыл бұрын
Thank you! This is the best explanation of KL divergence wich i've seen
@ritvikmath
@ritvikmath Жыл бұрын
Glad it was helpful!
@chenqu773
@chenqu773 Жыл бұрын
Thank you very much! Besides the "norminal" category in your example, I am wondering if this can also be used in "ordinal" category. For example, if I make a questionare from "dislike" to "like very much" and get poll from 2 groups, can I use the KL-divergence to calculate the difference between these 2 groups, and whether there is a even better way to discribe this difference, for example, group2 shows "significant" higher interest than group1 ?
@SSJVNN
@SSJVNN 6 ай бұрын
The comments didn't lie you actually explained this so well. I watched the ads all the way through btw.
@PrajwalSingh15
@PrajwalSingh15 Жыл бұрын
Thank you so much for this explanation and also got a new insight about the log :)
@ritvikmath
@ritvikmath Жыл бұрын
Happy to help!
@razgaon3680
@razgaon3680 Жыл бұрын
Best video I've seen in a while!
@ritvikmath
@ritvikmath Жыл бұрын
Thanks!
@akhileshpandey123
@akhileshpandey123 Жыл бұрын
very nice explanation. Thanks for the work.
@yb801
@yb801 Жыл бұрын
This is an amzing explanation, thanks!
@ritvikmath
@ritvikmath Жыл бұрын
Glad it was helpful!
@ringo8530
@ringo8530 9 ай бұрын
you are way more better than my school's professor. thank you
@aliksargsyan2035
@aliksargsyan2035 Жыл бұрын
Thank you. As usual, great and very intuitive explanation.
@ritvikmath
@ritvikmath Жыл бұрын
No problem !
@vaibhavnakrani2983
@vaibhavnakrani2983 5 ай бұрын
Awesome! Very intuitive
@sparkgin
@sparkgin 29 күн бұрын
That was amazing. Thank you so much!
@s.prakash7869
@s.prakash7869 Жыл бұрын
Awesome explaination. Thanks for this video
@ritvikmath
@ritvikmath Жыл бұрын
Glad it was helpful!
@keyvan4680
@keyvan4680 6 ай бұрын
thank you for the clear explanation.
@andrew-qf4xl
@andrew-qf4xl 6 ай бұрын
the thing you said in the first minute, is something ive been saying for a while now. As students we arent told what problem drove scientists or engineers into constructing new formulas or ways of thinking.
@fh3652
@fh3652 Жыл бұрын
Great stuff... Learning a way to teach maths to my kid... A constructivist method... While learning about stats... I really appreciate your work.
@ritvikmath
@ritvikmath Жыл бұрын
Glad it was helpful!
@jackritwik09
@jackritwik09 6 ай бұрын
mad respect for Ritvik from Ritwik for acing the subtle art of intuitive explanation:)) If only professors could master the same art.
@gingerderidder8665
@gingerderidder8665 2 ай бұрын
Taking the MITx Stats class, but I find that you explain the concepts so much better!
@ritvikmath
@ritvikmath 2 ай бұрын
Glad to hear!
@aisniper4095
@aisniper4095 Жыл бұрын
Amazing explanation!
@kaanefe4266
@kaanefe4266 7 ай бұрын
God level explanation thank you!!!
@barbaraalexandrova6680
@barbaraalexandrova6680 12 күн бұрын
thank you for the best expanation on this topic
@komuna5984
@komuna5984 10 ай бұрын
Thanks a lot for sharing the underlying motivation behind the K-L divergence! I really needed such deep insights! JAJAKALLAH...
@ritvikmath
@ritvikmath 10 ай бұрын
You're so welcome!
@devindoinmonkmode
@devindoinmonkmode 2 ай бұрын
Wonderful man. Thank you so much.
@s.m.tahsinzaman_2720
@s.m.tahsinzaman_2720 Жыл бұрын
Thank you SO much! God bless you Sir, keep up the great work 😊
@ritvikmath
@ritvikmath Жыл бұрын
You are very welcome
@rishi2504
@rishi2504 9 ай бұрын
You just got a subscriber. Thank You! 😊
@talsveta
@talsveta 9 ай бұрын
Great explanation
@jtkklb
@jtkklb Ай бұрын
Very good explanation
@seyyedmahdihoseini3084
@seyyedmahdihoseini3084 6 ай бұрын
very very very very well explained, Thanks
@mariusschmidt6883
@mariusschmidt6883 Жыл бұрын
Wow. Just wow! This is brilliant🤩
@ritvikmath
@ritvikmath Жыл бұрын
Thanks!
@ingenierocivilizado728
@ingenierocivilizado728 2 ай бұрын
Thank you very much for your valuable videos!!
@ritvikmath
@ritvikmath 2 ай бұрын
Glad you like them!
@afsanarabeya4417
@afsanarabeya4417 Жыл бұрын
thank you. this really helped !!
@sikalee415
@sikalee415 Жыл бұрын
You are great in explaining this! Thanks!
@ritvikmath
@ritvikmath Жыл бұрын
Glad it was helpful!
@mantische
@mantische Жыл бұрын
It was the easiest explanation I’ve ever seen.
@qiguosun129
@qiguosun129 Жыл бұрын
Thanks for the lecture, your work is always so intuitive.
@ritvikmath
@ritvikmath Жыл бұрын
You are very welcome
@abironnoy3115
@abironnoy3115 Жыл бұрын
Thank you so much for the explanation. it was really helpful👍👍
@ritvikmath
@ritvikmath Жыл бұрын
Thanks!
@yorker0507
@yorker0507 3 ай бұрын
Super clear !
@edalexander9649
@edalexander9649 5 ай бұрын
I have a question, if the log sign / ln or log2 whatever, are used to balance the same contribution from different P(X)/Q(X) ratio for random variable X across different value, i.e. X_i, why don't i just use the multiplication symbol (pie) 1/4*4 = 1? although i know that it may not be working well, like the number would be small due to X_i, but why? thanks
@DataScienceAI-rf4kx
@DataScienceAI-rf4kx 3 ай бұрын
Thank you :) for valuable content
@sunset6109
@sunset6109 10 ай бұрын
Bro is a legend
@jayalekshmi936
@jayalekshmi936 Жыл бұрын
I am a masters student in data science and machine learning and I have to tell you that this is the best explanation one can get for concepts like this...Hope you make more videos on these types in concepts.
@ritvikmath
@ritvikmath Жыл бұрын
Wow, thanks!
@chandrashekaravula1292
@chandrashekaravula1292 Жыл бұрын
Amazing explanation
@ritvikmath
@ritvikmath Жыл бұрын
Glad you liked it
@orenkoriat
@orenkoriat Жыл бұрын
great explanation!
@ritvikmath
@ritvikmath Жыл бұрын
Glad you think so!
@shadabalam2122
@shadabalam2122 2 ай бұрын
Great explanation 👏
@ritvikmath
@ritvikmath 2 ай бұрын
Glad you think so!
@TheFirebolt2010
@TheFirebolt2010 2 ай бұрын
It would be interesting to have a video on how you study to understand a topic, what resources you use and the materials you look for
@shuweiPeng-id4xv
@shuweiPeng-id4xv 3 ай бұрын
讲的真好,谢谢
@user-xz9wf8ou5s
@user-xz9wf8ou5s 10 ай бұрын
Would you please have another video about Jenson-Shannon divergence?
@anonymousiguana168
@anonymousiguana168 Жыл бұрын
You're just phenomenal
@ritvikmath
@ritvikmath Жыл бұрын
Thanks!
@RAHUDAS
@RAHUDAS Жыл бұрын
That was really awesome
@luisgoogle8098
@luisgoogle8098 Жыл бұрын
How can this guy only have 8,000 views on such a good video... Very nice way of explaining!
@ritvikmath
@ritvikmath Жыл бұрын
Wow, thank you!
@physicsfaith
@physicsfaith 10 ай бұрын
Great job
Variational Autoencoders
15:05
Arxiv Insights
Рет қаралды 476 М.
CAN YOU HELP ME? (ROAD TO 100 MLN!) #shorts
00:26
PANDA BOI
Рет қаралды 36 МЛН
Sprinting with More and More Money
00:29
MrBeast
Рет қаралды 122 МЛН
СҰЛТАН СҮЛЕЙМАНДАР | bayGUYS
24:46
bayGUYS
Рет қаралды 797 М.
Statistics - How to use Chebyshev's Theorem
6:40
MySecretMathTutor
Рет қаралды 141 М.
Entropy (for data science) Clearly Explained!!!
16:35
StatQuest with Josh Starmer
Рет қаралды 572 М.
Jensen's Inequality : Data Science Basics
18:04
ritvikmath
Рет қаралды 10 М.
A Short Introduction to Entropy, Cross-Entropy and KL-Divergence
10:41
Aurélien Géron
Рет қаралды 340 М.
The most important skill in statistics
13:35
Very Normal
Рет қаралды 289 М.
The Beta Distribution : Data Science Basics
16:23
ritvikmath
Рет қаралды 16 М.
Intuitively Understanding the KL Divergence
5:13
Adian Liusie
Рет қаралды 76 М.