StatQuest: K-nearest neighbors, Clearly Explained

Поділитися
Вставка
  • Опубліковано 24 лис 2024

КОМЕНТАРІ • 450

  • @statquest
    @statquest  2 роки тому +11

    Support StatQuest by buying my book The StatQuest Illustrated Guide to Machine Learning or a Study Guide or Merch!!! statquest.org/statquest-store/

  • @thinkalinkle
    @thinkalinkle 6 років тому +167

    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  6 років тому +10

      Hooray! I'm glad the videos are helpful. :)

  • @alexanderpalm6407
    @alexanderpalm6407 4 роки тому +165

    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 роки тому +5

      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

  • @raytang1867
    @raytang1867 6 років тому +509

    Five minutes explains better than some teachers spent one hour. :)

    • @statquest
      @statquest  6 років тому +8

      Thank you! :)

    • @free_thinker4958
      @free_thinker4958 4 роки тому +22

      Better than teacher spending semester for me

    • @TeacherMarcus1010
      @TeacherMarcus1010 3 роки тому

      hahahahaha

    • @spano1723
      @spano1723 3 роки тому +4

      @@free_thinker4958 wtf really? also my teacher took 5 minutes that's why I understood nothing

    • @NerdByFate
      @NerdByFate 3 роки тому +3

      For real, this channel is a godsend.

  • @rahulsadanandan5076
    @rahulsadanandan5076 4 роки тому +26

    Every time I see your videos I'm simply amazed how you manage to make things simple,it's like 1+1=2, respect

  • @칸츄리혜올희
    @칸츄리혜올희 8 місяців тому +3

    This channel is salt of the Earth

  • @spacemeter3001
    @spacemeter3001 3 роки тому +15

    When a random UA-cam channel explains it better than your University Professor....
    Keep it up!

  • @mandarkulkarni4741
    @mandarkulkarni4741 4 роки тому +63

    INTRO IS LEGENDARY BRO : )

    • @statquest
      @statquest  4 роки тому +2

      Yup, that's a good one. :)

  • @qicai3682
    @qicai3682 Рік тому +2

    This channel is GOD SENT. Period.

  • @laiscarraro9960
    @laiscarraro9960 3 роки тому +5

    Thank you josh and the FFGDUNCCH (the friendly folks from the genetics department at the university of north carolina at chapel hill)

  • @Guinhulol
    @Guinhulol 10 місяців тому +1

    I am brushing up on my ML terminology and StatQuest always comes to the rescue!! BAM!

  • @atifayaz3495
    @atifayaz3495 4 роки тому +5

    When I search for something and find it on StatQuest channel. Super BAM!!

  • @ycao6
    @ycao6 5 років тому +11

    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! :)

  • @ayush612
    @ayush612 6 років тому +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

  • @pablo_brianese
    @pablo_brianese 4 роки тому +2

    It is unfair that I can't give this video another like.

  • @eltajbabazade1189
    @eltajbabazade1189 3 роки тому +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 роки тому +2

      Hooray! Good luck with your exam! :)

    • @eltajbabazade1189
      @eltajbabazade1189 3 роки тому +1

      @@statquest Hey, I failed :D but still, I learnt a lot, thanks!

    • @statquest
      @statquest  3 роки тому

      @@eltajbabazade1189 Better luck next time! :)

    • @MillerMoore-gq2pe
      @MillerMoore-gq2pe 4 місяці тому +1

      @@eltajbabazade1189 I hope you graduated successfully 🙂.

  • @lucarauchenberger628
    @lucarauchenberger628 3 роки тому +3

    I can't believe how good you are at explaining this. wow!!!

  • @ShafniSide
    @ShafniSide Рік тому +1

    Thank you so much for saving our time sir❤ love from Srilanka 🇱🇰

  • @davidk7212
    @davidk7212 2 роки тому +2

    That opening banjo solo is prettt sweet.

  • @suparnaroy2829
    @suparnaroy2829 Рік тому +1

    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  Рік тому +1

      Good luck!!! Let me know how it goes!

    • @suparnaroy2829
      @suparnaroy2829 Рік тому +1

      @@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.

  • @jovinMendes
    @jovinMendes 3 роки тому +4

    Thank you so much. So useful honestly - i didnt get this from a 2 hour lecture

    • @statquest
      @statquest  3 роки тому +1

      Glad it was helpful!

  • @arms1991
    @arms1991 2 роки тому +1

    you are the master of machine learning

  • @DRmrTG
    @DRmrTG 10 місяців тому +1

    Where would I be without StatQuest? Luckily, I now have the statistical tool to estimate this!

  • @chandananarayanan5498
    @chandananarayanan5498 3 роки тому +1

    I am so glad I found this channel.

  • @hamedsharifian
    @hamedsharifian 3 роки тому +1

    Easy to understand and straightforward. Thanks.

  • @mahipkhandelwal3072
    @mahipkhandelwal3072 4 роки тому +1

    Summarised in a very short video....just perfect

  • @sabindawadi741
    @sabindawadi741 Рік тому +1

    Simple and Clear explanation. Thank you!

  • @thechesslobster2768
    @thechesslobster2768 4 роки тому +1

    You're a legend at explaining.

  • @SuperBlackHurricane
    @SuperBlackHurricane Рік тому +1

    Another exciting episode of statquest!

  • @arshadshaik822
    @arshadshaik822 3 роки тому +1

    Ohhh man this so simple
    Thqqq for this type of explanation

  • @il5083
    @il5083 2 роки тому +1

    Very clear, I got the idea of this concept right away.
    Well done, thanks!

  • @THEMATT222
    @THEMATT222 2 роки тому +5

    Your videos are K-nearest perfection :)

    • @statquest
      @statquest  2 роки тому +2

      Ha! Very funny.

    • @THEMATT222
      @THEMATT222 2 роки тому +2

      @@statquest Noice 👍 Thanks 👍

  • @VH-yg8rx
    @VH-yg8rx 2 роки тому +1

    Dang. Simple and to the point! Thank you!

  • @NiceHirwa
    @NiceHirwa 6 місяців тому +1

    WOWW! This was super helpful!
    Thanks Josh!

    • @statquest
      @statquest  6 місяців тому

      Glad it was helpful!

  • @stalindavid8208
    @stalindavid8208 6 років тому +6

    Thank you for your Clear explanation.

  • @husamalsalek2333
    @husamalsalek2333 5 років тому +2

    one video explained better than a whole semester

  • @coredump7827
    @coredump7827 5 років тому +26

    BAM!

  • @NoMeVayasDePr0
    @NoMeVayasDePr0 2 роки тому +1

    Very well explained and loved your uke intro by the way :)

  • @fafamnzm
    @fafamnzm 6 років тому +9

    Your videos are sooo great, I can't stop watching 💖💖 thank you

    • @statquest
      @statquest  6 років тому

      Hooray!!!!

    • @fafamnzm
      @fafamnzm 6 років тому +1

      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.

    • @fafamnzm
      @fafamnzm 6 років тому +1

      StatQuest with Josh Starmer 😔😕 that's sad, but i look forward to it. You explain beautifully sir! 💪🏼👊🏼

  • @derpfaceonigiri4950
    @derpfaceonigiri4950 6 років тому +6

    Thank you! This helped me so much in understanding KNN faster :D

  • @grishmareddy7882
    @grishmareddy7882 5 місяців тому +1

    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  5 місяців тому

      I'll keep that in mind.

  • @prekshyabasnet6854
    @prekshyabasnet6854 5 років тому +6

    Clear and concise explanation. Thank you :)

  • @Oliver-nt8pw
    @Oliver-nt8pw 5 років тому +6

    Thank you, very clear and to the point explanation !

  • @user20517
    @user20517 4 роки тому +1

    Many thanks for the clear explanation

  • @silvenlau7436
    @silvenlau7436 2 роки тому +1

    I love you sir! Your video save my life!

  • @JakeBSHere
    @JakeBSHere 3 роки тому +1

    So much clearer than my lecturer fam

  • @MegaCliff1234
    @MegaCliff1234 4 роки тому +1

    THANK YOU JOSH!

  • @mastermike890
    @mastermike890 7 років тому +3

    awesome! You should do a quadratic discriminant analysis to go with your awesome one on LDA

  • @henriquenonenmacher8701
    @henriquenonenmacher8701 4 роки тому +1

    You are amazing! Thank u so much.
    Cheers from BRAZIL

  • @debatradas1597
    @debatradas1597 2 роки тому +1

    Thank you so much

  • @bealynor
    @bealynor Рік тому +1

    awesome explanation ! thank you so much!

  • @ritwicverma
    @ritwicverma 4 роки тому +2

    BAM! Amazing explanation!

  • @zaneford9851
    @zaneford9851 3 роки тому +1

    I liked the video immediately after hearing the guitar intro

  • @igorristovski1309
    @igorristovski1309 4 роки тому +1

    Thank you. Very good explanation in such a short time.

  • @abenadonkor2796
    @abenadonkor2796 2 роки тому +1

    thank you so much.This was well explained.

  • @oscargalovich1323
    @oscargalovich1323 3 роки тому +1

    Best explanation ever, thank you!!!

  • @hamzamhadhbi3060
    @hamzamhadhbi3060 3 роки тому +1

    is considering this my favourite channel makes me a nerd ?

    • @statquest
      @statquest  3 роки тому +1

      It makes you awesome! :)

  • @shawteex3
    @shawteex3 8 місяців тому +1

    thank you so much for this video! i have my midterm tomorrow and im so scared :(

  • @omarbenazza
    @omarbenazza 4 роки тому +1

    Thank you!

  • @maryamzirak6291
    @maryamzirak6291 Рік тому

    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  Рік тому

      What time point, minutes and seconds, are you referring to?

    • @lowqualitydude8460
      @lowqualitydude8460 6 днів тому +1

      @@statquest 02:36, it confuses me too

    • @statquest
      @statquest  6 днів тому

      ​@@lowqualitydude8460 Thanks! Unfortunately, since the original comment, UA-cam has discontinued the feature that let me make small changes to a video. However, if I ever update this one with something new, I'll be sure to make this more obvious.

  • @daniekpo
    @daniekpo 4 роки тому +1

    Great explanation! BAM! Great illustrations! Double BAM!!

    • @statquest
      @statquest  4 роки тому +1

      Thank you very much! :)

  • @m0tivati0n71
    @m0tivati0n71 Рік тому +1

    Wow! such a great explainer

  • @sanaali3069
    @sanaali3069 Рік тому +1

    My 10 year old hums statquest song made me realise I my new obsession with this

  • @pouce902
    @pouce902 6 років тому +1

    Bam! Smart and clear as usual.

  • @taetaereporter
    @taetaereporter Рік тому +1

    lifesaver! thank you!

  • @csbanki
    @csbanki 2 роки тому +1

    Well explained, thank you good sir!

  • @omarmarie7802
    @omarmarie7802 2 роки тому +1

    Thanks sir, great explanation!

  • @amine1995athlete
    @amine1995athlete 3 роки тому +1

    You're a legend ! Thank you :)

  • @shamanthrajreddy1230
    @shamanthrajreddy1230 2 роки тому +1

    Great tutorial!

  • @prashantbisht2219
    @prashantbisht2219 4 роки тому +1

    BAM!!! That was great as usual.

  • @pawel040408
    @pawel040408 3 роки тому +1

    It was super simple indeed!

  • @matthewerwine8333
    @matthewerwine8333 2 місяці тому +1

    Great video man

  • @msb3559
    @msb3559 4 роки тому +2

    Hail Joshua!!

  • @grovvy_essence.1070
    @grovvy_essence.1070 3 роки тому +1

    Loved it.... Thank you 😊

  • @TomYoungblood-cx7wm
    @TomYoungblood-cx7wm Місяць тому +1

    Thanks, you're great

  • @kuangliew
    @kuangliew 7 років тому +2

    Amazing explanation! Thank you!

  • @AeNcB
    @AeNcB 4 роки тому

    PCA is not a clustering tool. It's used for dimensionality reduction in the feature space.

    • @statquest
      @statquest  4 роки тому

      You are correct. I was a little sloppy with my terminology. What I meant was use something like PCA to reduce the dimensions so we can see that data in a 2-D graph. However, now that I'm older and wiser I know that we can skip the PCA step if we wanted to.

  • @aminah363
    @aminah363 2 роки тому +1

    Please do a video on K-Medoid

    • @statquest
      @statquest  2 роки тому

      I'll keep that in mind.

  • @clementchidozie4009
    @clementchidozie4009 4 роки тому +1

    BAM!!! You nailed it.

  • @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.

  • @hianjana
    @hianjana 5 років тому +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 3 роки тому

      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.

  • @temsamaniyassine6071
    @temsamaniyassine6071 4 роки тому +1

    Excellent

    • @statquest
      @statquest  4 роки тому

      Thank you so much 😀

  • @ja1211
    @ja1211 6 місяців тому +1

    Omg thank you so much

  • @shwetanksingh5208
    @shwetanksingh5208 3 роки тому +1

    You are awesome man!!

  • @PradeepSharma-fl2uy
    @PradeepSharma-fl2uy 4 роки тому

    This video is good as usual but I think there should be some more concepts explained. Like distance metrics, lazy algorithm property of KNN and elbow method.

    • @statquest
      @statquest  4 роки тому

      Thanks for the feedback.

  • @TheSuperninja10
    @TheSuperninja10 6 років тому +2

    I like your bandcamp!

    • @statquest
      @statquest  6 років тому +1

      Hooray! Thank you! :)

  • @learntry9074
    @learntry9074 4 місяці тому +1

    sad that finding this now. happy that I found it , rather not finding ever :)

    • @statquest
      @statquest  4 місяці тому +1

      better late than never! :)

  • @gooo1762
    @gooo1762 9 місяців тому +1

    thanks a lot bro

  • @MB-vd6hc
    @MB-vd6hc 4 роки тому +1

    Thanks alot for this video.

  • @rockfordlines3547
    @rockfordlines3547 2 роки тому +1

    watch for the stats, stay for the intro songs

  • @danny89620
    @danny89620 Рік тому +1

    Nice video well done

  • @Steve-3P0
    @Steve-3P0 4 роки тому +6

    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 роки тому +1

      @@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! :)

  • @stekim
    @stekim 4 роки тому +1

    that was exciting indeed

  • @mohamedesmailelsalahaty6050
    @mohamedesmailelsalahaty6050 2 роки тому +1

    You are Legend

  • @iftikhar3609
    @iftikhar3609 3 роки тому

    we happy to see if the python implementation on the video. BTW thanks its was wonderful job

  • @MrRynRules
    @MrRynRules 3 роки тому +1

    Omg, thank you so much!!!!!

  • @JGbossify
    @JGbossify 2 роки тому +1

    Amazing!

  • @josevaldes7493
    @josevaldes7493 2 роки тому +1

    thanks you

  • @asapworkout4678
    @asapworkout4678 4 роки тому +1

    thanks nice tutorial

  • @felipeguimaraes2568
    @felipeguimaraes2568 2 роки тому +1

    great video