WPI Worcester Polytechnic Institute

Computer Science Department
------------------------------------------

CS 4445 Data Mining and Knowledge Discovery in Databases - B Term 2012 
Homework and Project 2: Data Pre-processing, Mining, and Evaluation of Decision Trees

Prof. Carolina Ruiz and Ken Loomis 

DUE DATES: Friday, Nov. 9, 11:00 am (electronic submission) and 1:00 pm (hardcopy submission) 
------------------------------------------


HOMEWORK AND PROJECT OBJECTIVES

The purpose of this project is multi-fold:

HOMEWORK AND PROJECT ASSIGNMENTS

Readings: Read in great detail Chapter 4 (except for Section 4.6) of your textbook.

This project consists of two parts:

  1. Part I. INDIVIDUAL HOMEWORK ASSIGNMENT

    See solutions by Ken Loomis.

    Consider the following dataset.

    @relation movie-preferences 
    
    @attribute genre {comedy, drama, action}
    @attribute critics-reviews {thumbs-up, neutral, thumbs-down}
    @attribute rating {R, PG-13}
    @attribute IMAX {true, false}
    @attribute likes {yes, no}
    
    @data
    ( 1) comedy, thumbs-up,   R,     false, no
    ( 2) comedy, thumbs-up,   R,     true,  no
    ( 3) comedy, neutral,     R,     false, no
    ( 4) comedy, thumbs-down, PG-13, false, yes
    ( 5) comedy, neutral,     PG-13, true,  yes
    ( 6) drama,  thumbs-up,   R,     false, yes
    ( 7) drama,  thumbs-down, PG-13, true,  yes
    ( 8) drama,  neutral,     R,     true,  yes
    ( 9) drama,  thumbs-up,   PG-13, false, yes
    (10) action, neutral,     R,     false, yes
    (11) action, thumbs-down, PG-13, false, yes
    (12) action, thumbs-down, PG-13, true,  no
    (13) action, neutral,     PG-13, false, yes
    (14) action, neutral,     R,     true,  no
    
    where the likes attribute is the classification target.

    1. (30 points) Construct the full ID3 decision tree using entropy to rank the predictive attributes (genre, critics-reviews, rating, IMAX) with respect to the target/classification attribute (likes). Show all the steps of the calculations. Make sure you compute log in base b (for the appropriate b) correctly as some calculators don't have a log_b primitive for all b's. Also, state explicitly in your tree what instances exactly belong to each tree node using the line numbers provided next to each data instance in the dataset above.

    2. (5 points) Propose approaches to using your decision tree above to classify instances that contain missing values. Use the following instance to illustrate your ideas.
      genre = action, critics-reviews = ?, rating  = R, IMAX = ?
      

    3. Study how J4.8 performs post-prunning by reading in detail:

  2. Part II. GROUP PROJECT ASSIGNMENT

  3. Grading sheet for this project