No video

StatQuest: K-nearest neighbors, Clearly Explained

  Рет қаралды 622,172

StatQuest with Josh Starmer

StatQuest with Josh Starmer

Күн бұрын

Пікірлер: 440
@statquest
@statquest 2 жыл бұрын
Support StatQuest by buying my book The StatQuest Illustrated Guide to Machine Learning or a Study Guide or Merch!!! statquest.org/statquest-store/
@raytang1867
@raytang1867 5 жыл бұрын
Five minutes explains better than some teachers spent one hour. :)
@statquest
@statquest 5 жыл бұрын
Thank you! :)
@free_thinker4958
@free_thinker4958 4 жыл бұрын
Better than teacher spending semester for me
@TeacherMarcus1010
@TeacherMarcus1010 3 жыл бұрын
hahahahaha
@spano1723
@spano1723 2 жыл бұрын
@@free_thinker4958 wtf really? also my teacher took 5 minutes that's why I understood nothing
@NerdByFate
@NerdByFate 2 жыл бұрын
For real, this channel is a godsend.
@alexanderpalm6407
@alexanderpalm6407 4 жыл бұрын
Whenever I search for a video tutorial, and you pop up in the search results, my heart fills with joy!!! ^^ Thank you once again!
@statquest
@statquest 4 жыл бұрын
Hooray!!!!! :)
@siddheshbalsaraf1776
@siddheshbalsaraf1776 3 жыл бұрын
same here ..not started the video yet but only 1 video on knn .....dont know if i can understand very very well like linear regression
@thinkalinkle
@thinkalinkle 5 жыл бұрын
I'm taking a machine learning course at university, and I've been blessed with having found your channel. Keep up the great content!
@statquest
@statquest 5 жыл бұрын
Hooray! I'm glad the videos are helpful. :)
@mandarkulkarni4741
@mandarkulkarni4741 4 жыл бұрын
INTRO IS LEGENDARY BRO : )
@statquest
@statquest 4 жыл бұрын
Yup, that's a good one. :)
@rahulsadanandan5076
@rahulsadanandan5076 3 жыл бұрын
Every time I see your videos I'm simply amazed how you manage to make things simple,it's like 1+1=2, respect
@statquest
@statquest 3 жыл бұрын
Thank you! :)
@spacemeter3001
@spacemeter3001 3 жыл бұрын
When a random KZbin channel explains it better than your University Professor.... Keep it up!
@statquest
@statquest 3 жыл бұрын
Wow, thanks!
@ycao6
@ycao6 5 жыл бұрын
it is good to listen to your music in your website after watching this clear-explained video. thanks a lot.
@statquest
@statquest 5 жыл бұрын
Thank you so much! :)
@laiscarraro9960
@laiscarraro9960 3 жыл бұрын
Thank you josh and the FFGDUNCCH (the friendly folks from the genetics department at the university of north carolina at chapel hill)
@statquest
@statquest 3 жыл бұрын
Triple bam! :)
@atifayaz3495
@atifayaz3495 4 жыл бұрын
When I search for something and find it on StatQuest channel. Super BAM!!
@statquest
@statquest 4 жыл бұрын
YES!
@user-pn3vw9sp5f
@user-pn3vw9sp5f 5 ай бұрын
This channel is salt of the Earth
@statquest
@statquest 5 ай бұрын
Thanks!
@ayush612
@ayush612 6 жыл бұрын
This is by far the best video on KNN algo ! Thanks Josh
@ayush612
@ayush612 6 жыл бұрын
You are doing awesome work Sir..have watched your other videos as well..very intuitive and logically explained
@qicai3682
@qicai3682 Жыл бұрын
This channel is GOD SENT. Period.
@statquest
@statquest Жыл бұрын
Thanks!
@lucarauchenberger628
@lucarauchenberger628 2 жыл бұрын
I can't believe how good you are at explaining this. wow!!!
@statquest
@statquest 2 жыл бұрын
bam!
@Guinhulol
@Guinhulol 7 ай бұрын
I am brushing up on my ML terminology and StatQuest always comes to the rescue!! BAM!
@statquest
@statquest 7 ай бұрын
bam!
@eltajbabazade1189
@eltajbabazade1189 3 жыл бұрын
Man, you are a legend, if I pass from the exam on Monday (which I am pretty hopeless), I will buy one of your shirts next month
@statquest
@statquest 3 жыл бұрын
Hooray! Good luck with your exam! :)
@eltajbabazade1189
@eltajbabazade1189 3 жыл бұрын
@@statquest Hey, I failed :D but still, I learnt a lot, thanks!
@statquest
@statquest 3 жыл бұрын
@@eltajbabazade1189 Better luck next time! :)
@MillerMoore-gq2pe
@MillerMoore-gq2pe Ай бұрын
@@eltajbabazade1189 I hope you graduated successfully 🙂.
@jovinMendes
@jovinMendes 3 жыл бұрын
Thank you so much. So useful honestly - i didnt get this from a 2 hour lecture
@statquest
@statquest 3 жыл бұрын
Glad it was helpful!
@ShafniSide
@ShafniSide Жыл бұрын
Thank you so much for saving our time sir❤ love from Srilanka 🇱🇰
@statquest
@statquest Жыл бұрын
bam!
@fafamnzm3126
@fafamnzm3126 6 жыл бұрын
Your videos are sooo great, I can't stop watching 💖💖 thank you
@statquest
@statquest 6 жыл бұрын
Hooray!!!!
@fafamnzm3126
@fafamnzm3126 6 жыл бұрын
StatQuest with Josh Starmer can you add an ICA as well?
@statquest
@statquest 6 жыл бұрын
It's on the to-do list, but it might be a while before I get to it.
@fafamnzm3126
@fafamnzm3126 6 жыл бұрын
StatQuest with Josh Starmer 😔😕 that's sad, but i look forward to it. You explain beautifully sir! 💪🏼👊🏼
@derpfaceonigiri4950
@derpfaceonigiri4950 6 жыл бұрын
Thank you! This helped me so much in understanding KNN faster :D
@statquest
@statquest 6 жыл бұрын
Hooray!!! :)
@chandananarayanan5498
@chandananarayanan5498 3 жыл бұрын
I am so glad I found this channel.
@statquest
@statquest 3 жыл бұрын
Thanks!
@user-by8sn4km5q
@user-by8sn4km5q 3 ай бұрын
WOWW! This was super helpful! Thanks Josh!
@statquest
@statquest 3 ай бұрын
Glad it was helpful!
@suparnaroy2829
@suparnaroy2829 Жыл бұрын
Hey Josh! This is just a thank you note saying if I pass the upcoming exam, then it would be all because of you! ❤
@statquest
@statquest Жыл бұрын
Good luck!!! Let me know how it goes!
@suparnaroy2829
@suparnaroy2829 Жыл бұрын
@@statquest It went well, thank you! Hopefully I get good grades. I was thinking of suggesting that it would be great if you could cover Markov Chain Monte Carlo and related topics. Thank you again! Your channel has been incredibly helpful!
@statquest
@statquest Жыл бұрын
@@suparnaroy2829 I'm glad it went well! And I'll keep those topics in mind.
@il5083
@il5083 2 жыл бұрын
Very clear, I got the idea of this concept right away. Well done, thanks!
@statquest
@statquest 2 жыл бұрын
THanks!
@stalindavid8208
@stalindavid8208 5 жыл бұрын
Thank you for your Clear explanation.
@statquest
@statquest 5 жыл бұрын
You're welcome! :)
@DRmrTG
@DRmrTG 7 ай бұрын
Where would I be without StatQuest? Luckily, I now have the statistical tool to estimate this!
@statquest
@statquest 7 ай бұрын
bam!
@arms1991
@arms1991 2 жыл бұрын
you are the master of machine learning
@statquest
@statquest 2 жыл бұрын
:)
@prekshyabasnet6854
@prekshyabasnet6854 4 жыл бұрын
Clear and concise explanation. Thank you :)
@statquest
@statquest 4 жыл бұрын
Thanks! :)
@hamedsharifian
@hamedsharifian 2 жыл бұрын
Easy to understand and straightforward. Thanks.
@statquest
@statquest 2 жыл бұрын
Thanks!
@davidk7212
@davidk7212 2 жыл бұрын
That opening banjo solo is prettt sweet.
@statquest
@statquest 2 жыл бұрын
Thanks!
@sabindawadi741
@sabindawadi741 Жыл бұрын
Simple and Clear explanation. Thank you!
@statquest
@statquest Жыл бұрын
Thanks!
@THEMATT222
@THEMATT222 2 жыл бұрын
Your videos are K-nearest perfection :)
@statquest
@statquest 2 жыл бұрын
Ha! Very funny.
@THEMATT222
@THEMATT222 2 жыл бұрын
@@statquest Noice 👍 Thanks 👍
@husamalsalek2333
@husamalsalek2333 4 жыл бұрын
one video explained better than a whole semester
@statquest
@statquest 4 жыл бұрын
Awesome! :)
@mahipkhandelwal3072
@mahipkhandelwal3072 3 жыл бұрын
Summarised in a very short video....just perfect
@statquest
@statquest 3 жыл бұрын
Thank you! :)
@SuperBlackHurricane
@SuperBlackHurricane Жыл бұрын
Another exciting episode of statquest!
@statquest
@statquest Жыл бұрын
bam! :)
@thechesslobster2768
@thechesslobster2768 3 жыл бұрын
You're a legend at explaining.
@statquest
@statquest 3 жыл бұрын
:)
@Oliver-nt8pw
@Oliver-nt8pw 5 жыл бұрын
Thank you, very clear and to the point explanation !
@NoMeVayasDePr0
@NoMeVayasDePr0 Жыл бұрын
Very well explained and loved your uke intro by the way :)
@statquest
@statquest Жыл бұрын
Thank you!
@arshadshaik822
@arshadshaik822 3 жыл бұрын
Ohhh man this so simple Thqqq for this type of explanation
@statquest
@statquest 3 жыл бұрын
Most welcome 😊
@coredump7827
@coredump7827 4 жыл бұрын
BAM!
@statquest
@statquest 4 жыл бұрын
:)
@igorristovski1309
@igorristovski1309 4 жыл бұрын
Thank you. Very good explanation in such a short time.
@statquest
@statquest 4 жыл бұрын
Thanks! :)
@VH-yg8rx
@VH-yg8rx Жыл бұрын
Dang. Simple and to the point! Thank you!
@statquest
@statquest Жыл бұрын
Thanks!
@pablo_brianese
@pablo_brianese 3 жыл бұрын
It is unfair that I can't give this video another like.
@statquest
@statquest 3 жыл бұрын
:)
@grishmareddy7882
@grishmareddy7882 2 ай бұрын
These videos are just amazing and clearly are extremely successful in simplifying topics that are usually thought of as difficult. Can you please also make videos on its code in python/R..? and of naive bayes too maybe. That would be super useful. Thank you very much for this level of awesome content.
@statquest
@statquest 2 ай бұрын
I'll keep that in mind.
@silvenlau7436
@silvenlau7436 2 жыл бұрын
I love you sir! Your video save my life!
@statquest
@statquest 2 жыл бұрын
Happy to help!
@raptorrv1828
@raptorrv1828 3 жыл бұрын
BAM! Amazing explanation!
@statquest
@statquest 3 жыл бұрын
Thanks!
@hianjana
@hianjana 5 жыл бұрын
Your video is amazing as always... It would be great if you can include how to choose the value for 'k' and evaluation metrics for kNN. Also, if I understand it right, there is no actual "training" happening in kNN. It is about arranging the points on the cartesian plane and when a new data point comes, it will again be placed on the same plane and depending on the value of "k", it will be classified. Correct me if I'm wrong.
@startrek3779
@startrek3779 2 жыл бұрын
Hi. Yes, you are right. KNN is easy to implement and understand and has been widely used in academia and industry for decades. You may utilise the cross-validation technique and the validation datasets to select the value for k.
@bealynor
@bealynor Жыл бұрын
awesome explanation ! thank you so much!
@statquest
@statquest Жыл бұрын
Thank you! :)
@henriquenonenmacher8701
@henriquenonenmacher8701 4 жыл бұрын
You are amazing! Thank u so much. Cheers from BRAZIL
@statquest
@statquest 4 жыл бұрын
Muito obrigado! :)
@hemantdas9546
@hemantdas9546 4 жыл бұрын
Just wow thanks Josh. You are just great. One doubt however, if k values are large will outliers not affect my algo? Effect of outliers in knn? Please answer.
@statquest
@statquest 4 жыл бұрын
I believe that large values for K will provide some protection from outliers.
@user20517
@user20517 4 жыл бұрын
Many thanks for the clear explanation
@statquest
@statquest 4 жыл бұрын
Thanks! :)
@kuangliew
@kuangliew 7 жыл бұрын
Amazing explanation! Thank you!
@daniekpo
@daniekpo 3 жыл бұрын
Great explanation! BAM! Great illustrations! Double BAM!!
@statquest
@statquest 3 жыл бұрын
Thank you very much! :)
@abenadonkor2796
@abenadonkor2796 2 жыл бұрын
thank you so much.This was well explained.
@statquest
@statquest 2 жыл бұрын
Thanks!
@oscargalovich1323
@oscargalovich1323 3 жыл бұрын
Best explanation ever, thank you!!!
@statquest
@statquest 3 жыл бұрын
Thanks!
@rockdrummer3999
@rockdrummer3999 2 жыл бұрын
So much clearer than my lecturer fam
@statquest
@statquest 2 жыл бұрын
Thanks!
@rockdrummer3999
@rockdrummer3999 2 жыл бұрын
@@statquest no, thank you :)
@mastermike890
@mastermike890 6 жыл бұрын
awesome! You should do a quadratic discriminant analysis to go with your awesome one on LDA
@MegaCliff1234
@MegaCliff1234 3 жыл бұрын
THANK YOU JOSH!
@statquest
@statquest 3 жыл бұрын
Anytime! :)
@m0tivati0n71
@m0tivati0n71 Жыл бұрын
Wow! such a great explainer
@statquest
@statquest Жыл бұрын
Glad you think so!
@prashantbisht2219
@prashantbisht2219 4 жыл бұрын
BAM!!! That was great as usual.
@statquest
@statquest 4 жыл бұрын
Hooray! Thank you! :)
@Steve-3P0
@Steve-3P0 4 жыл бұрын
I love this guy's shtick. Corny, slightly annoying music, although I'm sure he is a great musician. Slightly condescending voice when he goes over the material... like "I'm making this so fucking easy for you... you can't possibly not understand this". It's actually quite calming. He speaks slowly too. You don't have to constantly pause his videos. I understand everyone of his videos. If I don't, it's because I didn't yet watch any prerequisite videos that he tells you at the beginning to watch. He never takes for granted that you understand some detail. This is the BIGGEST freakin' mistake of educators. Some damn variable in a formula that they forget to explain. Also, he will use the simplest example possible so that you understand. I am returning to school, grad school in the ML track for computer science. I don't remember much of the math that I took 20 years ago. This guy is a lifesaver. Wish I watched these when I started. I will be watching all of his videos. After I graduate and make some money, I'm sending him some bucks thru Patreon. Thanks man!
@statquest
@statquest 4 жыл бұрын
BAM! Thank you very much! I think I must have "resting condescending voice" - because several people have made the comment that I sound a little condescending - but trust me this is not intentional! :)
@Steve-3P0
@Steve-3P0 4 жыл бұрын
@@statquest It's actually reassuring. You know, when you are talking to someone who is freaking out? And you make it sound like "Dood, this not that hard."
@statquest
@statquest 4 жыл бұрын
@@Steve-3P0 Nice! :)
@csbanki
@csbanki 2 жыл бұрын
Well explained, thank you good sir!
@statquest
@statquest 2 жыл бұрын
Glad it was helpful!
@sanaali3069
@sanaali3069 11 ай бұрын
My 10 year old hums statquest song made me realise I my new obsession with this
@statquest
@statquest 11 ай бұрын
bam!
@omarmarie7802
@omarmarie7802 2 жыл бұрын
Thanks sir, great explanation!
@statquest
@statquest 2 жыл бұрын
Glad you liked it!
@grovvy_essence.1070
@grovvy_essence.1070 2 жыл бұрын
Loved it.... Thank you 😊
@statquest
@statquest 2 жыл бұрын
Glad you enjoyed it!
@amine1995athlete
@amine1995athlete 3 жыл бұрын
You're a legend ! Thank you :)
@statquest
@statquest 3 жыл бұрын
Thanks!
@debatradas1597
@debatradas1597 2 жыл бұрын
Thank you so much
@statquest
@statquest 2 жыл бұрын
No problem!
@shamanthrajreddy1230
@shamanthrajreddy1230 2 жыл бұрын
Great tutorial!
@statquest
@statquest 2 жыл бұрын
Thank you!
@maryamzirak6291
@maryamzirak6291 9 ай бұрын
That is awsom how you explain this topics. One suggestion, you could show how the 7 nearest ist red, 3 nearest ist orange and 1 nearest is green for the point in the middle. By my eyes, the 1 nearest neigbour ist still red! and it makes me confuse what does nearest means actually :)
@statquest
@statquest 9 ай бұрын
What time point, minutes and seconds, are you referring to?
@Maddie-gt6pn
@Maddie-gt6pn 4 жыл бұрын
such an amazing explanation. Thank you!
@statquest
@statquest 4 жыл бұрын
Thanks! :)
@pouce902
@pouce902 6 жыл бұрын
Bam! Smart and clear as usual.
@TheSuperninja10
@TheSuperninja10 6 жыл бұрын
I like your bandcamp!
@statquest
@statquest 6 жыл бұрын
Hooray! Thank you! :)
@taetaereporter
@taetaereporter Жыл бұрын
lifesaver! thank you!
@statquest
@statquest Жыл бұрын
Glad it helped!
@omarbenazza
@omarbenazza 3 жыл бұрын
Thank you!
@statquest
@statquest 3 жыл бұрын
You bet!
@shwetanksingh5208
@shwetanksingh5208 2 жыл бұрын
You are awesome man!!
@statquest
@statquest 2 жыл бұрын
Thanks!
@clementchidozie4009
@clementchidozie4009 4 жыл бұрын
BAM!!! You nailed it.
@statquest
@statquest 4 жыл бұрын
Thank you! :)
@zaneford9851
@zaneford9851 3 жыл бұрын
I liked the video immediately after hearing the guitar intro
@statquest
@statquest 3 жыл бұрын
bam! :)
@msb3559
@msb3559 4 жыл бұрын
Hail Joshua!!
@statquest
@statquest 4 жыл бұрын
BAM! :)
@sciencetrainee3583
@sciencetrainee3583 4 жыл бұрын
THANK YOU! YOU HAVE SAVED ME :D
@statquest
@statquest 4 жыл бұрын
Awesome! :)
@hamzamhadhbi3060
@hamzamhadhbi3060 3 жыл бұрын
is considering this my favourite channel makes me a nerd ?
@statquest
@statquest 3 жыл бұрын
It makes you awesome! :)
@sarvesh_7736
@sarvesh_7736 4 жыл бұрын
Hello Josh, can you please explain why 3 nearest neighbours are Orange and 1 nearest neighbour is green (the red one looks closest to the black spot to me)? I might have misunderstood the meaning of k nearest neighbours, though PS: loved your explanation, thank you!
@statquest
@statquest 4 жыл бұрын
What time point, minutes and seconds, are you asking about?
@sarvesh_7736
@sarvesh_7736 4 жыл бұрын
@@statquest I'm sorry I forgot to mention it, it's at 2:29
@statquest
@statquest 4 жыл бұрын
@@sarvesh_7736 Of the 11 colored dots that are closest to the big black dot, 7 of them are red, 3 of them are orange and 1 one of them is green.
@ja1211
@ja1211 3 ай бұрын
Omg thank you so much
@statquest
@statquest 3 ай бұрын
No problem!
@shawteex3
@shawteex3 6 ай бұрын
thank you so much for this video! i have my midterm tomorrow and im so scared :(
@statquest
@statquest 5 ай бұрын
Good luck!!
@MB-vd6hc
@MB-vd6hc 4 жыл бұрын
Thanks alot for this video.
@statquest
@statquest 4 жыл бұрын
Hooray! :)
@durgaprasadup5236
@durgaprasadup5236 5 жыл бұрын
Explanation was very very very good. Easily understandable by anyone almost. Can you please do a video on KFold and StratifiedKFold with an example using python. Also, can you explain cross_val_score in details
@statquest
@statquest 5 жыл бұрын
I have a video on cross validation that covers the concepts in K-Fold cross validation. That might not be exactly what you are looking for, but just in case, here is the link: kzbin.info/www/bejne/nITcpa19rNx1jNk
@ratnakaramsravanti2042
@ratnakaramsravanti2042 Жыл бұрын
Good job ! I loved the videooo :)
@statquest
@statquest Жыл бұрын
Thanks!
@danny89620
@danny89620 Жыл бұрын
Nice video well done
@statquest
@statquest Жыл бұрын
Thanks!
@rockfordlines3547
@rockfordlines3547 Жыл бұрын
watch for the stats, stay for the intro songs
@statquest
@statquest Жыл бұрын
bam! :)
@pawel040408
@pawel040408 2 жыл бұрын
It was super simple indeed!
@statquest
@statquest 2 жыл бұрын
:)
@stekim
@stekim 4 жыл бұрын
that was exciting indeed
@statquest
@statquest 4 жыл бұрын
Hooray! :)
@learntry9074
@learntry9074 Ай бұрын
sad that finding this now. happy that I found it , rather not finding ever :)
@statquest
@statquest Ай бұрын
better late than never! :)
@gooo1762
@gooo1762 6 ай бұрын
thanks a lot bro
@statquest
@statquest 6 ай бұрын
Any time! :)
@temsamaniyassine6071
@temsamaniyassine6071 3 жыл бұрын
Excellent
@statquest
@statquest 3 жыл бұрын
Thank you so much 😀
@MrRynRules
@MrRynRules 3 жыл бұрын
Omg, thank you so much!!!!!
@statquest
@statquest 3 жыл бұрын
Happy to help!
@aminah363
@aminah363 Жыл бұрын
Please do a video on K-Medoid
@statquest
@statquest Жыл бұрын
I'll keep that in mind.
@EmapMe
@EmapMe 4 жыл бұрын
Maybe make a video on bayesian classification? Also, we should choose a k that isn't a multiple of the number of categories to avoid a tied vote.
@statquest
@statquest 4 жыл бұрын
I should have a video on that topic by the end of February or early March.
@linkguy30
@linkguy30 4 жыл бұрын
was extremely helpful tysm
@statquest
@statquest 4 жыл бұрын
Thanks! :)
@yashmehta4481
@yashmehta4481 3 жыл бұрын
When we have categorical variable like Yes/No or type of job (which can take four values: business, healthcare, engineering, or education), how can we calculate distances? Is knn useful at all?
@statquest
@statquest 3 жыл бұрын
If there is a distance metric, then it KNN will work, and there are distance metrics for categorical variables. See stackoverflow.com/questions/2981743/ways-to-calculate-similarity/2983763#2983763
@JGbossify
@JGbossify 2 жыл бұрын
Amazing!
@statquest
@statquest 2 жыл бұрын
Thanks!
@lilmoesk899
@lilmoesk899 7 жыл бұрын
Good stuff, thanks! Do you have any videos about survival analysis?
Naive Bayes, Clearly Explained!!!
15:12
StatQuest with Josh Starmer
Рет қаралды 1 МЛН
StatQuest: Principal Component Analysis (PCA), Step-by-Step
21:58
StatQuest with Josh Starmer
Рет қаралды 2,8 МЛН
🩷🩵VS👿
00:38
ISSEI / いっせい
Рет қаралды 28 МЛН
OMG what happened??😳 filaretiki family✨ #social
01:00
Filaretiki
Рет қаралды 13 МЛН
Underwater Challenge 😱
00:37
Topper Guild
Рет қаралды 42 МЛН
Ik Heb Aardbeien Gemaakt Van Kip🍓🐔😋
00:41
Cool Tool SHORTS Netherlands
Рет қаралды 9 МЛН
How to implement KNN from scratch with Python
9:24
AssemblyAI
Рет қаралды 85 М.
Clustering with DBSCAN, Clearly Explained!!!
9:30
StatQuest with Josh Starmer
Рет қаралды 298 М.
StatQuest: K-means clustering
8:31
StatQuest with Josh Starmer
Рет қаралды 1,6 МЛН
Decision and Classification Trees, Clearly Explained!!!
18:08
StatQuest with Josh Starmer
Рет қаралды 728 М.
10. Introduction to Learning, Nearest Neighbors
49:56
MIT OpenCourseWare
Рет қаралды 264 М.
K nearest neighbors (KNN) - explained | validation
15:38
TileStats
Рет қаралды 8 М.
K-Nearest Neighbor
7:13
ritvikmath
Рет қаралды 24 М.
🩷🩵VS👿
00:38
ISSEI / いっせい
Рет қаралды 28 МЛН