尊敬的 微信汇率:1円 ≈ 0.046166 元 支付宝汇率:1円 ≈ 0.046257元 [退出登录]
SlideShare a Scribd company logo
ROC- AUC Curve
21-11-2021 1
Department of Computer Science and Engineering
National Institute of Technology Silchar, Assam, INDIA
By-
Nurul Amin Choudhury
NIT Silchar - PhD Scholar
21-11-2021 2
ROC – AUC Curve
• Main idea: Receiver Operating Curve (ROC) shows the performance of the classification model at different
threshold settings.
• ROC is a probability curve and AUC represents the degree or measure of separability.
• It tells how much the model is capable of distinguishing between classes.
• Higher the AUC, the better the model is at predicting 0 classes as 0 and 1 classes as 1.
• It is consider that Higher the AUC, the better the model is at distinguishing between patients with the
disease and no disease.
• The ROC curve is plotted with True Positive Rate (TPR) against the False Positive Rate (FPR) where
TPR is on the y-axis and FPR is on the x-axis.
21-11-2021 3
Cntd…
Fig. 1. ROC-AUC Curve.
Image courtesy: My Photoshopped Collection
TPR =
𝑻𝒑
𝑻𝑷
+𝑭𝒏
• The TPR and FPR is given by-
FPR =
𝑭𝒑
𝑻𝒏
+𝑭𝒑
• It is considered that more the AUC, better the model in classifying positive class as positive and negative as
negative.
AUC
21-11-2021 4
Example Problem-
• Suppose, a classification model yields the classification probability as shown in Table 1.
Step 1 - Let us set the different Threshold as 𝜶 = [0 , 0.2, 0.4, 0.8, 1]
Step 2 - Taking first threshold as 𝜶 = [0], we will get-
Step 3 - TPR =
4
4+0
= 1
& FPR =
2
2+0
= 1
Therefore TPR, FPR at 𝜶 = [0] is (1,1)
Output Class. Prob. (Y)
1 0.8
0 0.96
1 0.4
1 0.3
0 0.2
1 0.7
Table 1. Actual Output vs Classification
yielded Prob.
Output Class.
Prob. (Y)
At 𝜶 = [0]
Y1
1 0.8 1
0 0.96 1
1 0.4 1
1 0.3 1
0 0.2 1
1 0.7 1
Table 2. Predicted Output at 𝜶 = [0]
21-11-2021 5
Cntd… Output Class. Prob.
(Y)
At 𝜶 = [0.2]
Y1
1 0.8 1
0 0.96 1
1 0.4 1
1 0.3 1
0 0.2 0
1 0.7 1
Step 4 - Repeating all the steps from Step 1 to Step 3 at 𝜶 = [0.2], we will get-
TPR =
4
4+0
= 1
& FPR =
1
1+1
= 0.5
Therefore TPR, FPR at 𝜶 = [0.2] is (1 , 0.5)
Output Class. Prob.
(Y)
At 𝜶 = [0.4]
Y1
1 0.8 1
0 0.96 1
1 0.4 0
1 0.3 0
0 0.2 0
1 0.7 1
Step 5 - Again repeating all the steps from Step 1 to Step 3 at 𝜶 = [0.4], we will get-
TPR =
2
2+2
= 0.5
& FPR =
1
1+1
= 0.5
Therefore TPR, FPR at 𝜶 = [0.4] is (0.5 , 0.5)
Table 3. Predicted Output at 𝜶 = [0.2]
Table 4. Predicted Output at 𝜶 = [0.4]
21-11-2021 6
Cntd… Output Class. Prob.
(Y)
At 𝜶 = [0.8]
Y1
1 0.8 0
0 0.96 1
1 0.4 0
1 0.3 0
0 0.2 0
1 0.7 0
Step 6 - Repeating all the steps from Step 1 to Step 3 at 𝜶 = [0.8], we will get-
TPR =
0
0+4
=0
& FPR =
1
1+1
= 0.5
Therefore TPR, FPR at 𝜶 = [0.8] is (0 , 0.5)
Output Class. Prob.
(Y)
At 𝜶 = [1]
Y1
1 0.8 0
0 0.96 0
1 0.4 0
1 0.3 0
0 0.2 0
1 0.7 0
Step 7 - Again repeating all the steps from Step 1 to Step 3 at 𝜶 = [1], we will get-
TPR =
0
0+4
= 0
& FPR =
0
0+2
= 0
Therefore TPR, FPR at 𝜶 = [1] is (0 , 0)
Table 5. Predicted Output at 𝜶 = [0.8]
Table 6. Predicted Output at 𝜶 = [1]
Cntd…
Threshold TPR FPR
0 1 1
0.2 1 0.5
0.4 0.5 0.5
0.8 0 0.5
1 0 0
ROC Curve
Step 8 – Finally, plotting the ROC curve at different threshold setting we will get-
Table 7. TPR, FPR values at different
threshold settings.
Fig. 2. ROC-AUC Curve.
AUC
Thank You

