SlideShare ist ein Scribd-Unternehmen logo
1 von 23
Default Payment Prediction System
Data Analysis and Predictive Analysis – R Programming and Azure ML
ASHISH ARORA
Introduction and Problem
• Banks plays a significant role in providing
financial services to help people and
business to achieve their goals as well as
reach their potential.
• To keep the integrity Bank must avoid in
investing wrong customers who can default
and cause loss to the Financial Institution.
Purpose and Process
• To build a predictive model that can be used to
help the Banks use their data efficiently to
make better decisions.
• A predictive analytics application allows the
banks and other financial institutions to
identify the risks and address them in real time
to reach better outcomes.
• Bank must able to analyze available data
related to the customers before making the
decision of issuing credit card.
• The model developed will use all possible
factors and data to predict whether the
customer would fail or succeed in making the
next payment with a rational accuracy. It would
benefit the bank before they make any
decisions against that customers. The target is
to minimize the risk of having loan loss.
Data Set
• https://archive.ics.uci.edu/ml/
datasets/default+of+credit+ca
rd+clients
• 30000 rows
• Features in dataset = 25
• This dataset contains
information on default
payments, demographic
factors, credit data, history of
payment, and bill statements
of credit card clients in Taiwan
from April 2005 to September
2005.
• There are no missing data.
R Code – Description
And Results
• # Read the .csv file in R
envorinment
• creditcarddata <-
read.csv("default of credit card
clients.csv")
• dim(creditcarddata)
Data Set Summary
• There are two key variable categories in the
dataset.
• Nominal variables include sex, education,
marriage, repayment statuses (PAY_X), etc.
• Numeric variables contains age, amount of
given credit (LIMIT_BAL), amount of bill
statements (BILL_AMT), and amount of
previous payments (PAY_AMT).
• The class variable (y) indicates whether that
customer had default payment the next
month or not. If yes, it is labeled 1,
otherwise, set to 0.
Structure of Data
Before Adding new
variables and
Tidying the Data
• This is the structure of Data
before reshaping and
cleaning step.
• New Variables can be created
to give more possibility of
predicting defaulters.
• SEX, EDUCARION and
MARRIAGE variable can be
converted from integer to
categorical data.
Structure of Data after
adding new variables
• 4 new columns are added to
make data set more
meaningful.
• The new columns being added
are work_status,
education_cat, MARRIAGE_cat
and SEX_cat
Reshaping the Data
• Reshaping the Data by converting
Quantitative Variables To New Factorial
Variables
• Factors are categorical variables that are
super useful in summary statistics, plots, and
regressions. They basically act like dummy
variables that R codes for you.
• Removing Variables which are not useful for
analysis.
• Variables removed from dataset are
PAY_0,PAY_2,PAY_3,PAY_4,PAY_5,PAY_6.
Structure And Summary of Data After
Tidying the Data
Exploring Data Via
Basic Visualization
• There are more female than male in the
dataset.
• There are clients who finished university-
level education.
• There are more single client than married,
but the number is quite closed.
• More Clients are employed.
Limit Balance Distribution
Determining
Balance Limit
Variability By
Factors of Gender,
Education and
Work State
• After creating box plots it is evident that gender has
no effects on determining balance limits by bank.
• Education level and Work Status are the most
important factors which are being considered by
banks to determine balance limits.
Relationship Between Marital Status &
Balance Limits Categorized By Gender
• By this graph, we can observe
that, there is no change for
females , balance limits
depending on their marital
status remains almost same
for both conditions either
married or single, however it
changes a lot on males side
maybe because of extra
expenditures which is the
reason on increased balance
limits.
Relationship between Limit
Balance & Default Payment
• Balance limits and count of
defaulted clients are almost
same for University and
Graduate Level. Additionally,
the ratio of defaulted clients at
high school level seems almost
the same as the university and
graduate levels.
Balance Limits By Age
Groups & Education
• This box plots shows that the
Balance Limit for higher Age
Group individuals are
increasing based on their
education status.
Correlations Between Limit Balance,
Bill Amounts & Payments
• This correlation plot shows us
that there is a low correlation
between the limit balances
and payments and bill
amounts. However it can be
seen that bill amounts has
high correlation between each
other as expected since the
bills are reflecting the
cumulative amounts.
Is there any
variability in
defaulting payment
next month based
on gender,
education and
martial status ?
• It seems that more males seems to default payment
and in case of education more clients with high
school as their last degree defaults payment.
• Martial Status of client doesn't show any variability.
Model Building
• This section is to start building
the model for predicting the
default payment outcome.
• Before building the model the
dataset was divided in training
and test data set.
• Train Data Set = 70%
• Test Data Set = 30%
Model Building Using Azure ML
• The Model is trained using Two-Class Decision Forest.
The classification matrix or
the confusion matrix
• This classifies our predictions as false positive, false negative, and so on.
• True Positive = The true positives are where the actual value is 1, so in other words, they defaulted and
the predicted value is also 1.
• False Positive = The false positive is where the predicted value is a 1, but the actual value is a 0. Okay, so
we predicted a positive, but we were wrong about it. That's why it's a false positive, so we predicted they
would default, they did not.
• False Negative = The false negative is where we predicted they would not default, and they defaulted.
• True Negative = True negative is where we predicted negative, we predicted they would not default, and
they did not default, okay.
• Accuracy = What Percent out of total test data set population is being predicted correctly.
• Accuracy = (TP+TN)/(TOTAL) = (662+6734)/(1329+275+662+6734) = 0.82
• Precision = how precise was your prediction?
• When you predicted default, how likely are you to be correct?
• Precision = TP / TP + FP = 662 / 662 + 275 = 0.707
• Recall = Out of the Total population, what fraction of population you correctly predicted who will
defaulted.
• Recall = 662 / 662 + 1329 = 0.332
Conclusion
• This project involves prediction of defaulters for
Credit Card Bank Customers.
• R programming is used for Exploratory Data
Analysis and Visualization.
• R and Azure ML is used for Model Building using
Logistic Regression and Two Class Decision
Forest Algorithim.

Weitere ähnliche Inhalte

Was ist angesagt?

Credit card fraud detection
Credit card fraud detectionCredit card fraud detection
Credit card fraud detection
kalpesh1908
 

Was ist angesagt? (20)

Loan Default Prediction with Machine Learning
Loan Default Prediction with Machine LearningLoan Default Prediction with Machine Learning
Loan Default Prediction with Machine Learning
 
Credit Card Fraud Detection
Credit Card Fraud DetectionCredit Card Fraud Detection
Credit Card Fraud Detection
 
Fraud detection with Machine Learning
Fraud detection with Machine LearningFraud detection with Machine Learning
Fraud detection with Machine Learning
 
Credit Card Fraud Detection Using ML In Databricks
Credit Card Fraud Detection Using ML In DatabricksCredit Card Fraud Detection Using ML In Databricks
Credit Card Fraud Detection Using ML In Databricks
 
Fraud detection ML
Fraud detection MLFraud detection ML
Fraud detection ML
 
Adaptive Machine Learning for Credit Card Fraud Detection
Adaptive Machine Learning for Credit Card Fraud DetectionAdaptive Machine Learning for Credit Card Fraud Detection
Adaptive Machine Learning for Credit Card Fraud Detection
 
Case Study: Loan default prediction
Case Study: Loan default predictionCase Study: Loan default prediction
Case Study: Loan default prediction
 
Loan approval prediction based on machine learning approach
Loan approval prediction based on machine learning approachLoan approval prediction based on machine learning approach
Loan approval prediction based on machine learning approach
 
Credit card fraud detection methods using Data-mining.pptx (2)
Credit card fraud detection methods using Data-mining.pptx (2)Credit card fraud detection methods using Data-mining.pptx (2)
Credit card fraud detection methods using Data-mining.pptx (2)
 
Credit card fraud detection
Credit card fraud detectionCredit card fraud detection
Credit card fraud detection
 
Housing price prediction
Housing price predictionHousing price prediction
Housing price prediction
 
Credit card fraud detection through machine learning
Credit card fraud detection through machine learningCredit card fraud detection through machine learning
Credit card fraud detection through machine learning
 
Credit card fraud dection
Credit card fraud dectionCredit card fraud dection
Credit card fraud dection
 
Predictive analytics in health insurance
Predictive analytics in health insurancePredictive analytics in health insurance
Predictive analytics in health insurance
 
House price prediction
House price predictionHouse price prediction
House price prediction
 
Fraud detection
Fraud detectionFraud detection
Fraud detection
 
A Study on Credit Card Fraud Detection using Machine Learning
A Study on Credit Card Fraud Detection using Machine LearningA Study on Credit Card Fraud Detection using Machine Learning
A Study on Credit Card Fraud Detection using Machine Learning
 
Artificial intelligence & Machine learning role in financial services
Artificial intelligence & Machine learning role in financial servicesArtificial intelligence & Machine learning role in financial services
Artificial intelligence & Machine learning role in financial services
 
Loan default prediction with machine language
Loan  default  prediction with  machine  language Loan  default  prediction with  machine  language
Loan default prediction with machine language
 
Credit Card Fraud Detection Client Presentation
Credit Card Fraud Detection Client PresentationCredit Card Fraud Detection Client Presentation
Credit Card Fraud Detection Client Presentation
 

Ähnlich wie Default payment prediction system

What is a Credit Score
What is a Credit ScoreWhat is a Credit Score
What is a Credit Score
Darren De Jong
 
How to Better Manage Your Veterinary Practice Finances
How to Better Manage Your Veterinary Practice FinancesHow to Better Manage Your Veterinary Practice Finances
How to Better Manage Your Veterinary Practice Finances
McGaunnSchwadronCPA
 

Ähnlich wie Default payment prediction system (20)

Reduction in customer complaints - Mortgage Industry
Reduction in customer complaints - Mortgage IndustryReduction in customer complaints - Mortgage Industry
Reduction in customer complaints - Mortgage Industry
 
Credit Scoring Capstone Project- Pallavi Mohanty.pptx
Credit Scoring Capstone Project- Pallavi Mohanty.pptxCredit Scoring Capstone Project- Pallavi Mohanty.pptx
Credit Scoring Capstone Project- Pallavi Mohanty.pptx
 
Exploratory Data Analysis For Credit Risk Assesment
Exploratory Data Analysis For Credit Risk AssesmentExploratory Data Analysis For Credit Risk Assesment
Exploratory Data Analysis For Credit Risk Assesment
 
Measurement and Scaling.pptx
Measurement and Scaling.pptxMeasurement and Scaling.pptx
Measurement and Scaling.pptx
 
Bank churn with Data Science
Bank churn with Data ScienceBank churn with Data Science
Bank churn with Data Science
 
What is a Credit Score
What is a Credit ScoreWhat is a Credit Score
What is a Credit Score
 
Machine_Learning.pptx
Machine_Learning.pptxMachine_Learning.pptx
Machine_Learning.pptx
 
Exploratory Data Analysis Bank Fraud Case Study
Exploratory  Data Analysis Bank Fraud Case StudyExploratory  Data Analysis Bank Fraud Case Study
Exploratory Data Analysis Bank Fraud Case Study
 
Employee Retension Capstone Project - Neeraj Bubby.pptx
Employee Retension Capstone Project - Neeraj Bubby.pptxEmployee Retension Capstone Project - Neeraj Bubby.pptx
Employee Retension Capstone Project - Neeraj Bubby.pptx
 
Webinar - How to Prepare for a Pay Equity Analysis Series Ep 2 Diagnose
Webinar - How to Prepare for a Pay Equity Analysis Series Ep 2 DiagnoseWebinar - How to Prepare for a Pay Equity Analysis Series Ep 2 Diagnose
Webinar - How to Prepare for a Pay Equity Analysis Series Ep 2 Diagnose
 
Group 1 p53
Group 1 p53Group 1 p53
Group 1 p53
 
Insurance Churn Prediction Data Analysis Project
Insurance Churn Prediction Data Analysis ProjectInsurance Churn Prediction Data Analysis Project
Insurance Churn Prediction Data Analysis Project
 
25 Financial Health Metrics
25 Financial Health Metrics25 Financial Health Metrics
25 Financial Health Metrics
 
Estimating Supply and Demand for Microcredit
Estimating Supply and Demand for MicrocreditEstimating Supply and Demand for Microcredit
Estimating Supply and Demand for Microcredit
 
Being Right Starts By Knowing You're Wrong
Being Right Starts By Knowing You're WrongBeing Right Starts By Knowing You're Wrong
Being Right Starts By Knowing You're Wrong
 
Credit Repair Program: Partner Overview
Credit Repair Program: Partner Overview Credit Repair Program: Partner Overview
Credit Repair Program: Partner Overview
 
How to prepare for pay equity analyis
How to prepare for pay equity analyisHow to prepare for pay equity analyis
How to prepare for pay equity analyis
 
Indhu resume
Indhu resumeIndhu resume
Indhu resume
 
Indhu resume
Indhu resumeIndhu resume
Indhu resume
 
How to Better Manage Your Veterinary Practice Finances
How to Better Manage Your Veterinary Practice FinancesHow to Better Manage Your Veterinary Practice Finances
How to Better Manage Your Veterinary Practice Finances
 

Kürzlich hochgeladen

Vip Mumbai Call Girls Marol Naka Call On 9920725232 With Body to body massage...
Vip Mumbai Call Girls Marol Naka Call On 9920725232 With Body to body massage...Vip Mumbai Call Girls Marol Naka Call On 9920725232 With Body to body massage...
Vip Mumbai Call Girls Marol Naka Call On 9920725232 With Body to body massage...
amitlee9823
 
Just Call Vip call girls Palakkad Escorts ☎️9352988975 Two shot with one girl...
Just Call Vip call girls Palakkad Escorts ☎️9352988975 Two shot with one girl...Just Call Vip call girls Palakkad Escorts ☎️9352988975 Two shot with one girl...
Just Call Vip call girls Palakkad Escorts ☎️9352988975 Two shot with one girl...
gajnagarg
 
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
 
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
 
Call Girls Indiranagar Just Call 👗 9155563397 👗 Top Class Call Girl Service B...
Call Girls Indiranagar Just Call 👗 9155563397 👗 Top Class Call Girl Service B...Call Girls Indiranagar Just Call 👗 9155563397 👗 Top Class Call Girl Service B...
Call Girls Indiranagar Just Call 👗 9155563397 👗 Top Class Call Girl Service B...
only4webmaster01
 
Just Call Vip call girls Bellary Escorts ☎️9352988975 Two shot with one girl ...
Just Call Vip call girls Bellary Escorts ☎️9352988975 Two shot with one girl ...Just Call Vip call girls Bellary Escorts ☎️9352988975 Two shot with one girl ...
Just Call Vip call girls Bellary Escorts ☎️9352988975 Two shot with one girl ...
gajnagarg
 
Abortion pills in Jeddah | +966572737505 | Get Cytotec
Abortion pills in Jeddah | +966572737505 | Get CytotecAbortion pills in Jeddah | +966572737505 | Get Cytotec
Abortion pills in Jeddah | +966572737505 | Get Cytotec
Abortion pills in Riyadh +966572737505 get cytotec
 
Call Girls Bommasandra Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
Call Girls Bommasandra Just Call 👗 7737669865 👗 Top Class Call Girl Service B...Call Girls Bommasandra Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
Call Girls Bommasandra Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
amitlee9823
 
Call Girls In Bellandur ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bellandur ☎ 7737669865 🥵 Book Your One night StandCall Girls In Bellandur ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bellandur ☎ 7737669865 🥵 Book Your One night Stand
amitlee9823
 
Just Call Vip call girls kakinada Escorts ☎️9352988975 Two shot with one girl...
Just Call Vip call girls kakinada Escorts ☎️9352988975 Two shot with one girl...Just Call Vip call girls kakinada Escorts ☎️9352988975 Two shot with one girl...
Just Call Vip call girls kakinada Escorts ☎️9352988975 Two shot with one girl...
gajnagarg
 
➥🔝 7737669865 🔝▻ Sambalpur Call-girls in Women Seeking Men 🔝Sambalpur🔝 Esc...
➥🔝 7737669865 🔝▻ Sambalpur Call-girls in Women Seeking Men  🔝Sambalpur🔝   Esc...➥🔝 7737669865 🔝▻ Sambalpur Call-girls in Women Seeking Men  🔝Sambalpur🔝   Esc...
➥🔝 7737669865 🔝▻ Sambalpur Call-girls in Women Seeking Men 🔝Sambalpur🔝 Esc...
amitlee9823
 
Just Call Vip call girls Mysore Escorts ☎️9352988975 Two shot with one girl (...
Just Call Vip call girls Mysore Escorts ☎️9352988975 Two shot with one girl (...Just Call Vip call girls Mysore Escorts ☎️9352988975 Two shot with one girl (...
Just Call Vip call girls Mysore Escorts ☎️9352988975 Two shot with one girl (...
gajnagarg
 
Call Girls In Nandini Layout ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Nandini Layout ☎ 7737669865 🥵 Book Your One night StandCall Girls In Nandini Layout ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Nandini Layout ☎ 7737669865 🥵 Book Your One night Stand
amitlee9823
 
Jual Obat Aborsi Surabaya ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Surabaya ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Surabaya ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Surabaya ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
ZurliaSoop
 
Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...
Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...
Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...
amitlee9823
 

Kürzlich hochgeladen (20)

Detecting Credit Card Fraud: A Machine Learning Approach
Detecting Credit Card Fraud: A Machine Learning ApproachDetecting Credit Card Fraud: A Machine Learning Approach
Detecting Credit Card Fraud: A Machine Learning Approach
 
Vip Mumbai Call Girls Marol Naka Call On 9920725232 With Body to body massage...
Vip Mumbai Call Girls Marol Naka Call On 9920725232 With Body to body massage...Vip Mumbai Call Girls Marol Naka Call On 9920725232 With Body to body massage...
Vip Mumbai Call Girls Marol Naka Call On 9920725232 With Body to body massage...
 
(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
 
Just Call Vip call girls Palakkad Escorts ☎️9352988975 Two shot with one girl...
Just Call Vip call girls Palakkad Escorts ☎️9352988975 Two shot with one girl...Just Call Vip call girls Palakkad Escorts ☎️9352988975 Two shot with one girl...
Just Call Vip call girls Palakkad Escorts ☎️9352988975 Two shot with one girl...
 
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...
 
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...
 
Call Girls Indiranagar Just Call 👗 9155563397 👗 Top Class Call Girl Service B...
Call Girls Indiranagar Just Call 👗 9155563397 👗 Top Class Call Girl Service B...Call Girls Indiranagar Just Call 👗 9155563397 👗 Top Class Call Girl Service B...
Call Girls Indiranagar Just Call 👗 9155563397 👗 Top Class Call Girl Service B...
 
Just Call Vip call girls Bellary Escorts ☎️9352988975 Two shot with one girl ...
Just Call Vip call girls Bellary Escorts ☎️9352988975 Two shot with one girl ...Just Call Vip call girls Bellary Escorts ☎️9352988975 Two shot with one girl ...
Just Call Vip call girls Bellary Escorts ☎️9352988975 Two shot with one girl ...
 
Abortion pills in Jeddah | +966572737505 | Get Cytotec
Abortion pills in Jeddah | +966572737505 | Get CytotecAbortion pills in Jeddah | +966572737505 | Get Cytotec
Abortion pills in Jeddah | +966572737505 | Get Cytotec
 
Call Girls Bommasandra Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
Call Girls Bommasandra Just Call 👗 7737669865 👗 Top Class Call Girl Service B...Call Girls Bommasandra Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
Call Girls Bommasandra Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
 
DATA SUMMIT 24 Building Real-Time Pipelines With FLaNK
DATA SUMMIT 24  Building Real-Time Pipelines With FLaNKDATA SUMMIT 24  Building Real-Time Pipelines With FLaNK
DATA SUMMIT 24 Building Real-Time Pipelines With FLaNK
 
Call Girls In Bellandur ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bellandur ☎ 7737669865 🥵 Book Your One night StandCall Girls In Bellandur ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bellandur ☎ 7737669865 🥵 Book Your One night Stand
 
Just Call Vip call girls kakinada Escorts ☎️9352988975 Two shot with one girl...
Just Call Vip call girls kakinada Escorts ☎️9352988975 Two shot with one girl...Just Call Vip call girls kakinada Escorts ☎️9352988975 Two shot with one girl...
Just Call Vip call girls kakinada Escorts ☎️9352988975 Two shot with one girl...
 
➥🔝 7737669865 🔝▻ Sambalpur Call-girls in Women Seeking Men 🔝Sambalpur🔝 Esc...
➥🔝 7737669865 🔝▻ Sambalpur Call-girls in Women Seeking Men  🔝Sambalpur🔝   Esc...➥🔝 7737669865 🔝▻ Sambalpur Call-girls in Women Seeking Men  🔝Sambalpur🔝   Esc...
➥🔝 7737669865 🔝▻ Sambalpur Call-girls in Women Seeking Men 🔝Sambalpur🔝 Esc...
 
Just Call Vip call girls Mysore Escorts ☎️9352988975 Two shot with one girl (...
Just Call Vip call girls Mysore Escorts ☎️9352988975 Two shot with one girl (...Just Call Vip call girls Mysore Escorts ☎️9352988975 Two shot with one girl (...
Just Call Vip call girls Mysore Escorts ☎️9352988975 Two shot with one girl (...
 
Thane Call Girls 7091864438 Call Girls in Thane Escort service book now -
Thane Call Girls 7091864438 Call Girls in Thane Escort service book now -Thane Call Girls 7091864438 Call Girls in Thane Escort service book now -
Thane Call Girls 7091864438 Call Girls in Thane Escort service book now -
 
Call Girls In Nandini Layout ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Nandini Layout ☎ 7737669865 🥵 Book Your One night StandCall Girls In Nandini Layout ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Nandini Layout ☎ 7737669865 🥵 Book Your One night Stand
 
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
 
Jual Obat Aborsi Surabaya ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Surabaya ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Surabaya ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Surabaya ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
 
Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...
Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...
Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...
 

Default payment prediction system

  • 1. Default Payment Prediction System Data Analysis and Predictive Analysis – R Programming and Azure ML ASHISH ARORA
  • 2. Introduction and Problem • Banks plays a significant role in providing financial services to help people and business to achieve their goals as well as reach their potential. • To keep the integrity Bank must avoid in investing wrong customers who can default and cause loss to the Financial Institution.
  • 3. Purpose and Process • To build a predictive model that can be used to help the Banks use their data efficiently to make better decisions. • A predictive analytics application allows the banks and other financial institutions to identify the risks and address them in real time to reach better outcomes. • Bank must able to analyze available data related to the customers before making the decision of issuing credit card. • The model developed will use all possible factors and data to predict whether the customer would fail or succeed in making the next payment with a rational accuracy. It would benefit the bank before they make any decisions against that customers. The target is to minimize the risk of having loan loss.
  • 4. Data Set • https://archive.ics.uci.edu/ml/ datasets/default+of+credit+ca rd+clients • 30000 rows • Features in dataset = 25 • This dataset contains information on default payments, demographic factors, credit data, history of payment, and bill statements of credit card clients in Taiwan from April 2005 to September 2005. • There are no missing data.
  • 5. R Code – Description And Results • # Read the .csv file in R envorinment • creditcarddata <- read.csv("default of credit card clients.csv") • dim(creditcarddata)
  • 6. Data Set Summary • There are two key variable categories in the dataset. • Nominal variables include sex, education, marriage, repayment statuses (PAY_X), etc. • Numeric variables contains age, amount of given credit (LIMIT_BAL), amount of bill statements (BILL_AMT), and amount of previous payments (PAY_AMT). • The class variable (y) indicates whether that customer had default payment the next month or not. If yes, it is labeled 1, otherwise, set to 0.
  • 7. Structure of Data Before Adding new variables and Tidying the Data • This is the structure of Data before reshaping and cleaning step. • New Variables can be created to give more possibility of predicting defaulters. • SEX, EDUCARION and MARRIAGE variable can be converted from integer to categorical data.
  • 8. Structure of Data after adding new variables • 4 new columns are added to make data set more meaningful. • The new columns being added are work_status, education_cat, MARRIAGE_cat and SEX_cat
  • 9. Reshaping the Data • Reshaping the Data by converting Quantitative Variables To New Factorial Variables • Factors are categorical variables that are super useful in summary statistics, plots, and regressions. They basically act like dummy variables that R codes for you. • Removing Variables which are not useful for analysis. • Variables removed from dataset are PAY_0,PAY_2,PAY_3,PAY_4,PAY_5,PAY_6.
  • 10. Structure And Summary of Data After Tidying the Data
  • 11. Exploring Data Via Basic Visualization • There are more female than male in the dataset. • There are clients who finished university- level education. • There are more single client than married, but the number is quite closed. • More Clients are employed.
  • 13. Determining Balance Limit Variability By Factors of Gender, Education and Work State • After creating box plots it is evident that gender has no effects on determining balance limits by bank. • Education level and Work Status are the most important factors which are being considered by banks to determine balance limits.
  • 14. Relationship Between Marital Status & Balance Limits Categorized By Gender • By this graph, we can observe that, there is no change for females , balance limits depending on their marital status remains almost same for both conditions either married or single, however it changes a lot on males side maybe because of extra expenditures which is the reason on increased balance limits.
  • 15. Relationship between Limit Balance & Default Payment • Balance limits and count of defaulted clients are almost same for University and Graduate Level. Additionally, the ratio of defaulted clients at high school level seems almost the same as the university and graduate levels.
  • 16. Balance Limits By Age Groups & Education • This box plots shows that the Balance Limit for higher Age Group individuals are increasing based on their education status.
  • 17. Correlations Between Limit Balance, Bill Amounts & Payments • This correlation plot shows us that there is a low correlation between the limit balances and payments and bill amounts. However it can be seen that bill amounts has high correlation between each other as expected since the bills are reflecting the cumulative amounts.
  • 18. Is there any variability in defaulting payment next month based on gender, education and martial status ? • It seems that more males seems to default payment and in case of education more clients with high school as their last degree defaults payment. • Martial Status of client doesn't show any variability.
  • 19. Model Building • This section is to start building the model for predicting the default payment outcome. • Before building the model the dataset was divided in training and test data set. • Train Data Set = 70% • Test Data Set = 30%
  • 20.
  • 21. Model Building Using Azure ML • The Model is trained using Two-Class Decision Forest.
  • 22. The classification matrix or the confusion matrix • This classifies our predictions as false positive, false negative, and so on. • True Positive = The true positives are where the actual value is 1, so in other words, they defaulted and the predicted value is also 1. • False Positive = The false positive is where the predicted value is a 1, but the actual value is a 0. Okay, so we predicted a positive, but we were wrong about it. That's why it's a false positive, so we predicted they would default, they did not. • False Negative = The false negative is where we predicted they would not default, and they defaulted. • True Negative = True negative is where we predicted negative, we predicted they would not default, and they did not default, okay. • Accuracy = What Percent out of total test data set population is being predicted correctly. • Accuracy = (TP+TN)/(TOTAL) = (662+6734)/(1329+275+662+6734) = 0.82 • Precision = how precise was your prediction? • When you predicted default, how likely are you to be correct? • Precision = TP / TP + FP = 662 / 662 + 275 = 0.707 • Recall = Out of the Total population, what fraction of population you correctly predicted who will defaulted. • Recall = 662 / 662 + 1329 = 0.332
  • 23. Conclusion • This project involves prediction of defaulters for Credit Card Bank Customers. • R programming is used for Exploratory Data Analysis and Visualization. • R and Azure ML is used for Model Building using Logistic Regression and Two Class Decision Forest Algorithim.