Docsity

Data Minining - Data integration and transformation, Study notes of Data Mining

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

Partial preview of the text

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

November 20, 2014 Data Mining: Concepts and 1

CHAPTER 2: Data

Preprocessing

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

generation

  • (^) Summary

November 20, 2014 Data Mining: Concepts and 2 Data Integration

  • (^) Data integration:
    • (^) Combines data from multiple sources into a

coherent store

  • (^) Schema integration: e.g., A.cust-id  B.cust-#
    • (^) Integrate metadata from different sources
  • (^) Entity identification problem:
    • (^) Identify real world entities from multiple data

sources, e.g., Bill Clinton = William Clinton

  • (^) Detecting and resolving data value conflicts
    • (^) For the same real world entity, attribute values

from different sources are different

  • (^) Possible reasons: different representations,

different scales, e.g., metric vs. British units

November 20, 2014 Data Mining: Concepts and 4 Correlation Analysis (Numerical Data)

  • (^) Correlation coefficient (also called Pearson’s product

moment coefficient)

where n is the number of tuples, and are the respective means of A and B, σA and σB are the respective standard deviation of A and B, and Σ(AB) is the sum of the AB cross- product.

  • (^) If rA,B > 0, A and B are positively correlated (A’s values

increase as B’s). The higher, the stronger correlation.

  • rA,B = 0: independent; rA,B < 0: negatively correlated A B n A B AB nA B n A A B B r A B

( ) ( 1 ) ( )( ) ,         

A B

November 20, 2014 Data Mining: Concepts and 5 Correlation Analysis (Categorical Data)

  • (^) Χ^2 (chi-square) test
  • (^) The larger the Χ^2 value, the more likely the

variables are related

  • (^) The cells that contribute the most to the Χ^2 value

are those whose actual count is very different from

the expected count

  • (^) Correlation does not imply causality
    • (^) # of hospitals and # of car-theft in a city are correlated
    • (^) Both are causally linked to the third variable: population    Expected Observed Expected 2 2 ( ) 

November 20, 2014 Data Mining: Concepts and 7 Data Transformation Data Transformation can involve the following:

  • (^) Smoothing: remove noise from data
  • (^) Aggregation: summarization, data cube construction
  • (^) Generalization: concept hierarchy climbing
  • (^) Normalization: scaled to fall within a small, specified range - (^) min-max normalization - (^) z-score normalization - (^) normalization by decimal scaling
  • (^) Attribute/feature construction
    • (^) New attributes constructed from the given ones

November 20, 2014 Data Mining: Concepts and 8 Data Transformation: Normalization

  • (^) Min-max normalization: to [new_minA, new_maxA]
    • (^) Ex. Let income range $12,000 to $98,000 normalized to [0.0, 1.0]. Then $73,000 is mapped to
  • (^) Z-score normalization (μ: mean, σ: standard deviation):
    • (^) Ex. Let μ = 54,000, σ = 16,000. Then
  • (^) Normalization by decimal scaling ( 1. 0 0 ) 0 0. 716 98 , 000 12 , 000 73 , 600 12 , 000      A A A A A A new max new min new min max min v min v ' ( _  _ ) _ 

A v A v    '  j

v

v

' Where^ j^ is the smallest integer such that Max(|ν’|) < 1

  1. 225 16 , 000 73 , 600 54 , 000  