More Related Content

What's hot

Point Estimation
Point Estimation Point Estimation
Logistic Regression Analysis
Logistic Regression AnalysisLogistic Regression Analysis
Logistic Regression Analysis
COSTARCH Analytical Consulting (P) Ltd.
 
How to read a receiver operating characteritic (ROC) curve
How to read a receiver operating characteritic (ROC) curveHow to read a receiver operating characteritic (ROC) curve
How to read a receiver operating characteritic (ROC) curve
Samir Haffar
 
Linear regression
Linear regression Linear regression
Linear regression
Babasab Patil
 
Lecture 5: Interval Estimation
Lecture 5: Interval Estimation Lecture 5: Interval Estimation
Lecture 5: Interval Estimation
Marina Santini
 
Naive Bayes
Naive BayesNaive Bayes
Naive Bayes
Abdullah al Mamun
 
Roc
RocRoc
Simple linear regression
Simple linear regressionSimple linear regression
Simple linear regression
pankaj8108
 
Machine learning session4(linear regression)
Machine learning   session4(linear regression)Machine learning   session4(linear regression)
Machine learning session4(linear regression)
Abhimanyu Dwivedi
 
Correlation analysis
Correlation analysis Correlation analysis
Correlation analysis
Misab P.T
 
Basic survival analysis
Basic survival analysisBasic survival analysis
Basic survival analysis
Mike LaValley
 
Linear and Logistics Regression
Linear and Logistics RegressionLinear and Logistics Regression
Linear and Logistics Regression
Mukul Kumar Singh Chauhan
 
Feature selection
Feature selectionFeature selection
Feature selection
Dong Guo
 
Part 1 Survival Analysis
Part 1 Survival AnalysisPart 1 Survival Analysis
Part 1 Survival Analysis
Bhaswat Chakraborty
 
Simple Linear Regression: Step-By-Step
Simple Linear Regression: Step-By-StepSimple Linear Regression: Step-By-Step
Simple Linear Regression: Step-By-Step
Dan Wellisch
 
Logistic regression
Logistic regressionLogistic regression
Logistic regression
saba khan
 
Regression ppt.pptx
Regression ppt.pptxRegression ppt.pptx
Regression ppt.pptx
DevendraSinghKaushal1
 
Predictive value and likelihood ratio
Predictive value and likelihood ratio Predictive value and likelihood ratio
Predictive value and likelihood ratio
Abino David
 
Linear regression
Linear regressionLinear regression
Linear regression
Karishma Chaudhary
 
Ordinal Logistic Regression
Ordinal Logistic RegressionOrdinal Logistic Regression
Ordinal Logistic Regression
Al-Ahmadgaid Asaad
 

What's hot (20)

Point Estimation
Point Estimation Point Estimation
Point Estimation
 
Logistic Regression Analysis
Logistic Regression AnalysisLogistic Regression Analysis
Logistic Regression Analysis
 
How to read a receiver operating characteritic (ROC) curve
How to read a receiver operating characteritic (ROC) curveHow to read a receiver operating characteritic (ROC) curve
How to read a receiver operating characteritic (ROC) curve
 
Linear regression
Linear regression Linear regression
Linear regression
 
Lecture 5: Interval Estimation
Lecture 5: Interval Estimation Lecture 5: Interval Estimation
Lecture 5: Interval Estimation
 
Naive Bayes
Naive BayesNaive Bayes
Naive Bayes
 
Roc
RocRoc
Roc
 
Simple linear regression
Simple linear regressionSimple linear regression
Simple linear regression
 
Machine learning session4(linear regression)
Machine learning   session4(linear regression)Machine learning   session4(linear regression)
Machine learning session4(linear regression)
 
Correlation analysis
Correlation analysis Correlation analysis
Correlation analysis
 
Basic survival analysis
Basic survival analysisBasic survival analysis
Basic survival analysis
 
Linear and Logistics Regression
Linear and Logistics RegressionLinear and Logistics Regression
Linear and Logistics Regression
 
Feature selection
Feature selectionFeature selection
Feature selection
 
