Data preprocessing

15
Data Preprocessing By S.Dinesh Babu II MCA

Transcript of Data preprocessing

Page 1: Data preprocessing

Data Preprocessing

ByS.Dinesh BabuII MCA

Page 2: Data preprocessing

Definition

Data preprocessing is a data mining technique

that involves transforming raw data into an

understandable format. 

Data in the real world is dirty

Page 3: Data preprocessing

Measures for data quality: A multidimensional view

◦Accuracy: correct or wrong, accurate or not

◦Completeness: not recorded, unavailable, …

◦Consistency: some modified but some not,

dangling, …

◦Timeliness: timely update?

◦Believability: how trustable the data are

correct?

◦ Interpretability: how easily the data can be

understood?

Page 4: Data preprocessing

Major Tasks in Data Preprocessing

Data Cleaning

Data Integration

Data Reduction

Data Transformation and Data

Discretization

Page 5: Data preprocessing

Data Cleaning: IncompleteData is not always available

Ex:Age:” ”;

Missing data may be due to

◦ equipment malfunction

◦ inconsistent with other recorded data and thus deleted

◦ data not entered due to misunderstanding

◦ certain data may not be considered important at the time of entry

Page 6: Data preprocessing

Noisy Data

Unstructured Data.

Increases the amount of storage space .

Causes:

Hardware Failure

Programming Errors

Page 7: Data preprocessing

Data Cleaning as a ProcessMissing values, noise, and inconsistencies contribute to

inaccurate data.

The first step in data cleaning as a process is

discrepancy detection.

Discrepancies can be caused by several factors.

Poorly designed data entry forms

human error in data entry

Page 8: Data preprocessing

The data should also be examined regarding:

o Unique rule:

Each attribute value must be different from all other attribute

value.

o Consecutive rule

No missing values between lowest and highest values of the

attribute.

o Null rule

Specifies the use of blanks, question marks, special

characters.

Page 9: Data preprocessing

Data Integration

The merging of data from multiple data stores.

It can help reduce, avoid redundancies and

inconsistencies.

It improve the accuracy and speed of the subsequent

data mining process.

Page 10: Data preprocessing

Data Reduction

To obtain a reduced representation of the data set that is

much smaller in volume.

Strategies for data reduction include the following:

Data cube aggregation, where aggregation operations

are applied to the data in the construction of a data cube.

Attribute subset selection, where irrelevant, weakly

relevant, or redundant attributes or dimensions may be

detected and removed.

Page 11: Data preprocessing

Dimensionality reduction, where encoding mechanisms are

used to reduce the data set size.

Numerosity reduction, where the data are replaced or

estimated by alternative, smaller data representations such as

Parametric models

Nonparametric methods such as clustering, sampling,

and the use of histograms.

Page 12: Data preprocessing

Data Transformation In data transformation, the data are transformed or

consolidated into forms appropriate for mining.

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

Page 13: Data preprocessing

Data DiscretizationDiscretization: Divide the range of a continuous

attribute into intervals

◦ Interval labels can then be used to replace actual data

values

◦ Reduce data size by Discretization

◦ Split (top-down) vs. merge (bottom-up)

◦ Discretization can be performed recursively on an

attribute

◦ Prepare for further analysis, e.g., classification

Page 14: Data preprocessing

Three types of attributes

◦ Nominal—values from an unordered set, e.g., color, profession

◦ Ordinal—values from an ordered set, e.g., military or academic rank

◦ Numeric—real numbers, e.g., integer or real numbers

Page 15: Data preprocessing

Thank You