Docsity

Data Preprocessing lecturer, Lecture notes of Data Mining

Toggle sidebar
bg1
Chapter 2 : Data Preprocessing
1. Why preprocess the data?
Data preprocessing is a data mining technique that involves transforming raw data into an
understandable format. Real-world data is often incomplete, inconsistent, and/or lacking in certain
behaviors or trends, and is likely to contain many errors. ... Data preprocessing prepares raw data for
further processing.
2. What is Data Binning and the purpose of it in Data mining?
Data binning is a way / method to group numbers of more or less continuous values into smaller
number of bins( buckets/ groups)
Data binning is a preprocessing data mining technique and the purpose of it in data mining is to
have a better visualization of data.
Another purpose is to prepare the data for the next stage in data preprocessing i.e. data
transformation.
3. Give an example for data mining
Marks scored by students can be grouped /arranged into smaller number of intervals called as
BIN with the help of HISTOGRAM
4. What is histogram? Explain with suitable examples? What are 2 different types of histogram?
HISTOGRAM is a barchart – visualizing on representing data in a pictorial way
Example 1 :
The following data is the score obtained by students in a quiz .Construct a histogram using the data.
88 48 60 51 57
85 69 75 98 72
71 79 65 63 73
Solution
Step 1: Break the data into intervals called BIN .In this example, bin is 6. (Note: In exam questions, bin
value will be given)
Step 2: Find the width using the formula
Width = (Max- Min )/ bin
Max= 98 ; Min =48; bin =6;
Width = (98-48)/ 6
=8.3 ( Note to have a smooth chart we take the width as 10)
Page 1 of 11
pf3
pf4
pf5
pf8
pf9
pfa

Partial preview of the text

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

Chapter 2 : Data Preprocessing

1. Why preprocess the data? Data preprocessing is a data mining technique that involves transforming raw data into an understandable format. Real-world data is often incomplete, inconsistent, and/or lacking in certain behaviors or trends, and is likely to contain many errors. ... Data preprocessing prepares raw data for further processing. 2. What is Data Binning and the purpose of it in Data mining?  Data binning is a way / method to group numbers of more or less continuous values into smaller number of bins( buckets/ groups)  Data binning is a preprocessing data mining technique and the purpose of it in data mining is to have a better visualization of data.  Another purpose is to prepare the data for the next stage in data preprocessing i.e. data transformation. 3. Give an example for data mining  Marks scored by students can be grouped /arranged into smaller number of intervals called as BIN with the help of HISTOGRAM 4. What is histogram? Explain with suitable examples? What are 2 different types of histogram? HISTOGRAM is a barchart – visualizing on representing data in a pictorial way  Example 1 : The following data is the score obtained by students in a quiz .Construct a histogram using the data. 88 48 60 51 57 85 69 75 98 72 71 79 65 63 73 Solution Step 1 : Break the data into intervals called BIN .In this example, bin is 6. (Note: In exam questions, bin value will be given) Step 2 : Find the width using the formula Width = (Max- Min )/ bin Max= 98 ; Min =48; bin =6; Width = (98-48)/ 6 =8.3 ( Note to have a smooth chart we take the width as 10 )

Step 3 : Fill up the table Step 4 Different types of Histogram Class Interval Frequency [40 50) 1 [50 60) 2 [60 70) 4 [70 80) 5 [80 90) 2 [90 100) 1

(Note :Answers are to be written from step 4)

1. How many cars have efficiency between 15 km/liter and 20 km/liter? 7 cars 2. What percentage of cars have an efficiency less than 20 km/liter? Number of cars having efficiency less than 20 km/liter = 7 +4+3= Total number of cars = Therefore percentage of cars having efficiency less than 20 km/liter = # cars having efficiency less than 20 km/liter = 14 = 63 % 3. Which part of the data mining stage does this task belongs to? This task belongs to data cleaning part. Data integration: 1. What is data integration?  Combining the different data sources in to common repository is called as data integration. 2. Explain the challenges in data integration with suitable example. i) Companies located in different region may store the same attribute in different formats. So when we combined or integrate the same attribute it may result in ambiguity (Confusion) or redundant of data. ii) Consider ABC company storing a transaction with an attribute date (3rd,November,2020) as shown in the table .Note that same date (same attribute) is stored in different format for different countries. So when this information is integrated it results in confusion. Country Date U.S.A 3.11. Europe 11.3. Ethiopia 11.01.

X 100

Total number of cars X 100 22

Japan Date format in Japanese language Arab world Date format in Arab language India Date format in India language Data Transformation:

1. What is data transformation? Data transformation is the process of converting data from one format or structure into another format. **Before Tranformation After Transformation

  1. What is normalization in data transformation? How it is implemented in data transformation?** i) Normalization is a preprocessing technique use to rescale attribute value to fit into a specific range. ii) It can be implemented by three techniques a) min-max normalisation b) Z-score c) Decimal scaling 3. Explain the 3 techniques of normalization with examples: Convert the weight of mineral water bottle into the range between 0 to 1 Weight of bottle Range 0- 8 10 15 20 (Note from page 6 to page 11 ,the information is handwritten) Animal No of eyeblink in 2008 Cat 4 Dog 3 Bird 1 Rat 4 Rabbit 5 Bear 6 Animal No of eyeblink in 2008 Cat 968498 Dog 1684578 Bird 5068890 Rat 9865679 Rabbit 9865234 Bear 7898998