SlideShare a Scribd company logo
2
Most read
8
Most read
10
Most read
Confusion Matrix Explained
Samuel Bohman
What is a Confusion Matrix?
A common method for describing the performance of a classification
model consisting of true positives, true negatives, false positives, and
false negatives.
It is called a confusion matrix because it shows how confused the
model is between the classes.
True Positives
Predicted class
Apple Orange Pear
Actual class
Apple 50 5 50
Orange 10 50 20
Pear 5 5 0
The model correctly classified 50 apples and 50 oranges.
True Negatives for Apple
The model correctly classified 75 cases as not belonging to class
apple.
Predicted class
Apple Orange Pear
Actual class
Apple 50 5 50
Orange 10 50 20
Pear 5 5 0
True Negatives for Orange
The model correctly classified 105 cases as not belonging to class
orange.
Predicted class
Apple Orange Pear
Actual class
Apple 50 5 50
Orange 10 50 20
Pear 5 5 0
True Negatives for Pear
The model correctly classified 115 cases as not belonging to class
pear.
Predicted class
Apple Orange Pear
Actual class
Apple 50 5 50
Orange 10 50 20
Pear 5 5 0
False Positives for Apple
The model incorrectly classified 15 cases as apples.
Predicted class
Apple Orange Pear
Actual class
Apple 50 5 50
Orange 10 50 20
Pear 5 5 0
False Positives for Orange
The model incorrectly classified 10 cases as oranges.
Predicted class
Apple Orange Pear
Actual class
Apple 50 5 50
Orange 10 50 20
Pear 5 5 0
False Positives for Pear
The model incorrectly classified 70 cases as pears.
Predicted class
Apple Orange Pear
Actual class
Apple 50 5 50
Orange 10 50 20
Pear 5 5 0
False Negatives for Apple
The model incorrectly classified 55 cases as not belonging to class
apple.
Predicted class
Apple Orange Pear
Actual class
Apple 50 5 50
Orange 10 50 20
Pear 5 5 0
False Negatives for Orange
The model incorrectly classified 30 cases as not belonging to class
orange.
Predicted class
Apple Orange Pear
Actual class
Apple 50 5 50
Orange 10 50 20
Pear 5 5 0
False Negatives for Pear
The model incorrectly classified 10 cases as not belonging to class
pears.
Predicted class
Apple Orange Pear
Actual class
Apple 50 5 50
Orange 10 50 20
Pear 5 5 0

More Related Content

PDF
Confusion Matrix
PDF
Confusion matrix and classification evaluation metrics
PDF
Model selection and cross validation techniques
PDF
L2. Evaluating Machine Learning Algorithms I
PPTX
Lecture-12Evaluation Measures-ML.pptx
PPTX
Important Classification and Regression Metrics.pptx
PPTX
Data Analysis: Evaluation Metrics for Supervised Learning Models of Machine L...
PPT
Classification (ML).ppt
Confusion Matrix
Confusion matrix and classification evaluation metrics
Model selection and cross validation techniques
L2. Evaluating Machine Learning Algorithms I
Lecture-12Evaluation Measures-ML.pptx
Important Classification and Regression Metrics.pptx
Data Analysis: Evaluation Metrics for Supervised Learning Models of Machine L...
Classification (ML).ppt

What's hot (20)

PPTX
Machine Learning - Accuracy and Confusion Matrix
PPT
Back propagation
ODP
NAIVE BAYES CLASSIFIER
PPTX
Naive Bayes Classifier | Naive Bayes Algorithm | Naive Bayes Classifier With ...
PDF
Support Vector Machines ( SVM )
ODP
Machine Learning with Decision trees
PDF
Deep learning
PDF
Naive Bayes
PPTX
Machine Learning - Splitting Datasets
PDF
Classification and Clustering
PDF
K - Nearest neighbor ( KNN )
PPTX
Perceptron & Neural Networks
PPTX
Naive bayes
PPTX
Introduction to Deep Learning
PPT
Randomized algorithms ver 1.0
PDF
Machine learning
PPTX
What Is Deep Learning? | Introduction to Deep Learning | Deep Learning Tutori...
PDF
Decision tree
PPTX
Data mining: Classification and prediction
PDF
Lecture13 - Association Rules
Machine Learning - Accuracy and Confusion Matrix
Back propagation
NAIVE BAYES CLASSIFIER
Naive Bayes Classifier | Naive Bayes Algorithm | Naive Bayes Classifier With ...
Support Vector Machines ( SVM )
Machine Learning with Decision trees
Deep learning
Naive Bayes
Machine Learning - Splitting Datasets
Classification and Clustering
K - Nearest neighbor ( KNN )
Perceptron & Neural Networks
Naive bayes
Introduction to Deep Learning
Randomized algorithms ver 1.0
Machine learning
What Is Deep Learning? | Introduction to Deep Learning | Deep Learning Tutori...
Decision tree
Data mining: Classification and prediction
Lecture13 - Association Rules
Ad

Recently uploaded (20)

