Giter Site home page Giter Site logo

nitinjosephrepo / items-frequently-bought-together Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 29 KB

To answer which items are frequently bought together we will be using Apriori & FPgrowth Algorithm

Jupyter Notebook 100.00%
apriori-algorithm ecommerce-application fpgrowth marketbasketanalysis colloborative-filtering

items-frequently-bought-together's Introduction

Market Basket Analysis

Purpose of Market Basket Analysis

Finding items that buyers desire to buy is the major goal of market basket analysis. Market basket analysis helps sales and marketing teams develop more effective product placement, pricing, cross-sell, and up-sell tactics

We will be utilizing two algorithm for Market Basket Analysis

  • Apriori Algorithm
  • FP growth

Understanding Association Rules is critical in understanding product relationship during purchase.

Screenshot 2023-02-19 at 10 20 05 PM

What we see above is how often Milk(Consequent) was bought when Bread & Egg (Antecedent) were bought together

There are 3 metrics to help us understand the relationship between the two

  • Support
  • Confidence
  • Lift

Support

Support as an measure gives an idea of how frequent an itemset is in all the transactions. For example, one might want to consider only the itemsets which occur at least 50 times out of a total of 10,000 transactions i.e. support = 0.005. If an itemset happens to have a very low support, we do not have enough information on the relationship between its items and hence no conclusions can be drawn from such a rule.

Confidence

This measure defines the likeliness of occurrence of consequent on the cart given that the cart already has the antecedents. That is to answer the question โ€” of all the transactions containing say, {Captain Crunch}, how many also had {Milk} on them? We can say by common knowledge that {Captain Crunch} โ†’ {Milk} should be a high confidence rule. Technically, confidence is the conditional probability of occurrence of consequent given the antecedent.

Lift

Lift is an important measure. A value of lift greater than 1 vouches for high association between {Y} and {X}. More the value of lift, greater are the chances of preference to buy {Y} if the customer has already bought {X}. Lift is the measure that will help store managers to decide product placements on aisle.

Screegrab from our Analysis

Screenshot 2023-02-19 at 10 46 45 PM

items-frequently-bought-together's People

Contributors

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