Solution Manual Practical Applications of Data Mining by Sang C. Suh
Solution Manual Practical Applications of Data Mining by Sang C. Suh
com //
WhatsApp: https://wa.me/message/2H3BV2L5TTSUF1 // Telegram: https://t.me/solutionmanual
2.1) Use the database table in fig 2.28, which contains ten market transactions. Use the
Aprior algorithm to complete the association rule generation process. Experiment
with different values of support and confidence to observe how they control the
number of association rules generated.
Answer:
TID Items
1 1,3,4,5,6,7,9,10
2 2,4,5,7,8,9,10
3 1,2,3,4,10
4 2,4,5,6,7,10
5 1,3,4,5,7,8
6 3,5,7,8,9,10
7 1,3,4,8,9,10
8 2,5,6,7,8,9
9 1,3,4,5,6,7,10
10 1,2,3,4,5,7,8,9,10
C1 and L1
Item Support
1 6
2 5
3 7
4 8
5 8
6 4
7 8
8 6
9 6
10 8
Item Support
3 7
4 8
5 8
7 8
10 8
Consider the items whose support factor is greater than 60%.Items are 3, 4, 5, 7, and 10.
Item Sets Support
{3,4} 6
{3,5} 5
{3,7} 5
{3,10} 6
{4,5} 6
{4,7} 6
{4,10} 7
{5,7} 8
{5,10} 6
{7,10} 6
Considering the item sets whose support factor is greater than 60%.Items are 4, 5,7,10
L2
2.2) Consider the weighted directed graph shown in fig 2.29. Generated all possible
composite association rules meeting the support values of 1.0, 1.5, and 2.0.
Answer:
Y= / |E|
For example in the given graph support factor for AB = (3 / 1) / (34 / 11) = 3 / 3.09 = 0.9
Path S.F
AB 3/3.09
AE 5/3.09
BA 2/3.09
BC 4/3.09 Path S.F
BE 2/3.09 ABCD 3/3.09
ABED 3/3.09
CD 2/3.09
ABEC 3.3/3.09
DE 3/3.09
AEDC 4/3.09
DC 3/3.09
AECD 4/3.09
ED 4/3.09
BAED 3.6/3.09
EA 1/3.09
BAEC 4.3/3.09
EC 5/3.09
BCDE 3/3.09
ABC 3.5/3.09
BEDC 3/3.09
ABE 2.5/3.09
BECD 3/3.09
AED 4.5/3.09
CDEA 2/3.09
AEC 5/3.09
DEAB 2.3/3.09
BAE 3.5/3.09 EABC 2.6/3.09
BCD 3/3.09 ABCDE 3/3.09
BEA 1.5/3.09 ABEDC 2.75/3.09
BED 3/3.09 ABECD 3/3.09
BEC 3.5/3.09 BAEDC 3.5/3.09
CDE 2.5/3.09 BAECD 3.5/3.09
DEA 2 BCDEA 2.5/3.09
DEC 4 CDEAB 2.25/3.09
EDC 3.5 DEABC 2.75/3.09
EAB 2 EABCD 2.5/3.09
ECD 3.5
2.3 ) The database table shown in Figure 2.30 contains a dataset with the following five attributes:
color(Yellow,purple),size(large,small),act(stretch,dip),age(adult,child),and inflated(T,F).Follow
the method used in section2.6 for generating compact rules to derive all rules with full confidence.
Answer:
Color Count
Yellow 8
Purple 8
Size Count
Small 8
Large 8
Purple 4 4
Inflated T F
Size
Small 5/8 3/8
Large 2/8 6/8
Inflated T F
Act
Stretch 5/8 3/8
Dip 2/8 6/8
Inflated
Color Act T F
Yellow Stretch 3/4 1/4
Yellow Dip 1/2 1/2
Purple Stretch 1/2 1/2
Purple Dip 0 1
Inflated
Act Size T F
Stretch Small 3/4 1/4
Stretch Large 1/2 1/2
Dip Small 1/2 1/2
Dip Large 1 0
2.4) The major-salary table in Fig 2.31 shows 30 instances of IT professionals in terms of four
attributes: age, education, major and salary. Construct conceptual hierarchies for age, education,
major and salary. Generate interesting learning tasks for deriving discrimination and characteristic
rules from the table. Use the AO induction method to derive either discrimination or characteristic
rules based on the learning tasks generated.
Answer:
The Conceptual Hierarchies for Age, Edu, Salary, and Major are
Salary: (40k-50k) is M1
(51k-60k) is M2
(61k-70k) is M3
(71k-80k) is M4
(81k-90k) is M5
By using Attribute Removal Concept we are removing “Edu” field. After removing “Edu” field, table view
is as follows
Fig 2.32 shows a contact lenses table that contains information about contact lenses prescriptions.
From table, derive quantitative association rules by mapping tables to Boolean association rules?
2.5 Figure shows a contact lens table tht contains information about contact lens
prescriptions(hard , soft and no contact lens)From the table derive quantitative association rules by
mapping tables to Boolean association rules.
Contact
ID Age Spectacle Astigmatic Tear Production lens
1 21 Myope No Reduced None
2 24 Myope No Normal Soft
3 20 Myope Yes Reduced None
4 26 Myope Yes Normal Hard
5 27 Hypermyope No Reduced None
6 22 Hypermyope No Normal Soft
7 28 Hypermyope Yes Reduced None
8 27 Hypermyope Yes Normal Hard
9 38 Myope No Reduced None
10 32 Myope No Normal Soft
11 36 Myope Yes Reduced None
12 37 Myope Yes Normal Hard
13 33 Hypermyope No Reduced None
14 32 Hypermyope No Normal Soft
15 39 Hypermyope Yes Reduced None
16 34 Hypermyope Yes Normal None
17 52 Myope No Reduced None
18 51 Myope No Normal None
19 50 Myope Yes Reduced None
20 54 Myope Yes Normal Hard
21 52 Hypermyope No Reduced None
22 55 Hypermyope No Normal Soft
23 58 Hypermyope Yes Reduced None
24 54 Hypermyope Yes Normal None
Answer: