Тёмный

Machine Learning Fundamentals: The Confusion Matrix 

StatQuest with Josh Starmer
Подписаться 1,2 млн
Просмотров 680 тыс.
50% 1

One of the fundamental concepts in machine learning is the Confusion Matrix. Combined with Cross Validation, it's how we decide which machine learning method would be best for our dataset. Check out the video to find out how!
NOTE: This video illustrates the confusion matrix concept as described in the Introduction to Statistical Learning, page 145.
For a complete index of all the StatQuest videos, check out:
statquest.org/video-index/
If you're not already familiar with cross validation, check out the Quest: • Machine Learning Funda...
If you'd like to support StatQuest, please consider...
Buying The StatQuest Illustrated Guide to Machine Learning!!!
PDF - statquest.gumroad.com/l/wvtmc
Paperback - www.amazon.com/dp/B09ZCKR4H6
Kindle eBook - www.amazon.com/dp/B09ZG79HXC
Patreon: / statquest
...or...
RU-vid Membership: / @statquest
...a cool StatQuest t-shirt or sweatshirt:
shop.spreadshirt.com/statques...
...buying one or two of my songs (or go large and get a whole album!)
joshuastarmer.bandcamp.com/
...or just donating to StatQuest!
www.paypal.me/statquest
Lastly, if you want to keep up with me as I research and create new StatQuests, follow me on twitter:
/ joshuastarmer
Lastly, a big thanks goes to Cesar Diniz for the Portuguese subtitles.
0:00 Awesome song and introduction
0:24 Motivation for confusion matrices
1:38 Definition of confusion matrix and related terminology
2:44 Confusion matrix example
3:41 Comparing confusion matrices
4:47 A 3x3 confusion matrix.
6:20 Large confusion matrices
6:38 Summary of concepts and main ideas
#statquest #confusionmatrix #ML

Опубликовано:

 