Part 1 Survival Analysis
Part 1 Survival AnalysisPart 1 Survival Analysis
Part 1 Survival Analysis
 
Simple Linear Regression: Step-By-Step
Simple Linear Regression: Step-By-StepSimple Linear Regression: Step-By-Step
Simple Linear Regression: Step-By-Step
 
Logistic regression
Logistic regressionLogistic regression
Logistic regression
 
Regression ppt.pptx
Regression ppt.pptxRegression ppt.pptx
Regression ppt.pptx
 
Predictive value and likelihood ratio
Predictive value and likelihood ratio Predictive value and likelihood ratio
Predictive value and likelihood ratio
 
Linear regression
Linear regressionLinear regression
Linear regression
 
Ordinal Logistic Regression
Ordinal Logistic RegressionOrdinal Logistic Regression
Ordinal Logistic Regression
 

Similar to Roc auc curve

Quality Python Homework Help
Quality Python Homework HelpQuality Python Homework Help
Quality Python Homework Help
Python Homework Help
 
Introduction to ROC Curve Analysis with Application in Functional Genomics
Introduction to ROC Curve Analysis with Application in Functional GenomicsIntroduction to ROC Curve Analysis with Application in Functional Genomics
Introduction to ROC Curve Analysis with Application in Functional Genomics
Shana White
 
Data mining assignment 5
Data mining assignment 5Data mining assignment 5
Data mining assignment 5
BarryK88
 
Matlab lab manual
Matlab lab manualMatlab lab manual
Matlab lab manual
nmahi96
 
Artificial neural networks - A gentle introduction to ANNS.pptx
Artificial neural networks - A gentle introduction to ANNS.pptxArtificial neural networks - A gentle introduction to ANNS.pptx
Artificial neural networks - A gentle introduction to ANNS.pptx
AttaNox1
 
Binomial dist
Binomial distBinomial dist
Binomial dist
Barış Çakır
 
Project2
Project2Project2
Project2
Linjun Li
 
Markov Models in Homeopathic Treatment on Pet Animals
Markov Models in Homeopathic Treatment on Pet AnimalsMarkov Models in Homeopathic Treatment on Pet Animals
Markov Models in Homeopathic Treatment on Pet Animals
theijes
 
Deep learning simplified
Deep learning simplifiedDeep learning simplified
Deep learning simplified
Lovelyn Rose
 
CALIFORNIA STATE UNIVERSITY, NORTHRIDGEMECHANICAL ENGINEERIN.docx
CALIFORNIA STATE UNIVERSITY, NORTHRIDGEMECHANICAL ENGINEERIN.docxCALIFORNIA STATE UNIVERSITY, NORTHRIDGEMECHANICAL ENGINEERIN.docx
CALIFORNIA STATE UNIVERSITY, NORTHRIDGEMECHANICAL ENGINEERIN.docx
RAHUL126667
 
SG 8 Lecture 15 Simplex - Min - 2 phase.pptx
SG 8 Lecture 15 Simplex - Min - 2 phase.pptxSG 8 Lecture 15 Simplex - Min - 2 phase.pptx
SG 8 Lecture 15 Simplex - Min - 2 phase.pptx
yashchotaliyael21
 
Ch 4 Slides.doc655444444444444445678888776
Ch 4 Slides.doc655444444444444445678888776Ch 4 Slides.doc655444444444444445678888776
Ch 4 Slides.doc655444444444444445678888776
ohenebabismark508
 
numericai matmatic matlab uygulamalar ali abdullah
numericai matmatic  matlab  uygulamalar ali abdullahnumericai matmatic  matlab  uygulamalar ali abdullah
numericai matmatic matlab uygulamalar ali abdullah
Ali Abdullah
 
ch09d.ppt
ch09d.pptch09d.ppt
ch09d.ppt
butest
 
CrashCourse_0622
CrashCourse_0622CrashCourse_0622
CrashCourse_0622
Dexen Xi
 
Maths digital text
Maths digital textMaths digital text
Maths digital text
VISHNUNIVASPRIYA
 
Data Mind Traps
Data Mind TrapsData Mind Traps
Data Mind Traps
Gaetan Lion
 
NN-Ch2.PDF
NN-Ch2.PDFNN-Ch2.PDF
NN-Ch2.PDF
gnans Kgnanshek
 
lagrange and newton divided differences.ppt
lagrange and newton divided differences.pptlagrange and newton divided differences.ppt
lagrange and newton divided differences.ppt
Thirumoorthy64
 
Correspondence Analysis
Correspondence AnalysisCorrespondence Analysis
Correspondence Analysis
Gaetan Lion
 

