Data Transformations targeted at minimizing experimental variance

Slides:



Advertisements
Similar presentations
UNIT-2 Data Preprocessing LectureTopic ********************************************** Lecture-13Why preprocess the data? Lecture-14Data cleaning Lecture-15Data.
Advertisements

Noise & Data Reduction. Paired Sample t Test Data Transformation - Overview From Covariance Matrix to PCA and Dimension Reduction Fourier Analysis - Spectrum.
DATA PREPROCESSING Why preprocess the data?
1 Copyright by Jiawei Han, modified by Charles Ling for cs411a/538a Data Mining and Data Warehousing v Introduction v Data warehousing and OLAP for data.
Ch2 Data Preprocessing part3 Dr. Bernard Chen Ph.D. University of Central Arkansas Fall 2009.
Data Mining Feature Selection. Data reduction: Obtain a reduced representation of the data set that is much smaller in volume but yet produces the same.
Fast Algorithms For Hierarchical Range Histogram Constructions

Lecture Notes for Chapter 2 Introduction to Data Mining
Data Mining: Concepts and Techniques
Exploratory Data Mining and Data Preparation
Data Preprocessing.
Data Preprocessing CS 536 – Data Mining These slides are adapted from J. Han and M. Kamber’s book slides (
Chapter 3 Pre-Mining. Content Introduction Proposed New Framework for a Conceptual Data Warehouse Selecting Missing Value Point Estimation Jackknife estimate.
Lecture 5 (Classification with Decision Trees)
Pre-processing for Data Mining CSE5610 Intelligent Software Systems Semester 1.
Chapter 4 Data Preprocessing
Spatial and Temporal Data Mining
Data Preprocessing.
2015年7月2日星期四 2015年7月2日星期四 2015年7月2日星期四 Data Mining: Concepts and Techniques1 Data Transformation and Feature Selection/Extraction Qiang Yang Thanks: J.
Major Tasks in Data Preprocessing(Ref Chap 3) By Prof. Muhammad Amir Alam.
Chapter 1 Data Preprocessing
CS2032 DATA WAREHOUSING AND DATA MINING
The Knowledge Discovery Process; Data Preparation & Preprocessing
8/24/2015Data Mining: Concepts and Techniques1 Chapter 2: Data Preprocessing Why preprocess the data? Data cleaning Data integration and transformation.
D ATA P REPROCESSING 1. C HAPTER 3: D ATA P REPROCESSING Why preprocess the data? Data cleaning Data integration and transformation Data reduction Discretization.
The Knowledge Discovery Process; Data Preparation & Preprocessing
Data Reduction. 1.Overview 2.The Curse of Dimensionality 3.Data Sampling 4.Binning and Reduction of Cardinality.
Data Reduction Strategies Why data reduction? A database/data warehouse may store terabytes of data Complex data analysis/mining may take a very long time.
2015年11月6日星期五 2015年11月6日星期五 2015年11月6日星期五 Data Mining: Concepts and Techniques1 Data Preprocessing — Chapter 2 —
1 Data Mining: Data Lecture Notes for Chapter 2. 2 What is Data? l Collection of data objects and their attributes l An attribute is a property or characteristic.
November 24, Data Mining: Concepts and Techniques.
2016年1月17日星期日 2016年1月17日星期日 2016年1月17日星期日 Data Mining: Concepts and Techniques1 Data Mining: Concepts and Techniques — Chapter 2 —
Data Mining and Decision Support
Data Preprocessing: Data Reduction Techniques Compiled By: Umair Yaqub Lecturer Govt. Murray College Sialkot.
Waqas Haider Bangyal. Classification Vs Clustering In general, in classification you have a set of predefined classes and want to know which class a new.
Bzupages.comData Mining: Concepts and Techniques1 Data Mining: Concepts and Techniques — Slides for Textbook — — Chapter 3 — ©Jiawei Han and Micheline.
1 Web Mining Faculty of Information Technology Department of Software Engineering and Information Systems PART 4 – Data pre-processing Dr. Rakan Razouk.
June 26, C.Eng 714 Spring  Data in the real world is dirty  incomplete: lacking attribute values, lacking certain attributes of interest,
Data Mining: Concepts and Techniques
Data Transformation: Normalization
Data Mining: Concepts and Techniques
Data Mining: Concepts and Techniques
Data Mining: Data Preparation
Data Preprocessing CENG 514 September 12, 2018.
Data Preprocessing CENG 514 June 17, 2018.
Noisy Data Noise: random error or variance in a measured variable.
Data Mining K-means Algorithm
UNIT-2 Data Preprocessing
©Jiawei Han and Micheline Kamber Department of Computer Science
Data Warehousing/Mining Comp 150 DW Chapter 3: Data Preprocessing
Data Mining – Intro.
©Jiawei Han and Micheline Kamber Department of Computer Science
Data Preprocessing Computer School of HUST Guangzhi Ma 2018年12月31日星期一
Data Mining: Concepts and Techniques (3rd ed.) — Chapter 3 —
Data Preprocessing Modified from
Data Preprocessing Copyright, 1996 © Dale Carnegie & Associates, Inc.
Chapter 1 Data Preprocessing
©Jiawei Han and Micheline Kamber
Dedicated to the memory of
Data Mining: Concepts and Techniques
DATABASE HISTOGRAMS E0 261 Jayant Haritsa
Data Mining Data Preprocessing
Chapter 7: Transformations
Data Preprocessing Copyright, 1996 © Dale Carnegie & Associates, Inc.
Data Mining: Concepts and Techniques
Resource: J. Han and other books
Data Proprocessing — Chapter 2 —
Presentation transcript:

Data Transformations targeted at minimizing experimental variance Normalization: scaled to fall within a small, specified range min-max normalization z-score normalization normalization by decimal scaling Centralization: Based on fitting a distribution to the data Distance function between distributions KL Distance Mean Centering April 8, 2019 Data Mining: Concepts and Techniques

Data Transformation: Normalization min-max normalization z-score normalization normalization by decimal scaling Where j is the smallest integer such that Max(| |)<1 April 8, 2019 Data Mining: Concepts and Techniques

Data Reduction Strategies Dimensionality reduction—remove unimportant attributes Data Compression Data Sampling Discretization and concept hierarchy generation April 8, 2019 Data Mining: Concepts and Techniques

Dimensionality Reduction Feature selection (i.e., attribute subset selection): Set of possible solutions  Power set Heuristic search methods(due to exponential # of choices) The goal is to identify the most useful subset of features for a given task, say classification. PCA: Given N data vectors from k-dimensions, find c <= k orthogonal vectors that can be best used to represent data The original data set is reduced to one consisting of N data vectors on c principal components (reduced dimensions) April 8, 2019 Data Mining: Concepts and Techniques

Data Mining: Concepts and Techniques Example 0,0,0,1,0,1, C2 1,1,1,1,1,1, C2 1,0,0,0,0,0, C2 1,1,1,0,1,1, C2 0,0,0,0,0,0, C1 0,1,1,0,1,1, C1 0,0,0,1,0,0, C1 1,1,0,1,1,0, C1 Initial attribute set: {A1, A2, A3, A4, A5, A6} A4 ? A1? A6? Class 2 Class 1 Class 2 Class 1 Reduced attribute set: {A1, A4, A6} > April 8, 2019 Data Mining: Concepts and Techniques

Data Mining: Concepts and Techniques Example: Principal Component Analysis X2 Y1 Y2 X1 April 8, 2019 Data Mining: Concepts and Techniques

Data Mining: Concepts and Techniques Data Compression Original Data Compressed Data lossless Original Data Approximated lossy April 8, 2019 Data Mining: Concepts and Techniques

Data Mining: Concepts and Techniques Histograms A popular data reduction technique Divide data into buckets and store average (sum) for each bucket Can be constructed optimally in one dimension using dynamic programming Related to quantization problems. April 8, 2019 Data Mining: Concepts and Techniques

Data Mining: Concepts and Techniques Clustering Partition data set into clusters, and one can store cluster representation only Can be very effective if data is clustered but not if data is “smeared” April 8, 2019 Data Mining: Concepts and Techniques

Data Mining: Concepts and Techniques Cluster Analysis April 8, 2019 Data Mining: Concepts and Techniques

Data Mining: Concepts and Techniques Sampling Allow a mining algorithm to run in complexity that is potentially sub-linear to the size of the data Choose a representative subset of the data Simple random sampling may have very poor performance in the presence of skew Develop adaptive sampling methods Stratified sampling: Approximate the percentage of each class (or subpopulation of interest) in the overall database Used in conjunction with skewed data Sampling may not reduce database I/Os (page at a time). April 8, 2019 Data Mining: Concepts and Techniques

Data Mining: Concepts and Techniques Sampling Raw Data SRSWOR (simple random sample without replacement) SRSWR April 8, 2019 Data Mining: Concepts and Techniques

Data Mining: Concepts and Techniques Sampling Raw Data Cluster/Stratified Sample April 8, 2019 Data Mining: Concepts and Techniques

Data Mining: Concepts and Techniques Discretization Three types of attributes: Nominal — values from an unordered set Ordinal — values from an ordered set Continuous — real numbers Discretization: divide the range of a continuous attribute into intervals Some classification algorithms only accept categorical attributes. Reduce data size by discretization Prepare for further analysis April 8, 2019 Data Mining: Concepts and Techniques

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. April 8, 2019 Data Mining: Concepts and Techniques

Discretization and Concept hierachy reduce the number of values for a given continuous attribute by dividing the range of the attribute into intervals. Interval labels can then be used to replace actual data values Concept hierarchies reduce the data by collecting and replacing low level concepts (such as numeric values for the attribute age) by higher level concepts (such as young, middle-aged, or senior) April 8, 2019 Data Mining: Concepts and Techniques

Discretization and Concept Hierarchy Generation for Numeric Data Binning (see sections before) Histogram analysis (see sections before) Clustering analysis (see sections before) Entropy-based discretization Segmentation by natural partitioning April 8, 2019 Data Mining: Concepts and Techniques

Data Mining: Concepts and Techniques Information/Entropy Given probabilitites p1, p2, .., ps whose sum is 1, Entropy is defined as: Entropy measures the amount of randomness or surprise or uncertainty. Only takes into account non-zero probabilities April 8, 2019 Data Mining: Concepts and Techniques

Entropy-Based Discretization Given a set of samples S, if S is partitioned into two intervals S1 and S2 using boundary T, the entropy after partitioning is The boundary that minimizes the entropy function over all possible boundaries is selected as a binary discretization. The process is recursively applied to partitions obtained until some stopping criterion is met, e.g., Experiments show that it may reduce data size and improve classification accuracy April 8, 2019 Data Mining: Concepts and Techniques

Segmentation by Natural Partitioning A simply 3-4-5 rule can be used to segment numeric data into relatively uniform, “natural” intervals. If an interval covers 3, 6, 7 or 9 distinct values at the most significant digit, partition the range into 3 equi-width intervals If it covers 2, 4, or 8 distinct values at the most significant digit, partition the range into 4 intervals If it covers 1, 5, or 10 distinct values at the most significant digit, partition the range into 5 intervals April 8, 2019 Data Mining: Concepts and Techniques

Data Mining: Concepts and Techniques Example of 3-4-5 Rule Step 1: -$351 -$159 profit $1,838 $4,700 Min Low (i.e, 5%-tile) High(i.e, 95%-0 tile) Max count msd=1,000 Low=-$1,000 High=$2,000 Step 2: (-$1,000 - $2,000) (-$1,000 - 0) (0 -$ 1,000) Step 3: ($1,000 - $2,000) (-$4000 -$5,000) Step 4: ($2,000 - $5, 000) ($2,000 - $3,000) ($3,000 - $4,000) ($4,000 - $5,000) (-$400 - 0) (-$400 - -$300) (-$300 - -$200) (-$200 - -$100) (-$100 - 0) (0 - $1,000) (0 - $200) ($200 - $400) ($400 - $600) ($600 - $800) ($800 - $1,000) ($1,000 - $2, 000) ($1,000 - $1,200) ($1,200 - $1,400) ($1,400 - $1,600) ($1,600 - $1,800) ($1,800 - $2,000) April 8, 2019 Data Mining: Concepts and Techniques

Automatic Concept Hierarchy Generation Some concept hierarchies can be automatically generated based on the analysis of the number of distinct values per attribute in the given data set The attribute with the most distinct values is placed at the lowest level of the hierarchy Note: Exception—weekday, month, quarter, year 15 distinct values country province_or_ state 65 distinct values 3567 distinct values city 674,339 distinct values street April 8, 2019 Data Mining: Concepts and Techniques