SlideShare une entreprise Scribd logo
1  sur  16
BANK
CUSTOMER
SEGMENTATION
Research Project 1
INTRODUCTION
 I got this dataset from Kaggle website. This dataset is all
about transactions.
 Most banks have a large customer base - with different
characteristics in terms of age, income, values, lifestyle, and
more.
 Customer segmentation is the process of dividing a customer
dataset into specific groups based on shared traits.
 This process allows financial institutions to better understand
their customers and tailor their products, services, and
marketing strategies to meet the unique requirements of each
segment.
 Customer understanding should be a living, breathing part of
everyday business, with insights underpinning the full range of
banking operations.
CONTENT
 Importing Libraries
 Dataset Features
 ​EDA (Exploratory Data Analysis)
 Visualization
 ​Manipulating Data
 Dealing with “Null” Values
 Encoding the Categorical Data
 KMeans
 DBSCAN
 Conclusion
IMPORTING LIBRARIES
We will be using the following libraries :
 Pandas Library :-
It is useful for Data Processing and Analysis.
 Pandas Data frame :-
It is a Two-Dimensional tabular data structured
with labeled axes(rows and columns).
 Seaborn :-
It is useful for Data Visualization.
 Numpy :-
It is a Python library used for working
with Arrays.
 Matplotlib.pyplot :-
It is useful for making Plots.
DATASET FEATURES
 TransactionID
 CustomerID
 CustomerDOB
 CustGender
 CustLocation
 CustAccountBalance
 TransactionDate
 TransactionTime
 TransactionAmount (INR)
EDA (EXPLORATORY DATA ANALYSIS)
 Exploratory Data Analysis (EDA) is a crucial phase in the data analysis process, where analysts and data
scientists examine and summarize the main characteristics of a dataset.
 EDA plays a pivotal role in hypothesis generation, data cleaning, and guiding the selection of appropriate
modeling techniques, ultimately facilitating more informed and effective decision-making processes based
on a solid understanding of the data at hand.
 As we can see there some null values in “CustomerDOB” , “CustGender” and
“CustAccountBalance” . We will treat it further.
 Then we use describe function, with the help of this function we will get Count, mean, minimum,
maximum and some more statistical values of numeric column.
VISUALIZATION
 Seaborn : It is useful for making Plots.
1. Heat Map or Co-relation Matrix : With the help of heat map we can see the co-relation between each
column in dataset.
2. Histplot : This type of plot displays the distribution of a dataset by dividing it into bins and representing
the frequency of data points within each bin with bars, providing insights into the underlying data
distribution.
3. As we can see in histplot about customer gender, there are more male customers as compared to
female customers
MANIPULATING DATA
 Manipulating data involves transforming, cleaning or organizing information within a dataset to extract
meaningful insights.
 There is column “TransactionDate” I changed his type to datetime.
 With the help of this column I created three new columns “transaction_year”, “transaction_month” and
“transaction_day”.
 After all the process I deleted or drop that columns which are not useful or not matter for machine
learning model
DEALING WITH “NULL” VALUES
 As we saw in EDA there are some null values in “CustAccountBalance” and “CustGender”.
 I filled “CustAccountBalance” null values with “0” value cause account balance is very sensitive part
in transactions and we can’t just filled it with assumptions cause this will mislead us.
 “CustGender” is a categorical column so null values of this column can’t filled with mean or median.
This null values can only filled with mode value of that column.
ENCODING THE CATEGORICAL DATA
 The process of converting categorical data into numerical data form is called “Categorical Encoding.
 There are few methods of categorical encoding like Label encoding and One-Hot encoding.
 I choose label encoding instead of one-hot encoding cause it makes data too complicated.
 After deleting or dropping some columns, now there are only two categorical columns which we
have too encode or convert into numeric column. The two columns are “ CustGender” and
“Custloaction” .
 This is how our data looks like after all preprocessing and encoding the categorical data.
KMEANS
 K-means clustering is a popular unsupervised machine learning algorithm used for partitioning a
dataset into a set of distinct, non-overlapping subgroups or clusters.
 The primary goal of K-means is to group similar data points together and assign them to clusters based
on certain features or attributes.
 Deciding clusters is one of the critical and
important part in KMeans algorithm.
 There is a method for deciding number of
cluster which called Elbow Method.
 Elbow Method: It involves plotting the
Within-Cluster Sum of Squares (WCSS)
against different values of k and identifying
the "elbow point," where the reduction in
WCSS starts to slow down.
 So in this dataset according to elbow
method the number of cluster should be 2
which are based on customer gender “Male”
and “Female”.
This will not very helpful or making sense.
 After observing and studying the dataset I find out there are total twenty unique locations in
customer location column.
 So I decided to make 20 clusters cause it will make some sense for the machine learning model.
 After making twenty cluster I check the “Silhouette Score” metric.
 This metric is used to assess the quality of clusters in clustering methods.
 The Silhouette score for this algorithm is 69.83% which is decent score.
