SlideShare a Scribd company logo
1 of 43
Predictive Analytics for Customer
Targeting
A Telemarketing Banking Example
Pedro Écija Serrano ¦ Independent actuarial and data analytics consultant ¦ pedro_ecija@yahoo.es ¦ https://datadriven.ie/
Predictive Analytics for Customer
Targeting
Agenda
• The Problem (3)
• The Solutions (21)
• The Insight (17)
• The End? (1)
Predictive Analytics for Customer
Targeting
• Acknowledgement: [Moro et al., 2014] S. Moro, P. Cortez
and P. Rita. A Data-Driven Approach to Predict the Success
of Bank Telemarketing. They made the database public.
• Lichman, M. (2013). UCI Machine Learning Repository
[http://archive.ics.uci.edu/ml]. Irvine, CA: University of
California, School of Information and Computer Science.
They host this dataset and many more!
• The goal is to identify customers likely to purchase a bank
deposit in future sales campaigns.
• 41,188 calls.
• 11% purchased the product.
• 20 input variables.
Predictive Analytics for Customer
Targeting
What we know:
• Age
• Job
• Marital Status
• Education
• Default: has the customer defaulted on a loan?
• Housing: has the customer got a mortgage?
• Loan: has the customer got a personal loan?
• Contact: if the customer was called to a landline or a mobile phone
• Month: calendar month of the last contact the bank had with the customer
• Day_Of_Week: day of the week of the last contact the bank had with the customer
• Duration: call duration of the last contact the bank had with the customer – Not used
• Campaign: number of times the bank contacted the client in the last sales campaign
• Pdays: number of days since the bank contacted the client for a previous sales campaign
• Previous: number of contacts with the client prior to the last sales campaign
• Poutcome: outcome of the previous sales campaign (whether the customer bought the product or not)
• Emp.var.rate: employment variation rate
• Cons.price.idx: consumer price index
• Cons.conf.idx: consumer confidence index
• Euribor3m: Euribor’s three month rate
• Nr. Employed: number of individuals employed by the bank?
Predictive Analytics for Customer
Targeting
There are too many customers that do not buy the
product. This is known as class imbalance and will affect
the performance of the classifiers, which will be biased
towards non-buyers as there are so many more than
buyers.
I have considered the following to address this issue:
•Doing nothing
•Over sampling
•Under sampling
•Balanced sampling
•Generating synthetic data (with SMOTE)
Predictive Analytics for Customer
Targeting
• Naive Bayes
• Support Vector Machines
– Linear kernel
– Polynomial kernel
– Radial kernel
– Sigmoid kernel
• Decision Tree
• Currently in quarantine:
– Random Forests
– K Nearest Neighbours
– Gradient Boosting
Dataset divided in training set (2/3) and testing set (1/3)
To address the class imbalance problem, we can do the following for all the above methods:
• Nothing
• Over sample
• Under sample
• Balance sample
• Generate synthetic data
Predictive Analytics for Customer
Targeting
Naive Bayes
It uses conditional probabilities, based on Bayes’ theorem,
allocating an observation to its most probable class.
It assumes variables are normally distributed and not
correlated, which is rarely the case. However the
classifier normally does a good job even when
assumptions are not met.
We end up with the following classifiers:
• VNB – Vanilla naive Bayes
• OSNB – Over sampled naive Bayes
• USNB – Under sampled naive Bayes
• BNB – Balanced sampled naive Bayes
• SynthNB – Syntethic data naive Bayes
Predictive Analytics for Customer
Targeting
Support Vector Machines
It constructs hyperplanes in a multidimensional
space that separates cases of different class
labels
To find an optimal hyperplane, SVM uses an iterative
training algorithm used to minimise an error
function.
The hyper plane does not need to be a straight line.
The kernel trick allows for non-linear
classification. Possible kernels are:
• Linear
• Polynomial
• Radial
• Sigmoid
Predictive Analytics for Customer
Targeting
Support Vector Machines
The combination of methods to solve the class imbalance problem and
kernels results in the following different classifiers:
Do nothing Over sample Under sample
Balanced
sample
Synthetic
data
Linear VSVMLin OSSVMLin USSVMLin BSSVMLin SynthSVMLin
Polynomial VSVMPol OSSVMPol USSVMPol BSSVMPol SynthSVMPol
Radial VSVMRad OSSVMRad USSVMRad BSSVMRad SynthSVMRad
Sigmoid VSVMSig OSSVMSig USSVMSig BSSVMSig SynthSVMSig
Predictive Analytics for Customer
Targeting
Decision Tree
It splits the dataset into subsets based on an
attribute value test.
It continues through recursive partitioning
until the dataset has been explained.
We obtain the following classifiers:
•VTree
•OSTree
•USTree
•BSTree
•SynthTree
Predictive Analytics for Customer
Targeting
Predictive Analytics for Customer
Targeting
Predictive Analytics for Customer
Targeting
Focusing on the bottom left corner
Predictive Analytics for Customer
Targeting
Focusing on the mid tier classifiers
Predictive Analytics for Customer
Targeting
Focusing on the top right corner
Predictive Analytics for Customer
Targeting
Focusing on methods where nothing was done for class imbalance
Predictive Analytics for Customer
Targeting
Focusing on methods with synthetic data
Predictive Analytics for Customer
Targeting
Focusing on under sampled methods
Predictive Analytics for Customer
Targeting
Focusing on naive Bayes
Predictive Analytics for Customer
Targeting
Focusing on SVM Sigmoid
Predictive Analytics for Customer
Targeting
Ensemble 1: everyone is a buyer unless a majority of USNB, USSVMSig and USSVMPol
votes against that assumption
Predictive Analytics for Customer
Targeting
Ensemble 2: everyone is a buyer unless USNB and USSVMSig agree to the opposite
Predictive Analytics for Customer
Targeting
Putting it all in context: the testing data set has 1,516 buyers among 13,729 customers
USNB
Buyers: 1,011
Calls: 3,529
VSVMRad
Buyers: 273
Calls: 399
SynthTree
Buyers: 654
Calls: 1,442
Ensemble 1
Buyers: 1,023
Calls: 3,913
Ensemble 2
Buyers: 1,052
Calls: 4,256
Predictive Analytics for Customer
Targeting
Comparison of percentage of buyers per call
Predictive Analytics for Customer
Targeting
So, are the results good at all?
We can predict...
•Nearly 18% of buyers with 3% of calls using VSVMRad
•More than 22% of buyers with 4% of calls thanks to VTree
•43% of buyers with a bit more than 10% of calls using SynthTree
•Almost 60% of buyers with 16% of calls using SynthSVMRad
•Nearly 67% of buyers with 26% of calls using USNB
•Close to 70% of buyers with 31% of calls using Ensemble 2
Predictive Analytics for Customer
Targeting
So, are the results good at all?
Applying the results to the original dataset:
Method Buyers Calls
VSVMRad 801 1,195
VTree 1,010 1,566
SynthTree 1,956 4,325
SynthSVMRad 2,668 6,632
USNB 3,021 10,586
Ensemble 2 3,143 12,769
Calling everybody 4,530 41,188
Predictive Analytics for Customer
Targeting
After all that, what can we say about buyers? Is there a typical buyer? What conditions
favour a sale?
Image source: Pixabay / Gerd Altmann
Predictive Analytics for Customer
Targeting
According to the USTree, the following
is important:
•Not employing more than 5,088
people
•Not contacting customers in August,
December, July, June, May or November
•The consumer price index being lower
than 94
•Previous contact with the customer
happening less than 506 days ago
Predictive Analytics for Customer
Targeting
Image source: Pixabay / No attribution required
Predictive Analytics for Customer
Targeting
We have no easy way to learn from SVM what
predictors are more important so we focus on
the distributions of buyers vs. non buyers in
the original dataset plus the probabilities
USNB has calculated for each class.
USNB predicts more buyers than any other
method we have tried so far so it may give us
more information too.
Predictive Analytics for Customer
Targeting
Age
Predictive Analytics for Customer
Targeting
Number of previous contacts
Predictive Analytics for Customer
Targeting
Calling a landline or a mobile phone
Predictive Analytics for Customer
Targeting
Calling on a specific day of the week
Predictive Analytics for Customer
Targeting
Defaulting customers
Predictive Analytics for Customer
Targeting
Education levels
Predictive Analytics for Customer
Targeting
Employment variation rate
Predictive Analytics for Customer
Targeting
Job
Predictive Analytics for Customer
Targeting
Marital status
Predictive Analytics for Customer
Targeting
Calendar month
Predictive Analytics for Customer
Targeting
Previous outcome
Predictive Analytics for Customer
Targeting
Did we learn anything this time?
Timing is a very important factor:
• Customers are more inclined to buy the product when economic
conditions deteriorate.
• Specific months seem more favourable. This could be linked to a
specific political situation in Portugal, tax considerations, holidays or
be related to other variables such as employment rates, interest
rates, etc.
The prototype buyer is an existing customer, well educated, mobile
phone user, with no family responsibilities (student or retired) and
who has not defaulted in a loan before.
Predictive Analytics for Customer
Targeting
The End?
Is there anything else that we can do to further improve the results?
•Feature engineering
•Try other ways to overcome class imbalance
•Save KNN, Random Forest and Gradient Boosting from the quarantine!
•Try other classification algorithms (logistic regression, Boosted C5.0, etc)
•Further explore already tried methods with more parameter tuning
•More ensembles
•Neural network?
However, we should consider that exploring the above will deliver small increments
of predictive power and require additional hours of work with long computing times.
Would it be worth the effort?

More Related Content

What's hot

Liferay overview of predicitve analytics
Liferay overview of predicitve analyticsLiferay overview of predicitve analytics
Liferay overview of predicitve analytics
Joe Brandenburg
 
Analytics & retail analytics
Analytics & retail analyticsAnalytics & retail analytics
Analytics & retail analytics
Dale Sternberg
 
Over View of Manthan Retail Analytics
Over View of Manthan Retail AnalyticsOver View of Manthan Retail Analytics
Over View of Manthan Retail Analytics
Satish Kumar Kondeti
 
Next Generation Business And Retail Analytics Webinar
Next Generation Business And Retail Analytics WebinarNext Generation Business And Retail Analytics Webinar
Next Generation Business And Retail Analytics Webinar
Lightship Partners LLC
 
Customer Successes - Predictive Analytics v5
Customer Successes - Predictive Analytics v5Customer Successes - Predictive Analytics v5
Customer Successes - Predictive Analytics v5
Pierre Leroux
 

What's hot (20)

Fuel for the cognitive age: What's new in IBM predictive analytics
Fuel for the cognitive age: What's new in IBM predictive analytics Fuel for the cognitive age: What's new in IBM predictive analytics
Fuel for the cognitive age: What's new in IBM predictive analytics
 
Adoption of analytics in retail | Retail Analytics
Adoption of analytics in retail | Retail AnalyticsAdoption of analytics in retail | Retail Analytics
Adoption of analytics in retail | Retail Analytics
 
Retail Analytics
Retail AnalyticsRetail Analytics
Retail Analytics
 
How Big Data is Changing Retail Marketing Analytics
How Big Data is Changing Retail Marketing Analytics How Big Data is Changing Retail Marketing Analytics
How Big Data is Changing Retail Marketing Analytics
 
Tailoring Next Best Offers (NBOs) using Real Time Big Data Analytics
Tailoring Next Best Offers (NBOs) using Real Time Big Data AnalyticsTailoring Next Best Offers (NBOs) using Real Time Big Data Analytics
Tailoring Next Best Offers (NBOs) using Real Time Big Data Analytics
 
Why is Data Science still not a mainstream in corporations - Sasa Radovanovic
Why is Data Science still not a mainstream in corporations - Sasa RadovanovicWhy is Data Science still not a mainstream in corporations - Sasa Radovanovic
Why is Data Science still not a mainstream in corporations - Sasa Radovanovic
 
Day 1 (Lecture 4): Data Science in the Retail Marketing and Financial Services
Day 1 (Lecture 4): Data Science in the Retail Marketing and Financial ServicesDay 1 (Lecture 4): Data Science in the Retail Marketing and Financial Services
Day 1 (Lecture 4): Data Science in the Retail Marketing and Financial Services
 
Liferay overview of predicitve analytics
Liferay overview of predicitve analyticsLiferay overview of predicitve analytics
Liferay overview of predicitve analytics
 
Analytics & retail analytics
Analytics & retail analyticsAnalytics & retail analytics
Analytics & retail analytics
 
PEGA Decision strategy manager (DSM)
PEGA Decision strategy manager (DSM)PEGA Decision strategy manager (DSM)
PEGA Decision strategy manager (DSM)
 
Predictive Analytics in Retail - Visual Infographic Report
Predictive Analytics in Retail - Visual Infographic ReportPredictive Analytics in Retail - Visual Infographic Report
Predictive Analytics in Retail - Visual Infographic Report
 
Over View of Manthan Retail Analytics
Over View of Manthan Retail AnalyticsOver View of Manthan Retail Analytics
Over View of Manthan Retail Analytics
 
Pi cube banking on predictive analytics151
Pi cube   banking on predictive analytics151Pi cube   banking on predictive analytics151
Pi cube banking on predictive analytics151
 
Data Science for BI
Data Science for BIData Science for BI
Data Science for BI
 
Predictive analytic-for-retail-business
Predictive analytic-for-retail-businessPredictive analytic-for-retail-business
Predictive analytic-for-retail-business
 
Rd big data & analytics v1.0
Rd big data & analytics v1.0Rd big data & analytics v1.0
Rd big data & analytics v1.0
 
Next Generation Business And Retail Analytics Webinar
Next Generation Business And Retail Analytics WebinarNext Generation Business And Retail Analytics Webinar
Next Generation Business And Retail Analytics Webinar
 
Customer Successes - Predictive Analytics v5
Customer Successes - Predictive Analytics v5Customer Successes - Predictive Analytics v5
Customer Successes - Predictive Analytics v5
 
Rob Winters - Travelbird
Rob Winters - TravelbirdRob Winters - Travelbird
Rob Winters - Travelbird
 
Customer Experience Lessons from a Bartender
Customer Experience Lessons from a BartenderCustomer Experience Lessons from a Bartender
Customer Experience Lessons from a Bartender
 

Similar to Predictive Analytics for Customer Targeting: A Telemarketing Banking Example

Making Data Actionable; PDF
Making Data Actionable; PDFMaking Data Actionable; PDF
Making Data Actionable; PDF
Rich Jones
 
MA- UNIT -1.pptx for ipu bba sem 5, complete pdf
MA- UNIT -1.pptx for ipu bba sem 5, complete pdfMA- UNIT -1.pptx for ipu bba sem 5, complete pdf
MA- UNIT -1.pptx for ipu bba sem 5, complete pdf
zm2pfgpcdt
 
Using Big Data & Analytics to Create Consumer Actionable Insights
Using Big Data & Analytics to Create Consumer Actionable InsightsUsing Big Data & Analytics to Create Consumer Actionable Insights
Using Big Data & Analytics to Create Consumer Actionable Insights
莫利伟 Olivier Maugain
 
Research Marketing Ch3 Edited.powerpoint
Research Marketing Ch3 Edited.powerpointResearch Marketing Ch3 Edited.powerpoint
Research Marketing Ch3 Edited.powerpoint
cjoypingaron
 

Similar to Predictive Analytics for Customer Targeting: A Telemarketing Banking Example (20)

Big Data LDN 2017: Advanced Analytics Applied to Marketing Attribution
Big Data LDN 2017: Advanced Analytics Applied to Marketing AttributionBig Data LDN 2017: Advanced Analytics Applied to Marketing Attribution
Big Data LDN 2017: Advanced Analytics Applied to Marketing Attribution
 
Defining Target Market for Telemarketing Campaigns
Defining Target Market for Telemarketing CampaignsDefining Target Market for Telemarketing Campaigns
Defining Target Market for Telemarketing Campaigns
 
Marketing data analytics
Marketing data analyticsMarketing data analytics
Marketing data analytics
 
Share and Tell Stanford 2016
Share and Tell Stanford 2016Share and Tell Stanford 2016
Share and Tell Stanford 2016
 
Big data analytics in payments
Big data analytics in payments Big data analytics in payments
Big data analytics in payments
 
Making Data Actionable; PDF
Making Data Actionable; PDFMaking Data Actionable; PDF
Making Data Actionable; PDF
 
Offer Recommendation methodology for Vito's Mobile App
Offer Recommendation methodology for Vito's Mobile AppOffer Recommendation methodology for Vito's Mobile App
Offer Recommendation methodology for Vito's Mobile App
 
Offer recommendation methodology
Offer recommendation methodologyOffer recommendation methodology
Offer recommendation methodology
 
MA- UNIT -1.pptx for ipu bba sem 5, complete pdf
MA- UNIT -1.pptx for ipu bba sem 5, complete pdfMA- UNIT -1.pptx for ipu bba sem 5, complete pdf
MA- UNIT -1.pptx for ipu bba sem 5, complete pdf
 
Four stage business analytics model
Four stage business analytics modelFour stage business analytics model
Four stage business analytics model
 
Using Big Data & Analytics to Create Consumer Actionable Insights
Using Big Data & Analytics to Create Consumer Actionable InsightsUsing Big Data & Analytics to Create Consumer Actionable Insights
Using Big Data & Analytics to Create Consumer Actionable Insights
 
1140 track 3 ramirez_using our laptop
1140 track 3 ramirez_using our laptop1140 track 3 ramirez_using our laptop
1140 track 3 ramirez_using our laptop
 
1115 ramirez using our laptop
1115 ramirez using our laptop1115 ramirez using our laptop
1115 ramirez using our laptop
 
Analytics for the supply chain
Analytics for the supply chain Analytics for the supply chain
Analytics for the supply chain
 
Personal Loan Risk Assessment
Personal Loan Risk Assessment Personal Loan Risk Assessment
Personal Loan Risk Assessment
 
Are You Pushing Products, or Connecting Conversations?
Are You Pushing Products, or Connecting Conversations?Are You Pushing Products, or Connecting Conversations?
Are You Pushing Products, or Connecting Conversations?
 
Predictive modelling
Predictive modellingPredictive modelling
Predictive modelling
 
Research Marketing Ch3 Edited.powerpoint
Research Marketing Ch3 Edited.powerpointResearch Marketing Ch3 Edited.powerpoint
Research Marketing Ch3 Edited.powerpoint
 
Top 10 Tips for Retail Site Selection
Top 10 Tips for Retail Site SelectionTop 10 Tips for Retail Site Selection
Top 10 Tips for Retail Site Selection
 
Database Marketing, part two: data enhancement, analytics, and attribution
Database Marketing, part two: data enhancement, analytics, and attribution Database Marketing, part two: data enhancement, analytics, and attribution
Database Marketing, part two: data enhancement, analytics, and attribution
 

Recently uploaded

Call Girls Jalahalli Just Call 👗 7737669865 👗 Top Class Call Girl Service Ban...
Call Girls Jalahalli Just Call 👗 7737669865 👗 Top Class Call Girl Service Ban...Call Girls Jalahalli Just Call 👗 7737669865 👗 Top Class Call Girl Service Ban...
Call Girls Jalahalli Just Call 👗 7737669865 👗 Top Class Call Girl Service Ban...
amitlee9823
 
Call Girls Indiranagar Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
Call Girls Indiranagar Just Call 👗 7737669865 👗 Top Class Call Girl Service B...Call Girls Indiranagar Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
Call Girls Indiranagar Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
amitlee9823
 
Abortion pills in Doha Qatar (+966572737505 ! Get Cytotec
Abortion pills in Doha Qatar (+966572737505 ! Get CytotecAbortion pills in Doha Qatar (+966572737505 ! Get Cytotec
Abortion pills in Doha Qatar (+966572737505 ! Get Cytotec
Abortion pills in Riyadh +966572737505 get cytotec
 
FESE Capital Markets Fact Sheet 2024 Q1.pdf
FESE Capital Markets Fact Sheet 2024 Q1.pdfFESE Capital Markets Fact Sheet 2024 Q1.pdf
FESE Capital Markets Fact Sheet 2024 Q1.pdf
MarinCaroMartnezBerg
 
Call Girls Bannerghatta Road Just Call 👗 7737669865 👗 Top Class Call Girl Ser...
Call Girls Bannerghatta Road Just Call 👗 7737669865 👗 Top Class Call Girl Ser...Call Girls Bannerghatta Road Just Call 👗 7737669865 👗 Top Class Call Girl Ser...
Call Girls Bannerghatta Road Just Call 👗 7737669865 👗 Top Class Call Girl Ser...
amitlee9823
 
Al Barsha Escorts $#$ O565212860 $#$ Escort Service In Al Barsha
Al Barsha Escorts $#$ O565212860 $#$ Escort Service In Al BarshaAl Barsha Escorts $#$ O565212860 $#$ Escort Service In Al Barsha
Al Barsha Escorts $#$ O565212860 $#$ Escort Service In Al Barsha
AroojKhan71
 
Call Girls Begur Just Call 👗 7737669865 👗 Top Class Call Girl Service Bangalore
Call Girls Begur Just Call 👗 7737669865 👗 Top Class Call Girl Service BangaloreCall Girls Begur Just Call 👗 7737669865 👗 Top Class Call Girl Service Bangalore
Call Girls Begur Just Call 👗 7737669865 👗 Top Class Call Girl Service Bangalore
amitlee9823
 

Recently uploaded (20)

Midocean dropshipping via API with DroFx
Midocean dropshipping via API with DroFxMidocean dropshipping via API with DroFx
Midocean dropshipping via API with DroFx
 
Call Girls Jalahalli Just Call 👗 7737669865 👗 Top Class Call Girl Service Ban...
Call Girls Jalahalli Just Call 👗 7737669865 👗 Top Class Call Girl Service Ban...Call Girls Jalahalli Just Call 👗 7737669865 👗 Top Class Call Girl Service Ban...
Call Girls Jalahalli Just Call 👗 7737669865 👗 Top Class Call Girl Service Ban...
 
Edukaciniai dropshipping via API with DroFx
Edukaciniai dropshipping via API with DroFxEdukaciniai dropshipping via API with DroFx
Edukaciniai dropshipping via API with DroFx
 
Call Girls Indiranagar Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
Call Girls Indiranagar Just Call 👗 7737669865 👗 Top Class Call Girl Service B...Call Girls Indiranagar Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
Call Girls Indiranagar Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
 
Generative AI on Enterprise Cloud with NiFi and Milvus
Generative AI on Enterprise Cloud with NiFi and MilvusGenerative AI on Enterprise Cloud with NiFi and Milvus
Generative AI on Enterprise Cloud with NiFi and Milvus
 
Abortion pills in Doha Qatar (+966572737505 ! Get Cytotec
Abortion pills in Doha Qatar (+966572737505 ! Get CytotecAbortion pills in Doha Qatar (+966572737505 ! Get Cytotec
Abortion pills in Doha Qatar (+966572737505 ! Get Cytotec
 
ALSO dropshipping via API with DroFx.pptx
ALSO dropshipping via API with DroFx.pptxALSO dropshipping via API with DroFx.pptx
ALSO dropshipping via API with DroFx.pptx
 
Ravak dropshipping via API with DroFx.pptx
Ravak dropshipping via API with DroFx.pptxRavak dropshipping via API with DroFx.pptx
Ravak dropshipping via API with DroFx.pptx
 
CebaBaby dropshipping via API with DroFX.pptx
CebaBaby dropshipping via API with DroFX.pptxCebaBaby dropshipping via API with DroFX.pptx
CebaBaby dropshipping via API with DroFX.pptx
 
Anomaly detection and data imputation within time series
Anomaly detection and data imputation within time seriesAnomaly detection and data imputation within time series
Anomaly detection and data imputation within time series
 
VidaXL dropshipping via API with DroFx.pptx
VidaXL dropshipping via API with DroFx.pptxVidaXL dropshipping via API with DroFx.pptx
VidaXL dropshipping via API with DroFx.pptx
 
Accredited-Transport-Cooperatives-Jan-2021-Web.pdf
Accredited-Transport-Cooperatives-Jan-2021-Web.pdfAccredited-Transport-Cooperatives-Jan-2021-Web.pdf
Accredited-Transport-Cooperatives-Jan-2021-Web.pdf
 
Discover Why Less is More in B2B Research
Discover Why Less is More in B2B ResearchDiscover Why Less is More in B2B Research
Discover Why Less is More in B2B Research
 
FESE Capital Markets Fact Sheet 2024 Q1.pdf
FESE Capital Markets Fact Sheet 2024 Q1.pdfFESE Capital Markets Fact Sheet 2024 Q1.pdf
FESE Capital Markets Fact Sheet 2024 Q1.pdf
 
(NEHA) Call Girls Katra Call Now 8617697112 Katra Escorts 24x7
(NEHA) Call Girls Katra Call Now 8617697112 Katra Escorts 24x7(NEHA) Call Girls Katra Call Now 8617697112 Katra Escorts 24x7
(NEHA) Call Girls Katra Call Now 8617697112 Katra Escorts 24x7
 
Carero dropshipping via API with DroFx.pptx
Carero dropshipping via API with DroFx.pptxCarero dropshipping via API with DroFx.pptx
Carero dropshipping via API with DroFx.pptx
 
Call Girls Bannerghatta Road Just Call 👗 7737669865 👗 Top Class Call Girl Ser...
Call Girls Bannerghatta Road Just Call 👗 7737669865 👗 Top Class Call Girl Ser...Call Girls Bannerghatta Road Just Call 👗 7737669865 👗 Top Class Call Girl Ser...
Call Girls Bannerghatta Road Just Call 👗 7737669865 👗 Top Class Call Girl Ser...
 
Al Barsha Escorts $#$ O565212860 $#$ Escort Service In Al Barsha
Al Barsha Escorts $#$ O565212860 $#$ Escort Service In Al BarshaAl Barsha Escorts $#$ O565212860 $#$ Escort Service In Al Barsha
Al Barsha Escorts $#$ O565212860 $#$ Escort Service In Al Barsha
 
BDSM⚡Call Girls in Mandawali Delhi >༒8448380779 Escort Service
BDSM⚡Call Girls in Mandawali Delhi >༒8448380779 Escort ServiceBDSM⚡Call Girls in Mandawali Delhi >༒8448380779 Escort Service
BDSM⚡Call Girls in Mandawali Delhi >༒8448380779 Escort Service
 
Call Girls Begur Just Call 👗 7737669865 👗 Top Class Call Girl Service Bangalore
Call Girls Begur Just Call 👗 7737669865 👗 Top Class Call Girl Service BangaloreCall Girls Begur Just Call 👗 7737669865 👗 Top Class Call Girl Service Bangalore
Call Girls Begur Just Call 👗 7737669865 👗 Top Class Call Girl Service Bangalore
 

Predictive Analytics for Customer Targeting: A Telemarketing Banking Example

  • 1. Predictive Analytics for Customer Targeting A Telemarketing Banking Example Pedro Écija Serrano ¦ Independent actuarial and data analytics consultant ¦ pedro_ecija@yahoo.es ¦ https://datadriven.ie/
  • 2. Predictive Analytics for Customer Targeting Agenda • The Problem (3) • The Solutions (21) • The Insight (17) • The End? (1)
  • 3. Predictive Analytics for Customer Targeting • Acknowledgement: [Moro et al., 2014] S. Moro, P. Cortez and P. Rita. A Data-Driven Approach to Predict the Success of Bank Telemarketing. They made the database public. • Lichman, M. (2013). UCI Machine Learning Repository [http://archive.ics.uci.edu/ml]. Irvine, CA: University of California, School of Information and Computer Science. They host this dataset and many more! • The goal is to identify customers likely to purchase a bank deposit in future sales campaigns. • 41,188 calls. • 11% purchased the product. • 20 input variables.
  • 4. Predictive Analytics for Customer Targeting What we know: • Age • Job • Marital Status • Education • Default: has the customer defaulted on a loan? • Housing: has the customer got a mortgage? • Loan: has the customer got a personal loan? • Contact: if the customer was called to a landline or a mobile phone • Month: calendar month of the last contact the bank had with the customer • Day_Of_Week: day of the week of the last contact the bank had with the customer • Duration: call duration of the last contact the bank had with the customer – Not used • Campaign: number of times the bank contacted the client in the last sales campaign • Pdays: number of days since the bank contacted the client for a previous sales campaign • Previous: number of contacts with the client prior to the last sales campaign • Poutcome: outcome of the previous sales campaign (whether the customer bought the product or not) • Emp.var.rate: employment variation rate • Cons.price.idx: consumer price index • Cons.conf.idx: consumer confidence index • Euribor3m: Euribor’s three month rate • Nr. Employed: number of individuals employed by the bank?
  • 5. Predictive Analytics for Customer Targeting There are too many customers that do not buy the product. This is known as class imbalance and will affect the performance of the classifiers, which will be biased towards non-buyers as there are so many more than buyers. I have considered the following to address this issue: •Doing nothing •Over sampling •Under sampling •Balanced sampling •Generating synthetic data (with SMOTE)
  • 6. Predictive Analytics for Customer Targeting • Naive Bayes • Support Vector Machines – Linear kernel – Polynomial kernel – Radial kernel – Sigmoid kernel • Decision Tree • Currently in quarantine: – Random Forests – K Nearest Neighbours – Gradient Boosting Dataset divided in training set (2/3) and testing set (1/3) To address the class imbalance problem, we can do the following for all the above methods: • Nothing • Over sample • Under sample • Balance sample • Generate synthetic data
  • 7. Predictive Analytics for Customer Targeting Naive Bayes It uses conditional probabilities, based on Bayes’ theorem, allocating an observation to its most probable class. It assumes variables are normally distributed and not correlated, which is rarely the case. However the classifier normally does a good job even when assumptions are not met. We end up with the following classifiers: • VNB – Vanilla naive Bayes • OSNB – Over sampled naive Bayes • USNB – Under sampled naive Bayes • BNB – Balanced sampled naive Bayes • SynthNB – Syntethic data naive Bayes
  • 8. Predictive Analytics for Customer Targeting Support Vector Machines It constructs hyperplanes in a multidimensional space that separates cases of different class labels To find an optimal hyperplane, SVM uses an iterative training algorithm used to minimise an error function. The hyper plane does not need to be a straight line. The kernel trick allows for non-linear classification. Possible kernels are: • Linear • Polynomial • Radial • Sigmoid
  • 9. Predictive Analytics for Customer Targeting Support Vector Machines The combination of methods to solve the class imbalance problem and kernels results in the following different classifiers: Do nothing Over sample Under sample Balanced sample Synthetic data Linear VSVMLin OSSVMLin USSVMLin BSSVMLin SynthSVMLin Polynomial VSVMPol OSSVMPol USSVMPol BSSVMPol SynthSVMPol Radial VSVMRad OSSVMRad USSVMRad BSSVMRad SynthSVMRad Sigmoid VSVMSig OSSVMSig USSVMSig BSSVMSig SynthSVMSig
  • 10. Predictive Analytics for Customer Targeting Decision Tree It splits the dataset into subsets based on an attribute value test. It continues through recursive partitioning until the dataset has been explained. We obtain the following classifiers: •VTree •OSTree •USTree •BSTree •SynthTree
  • 11. Predictive Analytics for Customer Targeting
  • 12. Predictive Analytics for Customer Targeting
  • 13. Predictive Analytics for Customer Targeting Focusing on the bottom left corner
  • 14. Predictive Analytics for Customer Targeting Focusing on the mid tier classifiers
  • 15. Predictive Analytics for Customer Targeting Focusing on the top right corner
  • 16. Predictive Analytics for Customer Targeting Focusing on methods where nothing was done for class imbalance
  • 17. Predictive Analytics for Customer Targeting Focusing on methods with synthetic data
  • 18. Predictive Analytics for Customer Targeting Focusing on under sampled methods
  • 19. Predictive Analytics for Customer Targeting Focusing on naive Bayes
  • 20. Predictive Analytics for Customer Targeting Focusing on SVM Sigmoid
  • 21. Predictive Analytics for Customer Targeting Ensemble 1: everyone is a buyer unless a majority of USNB, USSVMSig and USSVMPol votes against that assumption
  • 22. Predictive Analytics for Customer Targeting Ensemble 2: everyone is a buyer unless USNB and USSVMSig agree to the opposite
  • 23. Predictive Analytics for Customer Targeting Putting it all in context: the testing data set has 1,516 buyers among 13,729 customers USNB Buyers: 1,011 Calls: 3,529 VSVMRad Buyers: 273 Calls: 399 SynthTree Buyers: 654 Calls: 1,442 Ensemble 1 Buyers: 1,023 Calls: 3,913 Ensemble 2 Buyers: 1,052 Calls: 4,256
  • 24. Predictive Analytics for Customer Targeting Comparison of percentage of buyers per call
  • 25. Predictive Analytics for Customer Targeting So, are the results good at all? We can predict... •Nearly 18% of buyers with 3% of calls using VSVMRad •More than 22% of buyers with 4% of calls thanks to VTree •43% of buyers with a bit more than 10% of calls using SynthTree •Almost 60% of buyers with 16% of calls using SynthSVMRad •Nearly 67% of buyers with 26% of calls using USNB •Close to 70% of buyers with 31% of calls using Ensemble 2
  • 26. Predictive Analytics for Customer Targeting So, are the results good at all? Applying the results to the original dataset: Method Buyers Calls VSVMRad 801 1,195 VTree 1,010 1,566 SynthTree 1,956 4,325 SynthSVMRad 2,668 6,632 USNB 3,021 10,586 Ensemble 2 3,143 12,769 Calling everybody 4,530 41,188
  • 27. Predictive Analytics for Customer Targeting After all that, what can we say about buyers? Is there a typical buyer? What conditions favour a sale? Image source: Pixabay / Gerd Altmann
  • 28. Predictive Analytics for Customer Targeting According to the USTree, the following is important: •Not employing more than 5,088 people •Not contacting customers in August, December, July, June, May or November •The consumer price index being lower than 94 •Previous contact with the customer happening less than 506 days ago
  • 29. Predictive Analytics for Customer Targeting Image source: Pixabay / No attribution required
  • 30. Predictive Analytics for Customer Targeting We have no easy way to learn from SVM what predictors are more important so we focus on the distributions of buyers vs. non buyers in the original dataset plus the probabilities USNB has calculated for each class. USNB predicts more buyers than any other method we have tried so far so it may give us more information too.
  • 31. Predictive Analytics for Customer Targeting Age
  • 32. Predictive Analytics for Customer Targeting Number of previous contacts
  • 33. Predictive Analytics for Customer Targeting Calling a landline or a mobile phone
  • 34. Predictive Analytics for Customer Targeting Calling on a specific day of the week
  • 35. Predictive Analytics for Customer Targeting Defaulting customers
  • 36. Predictive Analytics for Customer Targeting Education levels
  • 37. Predictive Analytics for Customer Targeting Employment variation rate
  • 38. Predictive Analytics for Customer Targeting Job
  • 39. Predictive Analytics for Customer Targeting Marital status
  • 40. Predictive Analytics for Customer Targeting Calendar month
  • 41. Predictive Analytics for Customer Targeting Previous outcome
  • 42. Predictive Analytics for Customer Targeting Did we learn anything this time? Timing is a very important factor: • Customers are more inclined to buy the product when economic conditions deteriorate. • Specific months seem more favourable. This could be linked to a specific political situation in Portugal, tax considerations, holidays or be related to other variables such as employment rates, interest rates, etc. The prototype buyer is an existing customer, well educated, mobile phone user, with no family responsibilities (student or retired) and who has not defaulted in a loan before.
  • 43. Predictive Analytics for Customer Targeting The End? Is there anything else that we can do to further improve the results? •Feature engineering •Try other ways to overcome class imbalance •Save KNN, Random Forest and Gradient Boosting from the quarantine! •Try other classification algorithms (logistic regression, Boosted C5.0, etc) •Further explore already tried methods with more parameter tuning •More ensembles •Neural network? However, we should consider that exploring the above will deliver small increments of predictive power and require additional hours of work with long computing times. Would it be worth the effort?