Docsity

Data Minining - Data cleaning, Study notes of Data Mining

Toggle sidebar
bg1
November 27, 2014 Data Mining: Concepts and
Techniques 1
CHAPTER 2: Data
Preprocessing
•Why preprocess the data?
•Descriptive data summarization
•Data cleaning
•Data integration and transformation
•Data reduction
•Discretization and concept hierarchy
generation
•Summary
pf3
pf4
pf5
pf8
pf9
pfa

Partial preview of the text

Download Data Minining - Data cleaning and more Study notes Data Mining in PDF only on Docsity!

November 27, 2014 Data Mining: Concepts and 1

CHAPTER 2: Data

Preprocessing

  • (^) Why preprocess the data?
  • (^) Descriptive data summarization
  • (^) Data cleaning
  • (^) Data integration and transformation
  • (^) Data reduction
  • (^) Discretization and concept hierarchy

generation

  • (^) Summary

November 27, 2014 Data Mining: Concepts and 2 Data Cleaning

  • (^) Importance
    • (^) “Data cleaning is one of the three biggest problems in data warehousing”—Ralph Kimball
    • (^) “Data cleaning is the number one problem in data warehousing”—DCI survey
  • (^) Data cleaning tasks
    • (^) Fill in missing values
    • (^) Identify outliers and smooth out noisy data
    • (^) Correct inconsistent data
    • (^) Resolve redundancy caused by data integration

November 27, 2014 Data Mining: Concepts and 4

How to Handle Missing

Data?

  • (^) Ignore the tuple: usually done when class label is missing (assuming the tasks in classification—not effective when the percentage of missing values per attribute varies considerably.
  • (^) Fill in the missing value manually: tedious + infeasible?
  • (^) Fill in it automatically with
    • (^) a global constant : e.g., “unknown”, a new class?!
    • (^) the attribute mean
    • (^) the attribute mean for all samples belonging to the same class: smarter
    • (^) the most probable value: inference-based such as Bayesian formula or decision tree

November 27, 2014 Data Mining: Concepts and 5

Noisy Data

  • (^) Noise: random error or variance in a measured variable
  • (^) Incorrect attribute values may due to
    • (^) faulty data collection instruments
    • (^) data entry problems
    • (^) data transmission problems
    • (^) technology limitation
    • (^) inconsistency in naming convention
  • (^) Other data problems which requires data cleaning
    • (^) duplicate records
    • (^) incomplete data
    • (^) inconsistent data

November 27, 2014 Data Mining: Concepts and 7 Simple Discretization Methods: Binning

  • (^) Equal-width (distance) partitioning
    • (^) Divides the range into N intervals of equal size: uniform grid
    • (^) if A and B are the lowest and highest values of the attribute, the width of intervals will be: W = ( B – A )/ N.
    • (^) The most straightforward, but outliers may dominate presentation
    • (^) Skewed data is not handled well
  • (^) Equal-depth (frequency) partitioning
    • (^) Divides the range into N intervals, each containing approximately same number of samples
    • (^) Good data scaling
    • (^) Managing categorical attributes can be tricky

November 27, 2014 Data Mining: Concepts and 8 Binning Methods for Data Smoothing  (^) Sorted data for price (in dollars): 4, 8, 9, 15, 21, 21, 24, 25, 26, 28, 29, 34

  • Partition into equal-frequency (equi-depth) bins:
  • Bin 1: 4, 8, 9, 15
  • Bin 2: 21, 21, 24, 25
  • Bin 3: 26, 28, 29, 34
  • Smoothing by bin means:
  • Bin 1: 9, 9, 9, 9
  • Bin 2: 23, 23, 23, 23
  • Bin 3: 29, 29, 29, 29
  • Smoothing by bin boundaries:
  • Bin 1: 4, 4, 4, 15
  • Bin 2: 21, 21, 25, 25
  • Bin 3: 26, 26, 26, 34

November 27, 2014 Data Mining: Concepts and 10 Cluster Analysis

November 27, 2014 Data Mining: Concepts and 11 Data Cleaning as a Process

  • (^) Data discrepancy detection
    • (^) Use metadata (e.g., domain, range, dependency, distribution)
    • (^) Check field overloading
    • (^) Check uniqueness rule, consecutive rule and null rule
    • (^) Use commercial tools
      • (^) Data scrubbing: use simple domain knowledge (e.g., postal code, spell-check) to detect errors and make corrections
      • (^) Data auditing: by analyzing data to discover rules and relationship to detect violators (e.g., correlation and clustering to find outliers)
  • (^) Data migration and integration
    • (^) Data migration tools: allow transformations to be specified
    • (^) ETL (Extraction/Transformation/Loading) tools: allow users to specify transformations through a graphical user interface
  • (^) Integration of the two processes
    • (^) Iterative and interactive (e.g., Potter’s Wheels)