DBSCAN
 DBSCAN, or Density-Based Spatial Clustering of Applications with Noise, is a popular unsupervised
machine learning algorithm used for clustering spatial data points based on their density distribution.
 Unlike K-means, DBSCAN does not require specifying the number of clusters in advance. Instead, it
defines clusters as dense regions separated by areas of lower point density.
CONCLUSION
 KMeans algorithm works more better than
DBCSAN(Density-Based Spatial Clustering of
Applications with Noise).
 We made 20 clusters in KMeans algorithm based on
customer location. Which are helpful for bank to
target those locations for making promotion through
ads or creating new exciting offers or policies from
where the most of transactions or huge amount of
transactions were done.
 DBSCAN algorithm is not resulting good as his
silhouette score comes in negative.
 Silhouette score of DBSACN comes negative cause
DBSCAN is not good for high density datasets.
 This all information is enough to choose KMeans
algorithm instead of DBSCAN algorithm.
THANK YOU!!!

Contenu connexe

Similaire à Data Analysis Project Presentation: Unveiling Your Ideal Customer, Bank Customer Segmentation

K Means Clustering Algorithm for Partitioning Data Sets Evaluated From Horizo...
K Means Clustering Algorithm for Partitioning Data Sets Evaluated From Horizo...K Means Clustering Algorithm for Partitioning Data Sets Evaluated From Horizo...
K Means Clustering Algorithm for Partitioning Data Sets Evaluated From Horizo...IOSR Journals
 
Weka_Manual_Sagar
Weka_Manual_SagarWeka_Manual_Sagar
Weka_Manual_SagarSagar Kumar
 
Characterization and Comparison
Characterization and ComparisonCharacterization and Comparison
Characterization and ComparisonBenjamin Franklin
 
dataminingpres-150821063129-lva1-app6891 (3).pdf
dataminingpres-150821063129-lva1-app6891 (3).pdfdataminingpres-150821063129-lva1-app6891 (3).pdf
dataminingpres-150821063129-lva1-app6891 (3).pdfAnilGupta681764
 
multi dimensional data model
multi dimensional data modelmulti dimensional data model
multi dimensional data modelmoni sindhu
 
Introduction to data mining
Introduction to data miningIntroduction to data mining
Introduction to data miningUjjawal
 
Data Warehousing AWS 12345
Data Warehousing AWS 12345Data Warehousing AWS 12345
Data Warehousing AWS 12345AkhilSinghal21
 
Clustering
ClusteringClustering
ClusteringMeme Hei
 
Cssu dw dm
Cssu dw dmCssu dw dm
Cssu dw dmsumit621
 
Mi0034 –database management systems
Mi0034 –database management systemsMi0034 –database management systems
Mi0034 –database management systemssmumbahelp
 
Excel Datamining Addin Beginner
Excel Datamining Addin BeginnerExcel Datamining Addin Beginner
Excel Datamining Addin Beginnerexcel content
 
Data preprocessing in Data Mining
Data preprocessing in Data MiningData preprocessing in Data Mining
Data preprocessing in Data MiningDHIVYADEVAKI
 

Similaire à Data Analysis Project Presentation: Unveiling Your Ideal Customer, Bank Customer Segmentation (20)

Data Mining: Data Preprocessing
Data Mining: Data PreprocessingData Mining: Data Preprocessing
Data Mining: Data Preprocessing
 
K Means Clustering Algorithm for Partitioning Data Sets Evaluated From Horizo...
K Means Clustering Algorithm for Partitioning Data Sets Evaluated From Horizo...K Means Clustering Algorithm for Partitioning Data Sets Evaluated From Horizo...
K Means Clustering Algorithm for Partitioning Data Sets Evaluated From Horizo...
 
mod 2.pdf
mod 2.pdfmod 2.pdf
mod 2.pdf
 
Bank Customer Churn Prediction- Saurav Singh.pptx
Bank Customer Churn Prediction- Saurav Singh.pptxBank Customer Churn Prediction- Saurav Singh.pptx
Bank Customer Churn Prediction- Saurav Singh.pptx
 
Predictive modeling
Predictive modelingPredictive modeling
Predictive modeling
 
Weka_Manual_Sagar
Weka_Manual_SagarWeka_Manual_Sagar
Weka_Manual_Sagar
 
69.pdf
69.pdf69.pdf
69.pdf
 
Characterization and Comparison
Characterization and ComparisonCharacterization and Comparison
Characterization and Comparison
 
dataminingpres-150821063129-lva1-app6891 (3).pdf
dataminingpres-150821063129-lva1-app6891 (3).pdfdataminingpres-150821063129-lva1-app6891 (3).pdf
dataminingpres-150821063129-lva1-app6891 (3).pdf
 
multi dimensional data model
multi dimensional data modelmulti dimensional data model
multi dimensional data model
 
