Professional Documents
Culture Documents
Today Objective
If the minimum confidence is 50%, then the only two rules generated
from this 2-itemset, that have confidence greater than 50%, are:
Trouser Jacket Support=50%, Confidence=66%
Jacket Trouser Support=50%, Confidence=100%
Indian Institute of Management (IIM),Rohtak
Market Basket Analysis
For the superstore data, the lift for meat and vegetables would equal:
=VLOOKUP(N12,$J$9:$K$14,2)
=VLOOKUP(O12,$J$9:$K$14,2)
IF(N13<>O13,VLOOKUP(N13,K9:L14,2,FALSE)*L7*VLOOKUP(
O13,K9:L14,2,FALSE)*VLOOKUP(P14,K17:L23,2),0)
If you enter the same product class twice, this formula yields
a 0. Otherwise, multiply (total number of transactions) *
(fraction of baby transactions) * (fraction of vegetable
transactions) * (fraction of Friday transactions).
This gives a predicted number of Monday meat and vegetable
transactions (assuming independence).
Finally, in cell S14, compute the lift with the formula
=IF(R14=0,1,Q14/R14).
The lift for vegetables and baby goods on Friday is .85. This
means that on Fridays vegetables and baby goods are bought
together less frequently than expected.
=IF(R14=0,1,Q14/R14)
Use Evolutionary Solver with the changing cells being the day of the
week (cell P14) and an index reflecting the product classes (cells N12
and O12). Cells N12 and O12 are linked with lookup tables to cells
N13:O13. For instance, a 1 in cell N12 makes N13 be vegetables.
=VLOOKUP(G16,$E$8:$F$13,2,FALSE)
=INDEX(lifts,G17,G16)+INDEX(lifts,G17,H17)
No repetition
Key Concepts :
• Frequent Itemsets: The sets of item
which has minimum support (denoted
by Li for ith-Itemset).
• Join Operation: To find Lk , a set of
candidate k-itemsets is generated by
joining Lk with itself.
• Apriori Property: Any subset of
frequent itemset must be frequent.
Indian Institute of Management (IIM),Rohtak
Thank you !!!
Indian Institute of Management (IIM),Rohtak