SlideShare a Scribd company logo
1 of 8
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

Model selection and cross validation techniques
Model selection and cross validation techniquesModel selection and cross validation techniques
Model selection and cross validation techniquesVenkata Reddy Konasani
 
Descriptive Statistics and Data Visualization
Descriptive Statistics and Data VisualizationDescriptive Statistics and Data Visualization
Descriptive Statistics and Data VisualizationDouglas Joubert
 
Confusion matrix, accuracy, precision, recall, f score
Confusion matrix, accuracy, precision, recall, f scoreConfusion matrix, accuracy, precision, recall, f score
Confusion matrix, accuracy, precision, recall, f scoreSaurabh Singh
 
Power and sample size calculations for survival analysis webinar Slides
Power and sample size calculations for survival analysis webinar SlidesPower and sample size calculations for survival analysis webinar Slides
Power and sample size calculations for survival analysis webinar SlidesnQuery
 
07 Machine Learning - Expectation Maximization
07 Machine Learning - Expectation Maximization07 Machine Learning - Expectation Maximization
07 Machine Learning - Expectation MaximizationAndres Mendez-Vazquez
 
Ridge regression, lasso and elastic net
Ridge regression, lasso and elastic netRidge regression, lasso and elastic net
Ridge regression, lasso and elastic netVivian S. Zhang
 
Different kind of distance and Statistical Distance
Different kind of distance and Statistical DistanceDifferent kind of distance and Statistical Distance
Different kind of distance and Statistical DistanceKhulna University
 
Birch Algorithm With Solved Example
Birch Algorithm With Solved ExampleBirch Algorithm With Solved Example
Birch Algorithm With Solved Examplekailash shaw
 
Lecture-12Evaluation Measures-ML.pptx
Lecture-12Evaluation Measures-ML.pptxLecture-12Evaluation Measures-ML.pptx
Lecture-12Evaluation Measures-ML.pptxGauravSonawane51
 
Missing Data and data imputation techniques
Missing Data and data imputation techniquesMissing Data and data imputation techniques
Missing Data and data imputation techniquesOmar F. Althuwaynee
 
Confidence Intervals––Exact Intervals, Jackknife, and Bootstrap
Confidence Intervals––Exact Intervals, Jackknife, and BootstrapConfidence Intervals––Exact Intervals, Jackknife, and Bootstrap
Confidence Intervals––Exact Intervals, Jackknife, and BootstrapFrancesco Casalegno
 
Data Mining:Concepts and Techniques, Chapter 8. Classification: Basic Concepts
Data Mining:Concepts and Techniques, Chapter 8. Classification: Basic ConceptsData Mining:Concepts and Techniques, Chapter 8. Classification: Basic Concepts
Data Mining:Concepts and Techniques, Chapter 8. Classification: Basic ConceptsSalah Amean
 
logistic regression with python and R
logistic regression with python and Rlogistic regression with python and R
logistic regression with python and RAkhilesh Joshi
 
Lecture9 - Bayesian-Decision-Theory
Lecture9 - Bayesian-Decision-TheoryLecture9 - Bayesian-Decision-Theory
Lecture9 - Bayesian-Decision-TheoryAlbert Orriols-Puig
 
Covariance and correlation
Covariance and correlationCovariance and correlation
Covariance and correlationRashid Hussain
 
R data-import, data-export
R data-import, data-exportR data-import, data-export
R data-import, data-exportFAO
 
Introduction to Bayesian Inference
Introduction to Bayesian InferenceIntroduction to Bayesian Inference
Introduction to Bayesian InferenceSteven Scott
 

What's hot (20)

Model selection and cross validation techniques
Model selection and cross validation techniquesModel selection and cross validation techniques
Model selection and cross validation techniques
 
Descriptive Statistics and Data Visualization
Descriptive Statistics and Data VisualizationDescriptive Statistics and Data Visualization
Descriptive Statistics and Data Visualization
 
Confusion Matrix Explained
Confusion Matrix ExplainedConfusion Matrix Explained
Confusion Matrix Explained
 