Introduction to data mining
Introduction to data miningIntroduction to data mining
Introduction to data mining
 
Data Warehousing AWS 12345
Data Warehousing AWS 12345Data Warehousing AWS 12345
Data Warehousing AWS 12345
 
Clustering
ClusteringClustering
Clustering
 
Date Analysis .pdf
Date Analysis .pdfDate Analysis .pdf
Date Analysis .pdf
 
Cssu dw dm
Cssu dw dmCssu dw dm
Cssu dw dm
 
Mi0034 –database management systems
Mi0034 –database management systemsMi0034 –database management systems
Mi0034 –database management systems
 
Excel Datamining Addin Beginner
Excel Datamining Addin BeginnerExcel Datamining Addin Beginner
Excel Datamining Addin Beginner
 
Excel Datamining Addin Beginner
Excel Datamining Addin BeginnerExcel Datamining Addin Beginner
Excel Datamining Addin Beginner
 
Bank loan purchase modeling
Bank loan purchase modelingBank loan purchase modeling
Bank loan purchase modeling
 
Data preprocessing in Data Mining
Data preprocessing in Data MiningData preprocessing in Data Mining
Data preprocessing in Data Mining
 

Plus de Boston Institute of Analytics

NLP Based project presentation: Analyzing Automobile Prices
NLP Based project presentation: Analyzing Automobile PricesNLP Based project presentation: Analyzing Automobile Prices
NLP Based project presentation: Analyzing Automobile PricesBoston Institute of Analytics
 
Data Science Project: Advancements in Fetal Health Classification
Data Science Project: Advancements in Fetal Health ClassificationData Science Project: Advancements in Fetal Health Classification
Data Science Project: Advancements in Fetal Health ClassificationBoston Institute of Analytics
 
Combating Fraudulent Transactions: A Deep Dive into Credit Card Fraud Detection
Combating Fraudulent Transactions: A Deep Dive into Credit Card Fraud DetectionCombating Fraudulent Transactions: A Deep Dive into Credit Card Fraud Detection
Combating Fraudulent Transactions: A Deep Dive into Credit Card Fraud DetectionBoston Institute of Analytics
 
Predicting Liver Disease in India: A Machine Learning Approach
Predicting Liver Disease in India: A Machine Learning ApproachPredicting Liver Disease in India: A Machine Learning Approach
Predicting Liver Disease in India: A Machine Learning ApproachBoston Institute of Analytics
 
Employee Churn Prediction: Artificial Intelligence Project Presentation
Employee Churn Prediction: Artificial Intelligence Project PresentationEmployee Churn Prediction: Artificial Intelligence Project Presentation
Employee Churn Prediction: Artificial Intelligence Project PresentationBoston Institute of Analytics
 
Predicting Employee Churn: A Data-Driven Approach Project Presentation
Predicting Employee Churn: A Data-Driven Approach Project PresentationPredicting Employee Churn: A Data-Driven Approach Project Presentation
Predicting Employee Churn: A Data-Driven Approach Project PresentationBoston Institute of Analytics
 
NLP Project PPT: Flipkart Product Reviews through NLP Data Science.pptx
NLP Project PPT: Flipkart Product Reviews through NLP Data Science.pptxNLP Project PPT: Flipkart Product Reviews through NLP Data Science.pptx
NLP Project PPT: Flipkart Product Reviews through NLP Data Science.pptxBoston Institute of Analytics
 
NLP Data Science Project Presentation:Predicting Heart Disease with NLP Data ...
NLP Data Science Project Presentation:Predicting Heart Disease with NLP Data ...NLP Data Science Project Presentation:Predicting Heart Disease with NLP Data ...
NLP Data Science Project Presentation:Predicting Heart Disease with NLP Data ...Boston Institute of Analytics
 
Predicting Salary Using Data Science: A Comprehensive Analysis.pdf
Predicting Salary Using Data Science: A Comprehensive Analysis.pdfPredicting Salary Using Data Science: A Comprehensive Analysis.pdf
Predicting Salary Using Data Science: A Comprehensive Analysis.pdfBoston Institute of Analytics
 
Predictive Analysis for Loan Default Presentation : Data Analysis Project PPT
Predictive Analysis for Loan Default  Presentation : Data Analysis Project PPTPredictive Analysis for Loan Default  Presentation : Data Analysis Project PPT
Predictive Analysis for Loan Default Presentation : Data Analysis Project PPTBoston Institute of Analytics
 
Heart Disease Classification Report: A Data Analysis Project
Heart Disease Classification Report: A Data Analysis ProjectHeart Disease Classification Report: A Data Analysis Project
Heart Disease Classification Report: A Data Analysis ProjectBoston Institute of Analytics
 