Similar to Roc auc curve (20)

Quality Python Homework Help
Quality Python Homework HelpQuality Python Homework Help
Quality Python Homework Help
 
Introduction to ROC Curve Analysis with Application in Functional Genomics
Introduction to ROC Curve Analysis with Application in Functional GenomicsIntroduction to ROC Curve Analysis with Application in Functional Genomics
Introduction to ROC Curve Analysis with Application in Functional Genomics
 
Data mining assignment 5
Data mining assignment 5Data mining assignment 5
Data mining assignment 5
 
Matlab lab manual
Matlab lab manualMatlab lab manual
Matlab lab manual
 
Artificial neural networks - A gentle introduction to ANNS.pptx
Artificial neural networks - A gentle introduction to ANNS.pptxArtificial neural networks - A gentle introduction to ANNS.pptx
Artificial neural networks - A gentle introduction to ANNS.pptx
 
Binomial dist
Binomial distBinomial dist
Binomial dist
 
Project2
Project2Project2
Project2
 
Markov Models in Homeopathic Treatment on Pet Animals
Markov Models in Homeopathic Treatment on Pet AnimalsMarkov Models in Homeopathic Treatment on Pet Animals
Markov Models in Homeopathic Treatment on Pet Animals
 
Deep learning simplified
Deep learning simplifiedDeep learning simplified
Deep learning simplified
 
CALIFORNIA STATE UNIVERSITY, NORTHRIDGEMECHANICAL ENGINEERIN.docx
CALIFORNIA STATE UNIVERSITY, NORTHRIDGEMECHANICAL ENGINEERIN.docxCALIFORNIA STATE UNIVERSITY, NORTHRIDGEMECHANICAL ENGINEERIN.docx
CALIFORNIA STATE UNIVERSITY, NORTHRIDGEMECHANICAL ENGINEERIN.docx
 
SG 8 Lecture 15 Simplex - Min - 2 phase.pptx
SG 8 Lecture 15 Simplex - Min - 2 phase.pptxSG 8 Lecture 15 Simplex - Min - 2 phase.pptx
SG 8 Lecture 15 Simplex - Min - 2 phase.pptx
 
Ch 4 Slides.doc655444444444444445678888776
Ch 4 Slides.doc655444444444444445678888776Ch 4 Slides.doc655444444444444445678888776
Ch 4 Slides.doc655444444444444445678888776
 
numericai matmatic matlab uygulamalar ali abdullah
numericai matmatic  matlab  uygulamalar ali abdullahnumericai matmatic  matlab  uygulamalar ali abdullah
numericai matmatic matlab uygulamalar ali abdullah
 
ch09d.ppt
ch09d.pptch09d.ppt
ch09d.ppt
 
CrashCourse_0622
CrashCourse_0622CrashCourse_0622
CrashCourse_0622
 
Maths digital text
Maths digital textMaths digital text
Maths digital text
 
Data Mind Traps
Data Mind TrapsData Mind Traps
Data Mind Traps
 
NN-Ch2.PDF
NN-Ch2.PDFNN-Ch2.PDF
NN-Ch2.PDF
 
lagrange and newton divided differences.ppt
lagrange and newton divided differences.pptlagrange and newton divided differences.ppt
lagrange and newton divided differences.ppt
 
Correspondence Analysis
Correspondence AnalysisCorrespondence Analysis
Correspondence Analysis
 

Recently uploaded

🔥Night Call Girls Pune 💯Call Us 🔝 7014168258 🔝💃Independent Pune Escorts Servi...
🔥Night Call Girls Pune 💯Call Us 🔝 7014168258 🔝💃Independent Pune Escorts Servi...🔥Night Call Girls Pune 💯Call Us 🔝 7014168258 🔝💃Independent Pune Escorts Servi...
🔥Night Call Girls Pune 💯Call Us 🔝 7014168258 🔝💃Independent Pune Escorts Servi...
yuvishachadda
 
06-20-2024-AI Camp Meetup-Unstructured Data and Vector Databases
06-20-2024-AI Camp Meetup-Unstructured Data and Vector Databases06-20-2024-AI Camp Meetup-Unstructured Data and Vector Databases
06-20-2024-AI Camp Meetup-Unstructured Data and Vector Databases
Timothy Spann
 
202406 - Cape Town Snowflake User Group - LLM & RAG.pdf
202406 - Cape Town Snowflake User Group - LLM & RAG.pdf202406 - Cape Town Snowflake User Group - LLM & RAG.pdf
202406 - Cape Town Snowflake User Group - LLM & RAG.pdf
Douglas Day
 
