> ## Documentation Index
> Fetch the complete documentation index at: https://docs.exploratory.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Market Basket Analysis - Association Rules

## Introduction

Find rules of what tend to occur at the same time from transaction data.

## How to Access?

You can access from 'Add' (Plus) button.

![](https://mintcdn.com/exploratory-inc/WFw15qmp062pMw1-/en/ml/images/arules_add.png?fit=max\&auto=format\&n=WFw15qmp062pMw1-\&q=85\&s=9629630a9f06432bd48a4e21896d50d4)

## How to Use?

#### Column Selection

![](https://mintcdn.com/exploratory-inc/WFw15qmp062pMw1-/en/ml/images/arules_dialog.png?fit=max\&auto=format\&n=WFw15qmp062pMw1-\&q=85\&s=ac2e7d4406bc219122cc9e5b1223de11)

* Product (Subject Column) - Set a column to find rules for. If it's purchasing data, this should be a column of product names.
* Basket (Key Column) - Set a column to use as an id of transactions.

### Parameters

* Minimum Item Length - Minimum number of items on the left-hand side of the rules to find.
* Maximum Item Length - Maximum number of items on the left-hand side of the rules to find.
* Selection of Minimum Support Value - How minimum support value is set. This can be one of the following.
  * Search Automatically - Automatically search a minimum support value that finds some rules.
  * Specify Value - Manually specify the minimum support value.
* Minimum Support Value - Minimum support value for the rules to find. Takes effect when "Specify Value" is chosen for "Selection of Minimum Support Value".
* Maximum Support Value - Maximum support value for the rules to find.
* Minimum Confidence Value - Minimum confidence value for the rules to find.
* Maximum Number of Items in a Basket - Maximum number of most frequent items in a basket to keep before running rule mining algorithm (Apriori algorithm). Less frequent items are dropped so that rule mining completes within reasonable time.
* Left Hand Side Items, Right Hand Side Items (Optional) - The default is NULL. What subjects should come to lhs or rhs.

## Step-by-Step Tutorial with Grocery store data.

* [Introduction to Association Rules (Market Basket Analysis) in R](https://blog.exploratory.io/introduction-to-association-rules-market-basket-analysis-in-r-7a0dd900a3e0)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.