Docsity

Data Mining assignment for apriori algorithm, Exercises of Data Mining

Toggle sidebar
bg1
Report
Aims
Software tool Weka 3.6.10 is used for this assignment.Zoo.arf is the data set on which we apply
different functions and experience some new things. Rules which we extracted from this data set are
very useful to classify different animals according to their type e.g. tested on different parameters
(Attributes).
Data set Description
Zoo.arff is data set which is selected for the purpose of association rule mining (Apriori).Data set
contains data about animals and their features. Data about different animals is inserted for the
purpose of training and then animal is classified according to their types. Type is a nominal attribute
having seven possible values e.g. mammal, bird, reptile, fish, amphibians, insects, invertebrates.
According to different features animals are test and then classified. Data set contains 18 attributes/
features and 101 instances that are classified into above mentioned types.
Reason behind the Choice of Data set
pf3
pf4
pf5

Partial preview of the text

Download Data Mining assignment for apriori algorithm and more Exercises Data Mining in PDF only on Docsity!

Report

Aims

Software tool Weka 3.6.10 is used for this assignment.Zoo.arf is the data set on which we apply different functions and experience some new things. Rules which we extracted from this data set are very useful to classify different animals according to their type e.g. tested on different parameters

(Attributes).

Data set Description

Zoo.arff is data set which is selected for the purpose of association rule mining (Apriori).Data set contains data about animals and their features. Data about different animals is inserted for the purpose of training and then animal is classified according to their types. Type is a nominal attribute having seven possible values e.g. mammal, bird, reptile, fish, amphibians, insects, invertebrates. According to different features animals are test and then classified. Data set contains 18 attributes/ features and 101 instances that are classified into above mentioned types.

Reason behind the Choice of Data set

The reason behind the choice of this data set is the requirement of assignment. As according to assignment preprocessing is necessary so I choose this data set because this data set contains missing values and some other problems like it contains numeric data and Apriori algorithm is not enable on this data. Association rules are often used in situation where attributes are binary or nominal. On numeric values it is disabled, and this data set contains attributes of numeric type so initially Apriori is disabled on this. So after preprocessing e.g. discretizing, converting attributes numeric to nominal and estimating the missing value apriori will be enabled. Legs is an attribute of numeric type we cannot discard or delete this entire attribute because size of legs is also an important measure for classifying into type so we can apply filtering but cannot delete this attribute as it leads to loss of important data. Attributes of this data set does not contain noisy data or outliers for which we have to apply binning or other methods to solve this.

So for preprocessing following steps are needed

  • Estimating missing values
  • Applying filters to enable Apriori

Estimating Missing Values:

For the purpose of removing missing values default values are estimated and then fill with these values. After estimating it can be done through weka, Edit your data set and then right click on attribute which have missing value and then select option fill missing values with default ones.

After inserting missing value data set will look like

After applying filtering:

After applying filtering (numeric to nominal) data will look like

Rule mining process:

Parameter setting involves filtering process which is applied to parameter legs so that it can be converted into nominal data type for purpose of enabling algorithm.Apriori algorithm is choose in association rule mining for this data. For this we go to associate section in weka explorer and choose Apriori associator if preprocessing is applied then Apriori will be enabled

Rules:

After applying aprori algorithm we will get 10 best rules from data set and these 10 rules are as following with confidence:

    1. backbone=true ==> venomous=false tail=true conf:(0.86)
    1. venomous=false tail=true ==> backbone=true conf:(1)
    1. backbone=true venomous=false ==> tail=true conf:(0.9)
  1. (^) 4. tail=true ==> backbone=true venomous=false conf:(0.95)
    1. backbone=true ==> tail=true conf:(0.89)
    1. tail=true ==> backbone=true conf:(0.99)
    1. feathers=false ==> airborne=false conf:(0.9)
    1. airborne=false ==> feathers=false conf:(0.95)
    1. breathes=true ==> venomous=false fins=false conf:(0.89)
    1. venomous=false fins=false ==> breathes=true conf:(0.92)

Through applying lift: