GithubHelp home page GithubHelp logo

ftmoyiv / bgse-dashboard-project Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mariafdez/bgse-workbench

0.0 1.0 0.0 643 KB

SQLPL 0.32% R 0.86% Shell 0.16% PHP 3.78% CSS 3.14% JavaScript 91.74%

bgse-dashboard-project's Introduction

BGSE Dashboard Project: Product Recommendation and Customer Analysis

Overview

This project implements a product recommendation algorithm and carries out customer analysis using LASSO regression.

The objectives of the project are:

  • Develop a set of product recommendation rules, based on the Apriori algorithm
  • Rank customers on the basis of their marginal contribution to revenues.

The ultimate goal is to provide information that can be used by a marketing department to develop more targeted campaigns.

Structure

The core of the analysis is contained in these three files:

  • Customers_by_product.sql
  • data_and_analysis.php
  • analysis.R

Note that some of the key SQL queries, to generate the data for the analysis but also to create a network graph, are contained in both the R file and the additional Customers_by_product.sql file. The latter is called by the setup script after the database is populated.

Implementation

To develop the product recommendation system we have used the Apriori algorithm. We provide a link to the relevant Wikipedia article on the introductory page of the web application.

To develop the LASSO regression, we first have identified the top 20 customers in terms of total revenues generated. Then we have carried out a LASSO regression using the lars package with the objective to narrow down the number of customers with a significant marginal contribution to revenues.

The 'Data' tab includes a network graph of the links between product categories. Note that the graph is generated dynamically each time the ./setup.sh run command is given. The script saves a .png file in the /web sub-directory, which is then retrieved via html link.

Required packages

The R analysis relies on the following packages.

  • igraph
  • arules
  • lars

Acknowledgments

This project is based on code by: Guglielmo Bartolozzi, Gaston Besanson, Christian Brownlees, Stefano Costantini, Laura Cozma, Jordi Zamora Munt

bgse-dashboard-project's People

Contributors

ctbrownlees avatar ftmoyiv avatar kernelanalytics 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.