Question:
Suppose
half of all the documents in a computer contain the word sports, and one third
of all the
documents
contain the word football. Again, half of the documents that contain the word
sports, also
contain
the word football. Write down all the non-trivial association rules that can be
deduced from
the
above information, giving the support, confidence and lift of each rule.
Answer:
Given Information: Support(sports)=1/2, Support(football)=1/3, Support(sports, football)=(1/2*1/2)=1/4
Non-Trivial Association Rules: We can deduce two non-trivial association rules-
sports →football & football →sports.
Calculating Support, Confidence, and Lift:
Confidence(sports →football)= Support(sports, football) / Support(sports) =(1/4) /1/2 =1/2=0.5
Confidence(football →sports)= Support(sports, football) / Support(football) = (1/4)/1/3 =3/4=0.75
Lift: The lift of a rule is defined as:
Summary of Association Rules:
Rule 1:
- Support: 0.25
- Confidence: 0.5
- Lift: 1.5
Rule 2:
- Support: 0.25
- Confidence: 0.75
- Lift: 1.5