Data Mining With Weka Heart Disease Dataset: 1 Problem Description
Data Mining With Weka Heart Disease Dataset: 1 Problem Description
1 Problem Description
The dataset used in this exercise is the heart disease dataset available in
heart-c.arff obtained from the UCI repository1 . This dataset describes
risk factors for heart disease. The attribute num represents the (binary) class
attribute: class <50 means no disease; class >50_1 indicates increased level of
heart disease.
The main aim of this exercise is to predict heart disease from the other at-
tributes in the dataset. Obviously, this is a classification problem. The software
to be used is Weka 3.6 . However, feel free to try any ideas you may have to
tackle the problem with any other software.
The description of this exercise is stepwise. Therefore, I hope you can get a
better understanding of the various aspects and questions involved in the KDD
process.
1
it mean the pop-up messages that appear when dragging the mouse
over the graphic?
(f) Are there any outliers for the attribute under consideration?
i. Investigate the possibility of using the Weka filter InterquartileRange
to detect outliers2 .
2. Switch to the Visualize tab on the upper part of the screen to visualize
2D-scatter plots for each pair of attributes.
(a) Which attributes seem to be the most/least linked to heart disease?
Summarize in a table your findings concerning the predictive value
of each attribute.
(b) Does any pair of attributes seem to be correlated?
3. Investigate also possible multivariate associations of attributes with the
class attribute, i.e. study scatter plots of two attributes X and Y and try
to identify possible dense heart disease areas (if any).
(a) If you find dense heart disease areas in any scatter plot then quan-
tify the heart disease rate in these areas with respect to the entire
data set.
1. Attribute selection.
Investigate the possibility of using the Weka filter AttributeSelection
for selecting a subset of attributes with good predicting capability. Then,
describe briefly the filter(s) you used and compare the results you obtained
with the conclusions you obtained in the previous section. Save the dataset
with the selected attributes in the file heart-c1.arff.
2. Handling missing values.
Consider the following methods for handling missing values and investigate
each possibility within Weka. Note that, as rule of thumb, if an attribute
has more than 5% missing values then the records should not be deleted
and it is advisable to impute values where data is missing, using a suitable
method.
(a) Replace the missing values by the attribute mean, if the attribute
is numeric. Otherwise, replace missing values by attribute mode (if
the attribute is categorical). Save the dataset you obtained without
missing values in the file heart-c2.arff.
2 See also the information about box plots available from course web page.
2
(b) Investigate the possibility of using (linear) regression to estimate the
missing values for each attribute. Save the dataset you obtained
without missing values in the file heart-c3.arff.
3. Eliminating outliers.
Eliminate the outlier records and save the dataset you obtained without
outliers in the file heart-c34.arff.
3
4. Study the numerical measures displayed by Weka for each cluster. What
can you conclude?
1.6 Conclusions
Describe your final conclusions and indicate which risk factors for heart disease
have you found in the data.