Data Exploration Data Visualization

Similar documents
Data Mining: Exploring Data. Lecture Notes for Chapter 3. Slides by Tan, Steinbach, Kumar adapted by Michael Hahsler

Data Mining: Exploring Data. Lecture Notes for Chapter 3. Introduction to Data Mining

Iris Sample Data Set. Basic Visualization Techniques: Charts, Graphs and Maps. Summary Statistics. Frequency and Mode

Data Mining: Exploring Data. Lecture Notes for Chapter 3. Introduction to Data Mining

COM CO P 5318 Da t Da a t Explora Explor t a ion and Analysis y Chapte Chapt r e 3

Data Exploration and Preprocessing. Data Mining and Text Mining (UIC Politecnico di Milano)

STATS8: Introduction to Biostatistics. Data Exploration. Babak Shahbaba Department of Statistics, UCI

Chapter 2 Data Exploration

Diagrams and Graphs of Statistical Data

Center: Finding the Median. Median. Spread: Home on the Range. Center: Finding the Median (cont.)

Lecture 2: Descriptive Statistics and Exploratory Data Analysis

Lecture 1: Review and Exploratory Data Analysis (EDA)

Summarizing and Displaying Categorical Data

Exploratory Data Analysis

Descriptive Statistics

Exploratory data analysis (Chapter 2) Fall 2011

Module 4: Data Exploration

The right edge of the box is the third quartile, Q 3, which is the median of the data values above the median. Maximum Median

Exercise 1.12 (Pg )

BNG 202 Biomechanics Lab. Descriptive statistics and probability distributions I

Chapter 1: Looking at Data Section 1.1: Displaying Distributions with Graphs

Graphical Representation of Multivariate Data

DESCRIPTIVE STATISTICS. The purpose of statistics is to condense raw data to make it easier to answer specific questions; test hypotheses.

Exploratory Data Analysis. Psychology 3256

Demographics of Atlanta, Georgia:

3: Summary Statistics

Why Taking This Course? Course Introduction, Descriptive Statistics and Data Visualization. Learning Goals. GENOME 560, Spring 2012

EXPLORING SPATIAL PATTERNS IN YOUR DATA

Descriptive Statistics. Purpose of descriptive statistics Frequency distributions Measures of central tendency Measures of dispersion

Descriptive statistics Statistical inference statistical inference, statistical induction and inferential statistics

Exploratory Data Analysis

Introduction to Statistics for Psychology. Quantitative Methods for Human Sciences

Introduction to Environmental Statistics. The Big Picture. Populations and Samples. Sample Data. Examples of sample data

Variables. Exploratory Data Analysis

Lecture 2. Summarizing the Sample

Geostatistics Exploratory Analysis

1.3 Measuring Center & Spread, The Five Number Summary & Boxplots. Describing Quantitative Data with Numbers

Descriptive statistics parameters: Measures of centrality

The Big Picture. Describing Data: Categorical and Quantitative Variables Population. Descriptive Statistics. Community Coalitions (n = 175)

DESCRIPTIVE STATISTICS AND EXPLORATORY DATA ANALYSIS

Part II Chapter 9 Chapter 10 Chapter 11 Chapter 12 Chapter 13 Chapter 14 Chapter 15 Part II

1) Write the following as an algebraic expression using x as the variable: Triple a number subtracted from the number

STAT355 - Probability & Statistics

Tutorial 3: Graphics and Exploratory Data Analysis in R Jason Pienaar and Tom Miller

Visualizing Data. Contents. 1 Visualizing Data. Anthony Tanbakuchi Department of Mathematics Pima Community College. Introductory Statistics Lectures

Exploratory Data Analysis

determining relationships among the explanatory variables, and

How To Write A Data Analysis

Week 1. Exploratory Data Analysis

Descriptive Statistics and Measurement Scales

MBA 611 STATISTICS AND QUANTITATIVE METHODS

Bar Graphs and Dot Plots

Lesson 4 Measures of Central Tendency

Common Tools for Displaying and Communicating Data for Process Improvement

business statistics using Excel OXFORD UNIVERSITY PRESS Glyn Davis & Branko Pecar

Algebra I Vocabulary Cards

GeoGebra. 10 lessons. Gerrit Stols

Topic 9 ~ Measures of Spread

Chapter 1: Exploring Data

AP * Statistics Review. Descriptive Statistics

