Machine Learning Basics: Confusion Matrix & Precision/Recall Simplified | By Dr. Ry @Stemplicity

  Рет қаралды 33,213

Prof. Ryan Ahmed

Prof. Ryan Ahmed

5 жыл бұрын

This tutorial covers the basics of confusion matrix which is used to describe the performance of classification models.
The tutorial will also cover the difference between True Positives, True Negatives, False Positives, and False Negatives which can be described as follows:
• True positives (TP): cases when classifier predicted TRUE (they have the disease), and correct class was TRUE (patient has disease).
• True negatives (TN): cases when model predicted FALSE (no disease), and correct class was FALSE (patient do not have disease).
• False positives (FP) (Type I error): classifier predicted TRUE, but correct class was FALSE (patient did not have disease).
• False negatives (FN) (Type II error): classifier predicted FALSE (patient do not have disease), but they actually do have the disease
The tutorial will also cover the difference between classification accuracy, error rate, precision and recall. These metrics can be summarized as shown below:
• Classification Accuracy = (TP+TN) / (TP + TN + FP + FN)
• Misclassification rate (Error Rate) = (FP + FN) / (TP + TN + FP + FN)
• Precision = TP/Total TRUE Predictions = TP/ (TP+FP) (When model predicted TRUE class, how often was it right?)
• Recall = TP/ Actual TRUE = TP/ (TP+FN) (when the class was actually TRUE, how often did the classifier get it right?)
If you want to learn more, here’s a link to my new machine learning Classification course on Udemy:
www.udemy.com/machine-learnin...
Here’s a link to my new machine learning regression course on Udemy:
www.udemy.com/machine-learnin...
Subscribe to my channel to get the latest updates, we will be releasing new videos on weekly basis:
/ @professor-ryanahmed

Пікірлер: 30
@khaibaromari8178
@khaibaromari8178 7 ай бұрын
This couldn't be explained as easier as this, thanks
@Rishu_Dakshin
@Rishu_Dakshin 8 ай бұрын
Well explained with proper examples. Thanks for the video Dr.Ryan
@Officialjadenwilliams
@Officialjadenwilliams 2 жыл бұрын
Beautiful explanation. Great example as well!
@dr.sangramsinha2784
@dr.sangramsinha2784 Жыл бұрын
Excellent teaching. Thank you so much.
@piyushganar3301
@piyushganar3301 3 жыл бұрын
Great explanation Dr. Ryan. i took your course on udemy and absolutely loved it. You are a great teacher :)
@anujonthemove
@anujonthemove 3 жыл бұрын
This is the best one I have found so far.
@xpertstrategist2216
@xpertstrategist2216 2 жыл бұрын
Well explained. Thanks so much for this explanation. I used it in my final AI thesis project.
@Jdjdhsgxuxu
@Jdjdhsgxuxu Жыл бұрын
I almost cried when I didn’t understand this. All I needed was weed and this video. Thanks.
@ConnectSysTools
@ConnectSysTools 4 жыл бұрын
You are simply awesome!!!!
@mrsachinsd
@mrsachinsd 2 жыл бұрын
Well explained with real example
@javier_medel
@javier_medel 4 жыл бұрын
An amazing explanation. Thanks for clarify the concepts
@Short_Storm
@Short_Storm 2 жыл бұрын
thank you. great explanation
@ambikashetty7624
@ambikashetty7624 2 жыл бұрын
Thanks a lot sir.am confused in class.but now I clearly understood
@mitchellbouchard30
@mitchellbouchard30 5 жыл бұрын
This has helped me !
@cvsnreddy1700
@cvsnreddy1700 4 жыл бұрын
Excellent explanation....thanks
@lloydacquayethompson6789
@lloydacquayethompson6789 4 жыл бұрын
Explicit explanation, thank you
@davida99
@davida99 2 жыл бұрын
WOW thank you
@ashiqhussainkumar1391
@ashiqhussainkumar1391 3 жыл бұрын
Greatly taught
@sidharthmanne226
@sidharthmanne226 4 жыл бұрын
You have interchanged Type 1 error and Type 2 error. Type 1 error is more serious. Hence, you control is by providing an error tolerance denoted by alpha
@sachindubey4315
@sachindubey4315 4 жыл бұрын
Hey dear i also watched your course on udemy on MATLAB ,the lectures of superb i hope this content is also good
@4wanys
@4wanys 3 жыл бұрын
i think you mean the actual true positive when you describe the recall not just the actual true its great explain but this part may be confusing
@Yht624
@Yht624 3 жыл бұрын
Great video !
@professor-ryanahmed
@professor-ryanahmed 3 жыл бұрын
Glad you enjoyed it! thanks Yoke
@Holasticlogger
@Holasticlogger 4 жыл бұрын
This was a very nice video to recall Confusion Matrix topic. Please add AUC ROC curve topics explanation.
@okayokay1979
@okayokay1979 4 жыл бұрын
I just watched that topic in statquest youtube channel, you can watch that really well explained!
@Tommy-zb1si
@Tommy-zb1si 4 жыл бұрын
Any paper that can use as literature for perfomance measures > confusion matrix?
@arjundev4908
@arjundev4908 4 жыл бұрын
Hi, Content is good. however i feel at 2:46 there seems to be incorrect.. when we are considering + as cancer(1) and - as no cancer(0). ideally that is 1-0 which should be False Negatives and 0-1 which should be False Positive.. please correct me if i am wrong.
@liornisimov9367
@liornisimov9367 3 жыл бұрын
Can I assume that the precision measure is less informative because of the small numbers in the TP & FP?
@nkechiesomonu8764
@nkechiesomonu8764 2 жыл бұрын
pls i will like to join your course in udemy "under the hood" but cant find it
@nkristianschmidt
@nkristianschmidt Жыл бұрын
Recall is a weird word to use. Recall = Sensitivity. Sensitivity is also a weird word to use. But text books are text books.
SVM Kernels | Support Vector Machines 101 | By Dr. Ry @Stemplicity
11:57
Prof. Ryan Ahmed
Рет қаралды 1,4 М.
Finger Heart - Fancy Refill (Inside Out Animation)
00:30
FASH
Рет қаралды 28 МЛН
50 YouTubers Fight For $1,000,000
41:27
MrBeast
Рет қаралды 211 МЛН
TPR,FPR,FNR,TNR, Confusion Matrix
25:12
Krish Naik
Рет қаралды 72 М.
Bias Variance Trade-off Easily Explained | Machine Learning Basics
21:42
MFML 044 - Precision vs recall
5:47
Cassie Kozyrkov
Рет қаралды 13 М.
The Confusion Matrix in Machine Learning
8:45
Underfitted
Рет қаралды 15 М.
Making sense of the confusion matrix
35:25
Data School
Рет қаралды 118 М.
This is why Deep Learning is really weird.
2:06:38
Machine Learning Street Talk
Рет қаралды 377 М.