Nmap project presentation : Unlocking Network Secrets: Mastering Port Scannin...
Nmap project presentation : Unlocking Network Secrets: Mastering Port Scannin...Nmap project presentation : Unlocking Network Secrets: Mastering Port Scannin...
Nmap project presentation : Unlocking Network Secrets: Mastering Port Scannin...Boston Institute of Analytics
 
Cyber Security Project Presentation : Essential Reconnaissance Tools and Tech...
Cyber Security Project Presentation : Essential Reconnaissance Tools and Tech...Cyber Security Project Presentation : Essential Reconnaissance Tools and Tech...
Cyber Security Project Presentation : Essential Reconnaissance Tools and Tech...Boston Institute of Analytics
 
Identifying and Eradicating Web Application Vulnerabilities : Cyber Security ...
Identifying and Eradicating Web Application Vulnerabilities : Cyber Security ...Identifying and Eradicating Web Application Vulnerabilities : Cyber Security ...
Identifying and Eradicating Web Application Vulnerabilities : Cyber Security ...Boston Institute of Analytics
 
Cyber Security Project Presentation: Unveiling Reconnaissance Tools and Techn...
Cyber Security Project Presentation: Unveiling Reconnaissance Tools and Techn...Cyber Security Project Presentation: Unveiling Reconnaissance Tools and Techn...
Cyber Security Project Presentation: Unveiling Reconnaissance Tools and Techn...Boston Institute of Analytics
 
Data Analysis Project : Targeting the Right Customers, Presentation on Bank M...
Data Analysis Project : Targeting the Right Customers, Presentation on Bank M...Data Analysis Project : Targeting the Right Customers, Presentation on Bank M...
Data Analysis Project : Targeting the Right Customers, Presentation on Bank M...Boston Institute of Analytics
 
Decoding the Heart: Student Presentation on Heart Attack Prediction with Data...
Decoding the Heart: Student Presentation on Heart Attack Prediction with Data...Decoding the Heart: Student Presentation on Heart Attack Prediction with Data...
Decoding the Heart: Student Presentation on Heart Attack Prediction with Data...Boston Institute of Analytics
 

Plus de Boston Institute of Analytics (20)

E-Commerce Order PredictionShraddha Kamble.pptx
E-Commerce Order PredictionShraddha Kamble.pptxE-Commerce Order PredictionShraddha Kamble.pptx
E-Commerce Order PredictionShraddha Kamble.pptx
 
NLP Based project presentation: Analyzing Automobile Prices
NLP Based project presentation: Analyzing Automobile PricesNLP Based project presentation: Analyzing Automobile Prices
NLP Based project presentation: Analyzing Automobile Prices
 
Decoding Loan Approval: Predictive Modeling in Action
Decoding Loan Approval: Predictive Modeling in ActionDecoding Loan Approval: Predictive Modeling in Action
Decoding Loan Approval: Predictive Modeling in Action
 
Analyzing Movie Reviews : Machine learning project
Analyzing Movie Reviews : Machine learning projectAnalyzing Movie Reviews : Machine learning project
Analyzing Movie Reviews : Machine learning project
 
Data Science Project: Advancements in Fetal Health Classification
Data Science Project: Advancements in Fetal Health ClassificationData Science Project: Advancements in Fetal Health Classification
Data Science Project: Advancements in Fetal Health Classification
 
Combating Fraudulent Transactions: A Deep Dive into Credit Card Fraud Detection
Combating Fraudulent Transactions: A Deep Dive into Credit Card Fraud DetectionCombating Fraudulent Transactions: A Deep Dive into Credit Card Fraud Detection
Combating Fraudulent Transactions: A Deep Dive into Credit Card Fraud Detection
 
Predicting Liver Disease in India: A Machine Learning Approach
Predicting Liver Disease in India: A Machine Learning ApproachPredicting Liver Disease in India: A Machine Learning Approach
Predicting Liver Disease in India: A Machine Learning Approach
 
Employee Churn Prediction: Artificial Intelligence Project Presentation
Employee Churn Prediction: Artificial Intelligence Project PresentationEmployee Churn Prediction: Artificial Intelligence Project Presentation
Employee Churn Prediction: Artificial Intelligence Project Presentation
 
Predicting Employee Churn: A Data-Driven Approach Project Presentation
Predicting Employee Churn: A Data-Driven Approach Project PresentationPredicting Employee Churn: A Data-Driven Approach Project Presentation
Predicting Employee Churn: A Data-Driven Approach Project Presentation
 
NLP Project PPT: Flipkart Product Reviews through NLP Data Science.pptx
NLP Project PPT: Flipkart Product Reviews through NLP Data Science.pptxNLP Project PPT: Flipkart Product Reviews through NLP Data Science.pptx
NLP Project PPT: Flipkart Product Reviews through NLP Data Science.pptx
 
NLP Data Science Project Presentation:Predicting Heart Disease with NLP Data ...
NLP Data Science Project Presentation:Predicting Heart Disease with NLP Data ...NLP Data Science Project Presentation:Predicting Heart Disease with NLP Data ...
NLP Data Science Project Presentation:Predicting Heart Disease with NLP Data ...
 