A Correlation of. to the. South Carolina Data Analysis and Probability Standards

List of Examples. Examples 319

Data Mining and Visualization

Interpreting Data in Normal Distributions

BASIC STATISTICAL METHODS FOR GENOMIC DATA ANALYSIS

Northumberland Knowledge

4.1 Exploratory Analysis: Once the data is collected and entered, the first question is: "What do the data look like?"

Implications of Big Data for Statistics Instruction 17 Nov 2013

Big Ideas in Mathematics

Shape of Data Distributions

Using SPSS, Chapter 2: Descriptive Statistics

First Midterm Exam (MATH1070 Spring 2012)

Statistics Chapter 2

Algebra Academic Content Standards Grade Eight and Grade Nine Ohio. Grade Eight. Number, Number Sense and Operations Standard

Intro to Statistics 8 Curriculum

Clustering & Visualization

Data Visualization. or Graphical Data Presentation. Jerzy Stefanowski Instytut Informatyki

MEASURES OF VARIATION

Data Visualization Techniques

DATA INTERPRETATION AND STATISTICS

WEEK #22: PDFs and CDFs, Measures of Center and Spread

Data Visualization Techniques

Describing, Exploring, and Comparing Data

MEASURES OF CENTER AND SPREAD MEASURES OF CENTER 11/20/2014. What is a measure of center? a value at the center or middle of a data set

Introduction Course in SPSS - Evening 1

Module 2: Introduction to Quantitative Data Analysis

Foundation of Quantitative Data Analysis

Probability and Statistics Vocabulary List (Definitions for Middle School Teachers)

Data Preparation Part 1: Exploratory Data Analysis & Data Cleaning, Missing Data

a. mean b. interquartile range c. range d. median

WebFOCUS RStat. RStat. Predict the Future and Make Effective Decisions Today. WebFOCUS RStat

Pie Charts. proportion of ice-cream flavors sold annually by a given brand. AMS-5: Statistics. Cherry. Cherry. Blueberry. Blueberry. Apple.

EXPLORATORY DATA ANALYSIS

Means, standard deviations and. and standard errors


Transcription:

Data Exploration Data Visualization

What is data exploration? A preliminary exploration of the data to better understand its characteristics. Key motivations of data exploration include Helping to select the right tool for preprocessing or analysis Making use of humans abilities to recognize patterns u People can recognize patterns not captured by data analysis tools Related to the area of Exploratory Data Analysis (EDA) Created by statistician John Tukey Seminal book is Exploratory Data Analysis by Tukey A nice online introduction can be found in Chapter 1 of the NIST Engineering Statistics Handbook http://www.itl.nist.gov/div898/handbook/index.htm

Techniques Used In Data Exploration In EDA, as originally defined by Tukey The focus was on visualization Clustering and anomaly detection were viewed as exploratory techniques In data mining, clustering and anomaly detection are major areas of interest, and not thought of as just exploratory In our discussion of data exploration, we focus on Summary statistics Visualization Online Analytical Processing (OLAP)

Iris Sample Data Set Many of the exploratory data techniques are illustrated with the Iris Plant data set. Can be obtained from the UCI Machine Learning Repository http://www.ics.uci.edu/~mlearn/mlrepository.html From the statistician Douglas Fisher Three flower types (classes): u Setosa u Virginica u Versicolour Four (non-class) attributes u Sepal width and length u Petal width and length

Summary Statistics Summary statistics are numbers that summarize properties of the data Summarized properties include frequency, location and spread u Examples: location - mean spread - standard deviation Most summary statistics can be calculated in a single pass through the data

Frequency and Mode The frequency of an attribute value is the percentage of time the value occurs in the data set For example, given the attribute gender and a representative population of people, the gender female occurs about 50% of the time. The mode of a an attribute is the most frequent attribute value The notions of frequency and mode are typically used with categorical data

Percentiles For continuous data, the notion of a percentile is more useful. Given an ordinal or continuous attribute x and a number p between 0 and x p 100, the pth percentile is a value x p of x such that p% of the observed values of x are less than. x p For instance, the 50th percentile is the value x 50% such that 50% of all values of x are less than. x 50%

Measures of Location: Mean and Median The mean is the most common measure of the location of a set of points. However, the mean is very sensitive to outliers. Thus, the median or a trimmed mean is also commonly used.

