Marketing campaign to roll out term deposits by a Bank: Predicting Target Customers

Click to View Rpubs Report
Click to View Github Code and Datasets

OBJECTIVE

To Build a machine learning predictive model and predict which customers should be targeted for rolling out term deposits by bank.( We use LOGISTIC REGRESSION here. )

Evaluation Criterion :KS score on test data. larger KS, better Model

A Portugese bank is rolling out term deposit for its customers. They have in the past connected to their customer base through phone calls. Results for these previous campaigns were recorded and have been provided to the current campaign manager to use the same in making this campaign more effective. Challenges that the manager faces are following: • Customers have recently started to complain that bank’s marketing staff bothers them with irrelevant product calls and this should immediately stop • There is no prior framework for her decide and choose which customer to call and which one to leave alone She has decided to use past data to automate this decision, instead of manually choosing through each and every customer. Previous campaign data which has been made available to her; contains customer characteristics , campaign characteristics, previous campaign information as well as whether customer ended up subscribing to the product as a result of that campaign or not. Using this she plans to develop a statistical model which given this information predicts whether customer in question will subscribe to the product or not. A successful model which is able to do this, will make her campaign efficiently targeted and less bothering to uninterested customers.

TAGS

Logistic Regression, KS Method, Cutoff, Confusion Matrix, Accuracy, Sensitivity, Specificity.

PROJECT METHODOLOGY

We will build a Logistic regression model to predict the response variable "y" (whether the client subscribed to a term deposit or No.)

  • Step 1: Imputing NA values in the datasets.
  • Step 2. Data Preparation:Grouping similar category variables and making dummies.
  • Step 3. Model Building. ( LOGISTIC REGRESSION )
  • Step 4. Finding Cutoff value and Perfomance measurements of the model.(Sensitivity, Specificity, Accuracy)
  • Step 5.Predict the final output on test dataset.(whether the client subscribe or no to term deposit)
  • Step 6:Creating confusion matrix and finding how good our model is. (by predicting on test_25 dataset)

DATA DICTIONARY

  • We have given you two datasets , bank-full_train.csv and bank-full_test.csv .
  • You need to use data bank-full_train to build predictive model for response variable “y”.
  • bank-full_test data contains all other factors except “y”, you need to predict that using the model that you developed and submit your predicted values in a csv files.
  • Evaluation Criterion :KS score on test data. larger KS, better Model

CONCLUSION

Thus the target no. of customers to be focused upon for term deposits by the bank are predicted successfully using logistic regression model with an accuracy of 84.15% using KS method.

The KS score examined came out to be: 0.72/1.00[ i.e. Our Model and Predictions were VERY GOOD]

ggplot for behavior of Predicted Scores on train dataset.

ROC CURVE for Real outcome (y) vs Predicted Score on test_25 datasets

Feel Free To Get In Touch With Me!