Lecture Notes for Chapter 2 Introduction to Data Mining

Slides:



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

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.
Data Engineering.
Computational Biology Lecture Slides Week 10 Classification (some parts taken from Introduction to Data Mining by Tan, Steinbach, Kumar)
Data Mining Cluster Analysis: Advanced Concepts and Algorithms
© Tan,Steinbach, Kumar Introduction to Data Mining 8/05/ Data Mining: Exploring Data Lecture Notes for Chapter 3 Introduction to Data Mining by Tan,
Lecture Notes for Chapter 2 Introduction to Data Mining
Data Mining Practical Machine Learning Tools and Techniques Slides for Chapter 3 of Data Mining by I. H. Witten, E. Frank and M. A. Hall.
CSCI 347 / CS 4206: Data Mining Module 02: Input Topic 03: Attribute Characteristics.
© Tan,Steinbach, Kumar Introduction to Data Mining 4/18/ Data Mining: Data Lecture Notes for Chapter 2 Introduction to Data Mining by Tan, Steinbach,

Data Mining: Concepts and Techniques
Data Mining Cluster Analysis: Advanced Concepts and Algorithms Lecture Notes for Chapter 9 Introduction to Data Mining by Tan, Steinbach, Kumar © Tan,Steinbach,
Chapter 3 Data Issues. What is a Data Set? Attributes (describe objects) Variable, field, characteristic, feature or observation Objects (have attributes)
EECS 800 Research Seminar Mining Biological Data
© Vipin Kumar CSci 8980 Fall CSci 8980: Data Mining (Fall 2002) Vipin Kumar Army High Performance Computing Research Center Department of Computer.
2015年7月2日星期四 2015年7月2日星期四 2015年7月2日星期四 Data Mining: Concepts and Techniques1 Data Transformation and Feature Selection/Extraction Qiang Yang Thanks: J.
The Knowledge Discovery Process; Data Preparation & Preprocessing
COSC 4335 DM: Preprocessing Techniques
Data Mining Lecture 2: data.
Ch2 Data Preprocessing part2 Dr. Bernard Chen Ph.D. University of Central Arkansas Fall 2009.
© Tan,Steinbach, Kumar Introduction to Data Mining 4/18/ Data Mining: Data Lecture Notes for Chapter 2 Introduction to Data Mining by Tan, Steinbach,
The Knowledge Discovery Process; Data Preparation & Preprocessing
Data Mining & Knowledge Discovery Lecture: 2 Dr. Mohammad Abu Yousuf IIT, JU.
© Tan,Steinbach, Kumar Introduction to Data Mining 4/18/ Data Mining Basics: Data Remark: Discusses “basics concerning data sets (first half of Chapter.
Data Reduction. 1.Overview 2.The Curse of Dimensionality 3.Data Sampling 4.Binning and Reduction of Cardinality.
Minqi Zhou Introduction to Data Mining 3/23/ Data Mining: Data Lecture Notes for Chapter 2 Introduction to Data Mining by Minqi Zhou.
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.
© Tan,Steinbach, Kumar Introduction to Data Mining 4/18/ Data Mining: Data Lecture Notes for Chapter 2 Introduction to Data Mining by Tan, Steinbach,
Jeff Howbert Introduction to Machine Learning Winter Machine Learning Data.
What is Data? Attributes
CIS527: Data Warehousing, Filtering, and Mining
© Tan,Steinbach, Kumar Introduction to Data Mining 4/18/ Data Mining: Data Lecture Notes for Chapter 2 Introduction to Data Mining by Tan, Steinbach,
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.
1 Data Mining Lecture 2: Data. 2 What is Data? l Collection of data objects and their attributes l Attribute is a property or characteristic of an object.
1 Chapter 2 Data. What is Data? Collection of data objects and their attributes An attribute is a property or characteristic of an object –Examples: eye.
© Tan,Steinbach, Kumar Introduction to Data Mining 4/18/ Data Mining: Data Lecture Notes for Chapter 2 Introduction to Data Mining by Tan, Steinbach,
© Tan,Steinbach, Kumar Introduction to Data Mining 4/18/ Data Mining: Data Lecture Notes for Chapter 2 Introduction to Data Mining by Tan, Steinbach,
© Tan,Steinbach, Kumar Introduction to Data Mining 4/18/ Data Mining: Data Lecture Notes for Chapter 2 Introduction to Data Mining by Tan, Steinbach,
1 What is Data? l An attribute is a property or characteristic of an object l Examples: eye color of a person, temperature, etc. l Attribute is also known.
3/13/2016Data Mining 1 Lecture 1-2 Data and Data Preparation Phayung Meesad, Ph.D. King Mongkut’s University of Technology North Bangkok (KMUTNB) Bangkok.
1 Data Mining Lecture 02a: Data Theses slides are based on the slides by Tan, Steinbach and Kumar (textbook authors)
Data Preliminaries CSC 600: Data Mining Class 1.
Computational Biology
Data Mining Lecture 02a: Theses slides are based on the slides by Data
Lecture Notes for Chapter 2 Introduction to Data Mining
Data Mining: Concepts and Techniques
Lecture Notes for Chapter 2 Introduction to Data Mining
Lecture Notes for Chapter 2 Introduction to Data Mining
Lecture Notes for Chapter 2 Introduction to Data Mining
CISC 4631 Data Mining Lecture 02:
Lecture Notes for Chapter 2 Introduction to Data Mining
Lecture Notes for Chapter 2 Introduction to Data Mining
Data Mining: Exploring Data
Lecture Notes for Chapter 2 Introduction to Data Mining
Lecture Notes for Chapter 2 Introduction to Data Mining
Lecture Notes for Chapter 2 Introduction to Data Mining
Lecture 7: Data Preprocessing
Lecture Notes for Chapter 2 Introduction to Data Mining
Lecture Notes for Chapter 2 Introduction to Data Mining
Data Transformations targeted at minimizing experimental variance
Data Mining Lecture 02a: Theses slides are based on the slides by Data
Lecture Notes for Chapter 2 Introduction to Data Mining
Group 9 – Data Mining: Data
Chapter 2 Data Preprocessing.
Data Preliminaries CSC 576: Data Mining.
Lecture Notes for Chapter 2 Introduction to Data Mining
Data Pre-processing Lecture Notes for Chapter 2
Lecture Notes for Chapter 2 Introduction to Data Mining
Presentation transcript:

Lecture Notes for Chapter 2 Introduction to Data Mining Data Mining: Data Lecture Notes for Chapter 2 Introduction to Data Mining by Tan, Steinbach, Kumar Revised by QY

What is Data? Collection of data objects and their attributes An attribute is a property or characteristic of an object Examples: eye color of a person, temperature, etc. Attribute is also known as variable, field, characteristic, or feature A collection of attributes describe an object Object is also known as record, point, case, sample, entity, or instance Attributes Objects

Attribute Values Attribute values are numbers or symbols assigned to an attribute E.g. ‘Student Name’=‘John’ Attributes are also called ‘variables’, or ‘features’ Attribute values are also called ‘values’, or ‘feature- values’ Designing Attributes for a data set requires domain knowledge Always have an objective in mind (e.g., what is the class attribute?) Design a ‘movie’ data set for a movie dataset? What is domain knowledge?

Measurement of Length Different designs have different attributes properties.

Types of Attributes There are different types of attributes Nominal (Categorical) Examples: ID numbers, eye color, zip codes Ordinal (Categorical) Examples: rankings (e.g., movie ranking scores on a scale from 1-10), grades (A,B,C..), height in {tall, medium, short} Binary (0, 1) is a special case Continuous Example: temperature in Celsius

Record Data Data consist of a collection of records, each of which consists of a fixed set of attributes Q: what is a sparse data set?

Data Matrix If data objects have the same fixed set of numeric attributes, then the data objects can be thought of as points in a multi-dimensional space, where each dimension represents an attribute Such data set can be represented by an m by n matrix, where there are m rows, one for each object, and n columns, one for each attribute Q: what is a sparse data set?

Document Data Each document becomes a `term' vector, each term is a component (attribute) of the vector, Term can be n-grams, phrases, etc. the value of each component is the number of times the corresponding term occurs in the document. Q: what is a sparse data set?

Transaction Data A special type of record data, where each record (transaction) has a set of items. For example, consider a grocery store. The set of products purchased by a customer during one shopping trip constitute a transaction, while the individual products that were purchased are the items. Set based Q: class attribute?

Graph Data Examples: Directed graph and URL Links Q: what is a sparse data set?

Ordered Data Sequences of transactions Items/Events An element of the sequence

Ordered Data Genomic sequence data

Data Quality What kinds of data quality problems? How can we detect problems with the data? What can we do about these problems? Examples of data quality problems: Noise and outliers missing values duplicated data

Outliers Outliers are data objects with characteristics that are considerably different than most of the other data objects in the data set Are they noise points, or meaningful outliers?

Missing Values Reasons for missing values Handling missing values Information is not collected (e.g., people decline to give their age and weight) Attributes may not be applicable to all cases (e.g., annual income is not applicable to children) Handling missing values Eliminate Data Objects Estimate Missing Values Ignore the Missing Value During Analysis Replace with all possible values (weighted by their probabilities) Missing as meaningful…

Data Preprocessing Aggregation and Noise Removal Sampling Dimensionality Reduction Feature subset selection Feature creation and transformation Discretization Q: How much % of the data mining process is data preprocessing?

Aggregation Combining two or more attributes (or objects) into a single attribute (or object) Purpose Data reduction Reduce the number of attributes or objects Change of scale Cities aggregated into regions, states, countries, etc De-noise: more “stable” data Aggregated data tends to have less variability

Aggregation Variation of Precipitation in Australia Standard Deviation of Average Monthly Precipitation Standard Deviation of Average Yearly Precipitation

Sampling Sampling is the main technique employed for data selection. It is often used for both the preliminary investigation of the data and the final data analysis. Reasons: too expensive or time consuming to obtain or to process the data.

Curse of Dimensionality When dimensionality increases, data becomes increasingly sparse in the space that it occupies Definitions of density and distance between points, which is critical for clustering and outlier detection, become less meaningful Thus, harder and harder to classify the data! Randomly generate 500 points Compute difference between max and min distance between any pair of points

Dimensionality Reduction Purpose: Avoid curse of dimensionality Reduce amount of time and memory required by data mining algorithms Allow data to be more easily visualized May help to eliminate irrelevant features or reduce noise Techniques (supervised and unsupervised methods) Principle Component Analysis Singular Value Decomposition Others: supervised and non-linear techniques

Dimensionality Reduction: PCA Goal is to find a projection that captures the largest amount of variation in data Supervised or unsupervised? x2 e x1

Dimensionality Reduction: PCA Find the eigenvectors of the covariance matrix The eigenvectors define the new space How many eigenvectors here? x2 e x1

Dimensionality Reduction: ISOMAP By: Tenenbaum, de Silva, Langford (2000) Construct a neighbourhood graph For each pair of points in the graph, compute the shortest path distances – geodesic distances

Dimensionality Reduction: PCA

Question What is the difference between sampling and dimensionality reduction? Thining vs. shortening of data

Discretization Three types of attributes: Discretization: Nominal — values from an unordered set Example: attribute “outlook” from weather data Values: “sunny”,”overcast”, and “rainy” Ordinal — values from an ordered set Example: attribute “temperature” in weather data Values: “hot” > “mild” > “cool” 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 Supervised (entropy) vs. Unsupervised (binning)

Simple Discretization Methods: Binning Equal-width (distance) partitioning: It 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: It divides the range into N intervals, each containing approximately same number of samples Good data scaling Managing categorical attributes can be tricky.

Transforming Ordinal to Boolean Simple transformation allows to code ordinal attribute with n values using n-1 boolean attributes Example: attribute “temperature” Why? Not introducing distance concept between different colors: “Red” vs. “Blue” vs. “Green”. Temperature Cold Medium Hot Temperature > cold Temperature > medium False True Original data Transformed data

Visually Evaluating Correlation Scatter plots showing the similarity from –1 to 1.