Predicting Salary Using Data Science: A Comprehensive Analysis.pdf
Predicting Salary Using Data Science: A Comprehensive Analysis.pdfPredicting Salary Using Data Science: A Comprehensive Analysis.pdf
Predicting Salary Using Data Science: A Comprehensive Analysis.pdf
 
Predictive Analysis for Loan Default Presentation : Data Analysis Project PPT
Predictive Analysis for Loan Default  Presentation : Data Analysis Project PPTPredictive Analysis for Loan Default  Presentation : Data Analysis Project PPT
Predictive Analysis for Loan Default Presentation : Data Analysis Project PPT
 
Heart Disease Classification Report: A Data Analysis Project
Heart Disease Classification Report: A Data Analysis ProjectHeart Disease Classification Report: A Data Analysis Project
Heart Disease Classification Report: A Data Analysis Project
 
Nmap project presentation : Unlocking Network Secrets: Mastering Port Scannin...
Nmap project presentation : Unlocking Network Secrets: Mastering Port Scannin...Nmap project presentation : Unlocking Network Secrets: Mastering Port Scannin...
Nmap project presentation : Unlocking Network Secrets: Mastering Port Scannin...
 
Cyber Security Project Presentation : Essential Reconnaissance Tools and Tech...
Cyber Security Project Presentation : Essential Reconnaissance Tools and Tech...Cyber Security Project Presentation : Essential Reconnaissance Tools and Tech...
Cyber Security Project Presentation : Essential Reconnaissance Tools and Tech...
 
Identifying and Eradicating Web Application Vulnerabilities : Cyber Security ...
Identifying and Eradicating Web Application Vulnerabilities : Cyber Security ...Identifying and Eradicating Web Application Vulnerabilities : Cyber Security ...
Identifying and Eradicating Web Application Vulnerabilities : Cyber Security ...
 
Cyber Security Project Presentation: Unveiling Reconnaissance Tools and Techn...
Cyber Security Project Presentation: Unveiling Reconnaissance Tools and Techn...Cyber Security Project Presentation: Unveiling Reconnaissance Tools and Techn...
Cyber Security Project Presentation: Unveiling Reconnaissance Tools and Techn...
 
Data Analysis Project : Targeting the Right Customers, Presentation on Bank M...
Data Analysis Project : Targeting the Right Customers, Presentation on Bank M...Data Analysis Project : Targeting the Right Customers, Presentation on Bank M...
Data Analysis Project : Targeting the Right Customers, Presentation on Bank M...
 
Decoding the Heart: Student Presentation on Heart Attack Prediction with Data...
Decoding the Heart: Student Presentation on Heart Attack Prediction with Data...Decoding the Heart: Student Presentation on Heart Attack Prediction with Data...
Decoding the Heart: Student Presentation on Heart Attack Prediction with Data...
 

Dernier

Call Girls in Defence Colony Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Defence Colony Delhi 💯Call Us 🔝8264348440🔝Call Girls in Defence Colony Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Defence Colony Delhi 💯Call Us 🔝8264348440🔝soniya singh
 
From idea to production in a day – Leveraging Azure ML and Streamlit to build...
From idea to production in a day – Leveraging Azure ML and Streamlit to build...From idea to production in a day – Leveraging Azure ML and Streamlit to build...
From idea to production in a day – Leveraging Azure ML and Streamlit to build...Florian Roscheck
 
Customer Service Analytics - Make Sense of All Your Data.pptx
Customer Service Analytics - Make Sense of All Your Data.pptxCustomer Service Analytics - Make Sense of All Your Data.pptx
Customer Service Analytics - Make Sense of All Your Data.pptxEmmanuel Dauda
 
9711147426✨Call In girls Gurgaon Sector 31. SCO 25 escort service
9711147426✨Call In girls Gurgaon Sector 31. SCO 25 escort service9711147426✨Call In girls Gurgaon Sector 31. SCO 25 escort service
9711147426✨Call In girls Gurgaon Sector 31. SCO 25 escort servicejennyeacort
 
办理(Vancouver毕业证书)加拿大温哥华岛大学毕业证成绩单原版一比一
办理(Vancouver毕业证书)加拿大温哥华岛大学毕业证成绩单原版一比一办理(Vancouver毕业证书)加拿大温哥华岛大学毕业证成绩单原版一比一
办理(Vancouver毕业证书)加拿大温哥华岛大学毕业证成绩单原版一比一F La
 
办理学位证中佛罗里达大学毕业证,UCF成绩单原版一比一
办理学位证中佛罗里达大学毕业证,UCF成绩单原版一比一办理学位证中佛罗里达大学毕业证,UCF成绩单原版一比一
办理学位证中佛罗里达大学毕业证,UCF成绩单原版一比一F sss
 
