Skip to content

Nneji123/Customer-Segmentation-Dash-Application

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Customer-Segmentation-Dash-App

A Customer Segmentation Application using Kmeans Clustering built with Dash

Language Framework Framework hosted Docker build reposize

Problem Statement

In this project, I worked with data from the Survey of Consumer Finances (SCF). The SCF is a survey sponsored by the US Federal Reserve. It tracks financial, demographic, and opinion information about families in the United States. The survey is conducted every three years, and we'll work with an extract of the results from 2019.

This Dash App utilizes a Machine Learning model built with KMeans to segment customers based on various features

The App can be can be viewed here

Data Preparation

From the US Federal Reserve website:

The Survey of Consumer Finances (SCF) is normally a triennial cross-sectional survey of U.S. families. The survey data include information on families’ balance sheets, pensions, income, and demographic characteristics. Information is also included from related surveys of pension providers and the earlier such surveys conducted by the Federal Reserve Board. No other study for the country collects comparable information. Data from the SCF are widely used, from analysis at the Federal Reserve and other branches of government to scholarly work at the major economic research centers.

Dataset Link

Project Outline

  1. Compare characteristics across subgroups using a side-by-side bar chart.
  2. Build a k-means clustering model.
  3. Conduct feature selection for clustering based on variance.
  4. Reduce high-dimensional data using principal component analysis (PCA).
  5. Design, build and deploy a Dash web application.

Preview

Dash App Demo

ezgif com-gif-maker

💻 Deploying the Application to Heroku

Assuming you have git and heroku cli installed just carry out the following steps:

  1. Clone the repository
git clone https://github.com/Nneji123/Customer-Segmentation-Dash-Application.git
  1. Change the working directory
cd Customer-Segmentation-Dash-Application
  1. Login to Heroku
heroku login
heroku container:login
  1. Create your application
heroku create your-app-name

Replace your-app-name with the name of your choosing.

  1. Build the image and push to Container Registry:
heroku container:push web
  1. Then release the image to your app:
heroku container:release web