2 авг 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 667   
@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/
@TheBluesFlame
@TheBluesFlame 4 года назад
Understood the concept within 2 mins, something my professor was not able to achieve in a three hour lecture, and this video is free to watch. Thank you for the informative and extremely helpful video!
@statquest
@statquest 4 года назад
Awesome! :)
@ravimishra8564
@ravimishra8564 2 года назад
Lol
@tsunamio7750
@tsunamio7750 Год назад
This is the magic of RU-vid. Shorter videos are often more information-dense and have "less noise" -> Less text = less things that you will mistakenly focus on instead of the true Banger concept. Teachers spend 30s explaining what we will learn. Everybody misses this part and are confused for th rest of the course. Here, we have a full 2-5min explanation of what we are talking about, then we delve in the subject.
@LeSandWhich
@LeSandWhich Год назад
MERICA BABY!!!
@godspowerchukwuma2248
@godspowerchukwuma2248 Год назад
This is me watching this 5 years after graduating from higher institution and I am understanding it completely for the first time....school was truly annoying, they made even the simplest things feel so complicated and hard to understand
@read89simo
@read89simo 5 лет назад
the Confusion matrix is not so confusing anymore
@statquest
@statquest 5 лет назад
Nice! :)
@thud93factory51
@thud93factory51 5 лет назад
I see what you did there
@yv6358
@yv6358 3 года назад
@@thud93factory51 Everyone can see what he did there.
@Dineshkumar-bf7wi
@Dineshkumar-bf7wi Год назад
😂😂😂😂
@ronyroy2049
@ronyroy2049 4 года назад
I keep coming back for the BAAAMMMM !!!
@statquest
@statquest 4 года назад
Hooray! :)
@gyulboxing
@gyulboxing 2 года назад
If my software venture succeeds, then I hugely owe it to you. Your pedagogical approach in the topic will benefit many individuals/teams like me. Thank you, sir!
@statquest
@statquest 2 года назад
Wow, thank you!
@etornamtsyawo6407
@etornamtsyawo6407 Год назад
Statquest is simply a lifesaver!
@thepraisejames
@thepraisejames 9 дней назад
This is the best video on confusion matrix I have watched. Once again, analogies and storytelling to the rescue
@statquest
@statquest 9 дней назад
Thanks!
@alexandrebernat1405
@alexandrebernat1405 3 года назад
Had to sign up as a member of StatQuest and support your initiative. Thank you so much for making all this content available. Greetings from Brazil, Josh!
@statquest
@statquest 3 года назад
Muito obrigado!!! Thank you very much for your support. It means a lot to me.
@thehermitthetower1126
@thehermitthetower1126 2 года назад
I'm now double certified in data science, and singly so in digital forensics. I began with stat quest, and I keep using it for refreshers if I have a meeting or interview. Here I am, prepping for possible interview questions that come up a lot.
@statquest
@statquest 2 года назад
Good luck with your interview! :)
@taheralipatrawala7300
@taheralipatrawala7300 2 года назад
By double certified you mean dual degree?
@thehermitthetower1126
@thehermitthetower1126 2 года назад
@@taheralipatrawala7300 no, i was in a coding boot camp but they kept dropping the ball so i was stuck waiting for long periods of time while they fixed mistakes and put the curriculum on hold so i enrolled in another course and they both ended up finishing around the same time. Then i enrolled in something else after, all the while i have a growing project portfolio full of cool projects people like discussing, which is pretty big if you are good at the interview stage. Tech is an interesting field in this respect: experience and education are both good, but both is great.
@braulioandre2918
@braulioandre2918 2 года назад
What are sort of questions come up a lot during interviews for a data science role?
@venkydk
@venkydk 3 года назад
The Intro song gives a great relief for us to get rid of confusion...
@statquest
@statquest 3 года назад
:)
@katwoods8514
@katwoods8514 2 года назад
I realize you should know: half of the time I like your videos, it's not because of the teaching. It's just me loving your songs and how you whisper excitedly "StatQuest!" at the beginning. It's the best!
@statquest
@statquest 2 года назад
bam!!! :)
@JingwenZhou
@JingwenZhou 3 года назад
You made me start loving maching learning and statistics, thank you!
@statquest
@statquest 3 года назад
Hooray! :)
@lck2978
@lck2978 Год назад
Wow very straight forward and clear to understand! I really appreciate the table of contents and bookmarks you've laid out as well. Even for just a short video! There is so much, even too much, information out there on various topics. And too many people just give a talk, pouring out their expertise without considering how fast they're going, where their audience is coming from. I felt that wasn't as much the case here. Great job!
@statquest
@statquest Год назад
Thank you! :)
@vivekakaviv
@vivekakaviv 4 года назад
"In this case the machine learning algorithm didn't do very well, but can you blame it?, These are all Terrible movies!!... BAM" I laughed like hell. Love StatQuest.
@statquest
@statquest 4 года назад
Thank you! :)
@NM-vw6xq
@NM-vw6xq 3 года назад
BAM!
@nickgarciacrawford
@nickgarciacrawford 3 года назад
HAHAHAH same!!! BAM!!!
@mostinho7
@mostinho7 4 года назад
1:30 To test how each machine learning model performs with our test data, we can use a confusion matrix. Let’s say we have two outcomes from our classification model, either true or false, then the rows can be the predicted values for our model (true and false) and the columns can be the actual truth results of our data (true and false) Data points can be classified by our model as true positive (both predicted and actual are true) or false positive (predicted is true but actual is false) or false negative (predicted is false but output is true) or true negative (predicted is false and actual is false) 4:30 using confusion matrix to compare random forest and logistic regression. 5:15 confusion matrix for multiple class classification, the diagonal represents number of true positives
@hendsaud134
@hendsaud134 2 года назад
I was miserable but you boosted my mood, the intro is on point, BAM!
@statquest
@statquest 2 года назад
bam! :)
@f.s.8443
@f.s.8443 Год назад
Thank you so much! You explained in 8 minutes what my Data Science Professor took forever to explain. It was so clear and concise.
@statquest
@statquest Год назад
Glad it was helpful!
@yangwang6805
@yangwang6805 5 лет назад
Very clearly explained, thank you! As good as always!
@statquest
@statquest 5 лет назад
Hooray! :)
@TheMediinaa
@TheMediinaa 2 года назад
Very nice, I'm dealing with the Kuzushiji-49 dataset, and so I have a 49x49 confusion matrix. Helped clear things out a lot!
@statquest
@statquest 2 года назад
bam!
@SoftwareTICs
@SoftwareTICs 3 года назад
I needed to understand confusion matrix as soon as possible. I learned in less than 10 minutes... great!
@statquest
@statquest 3 года назад
Bam! :)
@pablouribe1522
@pablouribe1522 Год назад
I really liked how you mixed the sentiments in the bams, depending on the results! Great videos!
@statquest
@statquest Год назад
Thank you! :)
@shinyskystar
@shinyskystar 10 месяцев назад
Statquest is here to explain things very well, leaving me worry-free. Thank you, Mosh, for being here.
@statquest
@statquest 10 месяцев назад
bam!
@unpatel1
@unpatel1 2 года назад
Confusion Matrix is really confusing but you clearly explained it! Great job, Josh!! Thank you.
@statquest
@statquest 2 года назад
Glad it was helpful!
@cajogos
@cajogos 4 года назад
Woah, this whole confusion matrix finally made sense in my head, only took 6mins! I watch at 1.25x speed ;) gotta learn fast! Thanks a lot Josh, subscribed!
@statquest
@statquest 4 года назад
Hooray! I'm glad the video was helpful. :)
@blessinglotus
@blessinglotus 3 года назад
Thank you for explaining the Confusion Matrix! This is super helpful. I keep coming back for more of your videos! THANK YOU.
@statquest
@statquest 3 года назад
Glad it was helpful!
@whomisac4616
@whomisac4616 2 года назад
I come back for the BAM.
@lizny9261
@lizny9261 5 лет назад
I laughed at that < bam. > I am a big fan of your BAM videos! lool
@josevaldes7493
@josevaldes7493 Год назад
Thank! I speak spanish and I'm learning english. Your videos are amazing and I'll tried to make videos of statistics in spanish. You are an inspiration to me thanks soo much
@statquest
@statquest Год назад
bam! :)
@harkirehal258
@harkirehal258 3 месяца назад
Came across Statquest after almost giving up on learning ML. Things are starting to make sense and are fun now! Amazing channel with amazing explanations!
@statquest
@statquest 3 месяца назад
Great to hear!
@arunavabhattacharya571
@arunavabhattacharya571 4 года назад
I rewatched the bootcamp recording which explained confusion matrix for 20 minutes and was still left confused until statquest came in an explained the concept in less than 7 minutes. BAM !!!
@statquest
@statquest 4 года назад
BAM!!! :)
@jessstuart7495
@jessstuart7495 5 лет назад
False Positive - Type 1 Error - Reject a true null-hypothesis. False Negative - Type 2 Error - Fail to reject a false null-hypothesis.
@londonstudioliving
@londonstudioliving 3 года назад
Suffering on my CS DEGREE. You are a saviour thanks! totally made this topic clear for me
@statquest
@statquest 3 года назад
I'm glad my videos are helpful.
@lawrencetaulk7898
@lawrencetaulk7898 3 года назад
you made me so clear with Confusion Matrix. Great job, BAM .
@statquest
@statquest 3 года назад
Glad it was helpful!
@achus76
@achus76 3 года назад
your videos are so enjoyable, makes it a joy to learn the stuff...esp the BAM :)
@statquest
@statquest 3 года назад
Glad you like them!
@asifiqbal12141286
@asifiqbal12141286 4 года назад
OMG!!! You explain each and everything very explicitly.. Thanks buddy. I Subscribed...
@statquest
@statquest 4 года назад
Hooray! Thank you! :)
@blessingadeyemi1289
@blessingadeyemi1289 2 года назад
I was drawn from the get go. The concepts were clearly explained and it was a good watch.
@statquest
@statquest 2 года назад
Bam! :)
@agentanakin9889
@agentanakin9889 5 лет назад
A Harvard course introduced the confusion matrix to me and it was thoroughly confusing. You explained it within the first 2 minutes of this video.
@statquest
@statquest 5 лет назад
Awesome! :)
@ceciliaserafini
@ceciliaserafini 5 лет назад
BAM!!! Thank you! Original and clear explanation!
@statquest
@statquest 5 лет назад
Hooray! You're welcome. :)
@KIMNEG
@KIMNEG 3 года назад
Unconfused way of explaining the Confusion Matrix. Thanks !!!
@statquest
@statquest 3 года назад
Bam! :)
@efrainplaza6259
@efrainplaza6259 5 лет назад
Excellent explanation, thanks!
@vijaikannan3143
@vijaikannan3143 Год назад
WOW .... Beautiful Explanation in a simple and Understandable way with diagrams... Thanks a lot. Helped me a lot to understand in a crystal clear way.
@statquest
@statquest Год назад
bam! :)
@gabrielkalb
@gabrielkalb 9 месяцев назад
this series of videos are just amazing, thank u so much
@statquest
@statquest 9 месяцев назад
Thank you!
@quangminh6281
@quangminh6281 4 года назад
This video saved my life. Thank you so much
@statquest
@statquest 4 года назад
Bam! :)
@etornamtsyawo6407
@etornamtsyawo6407 Год назад
I didn't sweat it at all! I just moved to youtube and searched: Statquest confusion matrix 😀😀😀
@statquest
@statquest Год назад
TRIPLE BAM! :)
@dzmitryk9658
@dzmitryk9658 2 года назад
Thank you! This clarified a new concept for me once again!
@statquest
@statquest 2 года назад
bam! :)
@mahbleh404
@mahbleh404 5 месяцев назад
5 years old videos and still super useful and one of the best playlist. thank u for the videos
@statquest
@statquest 5 месяцев назад
Thanks!
@maryameboutkhil6909
@maryameboutkhil6909 2 года назад
Thank you so much for your explanation! Very very informative and easy to understand!
@statquest
@statquest 2 года назад
Glad you enjoyed it!
@user-ew1ql2qo7h
@user-ew1ql2qo7h 11 месяцев назад
Mind Blowing Explanation !! Even a primary school kid could understand these concepts. Take a bow, Josh !!!
@statquest
@statquest 11 месяцев назад
Thanks!
@aryafedrik5786
@aryafedrik5786 3 года назад
hey this is my first time watching your video, and thank you for your explanations about confusion matrix i like it. i'm still student
@statquest
@statquest 3 года назад
Glad it was helpful!
@jessiedeemarkgingo6074
@jessiedeemarkgingo6074 4 года назад
Thank you for making confusion matrix not confusing at all. :)
@statquest
@statquest 4 года назад
Thanks! :)
@JoystickJunkiesTV
@JoystickJunkiesTV 2 года назад
The comment pasted below is underrated! I experienced the same thing and you were a great help. You've got a new sub. Good Job! TheBluesFlame 2 years ago Understood the concept within 2 mins, something my professor was not able to achieve in a three hour lecture, and this video is free to watch. Thank you for the informative and extremely helpful video!
@statquest
@statquest 2 года назад
Awesome, thank you!
@thechesslobster2768
@thechesslobster2768 3 года назад
I just want to say thank you so much man, i've been sucking ass in my machine learning class, and you've helped me out so much, I love how you explain things.
@statquest
@statquest 3 года назад
Thank you! Good luck with your class.
@tsunamio7750
@tsunamio7750 Год назад
My terrible joke apart, your explanations are wonderful. I can't thank you enough! Done once, forever and for everyone. Who knows, your name might survive the corroding waves of history. A little something often takes unexpected proportions, even long after the author is gone.
@statquest
@statquest Год назад
Thanks! :)
@shanakaj007
@shanakaj007 5 лет назад
Amazing video and an amazing channel
@Redox_Adi
@Redox_Adi 6 месяцев назад
Thanks for helping me to get out of this problem,as today is my Artificial intelligence exam,love from India.
@statquest
@statquest 6 месяцев назад
Good luck! :)
@David-cx3fc
@David-cx3fc 2 года назад
This helped so much right when I needed to know this!!
@statquest
@statquest 2 года назад
Bam!
@shivamsood8385
@shivamsood8385 3 года назад
awesome explanation. loved the BAM!!
@statquest
@statquest 3 года назад
Glad you liked it!
@NastyMonke
@NastyMonke Год назад
I have no idea how such a beautiful content have so low views and subscribers. Josh, you da best my man ❤
@statquest
@statquest Год назад
Thanks!
@Aljavaid
@Aljavaid 4 года назад
Best Intro EVER
@statquest
@statquest 4 года назад
Thanks! :)
@AlphaVijayan
@AlphaVijayan 2 года назад
Its very clear and easy to understand. God bless you sir
@statquest
@statquest 2 года назад
Thank you!
@urjaswitayadav3188
@urjaswitayadav3188 5 лет назад
Thanks for this! Very clearly explained indeed :)
@statquest
@statquest 5 лет назад
Thank you! :)
@cruzmonte4614
@cruzmonte4614 11 месяцев назад
Best channel, duly explained
@statquest
@statquest 11 месяцев назад
Thanks!
@buttercrazy30
@buttercrazy30 5 лет назад
Thanks for the video, very informative!
@statquest
@statquest 5 лет назад
Hooray!!!! :)
@vishalrai2859
@vishalrai2859 3 года назад
you are a great teacher no can match your standard at least on youtube
@statquest
@statquest 3 года назад
Thank you very much! :)
@xujingee
@xujingee 3 года назад
Thanks so much for making these videos! They are great! I love the silly songs too.
@statquest
@statquest 3 года назад
Glad you like them!
@npraneeth5844
@npraneeth5844 2 года назад
Very clean and clear cut explanation👍🏻
@statquest
@statquest 2 года назад
Thank you!
@samarthtandale9121
@samarthtandale9121 Год назад
Awesome and Easy Explanation !!!
@statquest
@statquest Год назад
Thank you!
@MrKingoverall
@MrKingoverall 3 года назад
I love StatQuest, StatQuest I love.
@statquest
@statquest 3 года назад
BAM! :)
@MehmetMustafaICER
@MehmetMustafaICER 5 лет назад
Very good explanation. Thanks.
@statquest
@statquest 5 лет назад
Thank you!
@kiouria90
@kiouria90 2 года назад
You are the best by far!
@statquest
@statquest 2 года назад
Thank you!
@nossonweissman
@nossonweissman 2 года назад
Your content is so beautiful, it makes me want to cry
@statquest
@statquest 2 года назад
Thank you!
@yudhisthirsingh8401
@yudhisthirsingh8401 3 года назад
The matrix returned by the sklearn's confusion_matrix is in opposite order. Just wanted to point it if someone is thinking, got me confused for a little while. Great explanation Josh!
@statquest
@statquest 3 года назад
Yep, I originally based this on a confusion matrix that I got from R. Different APIs give different orientations.
@pranavjain9799
@pranavjain9799 2 года назад
Thank you so much. This was incredibly helpful.
@statquest
@statquest 2 года назад
Bam!
@drnotebook
@drnotebook 4 года назад
Excellent explanation !! Thank you.
@statquest
@statquest 4 года назад
Thanks! :)
@wasifallvi5468
@wasifallvi5468 Год назад
Superv Explanation, Understand it very well. Thanks a lot StatQuest
@statquest
@statquest Год назад
Glad it was helpful!
@DataScienceAI-rf4kx
@DataScienceAI-rf4kx 6 месяцев назад
revise the concepts ! hooray ! tiny bam , big bam!! love you joshu
@statquest
@statquest 6 месяцев назад
:)
@wanderingseeker2932
@wanderingseeker2932 2 года назад
Guy just simplified "THEEE CONNFFUSION MAATTRIXX" (reverberating sound) Thanks Josh :)
@statquest
@statquest 2 года назад
bam! :)
@msctube45
@msctube45 3 года назад
Thank you for this informative and well explained video.
@statquest
@statquest 3 года назад
Thanks!
@suixinTHU
@suixinTHU Год назад
Bam... I found your video and it made my day....
@statquest
@statquest Год назад
Hooray! :)
@samudragupta719
@samudragupta719 5 лет назад
Great explanation!!!!
@statquest
@statquest 5 лет назад
Thank you! :)
@BMSKARATE
@BMSKARATE 2 года назад
Me: learning ML and trying decision trees. YOU: explaining exactly what I'm doing step by step in 1 video.
@statquest
@statquest 2 года назад
bam! :)
@ming8238
@ming8238 2 года назад
This video helped me a lot. Thank you so much.
@statquest
@statquest 2 года назад
Thanks!
@jessssssie
@jessssssie 4 года назад
your explanation is fabulous!!!!
@statquest
@statquest 4 года назад
Thank you! :)
@nicoleluo6692
@nicoleluo6692 Год назад
Bam!!! I fully understand now. Thank you!
@statquest
@statquest Год назад
Bam! :)
@NM-vw6xq
@NM-vw6xq 3 года назад
I'm here for the BAM! ... and awesome learning experience.
@statquest
@statquest 3 года назад
BAM! :)
@tanmoysarkar5848
@tanmoysarkar5848 3 года назад
Feeling satisfied! Thank you!
@statquest
@statquest 3 года назад
BAM! :)
@niphatjirapongwattana6725
@niphatjirapongwattana6725 4 года назад
Haha, I really love your video. They are very easy to understand. Thank you very much
@statquest
@statquest 4 года назад
Thanks! :)
@hadishaaben3665
@hadishaaben3665 3 года назад
thanks for the clear explanation
@statquest
@statquest 3 года назад
Thanks!
@Pilotamericano
@Pilotamericano 2 года назад
thanks! this was very informative and fun and easy as well
@statquest
@statquest 2 года назад
Glad it was helpful!
@sayak
@sayak 3 года назад
BAM! that cleared the confusion. Double BAM!
@statquest
@statquest 3 года назад
YES! :)
@fawzihatem9320
@fawzihatem9320 4 года назад
this was amazing thank you so much
@statquest
@statquest 4 года назад
Thank you! :)
@amitshah1651
@amitshah1651 2 года назад
Trillion BAM. Wonderful Guru, Fun learning.
@statquest
@statquest 2 года назад
Thanks!
@BySixa
@BySixa 2 года назад
Thank you. This has really helped me
@statquest
@statquest 2 года назад
bam!
@venkteshmutalik2518
@venkteshmutalik2518 3 года назад
Great Video , Thank you . Really helped .
@statquest
@statquest 3 года назад
You're welcome!
@chudi7175
@chudi7175 3 года назад
Well explained. Thank you
@statquest
@statquest 3 года назад
Glad you liked it
@rex3616
@rex3616 2 года назад
Excellent video, thanks a lot!
@statquest
@statquest 2 года назад
Thanks!
@amralaarag4563
@amralaarag4563 4 года назад
Really very good explanation , Thank you :)
@statquest
@statquest 4 года назад
Glad it was helpful!
@youaremea8553
@youaremea8553 5 лет назад
You are brilliant super clear
@statquest
@statquest 5 лет назад
Thank you! :)
@SinarJourney
@SinarJourney Год назад
Gotta smash that like and subscribe button, this channel is golden.
@statquest
@statquest Год назад
Thank you!
@keepflying7137
@keepflying7137 3 года назад
Such a wonderful explain
@statquest
@statquest 3 года назад
Thank you! :)
@moones2012
@moones2012 8 месяцев назад
감사합니다!! thank you... this video is really helpful for my categorical data analysis class.. from south Korea,,,,,,,,,,,,,,,,,
@statquest
@statquest 8 месяцев назад
Thank you! If you like this video, check out the korean translation of my book: www.yes24.com/Product/Goods/117173369
@pranavpatil.7
@pranavpatil.7 3 года назад
What an amazing video with the perfect explaination
@statquest
@statquest 3 года назад
Thank you! :)
@pranavpatil.7
@pranavpatil.7 3 года назад
@@statquest I should be thanking you for saving me on my exam-day! 😄 Thanks! Btw you still liking and replying to comments on an old video is a sign of a truly grateful and humble RU-vidr!❤️
@statquest
@statquest 3 года назад
@@pranavpatil.7 Good luck with your exam! I hope it goes well. :)
Далее
ROC and AUC, Clearly Explained!
16:17
Просмотров 1,4 млн
Построил ДЕРЕВНЮ на ДЕРЕВЬЯХ!
19:07
Machine Learning Fundamentals: Cross Validation
6:05
The Confusion Matrix in Machine Learning
8:45
Просмотров 15 тыс.
Machine Learning Fundamentals: Bias and Variance
6:36
The moment we stopped understanding AI [AlexNet]
17:38
Просмотров 831 тыс.
Support Vector Machines Part 1 (of 3): Main Ideas!!!
20:32
Построил ДЕРЕВНЮ на ДЕРЕВЬЯХ!
19:07