Confusion matrix, accuracy, precision, recall, f score
Confusion matrix, accuracy, precision, recall, f scoreConfusion matrix, accuracy, precision, recall, f score
Confusion matrix, accuracy, precision, recall, f score
 
Power and sample size calculations for survival analysis webinar Slides
Power and sample size calculations for survival analysis webinar SlidesPower and sample size calculations for survival analysis webinar Slides
Power and sample size calculations for survival analysis webinar Slides
 
07 Machine Learning - Expectation Maximization
07 Machine Learning - Expectation Maximization07 Machine Learning - Expectation Maximization
07 Machine Learning - Expectation Maximization
 
Ridge regression, lasso and elastic net
Ridge regression, lasso and elastic netRidge regression, lasso and elastic net
Ridge regression, lasso and elastic net
 
Different kind of distance and Statistical Distance
Different kind of distance and Statistical DistanceDifferent kind of distance and Statistical Distance
Different kind of distance and Statistical Distance
 
Birch Algorithm With Solved Example
Birch Algorithm With Solved ExampleBirch Algorithm With Solved Example
Birch Algorithm With Solved Example
 
Lecture-12Evaluation Measures-ML.pptx
Lecture-12Evaluation Measures-ML.pptxLecture-12Evaluation Measures-ML.pptx
Lecture-12Evaluation Measures-ML.pptx
 
Missing Data and data imputation techniques
Missing Data and data imputation techniquesMissing Data and data imputation techniques
Missing Data and data imputation techniques
 
Confidence Intervals––Exact Intervals, Jackknife, and Bootstrap
Confidence Intervals––Exact Intervals, Jackknife, and BootstrapConfidence Intervals––Exact Intervals, Jackknife, and Bootstrap
Confidence Intervals––Exact Intervals, Jackknife, and Bootstrap
 
Data Mining:Concepts and Techniques, Chapter 8. Classification: Basic Concepts
Data Mining:Concepts and Techniques, Chapter 8. Classification: Basic ConceptsData Mining:Concepts and Techniques, Chapter 8. Classification: Basic Concepts
Data Mining:Concepts and Techniques, Chapter 8. Classification: Basic Concepts
 
logistic regression with python and R
logistic regression with python and Rlogistic regression with python and R
logistic regression with python and R
 
Lecture9 - Bayesian-Decision-Theory
Lecture9 - Bayesian-Decision-TheoryLecture9 - Bayesian-Decision-Theory
Lecture9 - Bayesian-Decision-Theory
 
Covariance and correlation
Covariance and correlationCovariance and correlation
Covariance and correlation
 
Boxplot
BoxplotBoxplot
Boxplot
 
R data-import, data-export
R data-import, data-exportR data-import, data-export
R data-import, data-export
 
Histograms
HistogramsHistograms
Histograms
 
Introduction to Bayesian Inference
Introduction to Bayesian InferenceIntroduction to Bayesian Inference
Introduction to Bayesian Inference
 

Similar to Roc auc curve

Data mining assignment 5
Data mining assignment 5Data mining assignment 5
Data mining assignment 5BarryK88
 
Matlab lab manual
Matlab lab manualMatlab lab manual
Matlab lab manualnmahi96
 
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 Animalstheijes
 
Deep learning simplified
Deep learning simplifiedDeep learning simplified
Deep learning simplifiedLovelyn Rose
 
CALIFORNIA STATE UNIVERSITY, NORTHRIDGEMECHANICAL ENGINEERIN.docx
CALIFORNIA STATE UNIVERSITY, NORTHRIDGEMECHANICAL ENGINEERIN.docxCALIFORNIA STATE UNIVERSITY, NORTHRIDGEMECHANICAL ENGINEERIN.docx
CALIFORNIA STATE UNIVERSITY, NORTHRIDGEMECHANICAL ENGINEERIN.docxRAHUL126667
 
Ch 4 Slides.doc655444444444444445678888776
Ch 4 Slides.doc655444444444444445678888776Ch 4 Slides.doc655444444444444445678888776
Ch 4 Slides.doc655444444444444445678888776ohenebabismark508
 
