ROC and AUC, Clearly Explained!

Sdílet
Vložit
  • čas přidán 2. 06. 2024
  • ROC (Receiver Operator Characteristic) graphs and AUC (the area under the curve), are useful for consolidating the information from a ton of confusion matrices into a single, easy to interpret graph. This video walks you through how to create and interpret ROC graphs step-by-step. We then show how the AUC can be used to compare classification methods and, lastly, we talk about what to do when your data isn't as warm and fuzzy as it should be.
    NOTE: This is the 2019.07.11 revision of a video published earlier.
    NOTE: This video assumes you already know about
    Confusion Matrices...
    • Machine Learning Funda...
    ...Sensitivity and Specificity...
    • Machine Learning Funda...
    ...and the example I work through is based on Logistic Regression, so it would help to understand the basics of that as well:
    • StatQuest: Logistic Re...
    For a complete index of all the StatQuest videos, check out:
    statquest.org/video-index/
    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...
    CZcams 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
    0:00 Awesome song and introduction
    0:48 Classifying samples with logistic regression
    4:03 Creating a confusion matrices for different thresholds
    7:12 ROC is an alternative to tons of confusion matrices
    13:44 AUC to compare different models
    14:28 False Positive Rate vs Precision (Precision Recall Graphs)
    15:38 Summary of concepts
    Correction:
    12:00 The confusion matrix should be TP = 3, FP = 2, FN = 1, TN = 2. The displayed matrix should be for the next point.
    #statquest #ROC #AUC

