wisemonkeys logo
FeedNotificationProfileManage Forms
FeedNotificationSearchSign in
wisemonkeys logo

Blogs

Decoding Confusion Matrix

profile
Prerna
Oct 06, 2022
0 Likes
1 Discussions
134 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

Affiliate Marketing V/S Influencer Marketing

Blog banner

Predicting Student Performance with Data Science

Blog banner

Metasploit

Blog banner

Malicious softwares

Blog banner

What is Spyware? and examples of them.

Blog banner

The Peephole

Blog banner

Interesting fact about kangaroo.

Blog banner

Web Site

Blog banner

Cyber Forensics

Blog banner

Precision-Recall in Data Science

Blog banner

**THE MUJAWARR: Transforming the Logistics Industry**

Blog banner

Deadlock and Starvation

Blog banner

The Power of Teamwork: Learning Collaboration Through Everyday Activities

Blog banner

OS Evolution Achievements

Blog banner

Linux Threads:

Blog banner

Models of Information Security.

Blog banner

Understanding the 'Ambiverts'

Blog banner

Modern operating system

Blog banner

Lemon and Chilli Pickle (Limbu Mirchi Achar)

Blog banner

Sniffing: A Cyber Security Threat

Blog banner

Importance Of Yoga.

Blog banner

Simple Ways of Avoiding Basic Mistakes in Smart Phone Security

Blog banner

Importance of internet

Blog banner

DATA VAULT

Blog banner

Rock, Paper, Scissors Game in Common Lisp

Blog banner

Personalized Movie Recommendations with Data Science

Blog banner

How to setup a professional looking business account on Instagram?

Blog banner

Memory Management

Blog banner

Body Image and Low Self Esteem: Understanding the Emotional Impact Beyond Appearance

Blog banner

Working with Sniffers for monitoring network communication

Blog banner

IS CONVERTING AMBITION INTO PROFESSION?

Blog banner

New Ransomware Encrypts Your Android And Then Changes PIN Lock

Blog banner

FOMO Fear of Missing Out: When Comparison Steals Your Peace of Mind

Blog banner

OPERATING SYSTEM OBJECTIVES AND FAULT TOLERENCE.

Blog banner

Memory Management

Blog banner

City2Surf & Spring Fitness Recovery Guide: How Sports Drinks Silently Damage Enamel

Blog banner

OS Assignment 1

Blog banner

A Short History of GIS

Blog banner

IOT Hacking Techniques

Blog banner

How Cyber Forensics use in AI

Blog banner

Multiprocessor and scheduling

Blog banner

Virtual memory

Blog banner