numericai matmatic matlab uygulamalar ali abdullah
numericai matmatic  matlab  uygulamalar ali abdullahnumericai matmatic  matlab  uygulamalar ali abdullah
numericai matmatic matlab uygulamalar ali abdullahAli Abdullah
 
ch09d.ppt
ch09d.pptch09d.ppt
ch09d.pptbutest
 
CrashCourse_0622
CrashCourse_0622CrashCourse_0622
CrashCourse_0622Dexen Xi
 
lagrange and newton divided differences.ppt
lagrange and newton divided differences.pptlagrange and newton divided differences.ppt
lagrange and newton divided differences.pptThirumoorthy64
 
Correspondence Analysis
Correspondence AnalysisCorrespondence Analysis
Correspondence AnalysisGaetan Lion
 
Berlin Epi Methods Colluquium may 2021
Berlin Epi Methods Colluquium may 2021Berlin Epi Methods Colluquium may 2021
Berlin Epi Methods Colluquium may 2021Ellie Murray
 
Dalut ppt. of factorial analysis of variance-b
Dalut ppt. of factorial analysis of variance-bDalut ppt. of factorial analysis of variance-b
Dalut ppt. of factorial analysis of variance-bIan Kris Lastimosa
 
Dalut ppt. of factorial analysis of variance-b
Dalut ppt. of factorial analysis of variance-bDalut ppt. of factorial analysis of variance-b
Dalut ppt. of factorial analysis of variance-bIan Kris Lastimosa
 

Similar to Roc auc curve (20)

Quality Python Homework Help
Quality Python Homework HelpQuality Python Homework Help
Quality Python Homework Help
 
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
 
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
 
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
 
Berlin Epi Methods Colluquium may 2021
Berlin Epi Methods Colluquium may 2021Berlin Epi Methods Colluquium may 2021
Berlin Epi Methods Colluquium may 2021
 
Dalut ppt. of factorial analysis of variance-b
Dalut ppt. of factorial analysis of variance-bDalut ppt. of factorial analysis of variance-b
Dalut ppt. of factorial analysis of variance-b
 
Dalut ppt. of factorial analysis of variance-b
Dalut ppt. of factorial analysis of variance-bDalut ppt. of factorial analysis of variance-b
Dalut ppt. of factorial analysis of variance-b
 

Recently uploaded

Mature dropshipping via API with DroFx.pptx
Mature dropshipping via API with DroFx.pptxMature dropshipping via API with DroFx.pptx
Mature dropshipping via API with DroFx.pptxolyaivanovalion
 
Ravak dropshipping via API with DroFx.pptx
Ravak dropshipping via API with DroFx.pptxRavak dropshipping via API with DroFx.pptx
Ravak dropshipping via API with DroFx.pptxolyaivanovalion
 
BabyOno dropshipping via API with DroFx.pptx
BabyOno dropshipping via API with DroFx.pptxBabyOno dropshipping via API with DroFx.pptx
BabyOno dropshipping via API with DroFx.pptxolyaivanovalion
 
Midocean dropshipping via API with DroFx
Midocean dropshipping via API with DroFxMidocean dropshipping via API with DroFx
Midocean dropshipping via API with DroFxolyaivanovalion
 
Al Barsha Escorts $#$ O565212860 $#$ Escort Service In Al Barsha
Al Barsha Escorts $#$ O565212860 $#$ Escort Service In Al BarshaAl Barsha Escorts $#$ O565212860 $#$ Escort Service In Al Barsha
Al Barsha Escorts $#$ O565212860 $#$ Escort Service In Al BarshaAroojKhan71
 
Generative AI on Enterprise Cloud with NiFi and Milvus
Generative AI on Enterprise Cloud with NiFi and MilvusGenerative AI on Enterprise Cloud with NiFi and Milvus
Generative AI on Enterprise Cloud with NiFi and MilvusTimothy Spann
 
Carero dropshipping via API with DroFx.pptx
Carero dropshipping via API with DroFx.pptxCarero dropshipping via API with DroFx.pptx
Carero dropshipping via API with DroFx.pptxolyaivanovalion
 
Delhi Call Girls CP 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls CP 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip CallDelhi Call Girls CP 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls CP 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Callshivangimorya083
 
