Corrections: 3:18 I should have said the same feature (or variable) can be selected multiple times in a tree. Every time we select a subset of features to choose from, we choose from the full list of features, even if we have already used some of those features. Thus, a single feature can appear multiple times in a tree. 9:28 I say "square" when I meant to say "square root". Support StatQuest by buying my book The StatQuest Illustrated Guide to Machine Learning or a Study Guide or Merch!!! statquest.org/statquest-store/
StatQuest with Josh Starmer - Can you explain more on this? I mean how does it work when same variable is selected more than once... Let’s say for example., we have our root node as Good blood circulation - if it is true then it goes to left node and if is false it goes to right node Then let’s say our internal node on right side is chest pain and then next internal node below it is weight Then as you said we have again selected good blood circulation randomly ... how does it work because right side nodes have bad blood circulation already Selecting variables multiple times makes sense when it is continuous variable because it can used again with different threshold values but how come it works with categorical variable
No, you only make one tree per boostrapped dataset. What I was trying to say was that all columns/variables/features in that bootstrapped dataset are considered at each node.
It’s true. There’s no use in visiting a boolean variable more than once. However, as a general rule, all variables, at least in theory, can be visited more than once in a single tree. The actual implementation may optimize this by omitting boolean variables if they have already been visited.
Please continue what you're doing. UA-cam users are blessed to have you here. Your contents are not long, right to the point, clear and your way of teaching is amazing. If there will be a heaven you will be right in the middle of it.
Beats the Wikipedia articles on these subjects by miles! Perhaps if I was more versed in math, I could just read it like the daily newspaper, but as it is, having this clear visualization and examples is a waay superior learning method!
Your videos are unbelievably simple to follow and intuitive. You know that someone is a master of their craft when they can explain it to someone else in a concise and easy-to-understand way. Well done, and thank you for all of your videos!
I'm studying Data Science at MIT, you really can't imagine Josh how much StatQuest is helping me, and a couple more channels, before I start any topic I like to tackle it first or just take a general idea, and you can't imagine how much your videos helped! Short, concise, and to the point! I even started to like mice man for god sack! Thank you Josh 🙂
Hello, can you share what other channels you watch? I'm a student too, and I wish to gain as much knowledge before looking for a job. Have a wonderful day!
@@jarosawszyc8287 No one is perfect in everything! Look up by the topic, not by the channel, you'll ALWAYS find someone who explains what you looking for in a very simple and very straight forward way.
@@atharvambokar573 I wanted to change my career to a Data Analyst, and got accepted for post graduate at MIT. I literally started from scratch. Plus what is wrong in creditting people for their efforts.
I have no background in Machine Learning and was attempting to understand random forests. Watched a bunch of videos but this was the one that actually made it clear to me. Thanks a lot!
Your "BAM!!" always bring me back to the reality when, eventually, my brain takes a nap during the class haha. It makes me go back and rewatch the issue. I really appreciate your art, sir.
Your videos deserve a million kudos. They should be a legit applied statistics class for biologists like myself. Please continue your amazing work! I invite everybody to support Josh with as little as $1 a month.
Heavily relying on these videos to understand the techniques relevant for my Master Thesis in experimental particle physics. Thank you so much, you are the best!
OMG you saved my day ! I am currently preparing a phd exam, and I was lost about random forest, now I can easily breath thanks to your amazing video ! Thanks a lot
Indeed! Wikipedia is usually a way to get the information more simply than textbooks, but they bombard you with math formulae right from the beginning on these subjects! ^^ So this is so much more intuitive!
I just love your videos. Im attending a bootcamp about Datasceince and all the concepts that the instructor is not explaining as i would understand them, i come to your channel to learn them better. Thanks man ❤❤
@@statquest I am pretty sure StatQuest will be canonized as a "Video Bible of Machine Learning" some time soon. Sooooo, any slight mistake will have a probability (or likelihood?) of huge changes in the course of humankind history. :))
Thank you, Josh, for making things much easier. This 10 minutes tutorial is almost tantamount to reading one whole book about random forest decision tree. I heard the piece at 9:39 as '.... square root of the number of variables...."
I love your content! It's super helpful to have all the information presented verbally and written at the same time. I usually use captions, but those often cover up the content which is annoying and the way you do it is so much better. Plus your intros make me giggle. Thank you so much!
very good approach, genious simplicity and to the point, helps anyone learn(even me). I even stopped skipping the "music" to pay my respects to you Josh!
I love StatQuest. You really make statistics enjoyable. BAM!!!!!!!! Thank you for your time and effort in making these videos. You have helped out a lot of students. Please keep up the good work. Keep them coming.
@@statquest hello there.. could you please clarify the doubt that was asked in your pinned comment.. about choosing the same features again at different level in the decision tree..
@@statquest Hi, I am doing my PhD, I am inspired to do a project just because I learned so much from your video. I learn more from one single video than an entire year of my coursework.
Wow man,, best explanation on earth,, we love you,, I watched and read alooooot about it but was ending up more confused,,, I wish your way of explanation becomes the standard
I enjoy the tutorial and your album a lot. Math + music, what a combination. thanks for the content this helps me more than my couple hundred dollar textbooks.
In evaluating the random forest, you mention: use trees to classify samples that are not used to build the trees. As a result, the number of trees to test an out-of-bag sample is different from one sample to another, aren't? E.g. a sample can be tested by 4 trees (there are 4 trees that do not use the sample to build), while another sample can be tested by 10 trees.
Thank you so much Statquest. in my "quest" to build random forest from scratch in C++, I found this resources soooo usefull. Including the video on the decision tree classifier
Oh Really, This is somewhat what i am working on. I am studying different speedup processes and strategies and I am specifically working on stroke prediction..
sir, you are always so helpful, when I have problems, the first thing came to my mind is to search the relative topic in your videos, looking forward more videos from you, thank you very much!
Was wondering the same thing. If we have 5 features we can't bootstrap with 25. It makes more sense if we have 25 variables, to start with 5 for bootstrapping.
I am loving all these videos. The clarity and simplicity in explaining the concepts. Just want to highlight a small error. I guess it is the square root of number of variables (and not the square) that are typically started with.
Thank you very much for this video! It was a great use of visuals to explain the progression of various aspects of this topic (e.g. eventually using the out-of-bag samples to calculate accuracy)!
My second time commenting on your musics, they are also the best part of the video, watching a study video and a comedy at the same time, I'm so motivated everytime watching your videos very much cuz of the musics lol. You should consider a music PHD as well :)
@@statquest it is helping me a lot Need to make a tutorial on random forest and need to make a presentation so I am using your video as a guideline and explaining it in my own words 😊
Damn! visualizing the trees, and going through it step-by-step, really engraves the workings of decision trees and random forests in my brain in comparison to the head-spinning math formulae on Wikipedia ^^ I mean, when reading on Wikipedia, you have to carefully consider each formulae, instead of just getting the big picture, and being able to consider the applications of it as you go through samples here. It's just a more efficient learning method, no question about it! This is really an example of a video tutorial beating book learning by miles! I mean just 10 minutes, and you can really get the gist of it, then you can start considering the actual implementation of it, and its different forms. Instead of getting bombarded with math right from the start! ^^ I would have liked more information on the nodes instead of keeping them empty though. Also a flow-diagram of the whole algorithm would have been nice. If you have the time and energy to read up on a lot, well, that's the way to do it! it's very rewarding! but I'd direct most people right here if they want to know how advanced decision trees works! As someone who's more intuitive and creative, it's clearly the best way! I can simultaneously think about my own data-sets and applications as I'm watching, whereas reading would take up more mental resources.
Guys check out the book written by him. Its a well written book covering almost everything with crystal clear explanation through diagrams ..must for learning ML.kudos to you sir for writing such a mind blowing book..
Thank you so much for a very easy-and-nice-to-walk-through video! I really enjoyed the explanations and well-prepared slides! Also you made it very nicely paced. Thank you :))
Corrections:
3:18 I should have said the same feature (or variable) can be selected multiple times in a tree. Every time we select a subset of features to choose from, we choose from the full list of features, even if we have already used some of those features. Thus, a single feature can appear multiple times in a tree.
9:28 I say "square" when I meant to say "square root".
Support StatQuest by buying my book The StatQuest Illustrated Guide to Machine Learning or a Study Guide or Merch!!! statquest.org/statquest-store/
StatQuest with Josh Starmer - Can you explain more on this? I mean how does it work when same variable is selected more than once... Let’s say for example., we have our root node as Good blood circulation - if it is true then it goes to left node and if is false it goes to right node
Then let’s say our internal node on right side is chest pain and then next internal node below it is weight
Then as you said we have again selected good blood circulation randomly ... how does it work because right side nodes have bad blood circulation already
Selecting variables multiple times makes sense when it is continuous variable because it can used again with different threshold values but how come it works with categorical variable
For the same bootstrap data set we can make different trees with randomly picked variables?
No, you only make one tree per boostrapped dataset. What I was trying to say was that all columns/variables/features in that bootstrapped dataset are considered at each node.
It’s true. There’s no use in visiting a boolean variable more than once. However, as a general rule, all variables, at least in theory, can be visited more than once in a single tree. The actual implementation may optimize this by omitting boolean variables if they have already been visited.
@@statquest so here randomly 2 is picked at each node without taking into account gini ? Is that right
Please continue what you're doing. UA-cam users are blessed to have you here. Your contents are not long, right to the point, clear and your way of teaching is amazing. If there will be a heaven you will be right in the middle of it.
Thank you very much! :)
Beats the Wikipedia articles on these subjects by miles! Perhaps if I was more versed in math, I could just read it like the daily newspaper, but as it is, having this clear visualization and examples is a waay superior learning method!
Your videos are unbelievably simple to follow and intuitive. You know that someone is a master of their craft when they can explain it to someone else in a concise and easy-to-understand way. Well done, and thank you for all of your videos!
Wow, thank you!
This video is so well made and so well explained that I comprehend the subject matter even while sitting here drunk AF at my keyboard... *hic*
Dang! :)
Well said ! Understanding a subject is more relying on the teacher's skills to explain clearly than to the student's efforts to trying to understand.
I'm studying Data Science at MIT, you really can't imagine Josh how much StatQuest is helping me, and a couple more channels, before I start any topic I like to tackle it first or just take a general idea, and you can't imagine how much your videos helped! Short, concise, and to the point! I even started to like mice man for god sack! Thank you Josh 🙂
Thank you! I'm glad my videos are helpful.
Hello, can you share what other channels you watch? I'm a student too, and I wish to gain as much knowledge before looking for a job. Have a wonderful day!
@@jarosawszyc8287 No one is perfect in everything! Look up by the topic, not by the channel, you'll ALWAYS find someone who explains what you looking for in a very simple and very straight forward way.
@@atharvambokar573 Massachusetts Institute of Technology 🙂
@@atharvambokar573 I wanted to change my career to a Data Analyst, and got accepted for post graduate at MIT. I literally started from scratch.
Plus what is wrong in creditting people for their efforts.
I have no background in Machine Learning and was attempting to understand random forests. Watched a bunch of videos but this was the one that actually made it clear to me. Thanks a lot!
Glad it was helpful!
Your service to the data science community is very very much valuable...!!! Your videos on basics leaves a long lasting memory..!! Thank you..!!
Thank you!
Your "BAM!!" always bring me back to the reality when, eventually, my brain takes a nap during the class haha. It makes me go back and rewatch the issue. I really appreciate your art, sir.
Awesome! :)
Very true. He is so good at teaching!
Your videos deserve a million kudos. They should be a legit applied statistics class for biologists like myself. Please continue your amazing work! I invite everybody to support Josh with as little as $1 a month.
Thank you very much for supporting StatQuest! It means a lot to me.
It just hit me that its called random forest because its a forest of random trees. This channel is pure gold for bioinformatics students
Thanks!
I was required to give a ppt on random forest in my class and after going with such a lucid video I am a felling great. Thanks STATSQUEST
Hooray! :)
dont forget the BAAMMM!!!
I'll keep saying stat-quest is the best stat tutorials channel ever
bam!
easily the best channel for data science/machine learning. respect
Thank you very much! :)
@@statquest agreed 100%
I found this on top of the list while searching and now I don't need any other video to understand it. Thanks
Glad it helped!
One of the best tutorial channels. Keep up the good work and helping us all who are in need.
Thank you so much!!! :)
Your channel has saved my research career
Hooray! :)
Heavily relying on these videos to understand the techniques relevant for my Master Thesis in experimental particle physics. Thank you so much, you are the best!
Thank you! I'm glad the videos are helpful. :)
I'm also using this for my Master Thesis :D
OMG you saved my day ! I am currently preparing a phd exam, and I was lost about random forest, now I can easily breath thanks to your amazing video ! Thanks a lot
Good luck!
Words cannot express how much I love StatQuest!!!!!! Thanks Josh for the amazing videos! I'm definitely gonna recommend StatQuest to my classmates!
Thank you very much! :)
You are the cutest stat teacher i have came across in my life . Lots of LOVE and Respect.
Wow, thank you!
This is absolutely awesome and so clearly explained. I wish all textbooks were like this. Keep it up !!
Indeed! Wikipedia is usually a way to get the information more simply than textbooks, but they bombard you with math formulae right from the beginning on these subjects! ^^
So this is so much more intuitive!
i searched for so many tutorials but no one explained it like you. Thank you!!
Thanks! :)
I really like the pace of these. It helps me get around the terms and have chance for my brain to keep up
Awesome! :)
I just love your videos. Im attending a bootcamp about Datasceince and all the concepts that the instructor is not explaining as i would understand them, i come to your channel to learn them better. Thanks man ❤❤
Glad to help!
I've seen multiple videos and articles explaining Random Forests and I must say this is the best so far. Awesome work!
Thank you very much!!! :)
the way statquest Channel makes learning Maching Learning easy is just B.A.M
Bam! :)
"Sir, after your examination we found that you've got heart disease. BAAM"
"All 100 trees of the random forest predicted that you have a heart disease. HOORAY! "
It is actually "BAAM?" :D
@@phan9995Double baam!!
You're so cool Josh, by only first listening to your song, I knew you'd nail this topic just as usual. You're much appreciated Sir Starmer
Thanks!
Isn't it 'square root' of the number of variables at the end, instead of 'square'?
You are correct. I make a slight mistake.
Absolutely, thats what I was breaking my head to understand and thankfully got it clarified from this comment !!!
Yes You are absolutely Correct..
I was just about to write up this query. Absolutely correct
@@statquest I am pretty sure StatQuest will be canonized as a "Video Bible of Machine Learning" some time soon. Sooooo, any slight mistake will have a probability (or likelihood?) of huge changes in the course of humankind history. :))
Thank you, Josh, for making things much easier. This 10 minutes tutorial is almost tantamount to reading one whole book about random forest decision tree. I heard the piece at 9:39 as '.... square root of the number of variables...."
Thanks! Yes, I made a typo at the end of the video and it is mentioned in a pinned comment.
the presentation is so simple and adorable, and what's more the topic is truly clearly explained! Thanks!! I love this animation and color choice
Thank you very much! :)
I love your content! It's super helpful to have all the information presented verbally and written at the same time. I usually use captions, but those often cover up the content which is annoying and the way you do it is so much better. Plus your intros make me giggle. Thank you so much!
Hooray! I'm glad you like my style! :)
very good approach, genious simplicity and to the point, helps anyone learn(even me). I even stopped skipping the "music" to pay my respects to you Josh!
Thanks so much! I love that you put "music" in quotes. That cracked me up. As long as I get to have my fun, I'm happy to make these videos. ;)
great video, great voice, easy to listen, it's helpful for people who are not native English speakers like me.
Wow, thank you!
Can I say BAAM in an interview after explaining what is Random Forests?
Yes but then interviewer will also say DOUBLE BAAM after kicking you out
@@imran_v1.0 XD
@@imran_v1.0 lmao
@@imran_v1.0 😂🤣😁
haha lol
I love StatQuest. You really make statistics enjoyable. BAM!!!!!!!!
Thank you for your time and effort in making these videos. You have helped out a lot of students.
Please keep up the good work. Keep them coming.
Thank you very much! :)
@@statquest hello there.. could you please clarify the doubt that was asked in your pinned comment.. about choosing the same features again at different level in the decision tree..
I must say,this is the best video! You made it so easy to understand. And the way you explain it is perfect!
Thank you!!! :)
Respect ,The way you have present Random forest
Thank you! :)
Man you're a legend. LOVE Your content especially the music.
Glad you enjoy it!
I love your opening song, it makes the content less stressful!
bam!
I'm in grad school and I'm supposed to "quote" litterature, yet I just watch StatQuest's videos because they are easy and fast.
BAM!
I am saved. This is what my professor struggles to explain for more than an hour. It is so simple.
bam!
In grad school and am planning on applying the RF method to my air quality data. Your videos have been a life-saver!
Awesome and good luck! :)
@@statquest Hi, I am doing my PhD, I am inspired to do a project just because I learned so much from your video. I learn more from one single video than an entire year of my coursework.
Your channel is like a course in ML and Stats but better than most !!!
Thank you! :)
The "Oh no! Terminology/Jargon alert !" always gets me
:)
Wow man,, best explanation on earth,, we love you,, I watched and read alooooot about it but was ending up more confused,,, I wish your way of explanation becomes the standard
Thank you very much! :)
Everytime he starts "Bo pi do pi do pi doo" i inadvertently start laughing
This is the best video I've ever seen to explain Random Forrest! Thanks so much for making this!!Please keep making videos! Love the humor also :)
You're welcome!!! I'm glad you like the video (and my silly jokes)! :)
This video is totally "Out-of-Boot" among all other Random Forest videos on UA-cam 😀
BAM! :)
I trust the information you provide so much, to an extent that I press the like button even before I watch the video
Awesome!!!
After learning so much from your videos and then listening to your beautiful sentimental songs makes me cry! ;)
Thank you very much!!!! :)
I enjoy the tutorial and your album a lot. Math + music, what a combination.
thanks for the content this helps me more than my couple hundred dollar textbooks.
Thank you very much!!!! :)
In evaluating the random forest, you mention: use trees to classify samples that are not used to build the trees. As a result, the number of trees to test an out-of-bag sample is different from one sample to another, aren't? E.g. a sample can be tested by 4 trees (there are 4 trees that do not use the sample to build), while another sample can be tested by 10 trees.
Excellent tutorial! His tutorials are underrated.
Thank you!! I'm glad you like this one! :)
You are a boon to humanity...Hope you make a lot of money:)
That would be awesome! Maybe one day that will happen. :)
Thank you so much Statquest. in my "quest" to build random forest from scratch in C++, I found this resources soooo usefull. Including the video on the decision tree classifier
Glad I could help!
Great video. Very simple and easy to understand. Nice job!
Thank you! I'm glad to hear you like the video. :)
You're the best! Out of many tutorials on Internet...this best explains Random forest and its working! Thank you so much :)
my project is about using random forests on accelerometer data from goats, but Josh is the real goat
bam! That sounds like a pretty cool project!
Oh Really, This is somewhat what i am working on. I am studying different speedup processes and strategies and I am specifically working on stroke prediction..
nice. I am working on an activity tag to classify behavior automatically without observing the animal directly@@aristide_F
sir, you are always so helpful, when I have problems, the first thing came to my mind is to search the relative topic in your videos, looking forward more videos from you, thank you very much!
Great tutorial, as always!
I read lots of blog on Medium app..none of them clarify its so well the you do Mr. stramer. Thanks for your effort to make is so easy
Glad it was helpful!
I wish more medium writers explain more in detail just like statquest's videos
9:36 Typically we start by using the square [root?]
Was wondering the same thing. If we have 5 features we can't bootstrap with 25. It makes more sense if we have 25 variables, to start with 5 for bootstrapping.
I really enjoy your videos, Josh. I just found the pace a bit slow. But I found a solution: play at 1.75 speed! Works like a charm 😄
Thanks! Yes, since people can speed up the playback, I'd rather error on the pace being too slow rather than too fast.
Finally found an ML tutorial without accent.
He has an American accent
@@digit432 lol
This is the best video that very well explains random forests.Very Helpful!
Thank you! :)
Double out-of-bam
I like it! :)
The best explanation for Random forests!
Thank you! :)
double bam!!
Thanks!
This makes it so easy. I understand it well enough to explain it to others. Thanks.
Thank you!
3:37 looks like a warning on a cigarette pack
I am loving all these videos. The clarity and simplicity in explaining the concepts. Just want to highlight a small error. I guess it is the square root of number of variables (and not the square) that are typically started with.
Thanks! That error is mentioned in a pinned comment.
There are 7 idiot heaters who down-voted this amazing video... They probably live in pain!!
:)
Best explanation I found on the topic in youtube
Than you! :)
This patient has heart disease. BAM!! Congrats
:)
Wow! Thank you Josh, only after watching your videos about decision tree and random forest, I really get the concepts of them!
Hooray!!! I glad you like the videos and that they were helpful! :)
Oh my god you made it easy to understand. Please keep this process.
Thanks!
Thank you very much for this video! It was a great use of visuals to explain the progression of various aspects of this topic (e.g. eventually using the out-of-bag samples to calculate accuracy)!
Glad you enjoyed it!
My second time commenting on your musics, they are also the best part of the video, watching a study video and a comedy at the same time, I'm so motivated everytime watching your videos very much cuz of the musics lol. You should consider a music PHD as well :)
BAM! :)
best explanation so far on UA-cam. thank you!!
Thank you! :)
probably these best video fora beginner on the internet. Thanks!
You guys are amazing!!!! So clear and easy to understand especially for me who hate math!!! Thank u!!!
Thanks!
First time here - just wanted to buy you a coffee. You deserve so many likes!
Thank you so much for supporting StatQuest! TRIPLE BAM!!! :)
This is explained brilliantly it's so simple and makes the concept clear
Thank you very much! :)
@@statquest it is helping me a lot
Need to make a tutorial on random forest and need to make a presentation so I am using your video as a guideline and explaining it in my own words 😊
@@abdullahak2204 Explaining it in your own words is the best way to learn. I hope the presentation goes well. :)
@@statquest thank you !
I'll let u know how it goes !!!
I must say I went through a few mathematical books in order to understand it, but this explanation is just BAMMMM!! :)
Hooray! :)
Damn! visualizing the trees, and going through it step-by-step, really engraves the workings of decision trees and random forests in my brain in comparison to the head-spinning math formulae on Wikipedia ^^
I mean, when reading on Wikipedia, you have to carefully consider each formulae, instead of just getting the big picture, and being able to consider the applications of it as you go through samples here. It's just a more efficient learning method, no question about it!
This is really an example of a video tutorial beating book learning by miles! I mean just 10 minutes, and you can really get the gist of it, then you can start considering the actual implementation of it, and its different forms. Instead of getting bombarded with math right from the start! ^^
I would have liked more information on the nodes instead of keeping them empty though. Also a flow-diagram of the whole algorithm would have been nice.
If you have the time and energy to read up on a lot, well, that's the way to do it! it's very rewarding! but I'd direct most people right here if they want to know how advanced decision trees works! As someone who's more intuitive and creative, it's clearly the best way! I can simultaneously think about my own data-sets and applications as I'm watching, whereas reading would take up more mental resources.
Thanks!
You are an amazing teacher/genius.
Thanks! :)
I would give this video a thousand likes if I could. Awesome explanation😍
Thank you very much! :)
Just discovered your channel. I really like your work. Love the funny moments you add in it. Thank you for clarifying those concepts!
Awesome, thank you!
This is incredibly useful and, yet, hilarious.
bam!
Guys check out the book written by him. Its a well written book covering almost everything with crystal clear explanation through diagrams ..must for learning ML.kudos to you sir for writing such a mind blowing book..
Thank you very much! :)
You are the best man , keep doing what you are doing !
Thank you! :)
Really good tutorial. It's always the best to explain using real examples. Good job!!!
This is one lovely presentation on Random Forests! Thanks a ton for making it easy for us to understand.
Thank you very much! :)
Thank you for another great video, i love how you are to the point and explain everything in such an easy way
Glad you like them!
These graphical examples are awesome. I love your videos!!
I am ivy student and I have to say your lecture express clearer than my professor's...
Thank you so much for a very easy-and-nice-to-walk-through video! I really enjoyed the explanations and well-prepared slides! Also you made it very nicely paced. Thank you :))
Thank you!
Thank you! I bet even a child would understand your explanation
Thanks!
I literally didn't understand what the professor was saying in the class, but after watching this video......BAM!!!
Hooray! :)