wisemonkeys logo
FeedNotificationProfileManage Forms
FeedNotificationSearchSign in
wisemonkeys logo

Blogs

Decoding Confusion Matrix

profile
Prerna
Oct 06, 2022
0 Likes
1 Discussions
135 Reads

The complete lifecycle of a Predictive modeling includes Data Cleaning, Pre-processing and Data Wrangling. Now comes the stage where we try to fit in the model and the end goal is to achieve Low Bias and Low Variance. The most important step is of Model Evaluation post Model Creation . We often fail to understand the resultant performance Evaluation metrics.

Let us know go through the Confusion Matrix-

Supervised Classification problems are evaluated with the help of Confusion Matrix.

Today, let’s understand the confusion matrix once and for all.

It is a table of 2x2 having combinations of actual and predicted values.

It is also useful for evaluating other performance values such as Precision, Recall, Accuracy.

Let’s understand this in simple Terms-

True Positive(TP) — You predicted a woman is pregnant and she is pregnant in reality

True Negative(TN)- You predicted a man is not pregnant and he is actually not.

False Positive(FP)- You predicted a man is pregnant but he is not in reality. It is also called as Type I error.

False Negative(FN)- You predicted a woman is not pregnant but she is pregnant in reality. It is also called as Type II error.

Recall- It is also called as Sensitivity and True Positive Rate.

Recall(TPR)= TP/(TP+FN)

It states, out of all positive how much our model is able to correct direct.

We should focus on increasing Recall when False Negative is very important to us. For example,

A person has cancer and we have predicted that he does not have cancer.

Precision- It is also called as Positive Pred Value and False Positive Rate. It is the Type I error in our confusion matrix.

Precision(FPR) = TP/(TP+FP)

It states, out of all the positive predicted classes how many are actually positive.

We often focus on increasing Precision when False Positive is of higher importance. For example, A mail is not spam but we have predicted it as Spam.

Accuracy- It is the matrix of our correctly predicted values by all the values of the matrix.

Accuracy= TP+TN/(TP+FP+FN+TN)

I hope I’ve given you some basic understanding on what exactly is confusing matrix. If you like this post, please clap👏 to motivate .

Let’s connect on :

Likedln : https://www.linkedin.com/in/prerna-nichani

Thankyou for Reading!


Comments ()


Sign in

Read Next

Penetration Testing

Blog banner

How to Add Super Seeds to Your Everyday Meals: Easy & Healthy Ideas

Blog banner

american greatines

Blog banner

Virtual Machine

Blog banner

A True Friendship

Blog banner

Kernel Modes: User Mode vs. Kernel Mode - 80

Blog banner

The Benefits of Practical Life Activities in Preschool

Blog banner

Cache Memory

Blog banner

The Danger of Irregular Meals: Why Skipping Lunch or Eating Late Ruins Your Metabolism

Blog banner

K-means use cases

Blog banner

Modern Operating System

Blog banner

Google App Engine

Blog banner

Emailing the merger document

Blog banner

MULTITHREADING:ENHANCEING PERFORMANCE AND EFFICIENCY IN COMPUTING

Blog banner

All you need to know about Cassandra

Blog banner

Decrypting Cryptocurrency: Tracing Transactions in Cyber Investigations

Blog banner

How can denial-of-service(Dos) attacks be prevented?

Blog banner

Operating system

Blog banner

Gis in agriculture and farming

Blog banner

Why White Bedding Has Become a Hotel Industry Standard?

Blog banner

From Freezer to Fryer in Minutes: Quick & Easy Evening Snacks for Unexpected Guests

Blog banner

How Paint Protection Film Protects Your Car From Scratches and Stone Chips

Blog banner

How Music Helps Children Develop Memory, Rhythm, and Language

Blog banner

Celebrate Raksha Bandhan with Premium Dry Fruit Gift Hampers

Blog banner

Pilgrimage at LOC: A privilege and a paradox

Blog banner

E-security systems | CCTV

Blog banner

IT RISK

Blog banner

What is a Malware ?

Blog banner

From Websites To Super Apps For Digital User Experience

Blog banner

Windows Operating System

Blog banner

Modern operating system

Blog banner

Linux Virtual Machine Process Scheduling

Blog banner

What Makes a School Safe, Supportive, and Student-Friendly

Blog banner

OS Assignment 1

Blog banner

Simple STEM Activities for Toddlers That Spark Curiosity

Blog banner

IoT Architecture Based Security

Blog banner

IT Service Continuity Management

Blog banner

Security requirements for Safe E-Payments

Blog banner

Web browser forensics:Tools,Evidence collection and analysis

Blog banner

Kayak Eco Tours Near Arcadia: A Complete Guide for Nature Lovers

Blog banner

Indian Culture and Tradition

Blog banner

Stop Racism

Blog banner