Docsity
Docsity

Prepare for your exams
Prepare for your exams

Study with the several resources on Docsity


Earn points to download
Earn points to download

Earn points by helping other students or get them with a premium plan


Guidelines and tips
Guidelines and tips

Data Preprocessing Techniques, Lecture notes of Data Mining

Lecture Notes with Special Points on Data Preprocessing

Typology: Lecture notes

2018/2019

Uploaded on 03/05/2019

gajalu
gajalu 🇮🇳

2 documents

1 / 75

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
January 18, 2019 Lecture-3 1
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
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20
pf21
pf22
pf23
pf24
pf25
pf26
pf27
pf28
pf29
pf2a
pf2b
pf2c
pf2d
pf2e
pf2f
pf30
pf31
pf32
pf33
pf34
pf35
pf36
pf37
pf38
pf39
pf3a
pf3b
pf3c
pf3d
pf3e
pf3f
pf40
pf41
pf42
pf43
pf44
pf45
pf46
pf47
pf48
pf49
pf4a
pf4b

Partial preview of the text

Download Data Preprocessing Techniques and more Lecture notes Data Mining in PDF only on Docsity!

Data Preprocessing

 Why preprocess the data?

 Descriptive data summarization

 Data cleaning

 Data integration and transformation

 Data reduction

 Discretization and concept hierarchy generation

 Summary

Why Data Preprocessing?

 Data in the real world is dirty

 incomplete: lacking attribute values, lacking

certain attributes of interest, or containing

only aggregate data

 e.g., occupation=“ ”

 noisy: containing errors or outliers

 e.g., Salary=“-10”

 inconsistent: containing discrepancies in codes

or names

 e.g., Age=“42” Birthday=“03/07/1997”  e.g., Was rating “1,2,3”, now rating “A, B, C”  e.g., discrepancy between duplicate records

Why Is Data Preprocessing Important?

 No quality data, no quality mining results!  Quality decisions must be based on quality data  e.g., duplicate or missing data may cause incorrect or even misleading statistics.  Data warehouse needs consistent integration of quality data  Data extraction, cleaning, and transformation comprises the majority of the work of building a data warehouse

Multi-Dimensional Measure of Data Quality

 A well-accepted multidimensional view:  Accuracy  Completeness  Consistency  Timeliness  Believability  Value added  Interpretability  Accessibility  Broad categories:  Intrinsic, contextual, representational, and accessibility

Forms of Data Preprocessing

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

Measuring the Central Tendency

 Mean (algebraic measure) (sample vs. population):  Weighted arithmetic mean:  Trimmed mean: chopping extreme values  Median: A holistic measure  Middle value if odd number of values, or average of the middle two values otherwise  Estimated by interpolation (for grouped data ):  Mode  Value that occurs most frequently in the data  Unimodal, bimodal, trimodal  Empirical formula:

  n i x i n x 1 1 

   (^) n i i n i i i w w x x 1 1 c f n f l median L median ) / 2 ( ) ( 1    

mean  mode  3 ( mean  median )

N

^ x

Symmetric vs. Skewed Data

 Median, mean and mode of symmetric, positively and negatively skewed data The image part with relationship ID rId4 was not found in the file.

Properties of Normal Distribution Curve

 The normal (distribution) curve  From μ–σ to μ+σ: contains about 68% of the measurements (μ: mean, σ: standard deviation)  From μ– 2 σ to μ+2σ: contains about 95% of it  From μ– 3 σ to μ+3σ: contains about 99.7% of it The image part with relationship ID rId3 was not found in the file. The image part with relationship ID rId4 was not found in the file.

Boxplot Analysis

 Five-number summary of a distribution: Minimum, Q1, M, Q3, Maximum  Boxplot  Data is represented with a box  The ends of the box are at the first and third quartiles, i.e., the height of the box is IRQ  The median is marked by a line within the box  Whiskers: two lines outside the box extend to Minimum and Maximum

Histogram Analysis

 Graph displays of basic statistical class descriptions  Frequency histograms  A univariate graphical method  Consists of a set of rectangles that reflect the counts or frequencies of the classes present in the given data

Quantile Plot

 Displays all of the data (allowing the user to assess both the overall behavior and unusual occurrences)  Plots quantile information  For a data x i data sorted in increasing order, f i indicates that approximately 100 f i % of the data are below or equal to the value xi

Scatter plot

 Provides a first look at bivariate data to see clusters of points, outliers, etc  Each pair of values is treated as a pair of coordinates and plotted as points in the plane

Loess Curve

 Adds a smooth curve to a scatter plot in order to provide better perception of the pattern of dependence  Loess curve is fitted by setting two parameters: a smoothing parameter, and the degree of the polynomials that are fitted by the regression