wisemonkeys logo
FeedNotificationProfileManage Forms
FeedNotificationSearchSign in
wisemonkeys logo

Blogs

Decoding Confusion Matrix

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

Google App Engine

Blog banner

How to insert contacts in zoho crm using php

Blog banner

Os assignment

Blog banner

MACHINE LEARNING

Blog banner

Wedding photographer

Blog banner

E-security systems | CCTV

Blog banner

Career v/s Job : Choose your passion

Blog banner

Instagram

Blog banner

Regression Analysis

Blog banner

Art and Culture of Rajasthan

Blog banner

Virtual Memory

Blog banner

Brain wash of social media

Blog banner

What Your Music Taste Reveals About Your Personality

Blog banner

Understanding Univariate, Bivariate, and Multivariate Analysis in Data Science

Blog banner

Service Transition Process in ITSM

Blog banner

Data Science in Mental Health Prediction

Blog banner

A little bit of salt is all the hash needs!

Blog banner

How Laughing Gas Makes Your Dental Visit So Much Easier

Blog banner

Benefits of Yoga

Blog banner

Challenges of Digital forensics in cloud computing environment

Blog banner

bulk email software

Blog banner

10 Unknown facts about India's Independence

Blog banner

Memory Management in Operating System

Blog banner

Facebook marketing

Blog banner

Types of Hackers.

Blog banner

DISK SCHEDULING

Blog banner

When Is the Right Time to Enrol My Toddler Into Preschool? NEP

Blog banner

AOL Mail

Blog banner

SPEM

Blog banner

How To Invest in Indian Stock Market For Beginners. ~ Tutorial 2 (NSDL And CSDL) Continued...

Blog banner

MY FIRST BLOG?

Blog banner

Memory heirachy (Operating system)

Blog banner

Importance Of Education.

Blog banner

Security issues

Blog banner

Corporate Discipline.

Blog banner

What are Virtual Machines

Blog banner

"The Benefits of Using GIS in Agriculture"

Blog banner

Linux

Blog banner

HubSpot

Blog banner

Krishna Rao SAP ID--53003230076

Blog banner

Article on team management software

Blog banner

Layers Of Blockchain

Blog banner