Sample Mean and Median Histogram of bmi. Histogram of lwt. Histogram of WhiteMeat in the Protein data set. The mean and median are nearly equal since the histogram is Symmetric. The mean is shifted to the right of the median. Because the histogram is skewed to the right. Neither mean nor median is a good measurement for central tendency since the histogram is bimodal.

Measures of Spread: Range and Variance Range is the difference between the max and min The variance or standard deviation is the most common measure of the spread of a set of points. However, this is also sensitive to outliers, so that other measures are often used. Average Absolute Deviation (AAD), Median Absolute Deviation(MAD)

Variance and standard deviation The sample variance is a common measure of dispersion based on the squared deviations. The square root of the variance is called the sample standard deviation.

Variance and standard deviation

Visualization Visualization is the conversion of data into a visual or tabular format so that the characteristics of the data and the relationships among data items or attributes can be analyzed or reported. Visualization of data is one of the most powerful and appealing techniques for data exploration. Humans have a well developed ability to analyze large amounts of information that is presented visually Can detect general patterns and trends Can detect outliers and unusual patterns

Example: Sea Surface Temperature The following shows the Sea Surface Temperature (SST) for July 1982 Tens of thousands of data points are summarized in a single figure

Representation Is the mapping of information to a visual format Data objects, their attributes, and the relationships among data objects are translated into graphical elements such as points, lines, shapes, and colors. Example: Objects are often represented as points Their attribute values can be represented as the position of the points or the characteristics of the points, e.g., color, size, and shape If position is used, then the relationships of points, i.e., whether they form groups or a point is an outlier, is easily perceived.

Arrangement Is the placement of visual elements within a display Can make a large difference in how easy it is to understand the data Example:

Selection Is the elimination or the de-emphasis of certain objects and attributes Selection may involve the choosing a subset of attributes Dimensionality reduction is often used to reduce the number of dimensions to two or three Alternatively, pairs of attributes can be considered Selection may also involve choosing a subset of objects A region of the screen can only show so many points Can sample, but want to preserve points in sparse areas

Visualization Techniques: Histograms Histogram Usually shows the distribution of values of a single variable A histogram is similar to a bar graph after the values of the variable are grouped (binned) into a finite number of intervals (bins). Divide the values into bins and show a bar plot of the number of objects in each bin. The height of each bar indicates the number of objects Shape of histogram depends on the number of bins Example: Petal Width (10 and 20 bins, respectively)

Histograms Histograms for the three samples

Histograms The bar height for each interval could be set to its relative frequency p c = n c /n, or the percentage p c x100, of observations that fall into that interval. For histograms, however, it is more common to use the density instead of the relative frequency or percentage. The density is the relative frequency for a unit interval. It is obtained by dividing the relative frequency by the interval width: f c =p c /w c Here, p c = n c /n is the relative frequency with n c as the frequency of interval c and n as the total sample size. The width of interval c is denoted w c.

Histograms The frequency histogram for the numerical variable bmi in the Pima.tr data set. The height of the rectangles represent the frequency of the interval and sum to the total sample size n. Here, the values of the variable are divided into seven bins The density histogram for bmi from the Pima.tr data set. Here, the scale on the y-axis is density (not frequency). Once again, the values of bmi are divided into seven bins of width w = 5

Histograms Number of Bins: When creating a histogram, it is important to choose an appropriate value for w. Besides the location and spread of a distribution, the shape of a histogram also shows us how the observed values spread around the location. We say the following histogram is symmetric around its location (here, zero) since the densities are the [almost] same for any two intervals that are equally distant from the center.

Skewed histograms In many situations, we find that a histogram is stretched to the left or right. We call such histograms skewed. More specifically, we call them left-skewed if they are stretched to the left, or right-skewed if they are stretched to the right. Histogram of variable lwt in the birthwt data set. The histogram is rightskewed

Unimodal vs. bimodal The above histograms, whether symmetric or skewed, have one thing in common: they all have one peak (or mode). We call such histograms (and their corresponding distributions) unimodal. Sometimes histograms have multiple modes. The bimodal histogram appears to be a combination of two unimodal histograms. Indeed, in many situations bimodal histograms (and multimodal histograms in general) indicate that the underlying population is not homogeneous and may include two (or more in case of multimodal histograms) subpopulations.