Komentáře • 2K

  • @statquest
    @statquest  Před 4 lety +181

    Correction:
    12:00 The confusion matrix should be TP = 3, FP = 2, FN = 1, TN = 2. The displayed matrix should be for the next point.
    Support StatQuest by buying my book The StatQuest Illustrated Guide to Machine Learning or a Study Guide or Merch!!! statquest.org/statquest-store/

    • @GauravSharma-ui4yd
      @GauravSharma-ui4yd Před 4 lety +9

      Professor please make videos on Gaussian mixture models, quantum Gaussian mixture models and deep learning related models like cnn, rnn, lstm etc.

    • @Music_Engineering
      @Music_Engineering Před 4 lety +7

      @@GauravSharma-ui4yd I would very much like that too! Your videos have really helped me in my machine learning and stat courses! Thank you :)

    • @sebastianwiesendahl5348
      @sebastianwiesendahl5348 Před 4 lety +8

      Josh, you are a life safer! I can't express how much I appreciate your content and overall approach.

    • @maheshjungkshettry6266
      @maheshjungkshettry6266 Před 3 lety

      Lolol😭😍😭😭😭😁

    • @mukulkumar2316
      @mukulkumar2316 Před 3 lety +2

      replace ebola with corona

  • @Skandar0007
    @Skandar0007 Před 4 lety +1666

    There’s a special place in heaven for those who make complicated things seem easy.
    Thanks for the explanation

  • @medicinalvl-up862
    @medicinalvl-up862 Před 4 lety +840

    dude you ROC!!

  • @deepakmehta1813
    @deepakmehta1813 Před 2 lety +131

    I am binge-watching statquest. Josh Starmer has lifted the bar of teaching too high. He is singing, he is playing guitar, and explaining technical concepts in a way that anyone can understand. What a unique combination!!!

    • @statquest
      @statquest  Před 2 lety +3

      Thank you very much! And thank you for your support!

  • @xinzhou3744
    @xinzhou3744 Před 4 lety +264

    The funny "BAM" points exactly match the moments I feel something learned.
    Thanks for the great visualization!

  • @SundayMarkets
    @SundayMarkets Před 4 lety +423

    bro you just did what my lecturer couldnt do the entire semester, in 15 minutes. props.

  • @albertyao6181
    @albertyao6181 Před 5 měsíci +30

    I am a data scientist and I have never really understood ROC/AUC curve fully before, but this video is so well that I immediately get it. Thank you OG!!!!

  • @Proffagelle
    @Proffagelle Před 3 lety +19

    If I ever pass my PhD comprehensive exam, it will be because God guided me to find your videos :D Thank you man!

    • @statquest
      @statquest  Před 3 lety +2

      I hope it goes well! Let me know! :)

    • @Alikiller5
      @Alikiller5 Před 8 dny

      Lolol same here! I have my exam on Wednesday!

  • @emmakefford8327
    @emmakefford8327 Před 3 lety +13

    I cried about this for hours and watched this video and understood everything. You are amazing

  • @andrewdurand8756
    @andrewdurand8756 Před 2 lety +40

    This guy is no joke the best at taking concepts and making them easy to understand. Props to you and thank you for doing what you do!

  • @douglasespindola5185
    @douglasespindola5185 Před 2 lety +12

    13:48 "BAM?" I laughed a lot! 😂😂😂 You're one of the best teachers on YT, Josh! Thanks a lot!

  • @AnuragBhattacharjee07061
    @AnuragBhattacharjee07061 Před 3 lety +10

    I have never felt so lucky to find a CZcams channel before. Double BAM!

  • @bommijn
    @bommijn Před 8 dny +1

    I'm studying for my machine learning finals and your video's (not only this one) help me allot. Thanks for taking the time to make these!

    • @statquest
      @statquest  Před 7 dny +1

      Good luck with your finals! :)

  • @maruthiprasad8184
    @maruthiprasad8184 Před 2 měsíci +3

    With this video my search for ROC-AUC stopped. Thanks a lot for awesome explantion

  • @wopmf4345FxFDxdGaa20
    @wopmf4345FxFDxdGaa20 Před 2 lety +6

    Thank you! It is incredible how well you are able to explain complicate concepts so simply. This is by far one of the best channels in youtube.

  • @ahmeddebit2394
    @ahmeddebit2394 Před 4 lety +26

    Great Josh, I really like the step-by-step explanation of so called "complicated" things

  • @stephendeferrari4563
    @stephendeferrari4563 Před 3 lety +49

    Studying ML and classification right now and this helped connect so many dots in a way that was easy and repeatable! Thank you so much for the time you take to make these videos.

  • @saragiordano8853
    @saragiordano8853 Před 3 lety +6

    The world needs people like you! I love your extremely simple and clear explanations, style and of course your voice

  • @colca8900
    @colca8900 Před 4 lety +14

    This is a random comment from Japan.
    Thank you for your amazing contents !!
    Studying data science is super hard for me even in mother language,Japanese.
    But your contents are awesome.
    Your are a lifesaver for data-science-leaners all around the world!

    • @statquest
      @statquest  Před 4 lety

      Hooray! Thank you very much! :)

  • @bigpoppy
    @bigpoppy Před 2 lety +5

    You are the lecturer no one has but everyone needs.

  • @annoyinger2001
    @annoyinger2001 Před 4 lety +15

    I think this is the first time I trully understand the ROC and AUC. Really, thanks!

  • @pivand
    @pivand Před rokem +8

    Man your channel is a hidden gem. Thank you for the time and effort you put into statquests!

  • @anishd7187
    @anishd7187 Před 3 lety +5

    Million BAM's , I can't thank you enough for being the teacher I never had!!!

  • @nikhilhagroo3858
    @nikhilhagroo3858 Před 2 lety +1

    you are the only reason I understand anything in machine learning

  • @7rd8
    @7rd8 Před 4 lety +1

    This is the clearest explanation of the ROC curve I've yet seen. Kudos to you for developing this!

  • @miriamross4622
    @miriamross4622 Před 3 lety +8

    This absolutely saved me as I finished a final project! Thank you so much for making these clear & helpful videos

    • @statquest
      @statquest  Před 3 lety +1

      Hooray and congratulations on finishing your final project!! BAM! :)

  • @ulyanaisaeva7303
    @ulyanaisaeva7303 Před 4 lety +12

    My God! If this is not THE BEST video about ML algorithms, then I don’t know which is! Thank you so much! Maximum share among classmates! Hope you dude always be happy!

  • @AndreaAKAPB
    @AndreaAKAPB Před 8 měsíci +1

    If there is someone with the gift of teaching, it's you! Kudos!

  • @dino0930750
    @dino0930750 Před 3 lety +2

    I’m a guy from ROC (Taiwan) watching this ROC tutorial and understanding ROC. Thank you!

  • @vithaln7646
    @vithaln7646 Před 3 lety +6

    every time i watch his videos i felt very relaxed and feel like there is something heavenly , divine in the world

  • @jessicasoares9613
    @jessicasoares9613 Před 3 lety +4

    I love this channel! It is fun and make dense subject way easier. Thank you for sharing high quality material with us!

  • @tanishadas9420
    @tanishadas9420 Před 4 lety +2

    I have been trying to understand this for soo long. Can't describe in words how amazingly simple you have made this. Thank you so much

  • @kinsung85
    @kinsung85 Před 2 lety +1

    I really enjoy the thought processes drawn and presented so vividly and clearly!!! Thank you so much for the video. Reading tons of materials but still couldn't understand but understood ROC and AUC the moment finished watching your video. Really appreciate that.

  • @ehg02
    @ehg02 Před 3 lety +3

    I've read so many Medium articles about ROC and AUC, but none describe it as good as your video!

  • @RaynerGS
    @RaynerGS Před 3 lety +2

    Content = ok; Presentation = ok; Explanation = ok; Pronunciation = of => Perfect Video! Again, Salute from Brazil!

  • @iriizb
    @iriizb Před 4 lety +2

    Thank you so much. Sometimes in advanced epi I feel just overwhelmed with all the details. Your videos really help keep the over all picture in mind. Love them!!

    • @statquest
      @statquest  Před 4 lety +1

      Hooray! Thank you very much! :)

  • @amitkehri
    @amitkehri Před 4 lety +3

    My mind says ..."TRIPLE BAMMMMM !!!" and "HURRAAYY" after grasping this complicated concept. You are a GEM Josh. Thanks for explaining it so slow and so perfectly like water going inside my throat.

    • @statquest
      @statquest  Před 4 lety

      Thank you so much!!!! I'm glad the video was helpful. :)

  • @FamFitFun
    @FamFitFun Před 4 lety +3

    you are simply out of the universe , thanks for making my and other learner life easy.

  • @chrissanchez1891
    @chrissanchez1891 Před 3 lety +2

    I've never understood the ROC and AUC curves until now...BAM!!! I was so impressed that I just joined the StatQuest membership, thanks Josh Starmer!

    • @statquest
      @statquest  Před 3 lety

      BAM! Thank you very much for your support!!! :)

  • @multiversityx
    @multiversityx Před 2 lety +2

    This man deserves a nobel prize

  • @pankushkukreja3101
    @pankushkukreja3101 Před 4 lety +5

    Josh you nail stats in every video, great.
    This confusion matrix evaluation will be completed if you add one video on precision, recall, f1 score and precison recall curve
    Thanks and waiting for it.

  • @abodegods5522
    @abodegods5522 Před 2 lety +3

    And after this video I got all the answers after wandering one resource to another.
    Thanks a lot for such amazing videos...🙏

  • @C3PO_
    @C3PO_ Před 3 lety +1

    Excellent! I was confused by a popular online interactive data science course in their way of explaining the ROC curves. Your explanation made it crystal clear. Thank you very much!

    • @statquest
      @statquest  Před 3 lety +2

      Hooray! Glad it was helpful!

  • @69nukeee
    @69nukeee Před rokem +2

    Your videos are AMAZING! Thanks for taking the time to do them. You explain everything very clearly and interactively. Thank you!

  • @hddlheme
    @hddlheme Před 4 lety +4

    OMG, I was trying so hard to understand this and finally I found this. U totally ROC!!!!

  • @Raven-bi3xn
    @Raven-bi3xn Před 3 lety +10

    7:05 "a confusingly large number of confusion matrices." Classic! :)

  • @dario27
    @dario27 Před 4 lety +1

    Some teachers make simple things complicated... you, however, make complicated things seem simple. Thanks so much!

  • @abhay9994
    @abhay9994 Před 6 měsíci +2

    Dear Josh Starmer,
    Thank you for your insightful lecture on ROC and AUC. Your explanations were clear, and I gained a better understanding of these concepts. Your dedication to simplifying complex topics is commendable.

  • @shwethavasudevan1788
    @shwethavasudevan1788 Před 4 lety +22

    This was so helpful, could you also make a video about transformation functions like Box Cox and arcsine? Would greatly help. :)

  • @peregudovoleg
    @peregudovoleg Před 4 lety +3

    Thank you, sir. You are a gentleman and a scholar.

  • @yahyaelghandour9855
    @yahyaelghandour9855 Před 2 lety +1

    Thank you so much! I didn’t quite understand what the points and the curve meant, and then... BAM! Insight/understanding came down from the heavens!
    You seriously have ROCed the world of a young medical student
    May your channel get more and more viewers and you get more and more love

  • @khurdulaharshavardhan2112

    I was drinking my morning coffee, took a sip and this is the first video of yours that I just clicked on, and that intro! bruv! took me back to days in undergrad struggling. Legit spew coffee on myself. Such a well explained video. My respects.

  • @mohitshrivastava4967
    @mohitshrivastava4967 Před 4 lety +5

    I wouldn't be able to express how easy it was to understand through the explanation. I wish I could like the same video 1 million times.

  • @wayneqwele8847
    @wayneqwele8847 Před 4 lety +11

    This is just incredible

  • @stanleydukor
    @stanleydukor Před 2 lety +1

    I have had a very unclear understanding of this for about 3 years now. This video just solved my problem in approx. 15 mins. Great job!
    Thanks a lot for this!

  • @adityanrajendran591
    @adityanrajendran591 Před 3 lety +1

    This is literally the best and the most clear explanation to ROC and AUC ! Thanks for doing this ! Bam !

  • @malvikachandhok8571
    @malvikachandhok8571 Před 3 lety +3

    Thank you so much for all the BAMs and the easy explanation ! Love it :)

  • @654987ify
    @654987ify Před 4 lety +5

    Congrats on these series of videos!! Im currently doing a compressed introduction course on ML methods in my university, and watching these videos in paralel really helps my understanding of the given concepts!! Really good summarize!!

    • @statquest
      @statquest  Před 4 lety +2

      Awesome! I'm glad to hear the videos help. :)

    • @Music_Engineering
      @Music_Engineering Před 4 lety

      @@statquest They do! Very much so! :) Thank you for making them :)

  • @adityapranav6948
    @adityapranav6948 Před 4 lety +1

    the enthusiasm and dedication you put in videos make learning easy.......Thank you very much!!!!

  • @dingusagar
    @dingusagar Před 2 lety +1

    This is the best explantion i have ever found online for roc. funny how many people complicate simple concepts by throwing in lots of jargons. the examples walkthrough made it super simple and intuitive to understand this. Triple BAM Indeed!

  • @pradyutshukla7852
    @pradyutshukla7852 Před 4 lety +9

    I clicked on this video as it appeared on my feed thinking it was an old one (also, I needed to revise my ROC concepts). Little did I know that it was uploaded literally minutes ago. *When youtube recommendation engines read your mind, TRIPPLE BAAMMM*

  • @subhashreepanda5307
    @subhashreepanda5307 Před 4 lety +6

    ohh god at last i understood this concept through ur vdo .thanx BAM!!!!!!!!

  • @geosylvatalks5537
    @geosylvatalks5537 Před 4 lety +1

    Such a lucid explanation of such a bootstrapped concept, which I had a feeling of having understood , but never clearly. Thanks

  • @GreenEyesVids
    @GreenEyesVids Před 3 lety +1

    The goat of ML explanations online. If only all teachers were half as passionate/explained half as well. Thanks for your amazing work.

  • @vithaln7646
    @vithaln7646 Před 3 lety +4

    after watching this video i felt there is someone in the world who can save me, thanks to Joshua

  • @niranandkhedkar3681
    @niranandkhedkar3681 Před 4 lety +7

    BAM!!! truely an amazing video
    Many thanks........

  • @saurabhchdry3825
    @saurabhchdry3825 Před 3 lety +1

    dude, you keep things so intuitive, you have a gift, please keep teaching us

  • @sandeepmandrawadkar9133
    @sandeepmandrawadkar9133 Před 3 lety +1

    Simplest possible explanation for a relatively complex topic. Hats off 👏

  • @gokeadekunle
    @gokeadekunle Před 3 lety +7

    Arghhhhhh. Thank You for this. I was losing my mind already.

  • @ngerih17173
    @ngerih17173 Před 3 lety +3

    Me *understand ROC and AUC because of watching this video*: TRIPLE BAM!!!

  • @luandutra7298
    @luandutra7298 Před 2 lety +1

    I love the way this channel can grab my like 5 seconds into the video

  • @dikshantgupta5539
    @dikshantgupta5539 Před 3 lety +2

    best explanation of the ROC and AUC so far. Thank you for explaining so clearly

  • @volodymyrkepsha2123
    @volodymyrkepsha2123 Před 4 lety +3

    immediate like for the intro !

  • @ismaeo1
    @ismaeo1 Před 4 lety +5

    14:25 DOUBLE BAAAAM!!! XD Because of those jokes I'll never forget what I've learned in this video. Great way to use humor, dude

  • @alainleclerc4523
    @alainleclerc4523 Před rokem +1

    Hello Josh! you are an outstanding teacher! all your explanations are clear and are accessible to all, even to those who have little or no knowledge. your work is extremely important and I thank you wholeheartedly for sharing your great knowledge with us. It was a real pleasure to watch this video so well explained!!

  • @user-lv5bt1lg1t
    @user-lv5bt1lg1t Před měsícem +1

    I admire your videos. So clear reasonable explanation on the complicated topics. Worth thousands of written papers!

  • @noorameera26
    @noorameera26 Před 3 lety +5

    hahahahahaha I got so amused with the bam! and double bam! xD

  • @julianstanley9516
    @julianstanley9516 Před 4 lety +8

    “Little bam” and “Bam?” 😂

  • @michaelcheung6290
    @michaelcheung6290 Před 4 lety +1

    Thanks for the clearest explanation! Like your approach and way to deliver those complicated ideas in a simple way. Please make more videos for all the learners! Thanks!

  • @perseusgeorgiadis7821
    @perseusgeorgiadis7821 Před rokem +1

    Your best video I've watched so far. Now I understand perfectly how specificity and sensitivity are obtained

  • @kevintoner6068
    @kevintoner6068 Před 4 lety +3

    I felt that double BAM in my soul

  • @phannhat3485
    @phannhat3485 Před 4 lety +4

    The theme song today: "wait till u see, ROC" so cool.

  • @minhazu2850
    @minhazu2850 Před 3 lety +1

    Spent an hour trying to understand ROC and AUC using other online resources, glad that i finally found this tutorial! You are the best, thanks so much

  • @amirhosseinrahimi3964
    @amirhosseinrahimi3964 Před rokem +1

    best ever explanation in the history of Model evaluation and scores! for sure!

  • @wolfisraging
    @wolfisraging Před 4 lety +2

    Gazillion bam

  • @RajKumar-vm2kr
    @RajKumar-vm2kr Před 3 lety +1

    Hello Josh, I am from India. I just started watching your machine learning videos, want to say you are amazing. Thank you for your simple way of explanation.

  • @monasaleh1452
    @monasaleh1452 Před 2 lety +1

    Thank you so much for this amazing explanation. This is the first time I actually understood the idea behind AUC and ROC.

  • @xuntouchable3x
    @xuntouchable3x Před 4 lety +1

    I find myself screaming BAM! when it appears on the screen. Your videos are helping me out so much! Keep up the great work!

  • @stephentan9523
    @stephentan9523 Před 2 lety +1

    Yow I'm just stunned how well you explained these things. Every minute is a euphoria for me. It all makes sense now AAAAAAAAA

  • @pur4selife
    @pur4selife Před 4 lety +2

    I've learned both Statistic and English from this Channel. Double BAMMM!! Thank you all the time for your Awesome video :D

    • @statquest
      @statquest  Před 4 lety

      YES! That is a Double BAM! :)

  • @alexsanders6753
    @alexsanders6753 Před 2 lety +2

    Thank you for explaining this at 11.20pm before my supervision at 9am tomorrow morning! Needed it!

  • @MLA263
    @MLA263 Před rokem +1

    I love this channel so much. Every time I start a video, the musical introduction cracks me up

  • @aishah8398
    @aishah8398 Před rokem +1

    Josh, you have taken teaching to the next level. Keep explaining and simplifying the complications., it is really really very helpful. Thank you for your contribution in spreading the useful knowledge.

    • @statquest
      @statquest  Před rokem

      Thank you! :)

    • @aishah8398
      @aishah8398 Před rokem

      @@statquest I always found "confusion matrix" very confusing.... but you solved the confusion 🙂

    • @statquest
      @statquest  Před rokem

      @@aishah8398 BAM!

  • @vamsikrrishrocks
    @vamsikrrishrocks Před 2 lety +2

    These videos helped me BIG time understanding the concepts that are discussed in the text books. These are nice supplemental videos to the text books. I felt easy to understand the text book after/before watching these videos. Ulti BAM 💥

  • @nadavnesher8641
    @nadavnesher8641 Před 9 měsíci +1

    Brilliant!!! I always come back to this video whenever I need a quick refresher. Thanks so much for your content!! BAM!!

  • @kevinozero
    @kevinozero Před 4 lety +3

    The was probably the best and most simple explanation I've had, thanks!

  • @arunbm123
    @arunbm123 Před 4 lety +2

    best tutorial ever watched...now my fundamentals are clear thanks..

  • @vithalrd187
    @vithalrd187 Před 4 lety +1

    Thanks a TON! I've never come across such a simple explanation to a complicated problem.

  • @1985flight
    @1985flight Před 2 lety +1

    I am so happy that this best video got 801k likes, whenever I need to review the content, this one float up to the top as always.

  • @randomforest3007
    @randomforest3007 Před 2 lety +1

    That's blowing my mind!!! I'm 31 years old and I finally get it!!! Many thanks to author!!!