To calculate the association rule, divide the support of both items (X ∪ Y) by the support of the first item (X). This gives the confidence of the association.

## Association Rule Calculator

Enter any 3 values to calculate the missing variable

Association Rule Mining is an important concept in data mining, especially for market basket analysis. It helps find interesting relationships or patterns between variables in large datasets. These rules are used to predict the likelihood of certain items being bought together.

**Formula:**

$\text{Association Rule (AR)} = \frac{S(X \cup Y)}{S(X)$

Where:

- $S(X \cup Y)$ = Support of both itemsets X and Y
- $S(X)$ = Support of itemset X

**How to Calculate ?**

**Find the support**of both itemsets X and Y together, which is the probability that both items appear in a transaction.**Find the support**of itemset X, which is the probability that item X appears in a transaction.**Divide**the support of both itemsets by the support of X to get the association rule.

**Solved Calculations**

**Example 1:**

**Support of X ∪ Y**: 0.4**Support of X**: 0.5

Parameter | Value |
---|---|

Support of X ∪ Y | 0.4 |

Support of X | 0.5 |

Association Rule (AR) | 0.8 |

**Answer**: The association rule confidence is 0.8.

**Example 2:**

**Support of X ∪ Y**: 0.3**Support of X**: 0.6

Parameter | Value |
---|---|

Support of X ∪ Y | 0.3 |

Support of X | 0.6 |

Association Rule (AR) | 0.5 |

**Answer**: The association rule confidence is 0.5.

**What is Association Rule Calculator ?**

The Association Rule Calculator is a powerful tool used in data mining to discover relationships between variables in large datasets. It helps identify how often items occur together and how strong those associations are, using key metrics like support, confidence, and lift. These metrics provide insights into patterns that can be beneficial for marketing strategies, product placements, and inventory management.

Support measures how frequently itemsets appear in the data. Confidence indicates the likelihood that a certain item will be purchased when another item is bought. Lift evaluates the strength of the association by comparing the observed support of the rule to the expected support if the items were independent.

For example, in a retail scenario, if customers who buy bread also often buy butter, understanding this relationship can help optimize product placement.

To effectively use the calculator, you can input your dataset, and it will help generate association rules based on algorithms like Apriori or FP-Growth. These algorithms efficiently identify frequent itemsets and generate rules that show strong associations.

By leveraging tools such as this calculator, businesses can make data-driven decisions that enhance customer satisfaction and drive sales.