Professional Documents
Culture Documents
Assignment
Submitted to:
Name: Mayen Uddin Mojumdar
Lecture
Dept. of Computer Science and Engineering
Daffodil International University
Submitted by:
Name: Milon Mahato
ID: 171-15-1472
Section: PC-D
Dept. of Computer Science and Engineering
Daffodil International University
As,
Support = (30/100) *5
= 1.5
{Bread, Coke} 1
{Bread, Milk} 2
{Bread, Beer} 2
{Bread, Diaper} 1
{Coke, Milk} 3
{Coke, Beer} 1
{Coke, Diaper} 2
{Milk, Beer} 2
{Milk, Diaper} 3
{Beer, Diaper} 2
We know,
Confidence(A→B) = Support (AUB) / Support(A)
C ((Coke, Milk)→ Diaper) = S ((Coke, Milk) U Diaper)/S ((Coke, Milk)) = 2/3 = 0.67
C (Coke, Diaper)→ Milk) = S ((Coke, Diaper) U Milk)/S ((Coke, Diaper)) = 2/2 = 1
C (Milk, Diaper)→ Coke) = S ((Milk, Diaper) U Coke)/S ((Milk, Diaper)) = 2/3 = 66.67
C (Diaper → (Coke, Milk)) = S (Diaper U (Coke, Milk)) / S(Diaper) = 2/3 = 66.67
C (Milk → (Coke, Diaper) = S (Milk U (Coke, Diaper)) / S(Milk) = 2/4 = 0.5
C (Coke → (Milk, Diaper) = S (Coke U (Milk, Diaper)) / S(Coke) = 2/3= 66.67