Unimodal vs. bimodal Histogram of a bimodal distribution. A smooth curve is superimposed so that the two peaks are more evident Histogram of protein consumption in 25 European countries for white meat in Protein dataset. The histogram is bimodal, which indicates that the sample might be comprised of two subgroups

Histograms Histogram of variable lwt in the birthwt data set. The histogram is right-skewed Histogram of protein consumption in 25 European countries for white meat. The histogram is bimodal, which indicates that the sample might be comprised of two subgroups

Two-Dimensional Histograms Show the joint distribution of the values of two attributes Example: petal width and petal length What does this tell us?

Visualization Techniques: Box Plots Box Plots Invented by J. Tukey Another way of displaying the distribution of data Following figure shows the basic part of a box plot outlier 10 th percentile 75 th percentile 50 th percentile 25 th percentile 10 th percentile

Example of Box Plots Box plots can be used to compare attributes

Suspected Outliers: The 1.5 IQR Rule 30 In addition to serving as a measure of spread, the interquartile range (IQR) is used as part of a rule of thumb for identifying outliers. The 1.5 IQR Rule for Outliers Call an observation an outlier if it falls more than 1.5 IQR above the third quartile or below the first quartile. Anatomy of a Box and Whisker Diagram. Q1+-1.5IQR Lower Quartile Q1 Whisker Box Median Q2 Upper Quartile Q3 Highest Value Q3+1.5IQR Whisker

Boxplots Example Consider our NY travel times data. Construct a boxplot. 10 30 5 25 40 20 10 15 30 20 15 20 85 15 65 15 60 60 40 45 5 10 10 15 15 15 15 20 20 20 25 30 30 40 40 45 60 60 65 85 Min=5 Collection 5 Q 1 = 15 M = 22.5 Q 3 = 42.5 Max=85 This is an outlier by the 1.5 x IQR rule Box Plot 0 10 20 30 40 50 60 70 80 90 TravelTime Q 1 = 15, Q 3 = 42.5, and IQR = 27.5. 1.5 IQR = 1.5(27.5) = 41.25 Q 1 1.5 IQR = 15 41.25 = 26.25 (near 0) Q 3 + 1.5 IQR = 42.5 + 41.25 = 83.75 (~80) Any travel time close to 0 minutes or longer than about 80 minutes is considered an outlier.

Visualization Techniques: Scatter Plots Scatter plots Attributes values determine the position Two-dimensional scatter plots most common, but can have three-dimensional scatter plots Often additional attributes can be displayed by using the size, shape, and color of the markers that represent the objects It is useful to have arrays of scatter plots can compactly summarize the relationships of several pairs of attributes u See example on the next slide

Scatter Plot Array of Iris Attributes

Visualization Techniques: Contour Plots Contour plots Useful when a continuous attribute is measured on a spatial grid They partition the plane into regions of similar values The contour lines that form the boundaries of these regions connect points with equal values The most common example is contour maps of elevation Can also display temperature, rainfall, air pressure, etc. u An example for Sea Surface Temperature (SST) is provided on the next slide

Contour Plot Example: SST Dec, 1998 Celsius

Visualization Techniques: Matrix Plots Matrix plots Can plot the data matrix This can be useful when objects are sorted according to class Typically, the attributes are normalized to prevent one attribute from dominating the plot Plots of similarity or distance matrices can also be useful for visualizing the relationships between objects Examples of matrix plots are presented on the next two slides

Visualization of the Iris Data Matrix standard deviation

Visualization of the Iris Correlation Matrix

Visualization Techniques: Parallel Coordinates Parallel Coordinates Used to plot the attribute values of high-dimensional data Instead of using perpendicular axes, use a set of parallel axes The attribute values of each object are plotted as a point on each corresponding coordinate axis and the points are connected by a line Thus, each object is represented as a line Often, the lines representing a distinct class of objects group together, at least for some attributes Ordering of attributes is important in seeing such groupings

Parallel Coordinates Plots for Iris Data

Other Visualization Techniques Star Plots Similar approach to parallel coordinates, but axes radiate from a central point The line connecting the values of an object is a polygon Chernoff Faces Approach created by Herman Chernoff This approach associates each attribute with a characteristic of a face The values of each attribute determine the appearance of the corresponding facial characteristic Each object becomes a separate face Relies on human s ability to distinguish faces

Star Plots for Iris Data Setosa Versicolour Virginica

Chernoff Faces for Iris Data Setosa Versicolour Virginica