Call Girls 🫤 Dwarka ➡️ 9711199171 ➡️ Delhi 🫦 Two shot with one girl
Call Girls 🫤 Dwarka ➡️ 9711199171 ➡️ Delhi 🫦 Two shot with one girlCall Girls 🫤 Dwarka ➡️ 9711199171 ➡️ Delhi 🫦 Two shot with one girl
Call Girls 🫤 Dwarka ➡️ 9711199171 ➡️ Delhi 🫦 Two shot with one girlkumarajju5765
 
Best VIP Call Girls Noida Sector 22 Call Me: 8448380779
Best VIP Call Girls Noida Sector 22 Call Me: 8448380779Best VIP Call Girls Noida Sector 22 Call Me: 8448380779
Best VIP Call Girls Noida Sector 22 Call Me: 8448380779Delhi Call girls
 
Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...
Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...
Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...amitlee9823
 
BPAC WITH UFSBI GENERAL PRESENTATION 18_05_2017-1.pptx
BPAC WITH UFSBI GENERAL PRESENTATION 18_05_2017-1.pptxBPAC WITH UFSBI GENERAL PRESENTATION 18_05_2017-1.pptx
BPAC WITH UFSBI GENERAL PRESENTATION 18_05_2017-1.pptxMohammedJunaid861692
 
Call me @ 9892124323 Cheap Rate Call Girls in Vashi with Real Photo 100% Secure
Call me @ 9892124323  Cheap Rate Call Girls in Vashi with Real Photo 100% SecureCall me @ 9892124323  Cheap Rate Call Girls in Vashi with Real Photo 100% Secure
Call me @ 9892124323 Cheap Rate Call Girls in Vashi with Real Photo 100% SecurePooja Nehwal
 
CALL ON ➥8923113531 🔝Call Girls Chinhat Lucknow best sexual service Online
CALL ON ➥8923113531 🔝Call Girls Chinhat Lucknow best sexual service OnlineCALL ON ➥8923113531 🔝Call Girls Chinhat Lucknow best sexual service Online
CALL ON ➥8923113531 🔝Call Girls Chinhat Lucknow best sexual service Onlineanilsa9823
 
BigBuy dropshipping via API with DroFx.pptx
BigBuy dropshipping via API with DroFx.pptxBigBuy dropshipping via API with DroFx.pptx
BigBuy dropshipping via API with DroFx.pptxolyaivanovalion
 
Edukaciniai dropshipping via API with DroFx
Edukaciniai dropshipping via API with DroFxEdukaciniai dropshipping via API with DroFx
Edukaciniai dropshipping via API with DroFxolyaivanovalion
 
100-Concepts-of-AI by Anupama Kate .pptx
100-Concepts-of-AI by Anupama Kate .pptx100-Concepts-of-AI by Anupama Kate .pptx
100-Concepts-of-AI by Anupama Kate .pptxAnupama Kate
 
ALSO dropshipping via API with DroFx.pptx
ALSO dropshipping via API with DroFx.pptxALSO dropshipping via API with DroFx.pptx
ALSO dropshipping via API with DroFx.pptxolyaivanovalion
 
Junnasandra Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...
Junnasandra Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...Junnasandra Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...
Junnasandra Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...amitlee9823
 

Recently uploaded (20)

Mature dropshipping via API with DroFx.pptx
Mature dropshipping via API with DroFx.pptxMature dropshipping via API with DroFx.pptx
Mature dropshipping via API with DroFx.pptx
 
Ravak dropshipping via API with DroFx.pptx
Ravak dropshipping via API with DroFx.pptxRavak dropshipping via API with DroFx.pptx
Ravak dropshipping via API with DroFx.pptx
 
BabyOno dropshipping via API with DroFx.pptx
BabyOno dropshipping via API with DroFx.pptxBabyOno dropshipping via API with DroFx.pptx
BabyOno dropshipping via API with DroFx.pptx
 
Midocean dropshipping via API with DroFx
Midocean dropshipping via API with DroFxMidocean dropshipping via API with DroFx
Midocean dropshipping via API with DroFx
 
