DWM 5
DWM 5
(SOLUTION)
Solution:
Calculate min_supp=0.5*4=2
(0.5: given minimum support, 4: total transactions in database D)
Step 1: Generate candidate list C1 from D
C1=
Step 2: Scan D for count of each candidate and find the support.
C1=
Step 5: Scan D for count of each candidate and find the support.
C2=
Example:
Suppose, a marketing manager of Electronic shop, would like to
determine which items are frequently purchased together within the
same transactions.
An example of such a rule,
buys (X; "computer") → buys(X; "Antivirus software") [support = 1%;
confidence = 50%]
where, X is a variable representing a customer.
Here, support and confidence are two measures of rule interestingness.
Answer:
Set of values: 2,3,6,8,9,12,15,18,22
1. Break given set of values randomly in to 3 clusters and calculate the
mean value.
K1: 2,8,15 mean=8.3
K2: 3,9,18 mean=10
K3: 6,12,22 mean=13.3
2. Reassign the values to clusters as per the mean calculated and calculate
the mean again.
K1: 2,3,6,8,9 mean=5.6
K2: mean=0
K3: 12,15,18,22 mean=16.75
3. Reassign the values to clusters as per the mean calculated and calculate
the mean again.
K1: 3,6,8,9 mean=6.5
K2: 2 mean=2
K3: 12,15,18,22 mean=16.75