dokumen.tips_chapter-4-transient-heat-conduction-mehmet-kanoglu.ppt
dokumen.tips_chapter-4-transient-heat-conduction-mehmet-kanoglu.pptdokumen.tips_chapter-4-transient-heat-conduction-mehmet-kanoglu.ppt
dokumen.tips_chapter-4-transient-heat-conduction-mehmet-kanoglu.pptSonatrach
 
04242024_CCC TUG_Joins and Relationships
04242024_CCC TUG_Joins and Relationships04242024_CCC TUG_Joins and Relationships
04242024_CCC TUG_Joins and Relationshipsccctableauusergroup
 
RA-11058_IRR-COMPRESS Do 198 series of 1998
RA-11058_IRR-COMPRESS Do 198 series of 1998RA-11058_IRR-COMPRESS Do 198 series of 1998
RA-11058_IRR-COMPRESS Do 198 series of 1998YohFuh
 
Call Girls In Dwarka 9654467111 Escorts Service
Call Girls In Dwarka 9654467111 Escorts ServiceCall Girls In Dwarka 9654467111 Escorts Service
Call Girls In Dwarka 9654467111 Escorts ServiceSapana Sha
 
Kantar AI Summit- Under Embargo till Wednesday, 24th April 2024, 4 PM, IST.pdf
Kantar AI Summit- Under Embargo till Wednesday, 24th April 2024, 4 PM, IST.pdfKantar AI Summit- Under Embargo till Wednesday, 24th April 2024, 4 PM, IST.pdf
Kantar AI Summit- Under Embargo till Wednesday, 24th April 2024, 4 PM, IST.pdfSocial Samosa
 
Industrialised data - the key to AI success.pdf
Industrialised data - the key to AI success.pdfIndustrialised data - the key to AI success.pdf
Industrialised data - the key to AI success.pdfLars Albertsson
 
RadioAdProWritingCinderellabyButleri.pdf
RadioAdProWritingCinderellabyButleri.pdfRadioAdProWritingCinderellabyButleri.pdf
RadioAdProWritingCinderellabyButleri.pdfgstagge
 
