Git Product home page Git Product logo

customer-churn-prediction's Introduction

Customer-Churn-Prediction

Introduction

For a business with various services, in this case, a fictional Telco company, it is essential to keep old customers because studies suggest that depending on the industry you are in, acquiring a new customer can cost five to seven times more than retaining an old one. Therefore, I created this machine learning model to predict customer churn, which promises to help businesses make better customer retention programs.

Data

The data points of the problem represent the statistics of 7073 customers of a fictional Telco company. The concerned label is whether the customer is going to cancel the service or not (1 for yes, 0 for no). The features include services that each customer has signed up for, customer account information, and demographic info about customers.

The dataset was collected from Kaggle: https://www.kaggle.com/datasets/blastchar/telco-customer-churn A newer version of the dataset is also available from IBM: https://community.ibm.com/community/user/businessanalytics/blogs/steven-macko/2019/07/11/telco-customer-churn-1113

Methodology

I performed feature engineering, feature selection and built two models for comparision using Logistic Regression and Decision Tree Classifier.

Results

The final model using Logistic Regression reaches an accuracy of approximately 79% on the test set. It is compared with another model using Decision Tree Classifier, which only yields an accuracy of 73%.

Requirements

To run this project, the following libraries should be installed:

  • pandas
  • matplotlib
  • Sklearn
  • matplotlib
  • seaborn
Note: the project was written on Python 3.11.5

customer-churn-prediction's People

Contributors

ponyo19 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.