No video

Intro to Kernel Density Estimation

  Рет қаралды 153,300

webel od

webel od

Күн бұрын

This video gives a brief, graphical introduction to kernel density estimation. Many plots are shown, all created using Python and the KDEpy library (github.com/tom.... A .pdf of the presentation may be found here: github.com/tom...
Contents
00:22 - What is kernel density estimation?
01:27 - Kernel functions
03:27 - Bandwidth
04:30 - Silverman's rule of thumb
05:19 - Improved Sheather Jones
06:10 - Weighting the data
07:30 - Bounded domains and reflections
09:18 - Kernel density estimation in higher dimensions
10:02 - The choice of norm
11:11 - Example of 2D kernel density estimation
12:36 - A fast algorithm using linear binning and convolution
15:30 - 2D linear binning
16:18 - KDEpy - software for kernel density estimation in Python
16:51 - References

Пікірлер: 130
@n.sabriozturk6520
@n.sabriozturk6520 5 жыл бұрын
Finally here I found a super video that explains briefly and clearly what Kernel Density Estimation is. Thank you so much.
@webelod4999
@webelod4999 5 жыл бұрын
Thanks man. Glad the video was of help :)
@jasonhe6947
@jasonhe6947 4 жыл бұрын
I love this tutorial, the pace, example, and visualization are just so great
@XY-yg1ci
@XY-yg1ci 3 ай бұрын
so straightforward explanation. understand kernel in the first 2 mins
@peterstanbridge3871
@peterstanbridge3871 2 жыл бұрын
Thank you so much for this presentation - first time I've been able to even begin to understand this at an overview level.
@webelod4999
@webelod4999 2 жыл бұрын
Awesome! Thanks for leaving the nice comment :)
@yunfenghu3786
@yunfenghu3786 5 жыл бұрын
Thanks Tommy for this amazing video. I am a visual person and this video gives me a clear view of how density kernel works in 1D and 2D using graphs. Your visualization for norms in higher dimension was fantastic. I will use recommend it to my students in the future!
@webelod4999
@webelod4999 5 жыл бұрын
Thanks! I appreciate it!
@matematikce9490
@matematikce9490 5 ай бұрын
Clean, on the the point, good theory/practice ratio. Very much appreciated, thanks.
@zyflying
@zyflying 2 жыл бұрын
Really great intro, briefly and straight to the point
@aaronlin8785
@aaronlin8785 2 жыл бұрын
Amazing video Tommy. I couldn't understand KD in a week of Uchicago lectures and you did it in about 45 seconds.
@PianoMan333
@PianoMan333 2 жыл бұрын
Great video. I found this topic rather abstract but this makes it a lot clearer. Thank you!
@carl416
@carl416 3 жыл бұрын
Relatively clear exp, good. Visuals really make the difference.
@okokpk123123
@okokpk123123 2 жыл бұрын
Thank you for your presentation.It is really briefly and clearly.It really helps a lots.Hopes you can share more presentation!
@webelod4999
@webelod4999 Жыл бұрын
Thanks! The success (in terms of views) on this video inspires me to create more.
@ali-kadar
@ali-kadar 4 жыл бұрын
Thank you a ton for the very clear and concise explanation. I like that you go into some algorithmic details nearing the end of the video.
@ukvaishnav
@ukvaishnav 3 жыл бұрын
Thanks for making this video. Its concise and quick guide to KDEs.
@michaeljagdharry
@michaeljagdharry 4 жыл бұрын
you are amazing, that was one the clearest explanations of a nonstandard statistical concept I have ever seen
@webelod4999
@webelod4999 3 жыл бұрын
Thanks!
@luismisanmartin98
@luismisanmartin98 3 жыл бұрын
This video is absolutely precious! Thank you Tom for taking the time to create this
@webelod4999
@webelod4999 2 жыл бұрын
Glad you liked it. So happy to get positive feedback, since it took some time to create.
@timuryalta
@timuryalta 5 жыл бұрын
This deserves much more views!
@nengjingding5942
@nengjingding5942 4 жыл бұрын
Finally found a video to get a rough but clear idea what KDE is. Highly recommend!
@IroXtreme
@IroXtreme 5 ай бұрын
Great video, clear and concise - thanks!
@pcenxyz1838
@pcenxyz1838 4 жыл бұрын
Sir thanks for the explaination.Very well explained actually I came here with zero knowledge. Thanks for the explanation and I will definitely use KDEpy in my projects...thanks for saving the day
@Scoutik997
@Scoutik997 2 жыл бұрын
This is a very clear explanation of KDE, good job
@nakko3017
@nakko3017 2 жыл бұрын
Thanks for the very clear explanation. ありがとうございます
@webelod4999
@webelod4999 2 жыл бұрын
どういたしまして ! (I used Google Translate)
@ummesalmamofficial7637
@ummesalmamofficial7637 3 жыл бұрын
Thank You Sir for explaining KDE in a simple way.
@barnabyinteractive
@barnabyinteractive Жыл бұрын
super well made couldnt ask for anything better lol
@tgwashdc
@tgwashdc 3 жыл бұрын
Short, sweet and perfect!
@marcelsa5191
@marcelsa5191 2 жыл бұрын
Extremely good video! Well explained and nice graphics. Thank you and greetings from Oxford :)
@webelod4999
@webelod4999 Жыл бұрын
Many thanks!
@RajeshSharma-bd5zo
@RajeshSharma-bd5zo 3 жыл бұрын
Beautifully explained!!
@rajanalexander4949
@rajanalexander4949 2 жыл бұрын
Clear visualisations, succinct and lucid explanations -- fantastic video. Thanks!
@tymothylim6550
@tymothylim6550 3 жыл бұрын
Thank you very much for this video! It was very easy to understand (although this topic is still quite new to me). The use of graphs helps a lot with the explanations!
@ZinzinsIA
@ZinzinsIA Жыл бұрын
Very nice, even if i did not get the part about the linear binning and what it is exactly
@ZinzinsIA
@ZinzinsIA Жыл бұрын
And very nice for the library btw !
@Brumor
@Brumor 7 ай бұрын
Great video, thanks!
@aman.bansal
@aman.bansal Жыл бұрын
Thank you for making this helpful video.
@Ariel-px7hz
@Ariel-px7hz Жыл бұрын
Excellent video. Thank you!
@samuelfischer5131
@samuelfischer5131 3 жыл бұрын
This is awesome. Thank you for this overview!
@JayPatel-et4vi
@JayPatel-et4vi 5 жыл бұрын
Best video for KDE
@user-pq6ed3zs5k
@user-pq6ed3zs5k 11 ай бұрын
Great visualizations
@snehagaikwad2655
@snehagaikwad2655 5 жыл бұрын
Thank you so much for the video! It was easy to understand conceptually!
@jeffreychong3467
@jeffreychong3467 7 ай бұрын
Watched about 10 videos, only this one clicked for KDE.
@rhodesengr
@rhodesengr 9 ай бұрын
Thanks for this video. It makes the concept very clear. Other videos, not so much. I have an application where I would like to use 2D KDE on data sets that are set of point on an xy plane. My goal is to fit a 2D Gaussian to the data and then compare goodness of fit for different data sets. I believe I first need to generate a density function for the data and then fit the Gaussian to the density function. KDE looks like a good way to generate the density function. I would prefer to do this in Excel so an Excel plugin would be ideal. I am not really setup (or proficient) to do regular programming in Python, C, or whatever.
@singlebinary
@singlebinary 4 жыл бұрын
Excellent video and clear explanation. Please keep making more!
@NadavBenedek
@NadavBenedek Жыл бұрын
Great audio quality
@webelod4999
@webelod4999 8 ай бұрын
Thanks. For anyone curious, the microphone I use is Audio Technica AT2020 USB+
@stephengargan3907
@stephengargan3907 Жыл бұрын
super informative, nice job!
@webelod4999
@webelod4999 8 ай бұрын
Thank you!
@jaantollander
@jaantollander 2 жыл бұрын
Great tutorial. Thank you!
@qwqsimonade3580
@qwqsimonade3580 2 жыл бұрын
thanks for the dedicated video
@martinwutke3386
@martinwutke3386 3 жыл бұрын
Thanks for this very good explanation. Will definitely look into your library. Best Wishes
@webelod4999
@webelod4999 3 жыл бұрын
Glad it was helpful!
@alejozen3457
@alejozen3457 4 жыл бұрын
Great explanation. Thank you for the effort.
@capricacity
@capricacity 4 жыл бұрын
I wish I saw this before completing my PhD. This would have made the process "smoother" get what i mean? HAHA!!!
@zenchiassassin283
@zenchiassassin283 3 жыл бұрын
lol, congrats for your PhD too
@ebrahimfeghhi1777
@ebrahimfeghhi1777 3 жыл бұрын
Thank you, great explanations!
@lifestoriesfromearth6271
@lifestoriesfromearth6271 4 жыл бұрын
Thank You Tommy for this wonderful explanation. :-)
@delinyahkoning6882
@delinyahkoning6882 Жыл бұрын
What a nice video this is! Super clear.
@bernardoamorim9182
@bernardoamorim9182 4 жыл бұрын
amazing tutorial, thank you very much for the video and the library :)
@powerchucho007
@powerchucho007 3 жыл бұрын
Thanks a lot. Great explanation!
@svendavidsson
@svendavidsson 2 жыл бұрын
Great explanation!
@juandavidcaicedoms7686
@juandavidcaicedoms7686 5 жыл бұрын
Thnks for this video! It’s a really good explanation, super helpful!
@webelod4999
@webelod4999 5 жыл бұрын
Thanks man, I appreciate it!
@gekkejunior3262
@gekkejunior3262 2 жыл бұрын
Clear. Thank you a lot!
@himanshudalai1028
@himanshudalai1028 5 жыл бұрын
Thank you so much for the video. Loved it.
@h-hugo
@h-hugo 4 жыл бұрын
Very nice lecture!
@felipefavadelima
@felipefavadelima 3 жыл бұрын
Thanks for your video! Very well explained.
@webelod4999
@webelod4999 2 жыл бұрын
Glad it was helpful!
@chenghungchou9521
@chenghungchou9521 2 жыл бұрын
Amazing easy to understand!!!!!!!!
@pranavkumar9782
@pranavkumar9782 3 жыл бұрын
Is it possible to sample from the KDE after fitting, either in sklearn or KDEpy, apart from the usual method of going to a point x_i and sampling from N(x_i, h) if the kernel is Gaussian in the KDE ?
@webelod4999
@webelod4999 2 жыл бұрын
Not that I know of. You could use the Inversion method and the CDF of the returned PDF, but "the usual method" that you mention is equivalent to sampling from the PDF.
@khubaibraza8446
@khubaibraza8446 4 жыл бұрын
Thank you so much, Super clear explanation.
@makimakiwii
@makimakiwii 5 жыл бұрын
Very helpful. Thank you so much!
@giuliofederico7638
@giuliofederico7638 3 жыл бұрын
Perfect explanation
@laxmanbisht2638
@laxmanbisht2638 3 жыл бұрын
precisely explained
@Colegial24
@Colegial24 4 жыл бұрын
Excellent video! Extremely helpful!
@Abafoteq-Ltd
@Abafoteq-Ltd 3 жыл бұрын
Wow..... wonderful. thank you so much. this was indeed very helpful.
@webelod4999
@webelod4999 3 жыл бұрын
Glad it was helpful!
@aparnamuralidhar5413
@aparnamuralidhar5413 Жыл бұрын
Hello there. I tried using your KDE package for my work. Used FFT KDE. When i was trying to evaluate the model with some data-i got an error-'Every data point must be inside the grid" . could you elaborate on this,please?
@webelod4999
@webelod4999 Жыл бұрын
If you have a data point at 0, say, and you grid ranges from 1 to 5, then you will get this error. The data point is outside of the grid. Best to let KDEpy create the grid for you. It automatically sets up a reasonable grid.
@diwakarns1600
@diwakarns1600 4 жыл бұрын
Thank you..I did not understand what a norm is, can you explain a bit more on that? Thank you!
@webelod4999
@webelod4999 3 жыл бұрын
It's basically a measure of distance. A generalization of abs(x) in one dimension. See Wikipedia :)
@rajm3496
@rajm3496 5 жыл бұрын
genius...happy that I found this :-)
@raduiulia4034
@raduiulia4034 4 жыл бұрын
Amazing video!
@bean217
@bean217 5 ай бұрын
9:50 why is the sum only normalized by 1/(h^d) and not 1/(N * h^d) ?
@nallakrishna8796
@nallakrishna8796 Жыл бұрын
finally, i found an amazing lecture on kernel density estimation thanks a lot . but i have one query how it can be used to find the anomaly detection. sir can u please make one lecture about this topic otherwise can u please recommand me some good references for KERENEL DENSITY ESTIMATION FOR ANOMALY DETECTION
@nassehk
@nassehk 5 жыл бұрын
What a great video. Thank you.
@mahadeibnsalam6735
@mahadeibnsalam6735 4 жыл бұрын
Great content!
3 жыл бұрын
Sorry for the dumb question but why in the first formula X is subtracting Xi? What it does mean?
@webelod4999
@webelod4999 2 жыл бұрын
If I have a function f(x), then subtracting 2 will shift the function. So f(x-2) shifts the function to the right by 2. When we subtract the data point x_i, we shift the kernel function so it lies "on top" of that data point.
2 жыл бұрын
@@webelod4999 Thank you very much 🙌🙌🙌
@richardtarbell946
@richardtarbell946 3 жыл бұрын
This is king shit right here.
@abdizinab7934
@abdizinab7934 4 жыл бұрын
Thanks you some much, please Can you sent me the programs of all those representations
@michaelsongbai
@michaelsongbai 5 жыл бұрын
Nice tutorial! Thanks!
@lilaberkani4376
@lilaberkani4376 3 жыл бұрын
Thank you so much for your video, it helps me a looot
@canmetan670
@canmetan670 4 жыл бұрын
Thanks man. Great video.
@TheOfficialJeppezon
@TheOfficialJeppezon 5 жыл бұрын
Please make more videos!
@MiroLogie
@MiroLogie Ай бұрын
Thanks for the video, what you used to do the plots BTW
@webelod4999
@webelod4999 6 күн бұрын
This is a nice extension/improvement! I considered looking at moves too, but determined that (1) getting and preprocessing the data and (2) potentially optimizing over both pokemon and moves would be too much work for a weekend project. If anyone wants to take this even further, I think your ideas are good. At the end of the day the most interesting thing might be to train a reinforcement learning algorithm (like alphago / alphazero et al), but that would be a lot of work!
@teresaebernardo
@teresaebernardo 2 жыл бұрын
Does the size of the grid make a difference?
@webelod4999
@webelod4999 2 жыл бұрын
Yes. The finer the grid, the better the results. In KDEpy the default is 1024 grid points.
@zilezile4942
@zilezile4942 4 жыл бұрын
Good evening everyone, 🔵 Discover now our books and training that we have produced for you on our site. : www.amikour.wordpress.com 🔵 Click here to go directly to our books and training. : amikour.wordpress.com/nos-formations/
@realreactteseract6261
@realreactteseract6261 5 жыл бұрын
Amazing, really!!!!
@LeeLeeCode
@LeeLeeCode 5 жыл бұрын
Thank you!
@canernm
@canernm 4 жыл бұрын
Thanks for the video ! Quick question, are the kernel functions probability density functions? I know the fulfull their properties, but is that enough to make them PDFs? Thanks in advance.
@webelod4999
@webelod4999 3 жыл бұрын
They are, yes. If they fulfill the properties, they are PDFs by definition.
@shivshankarkeshari6604
@shivshankarkeshari6604 4 жыл бұрын
4.07- 4.14 how can I do similar in my py project?
@juheesingh1157
@juheesingh1157 5 жыл бұрын
Very hepful video 😊
@justforsynchtc
@justforsynchtc 3 жыл бұрын
Having to implement this and don't understand the "discrete convolution (possibly by fourier transform)". Any pointers?
@webelod4999
@webelod4999 3 жыл бұрын
Look to wikipedia for information about discrete convolution.
@zahrahsharif8431
@zahrahsharif8431 4 жыл бұрын
Hi, how would you interpret a kde if the x axis is probability and the y axis is density?
@webelod4999
@webelod4999 3 жыл бұрын
As a prior distribution in Bayesian statistics.
@dayy14
@dayy14 5 жыл бұрын
Thanks a lottttt!!!
@thomasalderson368
@thomasalderson368 4 жыл бұрын
Liked!
@cendradevayanaputra7150
@cendradevayanaputra7150 2 жыл бұрын
do you have review of Density Estimation?
@webelod4999
@webelod4999 Жыл бұрын
kdepy.readthedocs.io/en/latest/literature.html
@cendradevayanaputra7150
@cendradevayanaputra7150 Жыл бұрын
@@webelod4999 thank you
@jeanny2852
@jeanny2852 4 жыл бұрын
what is the difference between x and xi?
@webelod4999
@webelod4999 3 жыл бұрын
x is a continuous variable (the domain), while the x_i's are the observations in the sample.
@Borzacchinni
@Borzacchinni 4 жыл бұрын
Do you happen to be from Norway?
@MiroLogie
@MiroLogie Ай бұрын
What you used to plot the data ?
@webelod4999
@webelod4999 6 күн бұрын
matplotlib!
@MiroLogie
@MiroLogie 6 күн бұрын
@@webelod4999 thank you
@SLee-xj4jn
@SLee-xj4jn 5 жыл бұрын
Best
@jg9193
@jg9193 4 жыл бұрын
Wow...
@43SunSon
@43SunSon 4 жыл бұрын
pika pika
Kernel Density Estimation : Data Science Concepts
25:52
ritvikmath
Рет қаралды 18 М.
A little girl was shy at her first ballet lesson #shorts
00:35
Fabiosa Animated
Рет қаралды 20 МЛН
НРАВИТСЯ ЭТОТ ФОРМАТ??
00:37
МЯТНАЯ ФАНТА
Рет қаралды 9 МЛН
If Barbie came to life! 💝
00:37
Meow-some! Reacts
Рет қаралды 47 МЛН
The Kernel Trick - THE MATH YOU SHOULD KNOW!
7:30
CodeEmporium
Рет қаралды 171 М.
Probability is not Likelihood. Find out why!!!
5:01
StatQuest with Josh Starmer
Рет қаралды 1,1 МЛН
Does this sound illusion fool you?
24:55
Veritasium
Рет қаралды 742 М.
Can You Forge Tungsten?
16:14
Alec Steele
Рет қаралды 817 М.
The Histogram and Kernel Density Estimation
25:29
Carlos Fernandez-Granda
Рет қаралды 5 М.
Maximum Likelihood Estimation ... MADE EASY!!!
9:12
Brian Greco - Learn Statistics!
Рет қаралды 11 М.
I gave 127 interviews. Top 5 Algorithms they asked me.
8:36
Sahil & Sarra
Рет қаралды 637 М.
Stanford's FREE data science book and course are the best yet
4:52
Python Programmer
Рет қаралды 690 М.
Kernel density estimation (Excel)
13:58
NEDL
Рет қаралды 9 М.