(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service
(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service
(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Serviceranjana rawat
 
GA4 Without Cookies [Measure Camp AMS]
GA4 Without Cookies [Measure Camp AMS]GA4 Without Cookies [Measure Camp AMS]
GA4 Without Cookies [Measure Camp AMS]📊 Markus Baersch
 
Dubai Call Girls Wifey O52&786472 Call Girls Dubai
Dubai Call Girls Wifey O52&786472 Call Girls DubaiDubai Call Girls Wifey O52&786472 Call Girls Dubai
Dubai Call Girls Wifey O52&786472 Call Girls Dubaihf8803863
 
办理学位证纽约大学毕业证(NYU毕业证书)原版一比一
办理学位证纽约大学毕业证(NYU毕业证书)原版一比一办理学位证纽约大学毕业证(NYU毕业证书)原版一比一
办理学位证纽约大学毕业证(NYU毕业证书)原版一比一fhwihughh
 
VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130
VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130
VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130Suhani Kapoor
 
Call Us ➥97111√47426🤳Call Girls in Aerocity (Delhi NCR)
Call Us ➥97111√47426🤳Call Girls in Aerocity (Delhi NCR)Call Us ➥97111√47426🤳Call Girls in Aerocity (Delhi NCR)
Call Us ➥97111√47426🤳Call Girls in Aerocity (Delhi NCR)jennyeacort
 

Dernier (20)

Call Girls in Defence Colony Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Defence Colony Delhi 💯Call Us 🔝8264348440🔝Call Girls in Defence Colony Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Defence Colony Delhi 💯Call Us 🔝8264348440🔝
 
From idea to production in a day – Leveraging Azure ML and Streamlit to build...
From idea to production in a day – Leveraging Azure ML and Streamlit to build...From idea to production in a day – Leveraging Azure ML and Streamlit to build...
From idea to production in a day – Leveraging Azure ML and Streamlit to build...
 
Customer Service Analytics - Make Sense of All Your Data.pptx
Customer Service Analytics - Make Sense of All Your Data.pptxCustomer Service Analytics - Make Sense of All Your Data.pptx
Customer Service Analytics - Make Sense of All Your Data.pptx
 
9711147426✨Call In girls Gurgaon Sector 31. SCO 25 escort service
9711147426✨Call In girls Gurgaon Sector 31. SCO 25 escort service9711147426✨Call In girls Gurgaon Sector 31. SCO 25 escort service
9711147426✨Call In girls Gurgaon Sector 31. SCO 25 escort service
 
办理(Vancouver毕业证书)加拿大温哥华岛大学毕业证成绩单原版一比一
办理(Vancouver毕业证书)加拿大温哥华岛大学毕业证成绩单原版一比一办理(Vancouver毕业证书)加拿大温哥华岛大学毕业证成绩单原版一比一
办理(Vancouver毕业证书)加拿大温哥华岛大学毕业证成绩单原版一比一
 
办理学位证中佛罗里达大学毕业证,UCF成绩单原版一比一
办理学位证中佛罗里达大学毕业证,UCF成绩单原版一比一办理学位证中佛罗里达大学毕业证,UCF成绩单原版一比一
办理学位证中佛罗里达大学毕业证,UCF成绩单原版一比一
 
dokumen.tips_chapter-4-transient-heat-conduction-mehmet-kanoglu.ppt
dokumen.tips_chapter-4-transient-heat-conduction-mehmet-kanoglu.pptdokumen.tips_chapter-4-transient-heat-conduction-mehmet-kanoglu.ppt
dokumen.tips_chapter-4-transient-heat-conduction-mehmet-kanoglu.ppt
 
Deep Generative Learning for All - The Gen AI Hype (Spring 2024)
Deep Generative Learning for All - The Gen AI Hype (Spring 2024)Deep Generative Learning for All - The Gen AI Hype (Spring 2024)
Deep Generative Learning for All - The Gen AI Hype (Spring 2024)
 
04242024_CCC TUG_Joins and Relationships
04242024_CCC TUG_Joins and Relationships04242024_CCC TUG_Joins and Relationships
04242024_CCC TUG_Joins and Relationships
 
RA-11058_IRR-COMPRESS Do 198 series of 1998
RA-11058_IRR-COMPRESS Do 198 series of 1998RA-11058_IRR-COMPRESS Do 198 series of 1998
RA-11058_IRR-COMPRESS Do 198 series of 1998
 
Call Girls In Dwarka 9654467111 Escorts Service
Call Girls In Dwarka 9654467111 Escorts ServiceCall Girls In Dwarka 9654467111 Escorts Service
Call Girls In Dwarka 9654467111 Escorts Service
 
Kantar AI Summit- Under Embargo till Wednesday, 24th April 2024, 4 PM, IST.pdf
Kantar AI Summit- Under Embargo till Wednesday, 24th April 2024, 4 PM, IST.pdfKantar AI Summit- Under Embargo till Wednesday, 24th April 2024, 4 PM, IST.pdf
Kantar AI Summit- Under Embargo till Wednesday, 24th April 2024, 4 PM, IST.pdf
 
Industrialised data - the key to AI success.pdf
Industrialised data - the key to AI success.pdfIndustrialised data - the key to AI success.pdf
Industrialised data - the key to AI success.pdf
 
RadioAdProWritingCinderellabyButleri.pdf
RadioAdProWritingCinderellabyButleri.pdfRadioAdProWritingCinderellabyButleri.pdf
RadioAdProWritingCinderellabyButleri.pdf
 
(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service
(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service
(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service
 
GA4 Without Cookies [Measure Camp AMS]
GA4 Without Cookies [Measure Camp AMS]GA4 Without Cookies [Measure Camp AMS]
GA4 Without Cookies [Measure Camp AMS]
 
Dubai Call Girls Wifey O52&786472 Call Girls Dubai
Dubai Call Girls Wifey O52&786472 Call Girls DubaiDubai Call Girls Wifey O52&786472 Call Girls Dubai
Dubai Call Girls Wifey O52&786472 Call Girls Dubai
 
办理学位证纽约大学毕业证(NYU毕业证书)原版一比一
办理学位证纽约大学毕业证(NYU毕业证书)原版一比一办理学位证纽约大学毕业证(NYU毕业证书)原版一比一
办理学位证纽约大学毕业证(NYU毕业证书)原版一比一
 
VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130
VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130
VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130
 
Call Us ➥97111√47426🤳Call Girls in Aerocity (Delhi NCR)
Call Us ➥97111√47426🤳Call Girls in Aerocity (Delhi NCR)Call Us ➥97111√47426🤳Call Girls in Aerocity (Delhi NCR)
Call Us ➥97111√47426🤳Call Girls in Aerocity (Delhi NCR)
 

Data Analysis Project Presentation: Unveiling Your Ideal Customer, Bank Customer Segmentation

  • 2. INTRODUCTION  I got this dataset from Kaggle website. This dataset is all about transactions.  Most banks have a large customer base - with different characteristics in terms of age, income, values, lifestyle, and more.  Customer segmentation is the process of dividing a customer dataset into specific groups based on shared traits.  This process allows financial institutions to better understand their customers and tailor their products, services, and marketing strategies to meet the unique requirements of each segment.  Customer understanding should be a living, breathing part of everyday business, with insights underpinning the full range of banking operations.
  • 3. CONTENT  Importing Libraries  Dataset Features  ​EDA (Exploratory Data Analysis)  Visualization  ​Manipulating Data  Dealing with “Null” Values  Encoding the Categorical Data  KMeans  DBSCAN  Conclusion
  • 4. IMPORTING LIBRARIES We will be using the following libraries :  Pandas Library :- It is useful for Data Processing and Analysis.  Pandas Data frame :- It is a Two-Dimensional tabular data structured with labeled axes(rows and columns).  Seaborn :- It is useful for Data Visualization.  Numpy :- It is a Python library used for working with Arrays.  Matplotlib.pyplot :- It is useful for making Plots.
  • 5. DATASET FEATURES  TransactionID  CustomerID  CustomerDOB  CustGender  CustLocation  CustAccountBalance  TransactionDate  TransactionTime  TransactionAmount (INR)
  • 6. EDA (EXPLORATORY DATA ANALYSIS)  Exploratory Data Analysis (EDA) is a crucial phase in the data analysis process, where analysts and data scientists examine and summarize the main characteristics of a dataset.  EDA plays a pivotal role in hypothesis generation, data cleaning, and guiding the selection of appropriate modeling techniques, ultimately facilitating more informed and effective decision-making processes based on a solid understanding of the data at hand.
  • 7.  As we can see there some null values in “CustomerDOB” , “CustGender” and “CustAccountBalance” . We will treat it further.  Then we use describe function, with the help of this function we will get Count, mean, minimum, maximum and some more statistical values of numeric column.
  • 8. VISUALIZATION  Seaborn : It is useful for making Plots. 1. Heat Map or Co-relation Matrix : With the help of heat map we can see the co-relation between each column in dataset. 2. Histplot : This type of plot displays the distribution of a dataset by dividing it into bins and representing the frequency of data points within each bin with bars, providing insights into the underlying data distribution. 3. As we can see in histplot about customer gender, there are more male customers as compared to female customers
  • 9. MANIPULATING DATA  Manipulating data involves transforming, cleaning or organizing information within a dataset to extract meaningful insights.  There is column “TransactionDate” I changed his type to datetime.  With the help of this column I created three new columns “transaction_year”, “transaction_month” and “transaction_day”.  After all the process I deleted or drop that columns which are not useful or not matter for machine learning model
  • 10. DEALING WITH “NULL” VALUES  As we saw in EDA there are some null values in “CustAccountBalance” and “CustGender”.  I filled “CustAccountBalance” null values with “0” value cause account balance is very sensitive part in transactions and we can’t just filled it with assumptions cause this will mislead us.  “CustGender” is a categorical column so null values of this column can’t filled with mean or median. This null values can only filled with mode value of that column.
  • 11. ENCODING THE CATEGORICAL DATA  The process of converting categorical data into numerical data form is called “Categorical Encoding.  There are few methods of categorical encoding like Label encoding and One-Hot encoding.  I choose label encoding instead of one-hot encoding cause it makes data too complicated.  After deleting or dropping some columns, now there are only two categorical columns which we have too encode or convert into numeric column. The two columns are “ CustGender” and “Custloaction” .  This is how our data looks like after all preprocessing and encoding the categorical data.
  • 12. KMEANS  K-means clustering is a popular unsupervised machine learning algorithm used for partitioning a dataset into a set of distinct, non-overlapping subgroups or clusters.  The primary goal of K-means is to group similar data points together and assign them to clusters based on certain features or attributes.  Deciding clusters is one of the critical and important part in KMeans algorithm.  There is a method for deciding number of cluster which called Elbow Method.  Elbow Method: It involves plotting the Within-Cluster Sum of Squares (WCSS) against different values of k and identifying the "elbow point," where the reduction in WCSS starts to slow down.  So in this dataset according to elbow method the number of cluster should be 2 which are based on customer gender “Male” and “Female”. This will not very helpful or making sense.
  • 13.  After observing and studying the dataset I find out there are total twenty unique locations in customer location column.  So I decided to make 20 clusters cause it will make some sense for the machine learning model.  After making twenty cluster I check the “Silhouette Score” metric.  This metric is used to assess the quality of clusters in clustering methods.  The Silhouette score for this algorithm is 69.83% which is decent score.
  • 14. DBSCAN  DBSCAN, or Density-Based Spatial Clustering of Applications with Noise, is a popular unsupervised machine learning algorithm used for clustering spatial data points based on their density distribution.  Unlike K-means, DBSCAN does not require specifying the number of clusters in advance. Instead, it defines clusters as dense regions separated by areas of lower point density.
  • 15. CONCLUSION  KMeans algorithm works more better than DBCSAN(Density-Based Spatial Clustering of Applications with Noise).  We made 20 clusters in KMeans algorithm based on customer location. Which are helpful for bank to target those locations for making promotion through ads or creating new exciting offers or policies from where the most of transactions or huge amount of transactions were done.  DBSCAN algorithm is not resulting good as his silhouette score comes in negative.  Silhouette score of DBSACN comes negative cause DBSCAN is not good for high density datasets.  This all information is enough to choose KMeans algorithm instead of DBSCAN algorithm.