PDF
Recruitment and Placement PPT.pdfbjfibjdfbjfobj
PPT
Reliability_Chapter_ presentation 1221.5784
PPTX
Moving the Public Sector (Government) to a Digital Adoption
PPTX
Bharatiya Antariksh Hackathon 2025 Idea Submission PPT.pptx
PDF
Foundation of Data Science unit number two notes
PPTX
Computer network topology notes for revision
PPTX
CEE 2 REPORT G7.pptxbdbshjdgsgjgsjfiuhsd
PPTX
Introduction to Firewall Analytics - Interfirewall and Transfirewall.pptx
PPTX
Major-Components-ofNKJNNKNKNKNKronment.pptx
PPT
Miokarditis (Inflamasi pada Otot Jantung)
PPTX
Introduction-to-Cloud-ComputingFinal.pptx
PPTX
The THESIS FINAL-DEFENSE-PRESENTATION.pptx
PPTX
climate analysis of Dhaka ,Banglades.pptx
PPTX
05. PRACTICAL GUIDE TO MICROSOFT EXCEL.pptx
PPTX
Data_Analytics_and_PowerBI_Presentation.pptx
PPTX
Database Infoormation System (DBIS).pptx
PDF
Clinical guidelines as a resource for EBP(1).pdf
PPTX
Introduction to Basics of Ethical Hacking and Penetration Testing -Unit No. 1...
PPTX
oil_refinery_comprehensive_20250804084928 (1).pptx
PPTX
MODULE 8 - DISASTER risk PREPAREDNESS.pptx
Recruitment and Placement PPT.pdfbjfibjdfbjfobj
Reliability_Chapter_ presentation 1221.5784
Moving the Public Sector (Government) to a Digital Adoption
Bharatiya Antariksh Hackathon 2025 Idea Submission PPT.pptx
Foundation of Data Science unit number two notes
Computer network topology notes for revision
CEE 2 REPORT G7.pptxbdbshjdgsgjgsjfiuhsd
Introduction to Firewall Analytics - Interfirewall and Transfirewall.pptx
Major-Components-ofNKJNNKNKNKNKronment.pptx
Miokarditis (Inflamasi pada Otot Jantung)
Introduction-to-Cloud-ComputingFinal.pptx
The THESIS FINAL-DEFENSE-PRESENTATION.pptx
climate analysis of Dhaka ,Banglades.pptx
05. PRACTICAL GUIDE TO MICROSOFT EXCEL.pptx
Data_Analytics_and_PowerBI_Presentation.pptx
Database Infoormation System (DBIS).pptx
Clinical guidelines as a resource for EBP(1).pdf
Introduction to Basics of Ethical Hacking and Penetration Testing -Unit No. 1...
oil_refinery_comprehensive_20250804084928 (1).pptx
MODULE 8 - DISASTER risk PREPAREDNESS.pptx
Ad

Confusion Matrix Explained

  • 2. What is a Confusion Matrix? A common method for describing the performance of a classification model consisting of true positives, true negatives, false positives, and false negatives. It is called a confusion matrix because it shows how confused the model is between the classes.
  • 3. True Positives Predicted class Apple Orange Pear Actual class Apple 50 5 50 Orange 10 50 20 Pear 5 5 0 The model correctly classified 50 apples and 50 oranges.
  • 4. True Negatives for Apple The model correctly classified 75 cases as not belonging to class apple. Predicted class Apple Orange Pear Actual class Apple 50 5 50 Orange 10 50 20 Pear 5 5 0
  • 5. True Negatives for Orange The model correctly classified 105 cases as not belonging to class orange. Predicted class Apple Orange Pear Actual class Apple 50 5 50 Orange 10 50 20 Pear 5 5 0
  • 6. True Negatives for Pear The model correctly classified 115 cases as not belonging to class pear. Predicted class Apple Orange Pear Actual class Apple 50 5 50 Orange 10 50 20 Pear 5 5 0
  • 7. False Positives for Apple The model incorrectly classified 15 cases as apples. Predicted class Apple Orange Pear Actual class Apple 50 5 50 Orange 10 50 20 Pear 5 5 0
  • 8. False Positives for Orange The model incorrectly classified 10 cases as oranges. Predicted class Apple Orange Pear Actual class Apple 50 5 50 Orange 10 50 20 Pear 5 5 0
  • 9. False Positives for Pear The model incorrectly classified 70 cases as pears. Predicted class Apple Orange Pear Actual class Apple 50 5 50 Orange 10 50 20 Pear 5 5 0
  • 10. False Negatives for Apple The model incorrectly classified 55 cases as not belonging to class apple. Predicted class Apple Orange Pear Actual class Apple 50 5 50 Orange 10 50 20 Pear 5 5 0
  • 11. False Negatives for Orange The model incorrectly classified 30 cases as not belonging to class orange. Predicted class Apple Orange Pear Actual class Apple 50 5 50 Orange 10 50 20 Pear 5 5 0
  • 12. False Negatives for Pear The model incorrectly classified 10 cases as not belonging to class pears. Predicted class Apple Orange Pear Actual class Apple 50 5 50 Orange 10 50 20 Pear 5 5 0