Al Barsha Escorts $#$ O565212860 $#$ Escort Service In Al Barsha
Al Barsha Escorts $#$ O565212860 $#$ Escort Service In Al BarshaAl Barsha Escorts $#$ O565212860 $#$ Escort Service In Al Barsha
Al Barsha Escorts $#$ O565212860 $#$ Escort Service In Al Barsha
 
Generative AI on Enterprise Cloud with NiFi and Milvus
Generative AI on Enterprise Cloud with NiFi and MilvusGenerative AI on Enterprise Cloud with NiFi and Milvus
Generative AI on Enterprise Cloud with NiFi and Milvus
 
Carero dropshipping via API with DroFx.pptx
Carero dropshipping via API with DroFx.pptxCarero dropshipping via API with DroFx.pptx
Carero dropshipping via API with DroFx.pptx
 
Delhi Call Girls CP 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls CP 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip CallDelhi Call Girls CP 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls CP 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
 
Sampling (random) method and Non random.ppt
Sampling (random) method and Non random.pptSampling (random) method and Non random.ppt
Sampling (random) method and Non random.ppt
 
Call Girls 🫤 Dwarka ➡️ 9711199171 ➡️ Delhi 🫦 Two shot with one girl
Call Girls 🫤 Dwarka ➡️ 9711199171 ➡️ Delhi 🫦 Two shot with one girlCall Girls 🫤 Dwarka ➡️ 9711199171 ➡️ Delhi 🫦 Two shot with one girl
Call Girls 🫤 Dwarka ➡️ 9711199171 ➡️ Delhi 🫦 Two shot with one girl
 
Best VIP Call Girls Noida Sector 22 Call Me: 8448380779
Best VIP Call Girls Noida Sector 22 Call Me: 8448380779Best VIP Call Girls Noida Sector 22 Call Me: 8448380779
Best VIP Call Girls Noida Sector 22 Call Me: 8448380779
 
Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...
Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...
Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...
 
BPAC WITH UFSBI GENERAL PRESENTATION 18_05_2017-1.pptx
BPAC WITH UFSBI GENERAL PRESENTATION 18_05_2017-1.pptxBPAC WITH UFSBI GENERAL PRESENTATION 18_05_2017-1.pptx
BPAC WITH UFSBI GENERAL PRESENTATION 18_05_2017-1.pptx
 
Call me @ 9892124323 Cheap Rate Call Girls in Vashi with Real Photo 100% Secure
Call me @ 9892124323  Cheap Rate Call Girls in Vashi with Real Photo 100% SecureCall me @ 9892124323  Cheap Rate Call Girls in Vashi with Real Photo 100% Secure
Call me @ 9892124323 Cheap Rate Call Girls in Vashi with Real Photo 100% Secure
 
CALL ON ➥8923113531 🔝Call Girls Chinhat Lucknow best sexual service Online
CALL ON ➥8923113531 🔝Call Girls Chinhat Lucknow best sexual service OnlineCALL ON ➥8923113531 🔝Call Girls Chinhat Lucknow best sexual service Online
CALL ON ➥8923113531 🔝Call Girls Chinhat Lucknow best sexual service Online
 
BigBuy dropshipping via API with DroFx.pptx
BigBuy dropshipping via API with DroFx.pptxBigBuy dropshipping via API with DroFx.pptx
BigBuy dropshipping via API with DroFx.pptx
 
Edukaciniai dropshipping via API with DroFx
Edukaciniai dropshipping via API with DroFxEdukaciniai dropshipping via API with DroFx
Edukaciniai dropshipping via API with DroFx
 
100-Concepts-of-AI by Anupama Kate .pptx
100-Concepts-of-AI by Anupama Kate .pptx100-Concepts-of-AI by Anupama Kate .pptx
100-Concepts-of-AI by Anupama Kate .pptx
 
ALSO dropshipping via API with DroFx.pptx
ALSO dropshipping via API with DroFx.pptxALSO dropshipping via API with DroFx.pptx
ALSO dropshipping via API with DroFx.pptx
 
Junnasandra Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...
Junnasandra Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...Junnasandra Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...
Junnasandra Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | 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