Machine Learning Fundamentals: Sensitivity and Specificity

  Рет қаралды 332,370

StatQuest with Josh Starmer

StatQuest with Josh Starmer

Күн бұрын

In this StatQuest we talk about Sensitivity and Specificity - to key concepts for evaluating Machine Learning methods. These make it easier to choose which method is best for your data.
For a complete index of all the StatQuest videos, check out:
statquest.org/video-index/
If you're not already familiar with the Confusion Matrix, 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...
KZbin 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
Corrections:
7:28 My wording could be improved. The True Negatives for Troll 2 are the people who were correctly predicted to not like Troll 2.
#statquest #ml

Пікірлер: 348
@statquest
@statquest 4 жыл бұрын
Correction: 7:28 My wording could be improved. The True Negatives for Troll 2 are the people who were correctly predicted to not like Troll 2. Support StatQuest by buying my book The StatQuest Illustrated Guide to Machine Learning or a Study Guide or Merch!!! statquest.org/statquest-store/
@stefanosmandalas6599
@stefanosmandalas6599 4 жыл бұрын
Thanks for this comment, I was wondering during the video.
@LockyLawPhD
@LockyLawPhD 3 жыл бұрын
Thank you for all the great videos! I have learned a lot from you. Will we see a video on Partial Least Squares (regression / SEM) for ML? There are some videos on KZbin but are all very confusing.
@statquest
@statquest 3 жыл бұрын
@@LockyLawPhD I'll keep it in mind.
@freemind.d2714
@freemind.d2714 3 жыл бұрын
And for those who wonder, yes, "Sensitivity " is "Recall"
@falaksingla6242
@falaksingla6242 2 жыл бұрын
Hi Josh, Love your content. Has helped me to learn a lot & grow. You are doing an awesome work. Please continue to do so. Wanted to support you but unfortunately your Paypal link seems to be dysfunctional. Please update it.
@alejandrasevilla2237
@alejandrasevilla2237 4 жыл бұрын
StatQuest should be mentioned in my future Data Scientist Master Diploma. Seriously! Every time I get introduced to a new concept, I come here and.. BAM! it all makes sense.
@statquest
@statquest 4 жыл бұрын
Awesome! Good luck with your Master Diploma. :)
@andyn6053
@andyn6053 3 жыл бұрын
@@statquest I have learned more from watching your videos than from my teacher at the university.
@arvinflores5316
@arvinflores5316 3 жыл бұрын
How's your Masteral now ma'am? I'm starting one too this 2021 :p
@buytfdip7712
@buytfdip7712 Жыл бұрын
Same for me with my Bioinformatics master's! He's awesome
@geosaiofficial1070
@geosaiofficial1070 Жыл бұрын
same thing for me. Thank you
@ShaileshDagar
@ShaileshDagar 4 жыл бұрын
Having trained myself on other StatQuest video, I predicted that I would understand this video and I actually understood this video, so that looks like a True Positive right there.
@statquest
@statquest 4 жыл бұрын
BAM! :)
@littleKingSolomon
@littleKingSolomon 3 жыл бұрын
It isn't English that u r speaking. U r speaking ML
@nooreldali7432
@nooreldali7432 Жыл бұрын
@@littleKingSolomon I read ML as machine language 😂
@ritikkhatri
@ritikkhatri 4 жыл бұрын
This channel is a gem. Glad I found it!
@statquest
@statquest 4 жыл бұрын
Awesome! Thank you very much. :)
@littleKingSolomon
@littleKingSolomon 3 жыл бұрын
Watched confusion matrix statquest, and I forgot to like. So I paused in the middle of this one, went back and liked then came back. Because u deserve more than just likes. But for now that's all I have to offer. God bless u and thanks
@statquest
@statquest 3 жыл бұрын
Wow, thanks!
@nileshsuryavanshi8792
@nileshsuryavanshi8792 4 жыл бұрын
No one teaches like you, thanks for making such a playlist.
@statquest
@statquest 4 жыл бұрын
Thank you! :)
@DarkLordAli95
@DarkLordAli95 4 жыл бұрын
I only wish that I had found your amazing videos at the start of the semester. oh well, better later than ever, so BAM anyway!!
@statquest
@statquest 4 жыл бұрын
Thanks! :)
@PunmasterSTP
@PunmasterSTP 3 ай бұрын
Out of curiosity, how'd the rest of the semester go?
@adsax1903
@adsax1903 4 жыл бұрын
I listen to ur Quests at 2x speed and yet they are super uber crystal clear. god speed man
@statquest
@statquest 4 жыл бұрын
Nice! :)
@alecvan7143
@alecvan7143 4 жыл бұрын
Your videos are always astoundingly clear and well explained! In fact, you've inspired me to the point of being the first KZbinr I support financially!
@statquest
@statquest 4 жыл бұрын
WOW! Thank you very much! I really appreciate the support. :)
@emmaning992
@emmaning992 4 жыл бұрын
Your channel is honestly gold... I used to think stats is a mystery and it didn't make intuitive sense until I met your channel - now everything makes sense and I enjoy using them. Thank you for making these free and accessible, I really appreciate your effort, dedication and intelligence
@statquest
@statquest 4 жыл бұрын
Thank you very much! :)
@aysegulkul1741
@aysegulkul1741 3 ай бұрын
Size ne kadar teşekkür etsek az. Müthiş videolar gerçekten. Bu kadar iyi ders anlatan bir hocam olmamıştı hiç. Başarılarınızın devamını dilerim.
@statquest
@statquest 3 ай бұрын
Thank you!
@nishantrao5600
@nishantrao5600 3 жыл бұрын
BAM! That's an amazing video. I completely get sensitivity vs specificity now. Thanks!
@statquest
@statquest 3 жыл бұрын
BAM!
@ankitsapra1595
@ankitsapra1595 3 жыл бұрын
This is my go to channel for any stats related knowledge. Thanks Josh for this exceptional channel👏👏
@statquest
@statquest 3 жыл бұрын
Wow, thanks!
@amirmohammadjalili2676
@amirmohammadjalili2676 3 жыл бұрын
Josh Starmer you're awesome and you're really helping the community so much. Many thanks to you sir
@statquest
@statquest 3 жыл бұрын
Thanks! I'm glad you like some of my videos.
@douglasespindola5185
@douglasespindola5185 2 жыл бұрын
That's what I call a great explanation! TRIPLE BAM! Thanks, Josh! Greetings from Brazil!
@statquest
@statquest 2 жыл бұрын
Muito obrigado!
@muthukumarantce
@muthukumarantce 4 жыл бұрын
Always precise and clear video on intuitions. Thank you Josh :) Enjoying Double BAM!!!!!
@statquest
@statquest 4 жыл бұрын
Hooray! :)
@MB-vd6hc
@MB-vd6hc Жыл бұрын
Thanks, Josh, you explained the concept very clearly.
@statquest
@statquest Жыл бұрын
Glad it was helpful!
@umanagaswamy6358
@umanagaswamy6358 4 жыл бұрын
The prelude is absolutely funny :) And the content is amazing, thanks StatQuest 👌
@statquest
@statquest 4 жыл бұрын
Thanks! :)
@janvichokshi4892
@janvichokshi4892 2 жыл бұрын
You explained it so simply ! Just loved this tutorial. Thanks Josh :)
@statquest
@statquest 2 жыл бұрын
Glad you liked it!!
@sonang9495
@sonang9495 4 жыл бұрын
easily understood, clearly explained, this channel is precious for newbies, Thanks ad
@statquest
@statquest 4 жыл бұрын
Thank you very much! :)
@RaynerGS
@RaynerGS 3 жыл бұрын
Amazing class. Way to go! Salute from Brazil.
@statquest
@statquest 3 жыл бұрын
Muito obrigado!
@mohammadsaad7221
@mohammadsaad7221 3 жыл бұрын
Why didn't I find this channel before?? It's a gem!!
@statquest
@statquest 3 жыл бұрын
bam!
@brpawankumariyengar4227
@brpawankumariyengar4227 2 жыл бұрын
All the videos of this Chanel are very well made and are extremely good ….. Thank you so very much ….. I never knew I could get such incredible videos for free …. I will share this channel with All tomorrow.
@statquest
@statquest 2 жыл бұрын
Thank you very much!
@proggenius2024
@proggenius2024 2 ай бұрын
I'm lucky to stumble on this channel before my final exam! How cool is your teaching...wow!
@statquest
@statquest 2 ай бұрын
Good luck on your exam!
@oladamola8690
@oladamola8690 2 жыл бұрын
Josh, I must confess you’re the best !! I can’t thank you enough 🙌🙌
@statquest
@statquest 2 жыл бұрын
BAM! :)
@gangcheng7322
@gangcheng7322 4 жыл бұрын
you are the doctor who saves my time. many applause.
@statquest
@statquest 4 жыл бұрын
Thank you! :)
@ifmohammed6495
@ifmohammed6495 4 жыл бұрын
I really sad that there is no one support such that videos I really think you deserve more
@statquest
@statquest 4 жыл бұрын
Thank you! :)
@xxxsamxxx130
@xxxsamxxx130 Жыл бұрын
best explanation i've ever come across.. thanks a lot..
@statquest
@statquest Жыл бұрын
Glad it was helpful!
@harshkful
@harshkful 4 жыл бұрын
Amazing videos and explanation ! Thanks ..
@statquest
@statquest 4 жыл бұрын
Thank you! :)
@barath961
@barath961 3 жыл бұрын
Thank you so much for fantastic lessons :). Love from TN
@statquest
@statquest 3 жыл бұрын
Bam! :)
@haidyabugom3a133
@haidyabugom3a133 5 ай бұрын
Great explanation! I would like to tell you that our Prof in the college uses your content and suggests it as a reference to understand ML. Thanks a lot for your effort! Really the best KZbin channel .
@statquest
@statquest 5 ай бұрын
Thank you very much!
@fabiof.deaquino4731
@fabiof.deaquino4731 4 жыл бұрын
Quest on! Happy New Year! 👏👍👏
@statquest
@statquest 4 жыл бұрын
Hooray! Happy New Year! :)
@farzanehjmr7523
@farzanehjmr7523 Жыл бұрын
thank you very much for your clear and appealing explanation.
@statquest
@statquest Жыл бұрын
Thank you!
@MajedDalain
@MajedDalain 4 жыл бұрын
such a great explanation and content. thanks a lot
@statquest
@statquest 4 жыл бұрын
Thank you! :)
@saravkumar8058
@saravkumar8058 2 жыл бұрын
Wonderful Mate. Appreciate your work. Your explanation with example is top class!!! Happy that I found this channel. Great work. Thanks a lot for en lighting us on ML concepts.
@statquest
@statquest 2 жыл бұрын
Awesome, thank you!
@saravkumar8058
@saravkumar8058 2 жыл бұрын
@@statquest BAM!
@adityasaxena3903
@adityasaxena3903 4 жыл бұрын
Amazing Content! Keep growing.
@statquest
@statquest 4 жыл бұрын
Thank you very much! :)
@neuodev
@neuodev 2 жыл бұрын
I was alwasy think of Sensitivity and Specifity as if they only can be calculated for 2x2 table. it was a good point from you to apply it on a 3x3 one Thanks!
@statquest
@statquest 2 жыл бұрын
bam!
@punchline9131
@punchline9131 4 жыл бұрын
Great BAM for this video!!!!
@statquest
@statquest 4 жыл бұрын
Thank you!!! :)
@Hardson
@Hardson 4 жыл бұрын
Please, keep making these amazing videos!!!
@statquest
@statquest 4 жыл бұрын
I will! :)
@zhspartan9993
@zhspartan9993 6 ай бұрын
Your videos are awesome, thanks
@statquest
@statquest 5 ай бұрын
Glad you like them!
@technicalescola
@technicalescola 2 жыл бұрын
Brilliant @StatQuest with Josh Starmer.. It is explicitly explained by You
@statquest
@statquest 2 жыл бұрын
Thanks!
@prydefonbah4436
@prydefonbah4436 3 жыл бұрын
Gave practical application in a meaningful way.
@statquest
@statquest 3 жыл бұрын
Thanks!
@LorenceLiu
@LorenceLiu 3 жыл бұрын
You are better than all of my undergrad and grad professors :D
@statquest
@statquest 3 жыл бұрын
Thanks!
@JerryWho49
@JerryWho49 4 жыл бұрын
You made again a great video! Thank you. Maybe you could have mentioned precision and recall (=sensitivity) as both terms are often used, too.
@statquest
@statquest 4 жыл бұрын
Thanks! I'll put that on the to-to list.
@alfonsoreyes9811
@alfonsoreyes9811 3 жыл бұрын
Your vids are awesome!, thank you
@statquest
@statquest 3 жыл бұрын
Thank you! :)
@pratikmishra162
@pratikmishra162 3 жыл бұрын
I am really thirsty and watching statquest! Thank you sire.
@statquest
@statquest 3 жыл бұрын
BAM! :)
@hajarhajar8906
@hajarhajar8906 2 жыл бұрын
Thank you for saving my life!
@statquest
@statquest 2 жыл бұрын
bam!
@prachinainawa3055
@prachinainawa3055 2 жыл бұрын
Woww! It's very much clear. I love it
@statquest
@statquest 2 жыл бұрын
Thank you! 😃
@chloegu4110
@chloegu4110 3 жыл бұрын
Great Explaination! The confusion matrix is really confusing... need to go over this video several times.
@statquest
@statquest 3 жыл бұрын
bam! :)
@lightshinichi8056
@lightshinichi8056 4 жыл бұрын
This channel is awesome and content is so great ,
@statquest
@statquest 4 жыл бұрын
Thank you so much 😀
@pavoldzama4641
@pavoldzama4641 2 ай бұрын
Hello, my suggestion for video I am missing on your chanell - Harmonic mean and F - score for recall and precision. Or at least when I searched your chanell I havent found video on this topic. Thanks for amazing work you are doing.
@statquest
@statquest 2 ай бұрын
Great suggestion!
@ejn2178
@ejn2178 2 жыл бұрын
To be 100% honest I wasn't a big fan of the intro song hahaha but I gotta admit whenever I see new concept or having difficult time to understand topic while studying I come back to this channel. Great work!! It's sorta addictive now hahahaha
@statquest
@statquest 2 жыл бұрын
Bam!
@aleksandrshipilo4467
@aleksandrshipilo4467 3 ай бұрын
Thank you for the lesson)
@statquest
@statquest 3 ай бұрын
Triple bam!!! :)
@Yibioa
@Yibioa 4 жыл бұрын
Hey, can you make a video about Independant Component Analysis, and how this can be used for biological data, such as gene expression data? Btw, my favorite channel. You rock.
@dawnmarielagamba3165
@dawnmarielagamba3165 2 жыл бұрын
FINALLY - I understand thank you!
@statquest
@statquest 2 жыл бұрын
Glad it helped!
@ChituOkoli
@ChituOkoli 4 жыл бұрын
I just discovered your videos yesterday and I subscribed immediately. Thanks a lot! Could you please make a video on precision and recall? Actually, what I would really like to see, more than just the calculations, is help understanding when sensitivity vs. specificity is more useful than precision vs. recall and vice versa. I imagine that a purely calculations video on precision and recall would be very similar to this one on sensitivity and specificity, but knowing when each statistic is more useful in real life applications would be more helpful to me. You touched on that very briefly in this video when you mentioned which is preferred (random forest for higher sensitivity in detecting heart disease versus logisitic regression for higher specificity in confirming that people don't have heart disease), but it would be helpful if you spend more time on those--to me, it is that kind of application that really brings statistics to life.
@ChituOkoli
@ChituOkoli 4 жыл бұрын
@techoji No, they're not. That's why I'm asking for a separate video.
@thotayateeshchandrasai3828
@thotayateeshchandrasai3828 2 жыл бұрын
So good!
@statquest
@statquest 2 жыл бұрын
Thank you!
@hi_10svideos86
@hi_10svideos86 4 жыл бұрын
before statquest path was like false positive for machine learning but after watching this channel my path become true positive.
@statquest
@statquest 4 жыл бұрын
Bam! :)
@sanhitasaxena1542
@sanhitasaxena1542 8 ай бұрын
STATQUEST IS AWESOME!!
@statquest
@statquest 8 ай бұрын
bam!
@t-ranosaurierruhl9920
@t-ranosaurierruhl9920 4 жыл бұрын
Awesome!!
@statquest
@statquest 4 жыл бұрын
Hooray! :)
@AnkitSingh-fw7xy
@AnkitSingh-fw7xy 4 жыл бұрын
More power to you! :)
@statquest
@statquest 4 жыл бұрын
Thank you!
@stevennye5075
@stevennye5075 4 жыл бұрын
well done!
@statquest
@statquest 4 жыл бұрын
:)
@phuocnguyenlethanh3104
@phuocnguyenlethanh3104 6 ай бұрын
I swear this guy release coolest music
@statquest
@statquest 6 ай бұрын
bam! :)
@mehediazad1780
@mehediazad1780 2 жыл бұрын
thank you so much.
@statquest
@statquest 2 жыл бұрын
Bam! :)
@katwoods8514
@katwoods8514 3 жыл бұрын
Troll 2 is the best worst movie ever! Love that you included it as an example.
@statquest
@statquest 3 жыл бұрын
BAM! :)
@sumitjoshi7904
@sumitjoshi7904 4 жыл бұрын
BAM! i love your videos
@statquest
@statquest 4 жыл бұрын
Thank you very much! :)
@maleehahaider8596
@maleehahaider8596 5 ай бұрын
Youre awesome Josh. Keep going! i have recommended your channel to all those bitten by sadistics... ahem! statistics!
@statquest
@statquest 5 ай бұрын
Awesome! Thank you!
@parzynamea4701
@parzynamea4701 2 жыл бұрын
now i know, when to use which classification model , lovely mates thank you
@statquest
@statquest 2 жыл бұрын
bam!
@hoangminhthai4055
@hoangminhthai4055 9 ай бұрын
This video is about the way to calculating sensitivity and specificity. Sensitivity = True positive /( True positive + False negative ) Specificity = True negative / ( True negative + False positive) For the case, we have more than two category, we will get these two numbers according to specific category
@statquest
@statquest 9 ай бұрын
bam!
@sandipbhattacharjee3304
@sandipbhattacharjee3304 2 жыл бұрын
Thanks!
@statquest
@statquest 2 жыл бұрын
WOW!!! THANK YOU VERY MUCH! BAM! :)
@wolverine87833
@wolverine87833 3 жыл бұрын
BAMM!! this guy is a legend.
@statquest
@statquest 3 жыл бұрын
Thanks!
@bashiransari6258
@bashiransari6258 8 ай бұрын
just awesome
@statquest
@statquest 8 ай бұрын
Thanks again!
@victoriaogden8322
@victoriaogden8322 2 жыл бұрын
What if you are hoping to predict something continuous - like the length of an object: Are sensitivity and specificity still used (perhaps by binning and tuning the sizes of bins)? I guess the metric moves from whether the model was right (True Positives and True Negatives) vs. wrong (False pos. and neg.) to how close the model performed to the true value. Would love to hear thoughts on what you would do to assess continuous models instead!
@statquest
@statquest 2 жыл бұрын
When we predict something continuous, we usually use sum of residuals or mean squared residuals.
@calvinfeng5357
@calvinfeng5357 4 жыл бұрын
I rarely see specificity as an evaluation metrics. It seems precision and sensitivity are more commonly used. However, it's very good to know this information!
@statquest
@statquest 4 жыл бұрын
I should have a precision video out soon.
@calvinfeng5357
@calvinfeng5357 4 жыл бұрын
@@statquest That'd be great! I look forward to your newer videos!
@sneezypete382
@sneezypete382 3 жыл бұрын
Josh Starmer, You rock!
@statquest
@statquest 3 жыл бұрын
Thanks!
@geraldoaugustoguto8442
@geraldoaugustoguto8442 4 жыл бұрын
Amazing Video. Thanks. What're relations between Precision/Recall and Specificity/Sensitivity?
@ShivamTiwari-on2kl
@ShivamTiwari-on2kl Жыл бұрын
I have spent so much time on this and now I finally understand it. Sensitivity and Recall are the same. They tell us how many of the true values were truly predicted. Sensitivity tells us how many false values are correctly predicted. Precision tells us how many true values of all the true values are correctly predicted.
@ShivamTiwari-on2kl
@ShivamTiwari-on2kl Жыл бұрын
I am sorry if I confuse you further.
@geraldoaugustoguto8442
@geraldoaugustoguto8442 Жыл бұрын
Thanks a million Shivam.
@liranzaidman1610
@liranzaidman1610 4 жыл бұрын
Fantastic
@statquest
@statquest 4 жыл бұрын
Thank you! :)
@mostinho7
@mostinho7 4 жыл бұрын
2:10 specificity example from 2x2 confusion matrix Sensitivity is true positives identified by the model / (true positives + false negatives) Specificity true negatives identified by the model / (true negatives + false positives) 4:50 using specificity and sensitivity to compare models Todo continue
@pranaymehta8471
@pranaymehta8471 3 жыл бұрын
Thanks for the video. Truly love it. Quick question1 - You mentioned that if correctly identifying negatives is more important, then we should put more importance on Specificity. But how do we decide which class is positive and which is negative. For instance, I am working on fraud detection problem and only 2% of transactions/examples are rejected. What would be my positive class and negative class in that case? Question 2 - Can we have a video on precision and recall ? I find it very confusing so as which Precision and Recall should I be computing when working with imbalanced classification problems. Should I compute Precision and Recall for Majority Class (accepted transactions) or should I compute these metrics for Minority Class(rejected transactions). Any insights on this would be really helpful.
@statquest
@statquest 3 жыл бұрын
First, you have to decide what you want to detect. If you want to be sensitive to the rejected transactions/examples, then you need a method that is sensitive to the minority class. I talk about this towards to the end of my ROC video, so, for more information, see: kzbin.info/www/bejne/apu1c4V6l6-Yo68
@tanphan3970
@tanphan3970 3 жыл бұрын
Hello Josh, Thank for directly explain about Sensitivity and Specificity. I read some term about Precision and Recall in Confusion Matrix. And I make confuse about using those concepts when choosing a algorithm for training. When do we take care Precision/Recall and Sensitivity/Specificity? Sorry if my question is in wrong in your flow! Thank you and have a good day!
@statquest
@statquest 3 жыл бұрын
First see: kzbin.info/www/bejne/apu1c4V6l6-Yo68
@ozonefriendlyman
@ozonefriendlyman 2 жыл бұрын
Love you videos. Correction at 10:16 - The sensitivity for Cool as Ice not 17 / (17 + 175)
@statquest
@statquest 2 жыл бұрын
nice!
@skumarr53
@skumarr53 4 жыл бұрын
Thanks for the video. Can you make videos on Bayesian statistics?
@statquest
@statquest 4 жыл бұрын
It's on the "to-do" list, but it won't be for a while.
@arjunkaarat9326
@arjunkaarat9326 4 жыл бұрын
Hey Josh! Your videos are excellent. Would making similar videos on GLM and probability distributions need significant lift? Maybe it's in there already. I just came across this channel.
@statquest
@statquest 4 жыл бұрын
I already have a bunch of videos about General Linear Models, as well as a bunch of videos on Logistic Regression (a type of Generalized Linear Model) and a few videos on statistical distributions. A full index is here: statquest.org/video-index/
@TheMangz1611
@TheMangz1611 3 жыл бұрын
@statQuest Pls make a video on Precision as well - wth love from India
@statquest
@statquest 3 жыл бұрын
Noted
@ankitsingh961994
@ankitsingh961994 3 жыл бұрын
Hi Josh, do you think it would add value to add metrics like Precision, Recall and Accuracy here, since we are talking about Confusion Matrix? I know Sensitivity and Recall are the same, just thought we can mention the term as well.
@statquest
@statquest 3 жыл бұрын
I'll keep it in mind.
@kimtae3446
@kimtae3446 4 жыл бұрын
Hi Josh, do you have a video about lift chart? Can't find it in your channel :(
@statquest
@statquest 4 жыл бұрын
Not yet.
@allaabdella4794
@allaabdella4794 4 жыл бұрын
Thank you for the video, it's helpful. Can you please clarify the True Negatives ( 7:43). Why would we include 77 and 92?
@statquest
@statquest 4 жыл бұрын
Because we are calculating specificity for Troll 2, everything is relative to Troll2. Because those people were correctly predicted to not love Troll2. This makes them "true negatives" with respect to Troll2.
@vaggelisk9401
@vaggelisk9401 3 жыл бұрын
Hi, is there any difference in results if we change rows to Actual and columns to predicted? Great video btw!!!
@statquest
@statquest 3 жыл бұрын
No.
@superfaqer
@superfaqer 4 жыл бұрын
Hey Josh, awesome videos! They help me understand the statistics and maths side of machine learning :) I have a question based on your example for the heart disease prediction; is it not possible to just use both models for predicting those 2 separate things? for example using the Random Forest for predicting heart disease and Logistic Regression for predicting free of heart disease? Or does that not make sense. Im farely new to ML and would appreciate an answer :) regards,
@statquest
@statquest 4 жыл бұрын
Usually people use several different machine learning methods as an "ensemble" and make the final classification based on votes from each method. If you have a random forest predict if people have heart disease and logistic regression for predicting free of heart disease, then what do you do when the random forest does not predict that someone has heart disease and the logistic regression predicts that they do?
@superfaqer
@superfaqer 4 жыл бұрын
@@statquest Thank you for the quick response :) I see what you mean, that could definitely be a problem. Appreciate the videos and your activeness! cheers mate.
@bytesizedbraincog
@bytesizedbraincog Жыл бұрын
Amazing one! How does the sensitivity and specificity metrics could be made actionable for more classes or categories (400 Classes) not sure which one to consider the most importance for bulk of classes
@statquest
@statquest Жыл бұрын
See: kzbin.info/www/bejne/apu1c4V6l6-Yo68
@geoff1391
@geoff1391 2 жыл бұрын
Hi Josh. Let's say one model was better at predicting Sensitivity, whereas another was better at predicting Specificity. Do you foresee any problems or downsides to data integrity to using different models, the model with the highest score respectively? For example, in your 2x2 confusion matrix @4:38, using your Logistic Regression model for Specificity measures and the Random Forest model for Sensitivity measures?
@statquest
@statquest 2 жыл бұрын
Not that I know of off the top of my head.
@geoff1391
@geoff1391 2 жыл бұрын
@@statquest Okay, that's good enough for me! Thanks Josh.
@Samurai_Jack__
@Samurai_Jack__ 7 ай бұрын
Thank you for the amazing explanation as usual, I have a small question : what is the difference between this metric and precesion/recall metric ... when should we prefer one over the other? because my teachers just mentioned the latter metric
@statquest
@statquest 7 ай бұрын
I talk about that in my video on ROC graphs: kzbin.info/www/bejne/apu1c4V6l6-Yo68
@Samurai_Jack__
@Samurai_Jack__ 7 ай бұрын
@@statquest Thank you so much
@netviz8673
@netviz8673 6 ай бұрын
Sensitivity: true positives/(true positives+false negatives) basically TruePositivePrediction/TotalPositiveCases. Tells about positives getting correctly identified (as positives) Specificity: TrueNegativePrediction/TotalNegativeCases or TrueNegatives/(TrueNegative+FalsePositives). Tells about negatives being correctly identified (as negatives)
@gauravchaudhari2828
@gauravchaudhari2828 3 жыл бұрын
I really liked illustrations and slides what software do you use ?
@statquest
@statquest 3 жыл бұрын
I use keynote
@Pratik-Kedar
@Pratik-Kedar 4 жыл бұрын
really nice concept clearance ..........! Keep it up , waiting for more content. BBBBBBBBBBBBAAAAAAAAAAAAAAAAAAAMMMMMMMMMMM
@statquest
@statquest 4 жыл бұрын
Thanks! I have a lot of videos coming out this month. :)
@coolbuddy102
@coolbuddy102 3 жыл бұрын
The 12 dislikers are the college profs going out of business. BAM!
@statquest
@statquest 3 жыл бұрын
BAM! :)
@erick6381
@erick6381 2 жыл бұрын
I love you.
@statquest
@statquest 2 жыл бұрын
:)
@zeynabmousavi1736
@zeynabmousavi1736 4 жыл бұрын
What would be the definition of sensitivity and specificity in the case of non disease? Lets say we need to classify between two classes: class A and class B. Which one is positive which one is negative?
@statquest
@statquest 4 жыл бұрын
You decide which one to treat as positive and which to treat as negative.
@sherryyu1936
@sherryyu1936 4 жыл бұрын
I won't tell you, I am waiting for your neural network videos!!
@statquest
@statquest 4 жыл бұрын
I hope to get to those in the coming spring. They are way behind schedule! (almost a year late). But better late than never. I'll start doing neural networks as soon as I'm done with XGBoost.
@ashutoshpanigrahy7326
@ashutoshpanigrahy7326 Жыл бұрын
Can the confusion matrix & the metrics be only applied to classification problems? I don't think this would work well for regression, for example.
@statquest
@statquest Жыл бұрын
That is correct. For regression we have the Sum of Squared Residuals, the Mean Squared Error, R-squared and p-values.
Machine Learning Fundamentals: Bias and Variance
6:36
StatQuest with Josh Starmer
Рет қаралды 1,2 МЛН
ROC and AUC, Clearly Explained!
16:17
StatQuest with Josh Starmer
Рет қаралды 1,4 МЛН
Watermelon Cat?! 🙀 #cat #cute #kitten
00:56
Stocat
Рет қаралды 39 МЛН
В ДЕТСТВЕ СТРОИШЬ ДОМ ПОД СТОЛОМ
00:17
SIDELNIKOVVV
Рет қаралды 4,2 МЛН
Machine Learning Fundamentals: Cross Validation
6:05
StatQuest with Josh Starmer
Рет қаралды 1 МЛН
Sensitivity and specificity - explained in 3 minutes
3:07
Global Health with Greg Martin
Рет қаралды 327 М.
StatQuest: A gentle introduction to RNA-seq
18:26
StatQuest with Josh Starmer
Рет қаралды 486 М.
Support Vector Machines Part 1 (of 3): Main Ideas!!!
20:32
StatQuest with Josh Starmer
Рет қаралды 1,3 МЛН
Machine Learning Fundamentals: The Confusion Matrix
7:13
StatQuest with Josh Starmer
Рет қаралды 663 М.
Learn Statistical Regression in 40 mins! My best video ever. Legit.
40:25
Entropy (for data science) Clearly Explained!!!
16:35
StatQuest with Josh Starmer
Рет қаралды 578 М.
Sensitivity and Specificity simplified
6:06
Let's Learn Public Health
Рет қаралды 139 М.
StatQuest: Random Forests Part 1 - Building, Using and Evaluating
9:54
StatQuest with Josh Starmer
Рет қаралды 1,1 МЛН
Watermelon Cat?! 🙀 #cat #cute #kitten
00:56
Stocat
Рет қаралды 39 МЛН