Code Monkey home page Code Monkey logo

customer-churn-prediction's Introduction

Customer-Churn-prediction

Churn analysis is the evaluation of a company’s customer loss rate in order to reduce it. Also referred to as customer attrition rate, churn can be minimized by assessing your product and how people use it.

In this project, I aim to predict retention rate for a job board dataset. The proportion of custormer churned and retained is 26.9 to 73.1 %. The shape of the dataset is (37757, 15).

Alt text

It is a classification problem and I have used two standard baseline models to observe the model performance with the unbalanced dataset. The aim is the predict the retention rate for the models:

  • Logistic Regression
  • Random Forest

Logistic Regression: From the confustion matrix of logistic regression, we can say that we are getting a very high true postive rate (97 %) but we also have a high False positive rate (63 %) and a very low true negative rate (37 %). The aim should be to decrease false positive and increase true negative.

Random Forest: We are getting much better results using random forest. We were able to decrese false positiive and increase true negatives. Our true positive rate slightly decreased with random forest.

Alt text

Alt text

I am also going to check with adaboost classifier. Boosting algorithms combine multiple low accuracy models to create a high accuracy model. AdaBoost is example of Boosting algorithm. The important advantages of AdaBoost Low generalization error, easy to implement, works with a wide range of classifiers, no parameters to adjust. Especial attention is needed to data as this algorithm is sensitive to outliers.

CM_Adaboost

To handle the imbalance, I further used oversampling techinque such as SMOTE to synthetically create minority class samples and got much better reslts for Random Forest classifier then normal classification without oversampling.

CM_Smote_RF

customer-churn-prediction's People

Contributors

sonaljain2212 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.