Gaio Documentation
Comment on page

Association Rules

Very popular on ecommerce sites, Association Rules or Basket Analysis identify relationships between products. This type of technique makes it possible to offer products that other people have purchased when browsing a specific product page.
Many other applications are possible with this type of technique, such as identifying fraud in tenders (associations between participating companies), identifying affinities between people, among other applications.
Gaio uses Pycaret to perform the calculations.

1. Configuration

To identify associations between your data, click on the table that contains at least two columns (Transaction and Item), access the Tasks menu and choose the Association Rules task.
  1. 1.
    Set the task name.
  2. 2.
    Define the name of the table to be generated with the rules.
  3. 3.
    Minimum Support : amount of sales in which the two "products" were together divided by total sales.
  4. 4.
    Minimum Confidence : Given that product A was sold, what is the probability that B will be sold?
  5. 5.
    Transaction ID : This is the column that needs to be informed, containing the "sale code".
  6. 6.
    Item ID : Here the column containing the “product” identification must be highlighted.
Having configured this information, the task can be run to search for associations.

2. Results

As a result of executing the technique, a table containing the associations is generated. Each line represents an association found based on two defined criteria (minimum support and minimum confidence).
  1. 1.
    antecedents : In this column appear one or more "products" that, if "purchased", increase the probability of what is in the consequents being purchased.
  2. 2.
    consequents: Here are presented the "products" that are enhanced if the antecedents are sold.
The columns with relationship statistics are:
0 to 1
support(A+B) / support(A)
0 to 1
confidence(A->B) / support(B)
0 to information
support(A->B) – support(A)*support(B)
0 to 1
[1 – support(B)] / [1 – confidence(A->B)]
0 to information