PCI-DSS-Data Security Standard v4.0.1.pdf
PCI-DSS-Data Security Standard v4.0.1.pdfPCI-DSS-Data Security Standard v4.0.1.pdf
PCI-DSS-Data Security Standard v4.0.1.pdf
incitbe
 
AI WITH THE HELP OF NAGALAND CAN WIN. DOWNLOAD NOW
AI WITH THE HELP OF NAGALAND CAN WIN. DOWNLOAD NOWAI WITH THE HELP OF NAGALAND CAN WIN. DOWNLOAD NOW
AI WITH THE HELP OF NAGALAND CAN WIN. DOWNLOAD NOW
arash10gamer
 
Telemetry Solution for Gaming (AWS Summit'24)
Telemetry Solution for Gaming (AWS Summit'24)Telemetry Solution for Gaming (AWS Summit'24)
Telemetry Solution for Gaming (AWS Summit'24)
GeorgiiSteshenko
 
machine learning notes by Andrew Ng and Tengyu Ma
machine learning notes by Andrew Ng and Tengyu Mamachine learning notes by Andrew Ng and Tengyu Ma
machine learning notes by Andrew Ng and Tengyu Ma
Vijayabaskar Uthirapathy
 
Hyderabad Call Girls 7339748667 With Free Home Delivery At Your Door
Hyderabad Call Girls 7339748667 With Free Home Delivery At Your DoorHyderabad Call Girls 7339748667 With Free Home Delivery At Your Door
Hyderabad Call Girls 7339748667 With Free Home Delivery At Your Door
Russian Escorts in Delhi 9711199171 with low rate Book online
 
Erotic Call Girls Hyderabad🫱9352988975🫲 High Quality Call Girl Service Right ...
Erotic Call Girls Hyderabad🫱9352988975🫲 High Quality Call Girl Service Right ...Erotic Call Girls Hyderabad🫱9352988975🫲 High Quality Call Girl Service Right ...
Erotic Call Girls Hyderabad🫱9352988975🫲 High Quality Call Girl Service Right ...
meenusingh4354543
 
Call Girls Hyderabad (india) ☎️ +91-7426014248 Hyderabad Call Girl
Call Girls Hyderabad  (india) ☎️ +91-7426014248 Hyderabad  Call GirlCall Girls Hyderabad  (india) ☎️ +91-7426014248 Hyderabad  Call Girl
Call Girls Hyderabad (india) ☎️ +91-7426014248 Hyderabad Call Girl
sapna sharmap11
 
Salesforce AI + Data Community Tour Slides - Canarias
Salesforce AI + Data Community Tour Slides - CanariasSalesforce AI + Data Community Tour Slides - Canarias
Salesforce AI + Data Community Tour Slides - Canarias
davidpietrzykowski1
 
IBM watsonx.data - Seller Enablement Deck.PPTX
IBM watsonx.data - Seller Enablement Deck.PPTXIBM watsonx.data - Seller Enablement Deck.PPTX
IBM watsonx.data - Seller Enablement Deck.PPTX
EbtsamRashed
 
❻❸❼⓿❽❻❷⓿⓿❼KALYAN MATKA CHART FINAL OPEN JODI PANNA FIXXX DPBOSS MATKA RESULT ...
❻❸❼⓿❽❻❷⓿⓿❼KALYAN MATKA CHART FINAL OPEN JODI PANNA FIXXX DPBOSS MATKA RESULT ...❻❸❼⓿❽❻❷⓿⓿❼KALYAN MATKA CHART FINAL OPEN JODI PANNA FIXXX DPBOSS MATKA RESULT ...
❻❸❼⓿❽❻❷⓿⓿❼KALYAN MATKA CHART FINAL OPEN JODI PANNA FIXXX DPBOSS MATKA RESULT ...
#kalyanmatkaresult #dpboss #kalyanmatka #satta #matka #sattamatka
 
saps4hanaandsapanalyticswheretodowhat1565272000538.pdf
saps4hanaandsapanalyticswheretodowhat1565272000538.pdfsaps4hanaandsapanalyticswheretodowhat1565272000538.pdf
saps4hanaandsapanalyticswheretodowhat1565272000538.pdf
newdirectionconsulta
 
Difference in Differences - Does Strict Speed Limit Restrictions Reduce Road ...
Difference in Differences - Does Strict Speed Limit Restrictions Reduce Road ...Difference in Differences - Does Strict Speed Limit Restrictions Reduce Road ...
Difference in Differences - Does Strict Speed Limit Restrictions Reduce Road ...
ThinkInnovation
 
Pune Call Girls <BOOK> 😍 Call Girl Pune Escorts Service
Pune Call Girls <BOOK> 😍 Call Girl Pune Escorts ServicePune Call Girls <BOOK> 😍 Call Girl Pune Escorts Service
Pune Call Girls <BOOK> 😍 Call Girl Pune Escorts Service
vashimk775
 
SAP BW4HANA Implementagtion Content Document
SAP BW4HANA Implementagtion Content DocumentSAP BW4HANA Implementagtion Content Document
SAP BW4HANA Implementagtion Content Document
newdirectionconsulta
 
Call Girls Goa (india) ☎️ +91-7426014248 Goa Call Girl
Call Girls Goa (india) ☎️ +91-7426014248 Goa Call GirlCall Girls Goa (india) ☎️ +91-7426014248 Goa Call Girl
Call Girls Goa (india) ☎️ +91-7426014248 Goa Call Girl
sapna sharmap11
 
Call Girls Goa👉9024918724👉Low Rate Escorts in Goa 💃 Available 24/7
Call Girls Goa👉9024918724👉Low Rate Escorts in Goa 💃 Available 24/7Call Girls Goa👉9024918724👉Low Rate Escorts in Goa 💃 Available 24/7
Call Girls Goa👉9024918724👉Low Rate Escorts in Goa 💃 Available 24/7
nitachopra
 
Bangalore Call Girls ♠ 9079923931 ♠ Beautiful Call Girls In Bangalore
Bangalore Call Girls  ♠ 9079923931 ♠ Beautiful Call Girls In BangaloreBangalore Call Girls  ♠ 9079923931 ♠ Beautiful Call Girls In Bangalore
Bangalore Call Girls ♠ 9079923931 ♠ Beautiful Call Girls In Bangalore
yashusingh54876
 

Recently uploaded (20)

🔥Night Call Girls Pune 💯Call Us 🔝 7014168258 🔝💃Independent Pune Escorts Servi...
🔥Night Call Girls Pune 💯Call Us 🔝 7014168258 🔝💃Independent Pune Escorts Servi...🔥Night Call Girls Pune 💯Call Us 🔝 7014168258 🔝💃Independent Pune Escorts Servi...
🔥Night Call Girls Pune 💯Call Us 🔝 7014168258 🔝💃Independent Pune Escorts Servi...
 
06-20-2024-AI Camp Meetup-Unstructured Data and Vector Databases
06-20-2024-AI Camp Meetup-Unstructured Data and Vector Databases06-20-2024-AI Camp Meetup-Unstructured Data and Vector Databases
06-20-2024-AI Camp Meetup-Unstructured Data and Vector Databases
 
202406 - Cape Town Snowflake User Group - LLM & RAG.pdf
202406 - Cape Town Snowflake User Group - LLM & RAG.pdf202406 - Cape Town Snowflake User Group - LLM & RAG.pdf
202406 - Cape Town Snowflake User Group - LLM & RAG.pdf
 
PCI-DSS-Data Security Standard v4.0.1.pdf
PCI-DSS-Data Security Standard v4.0.1.pdfPCI-DSS-Data Security Standard v4.0.1.pdf
PCI-DSS-Data Security Standard v4.0.1.pdf
 
AI WITH THE HELP OF NAGALAND CAN WIN. DOWNLOAD NOW
AI WITH THE HELP OF NAGALAND CAN WIN. DOWNLOAD NOWAI WITH THE HELP OF NAGALAND CAN WIN. DOWNLOAD NOW
AI WITH THE HELP OF NAGALAND CAN WIN. DOWNLOAD NOW
 
Telemetry Solution for Gaming (AWS Summit'24)
Telemetry Solution for Gaming (AWS Summit'24)Telemetry Solution for Gaming (AWS Summit'24)
Telemetry Solution for Gaming (AWS Summit'24)
 
machine learning notes by Andrew Ng and Tengyu Ma
machine learning notes by Andrew Ng and Tengyu Mamachine learning notes by Andrew Ng and Tengyu Ma
machine learning notes by Andrew Ng and Tengyu Ma
 
Hyderabad Call Girls 7339748667 With Free Home Delivery At Your Door
Hyderabad Call Girls 7339748667 With Free Home Delivery At Your DoorHyderabad Call Girls 7339748667 With Free Home Delivery At Your Door
Hyderabad Call Girls 7339748667 With Free Home Delivery At Your Door
 
Erotic Call Girls Hyderabad🫱9352988975🫲 High Quality Call Girl Service Right ...
Erotic Call Girls Hyderabad🫱9352988975🫲 High Quality Call Girl Service Right ...Erotic Call Girls Hyderabad🫱9352988975🫲 High Quality Call Girl Service Right ...
Erotic Call Girls Hyderabad🫱9352988975🫲 High Quality Call Girl Service Right ...
 
Call Girls Hyderabad (india) ☎️ +91-7426014248 Hyderabad Call Girl
Call Girls Hyderabad  (india) ☎️ +91-7426014248 Hyderabad  Call GirlCall Girls Hyderabad  (india) ☎️ +91-7426014248 Hyderabad  Call Girl
Call Girls Hyderabad (india) ☎️ +91-7426014248 Hyderabad Call Girl
 
Salesforce AI + Data Community Tour Slides - Canarias
Salesforce AI + Data Community Tour Slides - CanariasSalesforce AI + Data Community Tour Slides - Canarias
Salesforce AI + Data Community Tour Slides - Canarias
 
IBM watsonx.data - Seller Enablement Deck.PPTX
IBM watsonx.data - Seller Enablement Deck.PPTXIBM watsonx.data - Seller Enablement Deck.PPTX
IBM watsonx.data - Seller Enablement Deck.PPTX
 
❻❸❼⓿❽❻❷⓿⓿❼KALYAN MATKA CHART FINAL OPEN JODI PANNA FIXXX DPBOSS MATKA RESULT ...
❻❸❼⓿❽❻❷⓿⓿❼KALYAN MATKA CHART FINAL OPEN JODI PANNA FIXXX DPBOSS MATKA RESULT ...❻❸❼⓿❽❻❷⓿⓿❼KALYAN MATKA CHART FINAL OPEN JODI PANNA FIXXX DPBOSS MATKA RESULT ...
❻❸❼⓿❽❻❷⓿⓿❼KALYAN MATKA CHART FINAL OPEN JODI PANNA FIXXX DPBOSS MATKA RESULT ...
 
saps4hanaandsapanalyticswheretodowhat1565272000538.pdf
saps4hanaandsapanalyticswheretodowhat1565272000538.pdfsaps4hanaandsapanalyticswheretodowhat1565272000538.pdf
saps4hanaandsapanalyticswheretodowhat1565272000538.pdf
 
Difference in Differences - Does Strict Speed Limit Restrictions Reduce Road ...
Difference in Differences - Does Strict Speed Limit Restrictions Reduce Road ...Difference in Differences - Does Strict Speed Limit Restrictions Reduce Road ...
Difference in Differences - Does Strict Speed Limit Restrictions Reduce Road ...
 
Pune Call Girls <BOOK> 😍 Call Girl Pune Escorts Service
Pune Call Girls <BOOK> 😍 Call Girl Pune Escorts ServicePune Call Girls <BOOK> 😍 Call Girl Pune Escorts Service
Pune Call Girls <BOOK> 😍 Call Girl Pune Escorts Service
 
SAP BW4HANA Implementagtion Content Document
SAP BW4HANA Implementagtion Content DocumentSAP BW4HANA Implementagtion Content Document
SAP BW4HANA Implementagtion Content Document
 
Call Girls Goa (india) ☎️ +91-7426014248 Goa Call Girl
Call Girls Goa (india) ☎️ +91-7426014248 Goa Call GirlCall Girls Goa (india) ☎️ +91-7426014248 Goa Call Girl
Call Girls Goa (india) ☎️ +91-7426014248 Goa Call Girl
 
Call Girls Goa👉9024918724👉Low Rate Escorts in Goa 💃 Available 24/7
Call Girls Goa👉9024918724👉Low Rate Escorts in Goa 💃 Available 24/7Call Girls Goa👉9024918724👉Low Rate Escorts in Goa 💃 Available 24/7
Call Girls Goa👉9024918724👉Low Rate Escorts in Goa 💃 Available 24/7
 
Bangalore Call Girls ♠ 9079923931 ♠ Beautiful Call Girls In Bangalore
Bangalore Call Girls  ♠ 9079923931 ♠ Beautiful Call Girls In BangaloreBangalore Call Girls  ♠ 9079923931 ♠ Beautiful Call Girls In Bangalore
Bangalore Call Girls ♠ 9079923931 ♠ Beautiful Call Girls In Bangalore
 

Roc auc curve

  • 1. ROC- AUC Curve 21-11-2021 1 Department of Computer Science and Engineering National Institute of Technology Silchar, Assam, INDIA By- Nurul Amin Choudhury NIT Silchar - PhD Scholar
  • 2. 21-11-2021 2 ROC – AUC Curve • Main idea: Receiver Operating Curve (ROC) shows the performance of the classification model at different threshold settings. • ROC is a probability curve and AUC represents the degree or measure of separability. • It tells how much the model is capable of distinguishing between classes. • Higher the AUC, the better the model is at predicting 0 classes as 0 and 1 classes as 1. • It is consider that Higher the AUC, the better the model is at distinguishing between patients with the disease and no disease. • The ROC curve is plotted with True Positive Rate (TPR) against the False Positive Rate (FPR) where TPR is on the y-axis and FPR is on the x-axis.
  • 3. 21-11-2021 3 Cntd… Fig. 1. ROC-AUC Curve. Image courtesy: My Photoshopped Collection TPR = 𝑻𝒑 𝑻𝑷 +𝑭𝒏 • The TPR and FPR is given by- FPR = 𝑭𝒑 𝑻𝒏 +𝑭𝒑 • It is considered that more the AUC, better the model in classifying positive class as positive and negative as negative. AUC
  • 4. 21-11-2021 4 Example Problem- • Suppose, a classification model yields the classification probability as shown in Table 1. Step 1 - Let us set the different Threshold as 𝜶 = [0 , 0.2, 0.4, 0.8, 1] Step 2 - Taking first threshold as 𝜶 = [0], we will get- Step 3 - TPR = 4 4+0 = 1 & FPR = 2 2+0 = 1 Therefore TPR, FPR at 𝜶 = [0] is (1,1) Output Class. Prob. (Y) 1 0.8 0 0.96 1 0.4 1 0.3 0 0.2 1 0.7 Table 1. Actual Output vs Classification yielded Prob. Output Class. Prob. (Y) At 𝜶 = [0] Y1 1 0.8 1 0 0.96 1 1 0.4 1 1 0.3 1 0 0.2 1 1 0.7 1 Table 2. Predicted Output at 𝜶 = [0]
  • 5. 21-11-2021 5 Cntd… Output Class. Prob. (Y) At 𝜶 = [0.2] Y1 1 0.8 1 0 0.96 1 1 0.4 1 1 0.3 1 0 0.2 0 1 0.7 1 Step 4 - Repeating all the steps from Step 1 to Step 3 at 𝜶 = [0.2], we will get- TPR = 4 4+0 = 1 & FPR = 1 1+1 = 0.5 Therefore TPR, FPR at 𝜶 = [0.2] is (1 , 0.5) Output Class. Prob. (Y) At 𝜶 = [0.4] Y1 1 0.8 1 0 0.96 1 1 0.4 0 1 0.3 0 0 0.2 0 1 0.7 1 Step 5 - Again repeating all the steps from Step 1 to Step 3 at 𝜶 = [0.4], we will get- TPR = 2 2+2 = 0.5 & FPR = 1 1+1 = 0.5 Therefore TPR, FPR at 𝜶 = [0.4] is (0.5 , 0.5) Table 3. Predicted Output at 𝜶 = [0.2] Table 4. Predicted Output at 𝜶 = [0.4]
  • 6. 21-11-2021 6 Cntd… Output Class. Prob. (Y) At 𝜶 = [0.8] Y1 1 0.8 0 0 0.96 1 1 0.4 0 1 0.3 0 0 0.2 0 1 0.7 0 Step 6 - Repeating all the steps from Step 1 to Step 3 at 𝜶 = [0.8], we will get- TPR = 0 0+4 =0 & FPR = 1 1+1 = 0.5 Therefore TPR, FPR at 𝜶 = [0.8] is (0 , 0.5) Output Class. Prob. (Y) At 𝜶 = [1] Y1 1 0.8 0 0 0.96 0 1 0.4 0 1 0.3 0 0 0.2 0 1 0.7 0 Step 7 - Again repeating all the steps from Step 1 to Step 3 at 𝜶 = [1], we will get- TPR = 0 0+4 = 0 & FPR = 0 0+2 = 0 Therefore TPR, FPR at 𝜶 = [1] is (0 , 0) Table 5. Predicted Output at 𝜶 = [0.8] Table 6. Predicted Output at 𝜶 = [1]
  • 7. Cntd… Threshold TPR FPR 0 1 1 0.2 1 0.5 0.4 0.5 0.5 0.8 0 0.5 1 0 0 ROC Curve Step 8 – Finally, plotting the ROC curve at different threshold setting we will get- Table 7. TPR, FPR values at different threshold settings. Fig. 2. ROC-AUC Curve. AUC
  翻译: