Decision and Classification Trees, Clearly Explained!!!

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

КОМЕНТАРІ • 802

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

    NOTE: This is an updated and revised version of the Decision Tree StatQuest that I made back in 2018. It is my hope that this new version does a better job answering some of the most frequently asked questions people asked about the old one.
    Support StatQuest by buying my book The StatQuest Illustrated Guide to Machine Learning or a Study Guide or Merch!!! statquest.org/statquest-store/

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

      Awesome work!

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

      The very model of clarity. Thanks :)

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

      Hi Josh, great video! I have one question.
      When you are calculating the total Gini impurity based on the weighted average, why is it not (1 - weight)*Gini instead of (weight)*Gini?
      Since we want to minimize Gini, wouldn't the Gini value with the most sample size have its overall Gini reduced (as in (1 - weight)*Gini ) instead of increase (as in (weight)*Gini) ?
      Thanks!

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

      @@haoyuanliu8034 The more data we have to support something, the more trust we have that that something is correct. Likewise, if I don't have much data to support something, then I should probably have less confidence that that something is correct. And that's what we're doing here. The more data observations we have in a leaf, the more data we have to support the predictions made by that leaf. Thus, the weight amplifies the gini value for the leaf for the most data.

    • @Noah-xn5th
      @Noah-xn5th 5 місяців тому

      Hello,
      when it comes to variables like age: How do u decide if u should use "

  • @XShollaj
    @XShollaj 3 роки тому +221

    The complexity of understanding the concepts and explaining them so simply show what a great teacher Josh is.

  • @2andreseg
    @2andreseg 3 роки тому +253

    Josh, I just finished watching absolutely all your videos on this channel. Congratulations for them, you are the best!

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

      WOW!!! That's a lot of videos! Thank you very much! :)

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

      how much are you sponsoring? LOL

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

      why did you do that, What do you do?

    • @2andreseg
      @2andreseg 2 роки тому +9

      @@amaarmarco530 I am Data Scientist, and I wanted to have a really good knowledge about statistics

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

      Haven't watched them all yet but probably will. And even that you have and will receive more compliments, it's always worth keeping on thanking you for this amazing job!

  • @TheSamkerim
    @TheSamkerim 2 роки тому +30

    I'd never seen a youtube comment section so full of thankful, enlightened and happy people. You must have revolutionized teaching. Thank you Josh, for these excellent videos. You rock!

  • @richardtvtv
    @richardtvtv Місяць тому +3

    Honestly Josh, you are a god-send for data science students. After getting an expensive Master's degree in Data Science, I still come back to your videos everytime I need a quick refresher or understand a tricky concept in detail. My professors, eventhough they are very knowledgable and good people, couldn't do half as much as you to teach these concepts given their rush to finish lectures within the hour and vacate lecture halls for he next class. Your videos are very comprehensive and well thought out. Thank you and keep going!

    • @statquest
      @statquest  Місяць тому

      Thank you very much! :)

  • @mohmmadwaseq1603
    @mohmmadwaseq1603 3 роки тому +73

    I am half way through your Machine Learning playlist. It has been so helpful and resourceful, I can't put into words. Thank you Josh.

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

      Thank you very much! :)

  • @LiquidBrain
    @LiquidBrain 3 роки тому +192

    Save the environment by planting some decision trees

  • @ruchikapharswan1357
    @ruchikapharswan1357 День тому +1

    Josh, you are just amazing ... you explained it so well. Whenever I get stuck, I return to your videos and clear it out ... thank you so much...

  • @yigittuncer22
    @yigittuncer22 12 днів тому +1

    You ability to simplify hard concepts into simple explanations is amazing, great video!

  • @jithendrayenugula7137
    @jithendrayenugula7137 3 роки тому +19

    I never watched Andrew NG's OG course.... i just come back to these videos if I have any doubts or if I need to refresh my knowledge. Thanks a lot josh ;)

  • @dfla5472
    @dfla5472 3 роки тому +21

    If "love at first sight" is real, then this video made me love your way of teaching!

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

      Hooray! Thank you very much! :)

  • @hantang7371
    @hantang7371 3 роки тому +16

    This channel helped me a loooot! It helps me from researching to looking for a job, from recreating myself to exploring the field of statistics and machine learning. You are the best! I can't express my gratefulness in words!

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

      Thank you very much! :)

  • @tarunkumarbehera6226
    @tarunkumarbehera6226 9 місяців тому +3

    This is one of best videos on Decision Trees on the internet. Thanks Josh!

  • @nishadsharma6062
    @nishadsharma6062 12 днів тому +1

    Hey Josh! I have not come across a better explanation of tree methods than on your channel. You've saved me countless hours of going through ISL e-book and still not understanding a thing. Thank you so much!!
    PS: The subtle humor is refreshing also.

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

      Thank you very much! :)

  • @arenashawn772
    @arenashawn772 9 місяців тому +2

    I love this video ( in the same spirit of many other of your machine learning algorithm videos) because after watching it, I actually managed to code a simple classification tree on my own to just solidify the things I learned here, and after watching this video, all the parameters in scikit-learn DecisionTreeClassifier are making sense to me. Most of the ML videos and many of the classes out there only talk about very generalized, high-level ideas of these models. You don’t. You always do such a great job giving clear yet detailed explanation of the nitty gritty of these models. Between the ISLP/ISLR books and your videos I am able to gain basic understanding beyond just making api calls of caret in R or sklearn in python. It really made me feel like I am learning, instead of just typing formulas on the keyboard. Could never thank you enough ❤❤❤

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

      Hooray!!! I'm so glad you enjoy my videos. :)

  • @ayushmishra9415
    @ayushmishra9415 3 роки тому +14

    I will spent my first salary from the job by buying your merch and supporting your channel , you are just great prof

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

      Hooray!!! Thank you very much! :)

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

      hey bhai i need help from u to understand this concepts for my assignment, can u contact to me?

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

    You are the REAL GOAT! The best and most intuitive textbook is ISL and your UA-cam video makes this even better. Hats off to your hard work.

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

      Wow, thanks!

    • @konradkawka6920
      @konradkawka6920 5 місяців тому

      Hi, would you mind sharing what textbook you are reffering to? I noticed there is a reference to some textbook in the video. I'm guessing it's referring to the Introduction to Statistical Learning with Applications in R, but I'm not sure about the edition, and at least in the electronic versions, I can't find the relevant information on page 321.

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

    Thank you Josh, there is no channel on UA-cam (or maybe on the Internet) that explains this topics as nifty as you do.

  • @OgulcanYardmc-vy7im
    @OgulcanYardmc-vy7im 7 місяців тому +1

    Oh great video. Wish the lecturers would have same knowledge about this topic as yours... Thanks man!

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

      Glad it was helpful!

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

    More important than teaching people statistics and machine learning, you teach people they are capable of understanding things they would of otherwise thought themselves incapable of understanding.

  • @chief_le0
    @chief_le0 8 місяців тому +2

    I'm not used to comment on youtube videos, but this one for sure deserves it. Thanks so much for the explanation, and keep up the good work!

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

      Thanks, will do!

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

    your method of teaching is so simple, yet so amazing

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

      Thank you very much!

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

    You are amazing. I really wish that University professors had the ability and drive to actually teach like this.

  • @carrotdays9737
    @carrotdays9737 12 днів тому +1

    Gotta say it Everytime! Thank you for granting me clear vision of the concept!!

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

    amazing video, 18 minutes of your video conveys more useful information than a 3 hours lecture at my uni

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

    I just became fan of yours....the way you teach complicated things with humour and fun, its simply amazing....

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

    You are the best teacher for Stats and ML!

  • @ayamohameddessouky9848
    @ayamohameddessouky9848 3 місяці тому +2

    By far the best explanation I’ve come across. Thank you so much!

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

    best tutor alive on earth. thanks man. appreciate your hard work for us.

  • @JosephLi-wr4cg
    @JosephLi-wr4cg 6 місяців тому +3

    Yet another fantastic stat-quest, Loved these for my class for Deep learning. Keep up the good work!

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

      Thanks, will do!

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

    The best teacher i ever had ....i will send a gift on teachers day Mr Josh!

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

      Bam! :)

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

      @@statquest Sir can you pls tell me how should i start ML as beginner. Is this the place that should start ua-cam.com/video/Gv9_4yMHFhI/v-deo.html from your tutorial

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

    Thank god, i found your video. You explained it so well, that I literally couldn't control jumping in happiness.

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

    The best teacher by far I've ever seen in my life! Thank you Josh!

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

    who is here not just for statistics but for English pronunciation as well? Clearly explained and clearly pronounced!!!!

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

      Thank you very much! :)

  • @shubhamgattani5357
    @shubhamgattani5357 7 місяців тому +1

    World's best video on Decision Tree Classifier 💚💚💚💚

  • @Dan-wq8id
    @Dan-wq8id 3 роки тому +6

    Brilliant, thanks Josh - exactly the slow and steady explaination I needed

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

    I am so happy I found this video. Thank you for making it. It is so clear how the decision tree actually works.

  • @KalyanAngara
    @KalyanAngara 3 роки тому +2

    The explanation is so simple and rewarding too. Thank you.

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

    Amazing video to learn Decision and Classification Trees from zero to hero!

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

    Your explanations are the best!! Instead of teaching the mathematical abstraction first, you teach with a small step by step example that removes the abstraction complexity, so then when reading the formal explanation I can understand it much better. That's the best teaching method, keep doing it this way :D

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

    Hi Josh,your videos are the best in understanding the working of machine learning algorithms in the simplest way!!!

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

      Thank you very much! :)

  • @driftypencil0148
    @driftypencil0148 5 місяців тому +2

    Absolutely Brilliant. Such a simple explanation. Love this vid

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

    I'd like to thank you so much for making this stream cast available!

  • @wenndii
    @wenndii 7 місяців тому +1

    starting to regret why i need to go to school 3 days per wee, 5 hours per day for machine learning. listening to your videos beats every lecture.

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

    with this channel, go to school clase is just waste time. Great teacher Josh is.

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

    I don't know who are you but man you are the best instructor ever I have ever seen. I wish my math teacher met you, she was teaching us the same way you do 😍

  • @Chippin-luv
    @Chippin-luv Рік тому +1

    your 2 vids of Knn and this explain better than my 2 hrs lecture and 1 hr lab which done by my uni teacher.
    thank you

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

    This guy is amazing! I also love how he reminds us of what we were doing, why we were doing it and how we were doing it. Usually, halfway through my lectures I have forgotten where we came from and why we are doing what we're doing.
    Can't see the forest for all those trees... B)

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

      Thank you so much! I'm glad you like my videos. :)

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

    Thank you, Josh. Based on the methods you provided I tried creating a Python function that calculates the GINI impurity for each independent variable, It really helped deepening my knowledge. thanks again.

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

    I have been sitting on the edge of my seat rooting for the algorithm to figure out that age is the only valid indicator for whether people like an old movie.
    Only to realize that soda is a valid indicator to deduct somebodies age and that the final outcome suprisingly, makes sense.

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

    You know your content is fire when even the professor at our university used your videos in his lectures.

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

    about two weeks ago i was trying to learn how the slit is made on numerical data for best split. I was using python for this and was always setting the split space with np.linspace, to find the best split, but the way you showed with averaging a sorted list is very intuitive. If I have only watched this video it would let me save few days of learning how to manually calculate information gain and best split to better understand how DT is working. Great video!

  • @jakiestoto6087
    @jakiestoto6087 Місяць тому +1

    Just found this channel, already know it's awesome, helps me a lot!

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

    this is BY FAR! one of the best explanations ever!

  • @sebastianscharnagl3173
    @sebastianscharnagl3173 3 місяці тому +1

    Thanks man! I just love how easy to follow your ’Quests are!

    • @statquest
      @statquest  3 місяці тому

      TRIPLE BAM!!! Thank you so much for supporting StatQuest!!! :)

  • @leylayim
    @leylayim 3 роки тому +9

    You might be the best teacher I've ever had :D

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

      Thank you very much! :)

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

    Hey Josh, I am about to go into my last exam before I graduate and this is the last video I'm watching for a topic that was covered in a day I missed
    I'm sure you won't see this but thank you for all the help you've done

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

      Thanks and good luck on your exam! Let me know how it goes.

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

    Josh, your videos do help me as visual Lerner a lot. Thanks.

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

    You are such an amazing teacher Josh!

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

    All videos are golden. Thank you StatQuest!

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

    Please I want u to know that u are something like jesus of statistic, the clarity of yours explanation has no competition at all, thank you

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

      Thank you!

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

      Just bought the book, hope it would help you to continue your work 🧑‍🎓

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

      @@ettoremiglioranza2959 Hooray!!! Thank you so much for supporting StatQuest!!!

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

    Best channel on youtube, such a treasure!

  • @howiegwok3703
    @howiegwok3703 Місяць тому +1

    Just fantastic! You are doing a job as great as ISLP!

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

    this was the most exciting and crystal clear explanation . thanks a lot

  • @belgees6759
    @belgees6759 3 місяці тому +1

    Thank you very much. Please continue creating videos like this. These helps a lot.

  • @supersql8406
    @supersql8406 Рік тому +5

    I would be working for NASA by now if all my teachers/Profs were as good and concise as Mr Josh!

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

    tmwr is my ML exam and here i am brushing past my concept in x2 speed this man here is a legend i would suggest beginners to watch his videos

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

      Thanks!

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

      @@statquest keep teaching and entertaining us students love from India

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

      @@devarghyaray Good luck with your exam! :)

  • @driftypencil0148
    @driftypencil0148 5 місяців тому +2

    Absolutely fucking brilliant. Love this video. Such a simple explanation. Brilliant.

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

    Thank you SO much Josh. This has been the most helpful guide on decision trees I have come across. :)

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

    Hi Josh,
    Many many thanks for you invaluable videos which make complex concepts / models easier to understand!
    Not sure if you ended up finding where Gini comes from, Wikipedia has is as being named after and Italian mathematician. "Gini impurity
    Gini impurity, Gini's diversity index,[23] or Gini-Simpson Index in biodiversity research, is named after Italian mathematician Corrado Gini and used by the CART (classification and regression tree) algorithm for classification trees. " (source Wikipedia)

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

    Very nicely explained! I can't find better explanation than this!! Double Bam!!

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

    It's innovative way of teaching. thanks for creating and uploading.

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

    Couldn't resist to thank you a SECOND TIME!!

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

    Thanks for explaining many complex concepts in simplest way.....plz upload more data science basics

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

      Thanks! I'll keep that in mind! :)

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

    Even my mother could build a decision tree with this video.

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

    Your explanations are always the best. Thank you

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

    Thank you for explaining it in a so easy way to understand.

  • @ShwetaSingh-ry3gd
    @ShwetaSingh-ry3gd 3 роки тому +1

    Josh...I love you man ...you really making the concepts clear n easy for us.. thanks, thanks n big thanks...Lots of Love from my side and INDIA...

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

      Thank you very much! :)

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

    Thanks in a million! Very well explained. This is the nth time that I am watching this again. Great content. Awesome. I couldn't find this explanation--simply put anywhere else. “Great teachers are hard to find”. Grade: A++ 💥

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

      Thank you very much! :)

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

    you talk to me like i'm 5 years old, and i LOVE it

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

    Just what I needed to help me with my machine learning class

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

    You are amazing. Great content, pleasing visuals, and great songs.

  • @user-lq1cs
    @user-lq1cs 2 роки тому +1

    CLEARLY EXPLAINED SIR THANK YOU!

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

    How could anyone dislike "Cool As Ice?" Vanilla Ice is the man!

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

      That is the eternal question! :)

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

    wow...best explanation ever..I'm impressed. Thanks a lot

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

    Thank you for your explaination. It is so clear to understand.

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

    Hey thank you so much. Your video is easy to follow. I can tell that you put efforts and heart in it!

  • @K-mk6pc
    @K-mk6pc 3 місяці тому +1

    Great explanation for the DT
    !!!

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

    Thank you a ton for these Josh, these explanations are super clear. Love the humor too.

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

      Thank you very much! :)

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

    Recently I have purchased your book. BTW Im from India. BAMM !!! Its nice

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

      Thank you very much for supporting StatQuest!!! BAM! :)

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

    That was very informative. I can do my homework thanks to this video. Thank you so much.

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

      Glad it was helpful!

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

    NOW YOU MADE IT MORE CLEAR COPARED TOT HE PREVIOUS VIDEO THANK YOU

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

    This just happens to be using the same pdf file our professor provided , super helpful , thank you !!!

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

      Hmmm...Are you saying your professor provided you with a PDF of this exact video?

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

      @@statquest Yes he did , we don't really question what material professors use but , seeing the watermark , i came here to understand what the lesson was about and I wasn't disapointed

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

      @@crowbartwisted8738 OK.

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

    You're a hero Josh, thankyou 🧠

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

    Why is there no one commenting about the subtle comedic genius this video has

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

    such a simple and beautiful explanation...BAM!

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

    what a great teacher>>>>

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

    Josh, thanks for these videos and the awesome intros. Your channel really helps me study for my bioinformatics coursework and exams. Much love 💖

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

      Good luck with your exams! :)

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

      Thanks 🙏🏼💖

  • @PeruguCharanraj-hf9hr
    @PeruguCharanraj-hf9hr 9 місяців тому +1

    happy to say that knowledge people are 🥳still alive in the universe.....

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

    Best Explanation I have ever saw!!!