1 Data Preparation Part 1: Exploratory Data Analysis & Data Cleaning, Missing Data CAS 2007 Ratemaking Seminar Louise Francis, FCAS Francis Analytics and.

Slides:



Advertisements
Similar presentations
UNIT – 1 Data Preprocessing
Advertisements

UNIT-2 Data Preprocessing LectureTopic ********************************************** Lecture-13Why preprocess the data? Lecture-14Data cleaning Lecture-15Data.
Chapter 3 – Data Exploration and Dimension Reduction © Galit Shmueli and Peter Bruce 2008 Data Mining for Business Intelligence Shmueli, Patel & Bruce.
© Tan,Steinbach, Kumar Introduction to Data Mining 8/05/ Data Mining: Exploring Data Lecture Notes for Chapter 3 Introduction to Data Mining by Tan,
1 1 Slide © 2012 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole.
Distinguishing the Forest from the Trees University of Texas November 11, 2009 Richard Derrig, PhD, Opal Consulting Louise Francis,
1 Economics 240A Power One. 2 Outline w Course Organization w Course Overview w Resources for Studying.
Chapter 2 Graphs, Charts, and Tables – Describing Your Data
Data Mining – Best Practices CAS 2008 Spring Meeting Quebec City, Canada Louise Francis, FCAS, MAAA
1 Economics 240A Power One. 2 Outline w Course Organization w Course Overview w Resources for Studying.
Edpsy 511 Homework 1: Due 2/6.
Data Description Tables and Graphs Data Reduction.
Data Tutorial Tutorial on Types of Graphs Used for Data Analysis, Along with How to Enter Them in MS Excel Carryn Bellomo University of Nevada, Las Vegas.
EFFECTIVE PREDICTIVE MODELING- DATA,ANALYTICS AND PRACTICE MANAGEMENT Richard A. Derrig Ph.D. OPAL Consulting LLC Karthik Balakrishnan Ph.D. ISO Innovative.
Mother and Child Health: Research Methods G.J.Ebrahim Editor Journal of Tropical Pediatrics, Oxford University Press.
How to Analyze Data? Aravinda Guntupalli. SPSS windows process Data window Variable view window Output window Chart editor window.
Overview DM for Business Intelligence.
© 2005 The McGraw-Hill Companies, Inc., All Rights Reserved. Chapter 12 Describing Data.
Exploratory Data Analysis. Height and Weight 1.Data checking, identifying problems and characteristics Data exploration and Statistical analysis.
Exploratory Data Analysis. Computing Science, University of Aberdeen2 Introduction Applying data mining (InfoVis as well) techniques requires gaining.
Statistics 3502/6304 Prof. Eric A. Suess Chapter 3.
First Quantitative Variable: Ear Length  The unit of measurement for this variable is INCHES.  A few possible values for this first quantitative variable.
Free and Cheap Sources of External Data CAS 2007 Predictive Modeling Seminar Louise Francis, FCAS, MAAA Francis Analytics and Actuarial Data Mining, Inc.
Copyright © 2011 by The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill/Irwin Describing Data.
Instrumentation (cont.) February 28 Note: Measurement Plan Due Next Week.
6-1 Numerical Summaries Definition: Sample Mean.
Basics of Data Cleaning
1 Data Quality: GIRO Working Party Paper & Methods to Detect Data Glitches CAS Annual Meeting Louise Francis Francis Analytics and Actuarial Data Mining,
Data Preprocessing Dr. Bernard Chen Ph.D. University of Central Arkansas Fall 2010.
1 Further Maths Chapter 2 Summarising Numerical Data.
DATA PREPARATION: PROCESSING & MANAGEMENT Lu Ann Aday, Ph.D. The University of Texas School of Public Health.
Copyright © 2011 Deloitte Development LLC. All rights reserved. Data Visualization for Data QC March, 2012 Steve Berman Deloitte Consulting.
9/28/2012HCI571 Isabelle Bichindaritz1 Working with Data Data Summarization.
Data Preprocessing Dr. Bernard Chen Ph.D. University of Central Arkansas.
Descriptive statistics Petter Mostad Goal: Reduce data amount, keep ”information” Two uses: Data exploration: What you do for yourself when.
MMSI – SATURDAY SESSION with Mr. Flynn. Describing patterns and departures from patterns (20%–30% of exam) Exploratory analysis of data makes use of graphical.
Exploratory Data Analysis Exploratory Data Analysis Dr.Lutz Hamel Dr.Joan Peckham Venkat Surapaneni.
September 18-19, 2006 – Denver, Colorado Sponsored by the U.S. Department of Housing and Urban Development Conducting and interpreting multivariate analyses.
Dimension Reduction in Workers Compensation CAS predictive Modeling Seminar Louise Francis, FCAS, MAAA Francis Analytics and Actuarial Data Mining, Inc.
Engineering Statistics KANCHALA SUDTACHAT. Statistics  Deals with  Collection  Presentation  Analysis and use of data to make decision  Solve problems.
Chapter 3, Part B Descriptive Statistics: Numerical Measures n Measures of Distribution Shape, Relative Location, and Detecting Outliers n Exploratory.
Predictive Modeling Spring 2005 CAMAR meeting Louise Francis, FCAS, MAAA Francis Analytics and Actuarial Data Mining, Inc
Data Preprocessing Compiled By: Umair Yaqub Lecturer Govt. Murray College Sialkot.
Types of Graphs.
Mr. Magdi Morsi Statistician Department of Research and Studies, MOH
Data Science and Big Data Analytics Chap 3: Data Analytics Using R
B AD 6243: Applied Univariate Statistics Multiple Regression Professor Laku Chidambaram Price College of Business University of Oklahoma.
Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall2(2)-1 Chapter 2: Displaying and Summarizing Data Part 2: Descriptive Statistics.
Eco 6380 Predictive Analytics For Economists Spring 2016 Professor Tom Fomby Department of Economics SMU.
Dancing With Dirty Data: Methods for Exploring and Cleaning Data 2005 CAS Ratemaking Seminar Louise Francis, FCAS, MAAA Francis Analytics and Actuarial.
1 Data Preparation Part 1: Exploratory Data Analysis & Data Cleaning, Missing Data CAS Predictive Modeling Seminar Louise Francis Francis Analytics and.
Introduction Exploring Categorical Variables Exploring Numerical Variables Exploring Categorical/Numerical Variables Selecting Interesting Subsets of Data.
Distinguishing the Forest from the Trees 2006 CAS Ratemaking Seminar Richard Derrig, PhD, Opal Consulting Louise Francis, FCAS,
AP Statistics Review Day 1 Chapters 1-4. AP Exam Exploring Data accounts for 20%-30% of the material covered on the AP Exam. “Exploratory analysis of.
Exploring, Displaying, and Examining Data
Data Mining CAS 2004 Ratemaking Seminar Philadelphia, Pa.
Data Mining: Concepts and Techniques
Fundamentals of Probability and Statistics
STATISTICS ELEMENTARY MARIO F. TRIOLA
Bar graphs are used to compare things between different groups
Topic 5: Exploring Quantitative data
2-1 Data Summary and Display 2-1 Data Summary and Display.
CS3332(01) Course Description
THE STAGES FOR STATISTICAL THINKING ARE:
Data Quality Data Exploration
EECS3030(02) Course Description
Lecture 1: Descriptive Statistics and Exploratory
(-4)*(-7)= Agenda Bell Ringer Bell Ringer
Chapter 2 Examining Your Data
Presentation transcript:

1 Data Preparation Part 1: Exploratory Data Analysis & Data Cleaning, Missing Data CAS 2007 Ratemaking Seminar Louise Francis, FCAS Francis Analytics and Actuarial Data Mining, Inc.

2 Objectives Introduce data preparation and where it fits in in modeling process Discuss Data Quality Focus on a key part of data preparation Exploratory data analysis Identify data glitches and errors Understanding the data Identify possible transformations What to do about missing data Provide resources on data preparation

3 CRISP-DM Guidelines for data mining projects Gives overview of life cycle of data mining project Defines different phases and activities that take place in phase

4 Modelling Process

5 Data Preprocessing

6 Data Quality Problem

7 Data Quality: A Problem Actuary reviewing a database

8 It’s Not Just Us “In just about any organization, the state of information quality is at the same low level” Olson, Data Quality

9 Some Consequences of poor data quality Affects quality (precision) of result Can’t do modeling project because of data problems If errors not found – modeling blunder

10 Data Exploration in Predictive Modeling

11 Exploratory Data Analysis Typically the first step in analyzing data Makes heavy use of graphical techniques Also makes use of simple descriptive statistics Purpose Find outliers (and errors) Explore structure of the data

12 Definition of EDA Exploratory data analysis (EDA) is that part of statistical practice concerned with reviewing, communicating and using data where there is a low level of knowledge about its cause system.. Many EDA techniques have been adopted into data mining and are being taught to young students as a way to introduce them to statistical thinking.data analysisstatistical practicedatacause systemdata mining -

13 Example Data Private passenger auto Some variables are: Age Gender Marital status Zip code Earned premium Number of claims Incurred losses Paid losses Legal representaion Suspicion score (of fraud)

14 Some Methods for Numeric Data Visual Histograms Box and Whisker Plots Stem and Leaf Plots Statistical Descriptive statistics Data spheres

15 Histograms Can do them in Microsoft Excel

16 Histograms Frequencies for Age Variable

17 Histograms of Age Variable Varying Window Size

18 Formula for Window Width

19 Example of Suspicious Value

20 Discrete-Numeric Data

21 Filtered Data Filter out Unwanted Records

22 Box Plot Basics: Five – Point Summary Minimum 1 st quartile Median 2 nd quartile Maximum

23 Functions for five point summary =min(data range) =quartile(data range1) =median(data range) =quartile(data range,3) =max(data range)

24 Box and Whisker Plot

25 Plot of Heavy Tailed Data Paid Losses

26 Heavy Tailed Data – Log Scale

27 Box and Whisker Example

28 Descriptive Statistics Analysis ToolPak

29 Descriptive Statistics Claimant age has minimum and maximums that are impossible

30 Multivariate EDA Often want to review relationships between multiple variables at one time What structures exist? What correlations exist? Identify outliers

31 Scatterplot Matrices

32 Panel Histogram

33 Data Spheres: The Mahalanobis Distance Statistic

34 Screening Many Variables at Once Plot of Longitude and Latitude of zip codes in data Examination of outliers indicated drivers in Ca and PR even though policies only in one mid-Atlantic state

35 Records With Unusual Values Flagged

36 Categorical Data: Data Cubes

37 Categorical Data Data Cubes Usually frequency tables Search for missing values coded as blanks

38 Categorical Data Table highlights inconsistent coding of marital status

39 Population Pyramid

40 Missing Data

41 Screening for Missing Data

42 Blanks as Missing

43 Types of Missing Values Missing completely at random Missing at random Informative missing

44 Methods for Missing Values Drop record if any variable used in model is missing Drop variable Data Imputation Other CART, MARS use surrogate variables Expectation Maximization

45 Imputation A method to “fill in” missing value Use other variables (which have values) to predict value on missing variable Involves building a model for variable with missing value Y = f(x 1,x 2,…x n )

46 Example: Age Variable About 14% of records missing values Imputation will be illustrated with simple regression model Age = a+b 1 X 1 +b 2 X 2 …b n X n

47 Model for Age

48 Missing Values A problem for many traditional statistical models Elimination of records missing on anything from analysis Many data mining procedures have techniques built in for handling missing values If too many records missing on a given variable, probably need to discard variable

49 Metadata

50 Metadata Data about data A reference that can be used in future modeling projects Detailed description of the variables in the file, their meaning and permissible values

51 Many other Facets to Data Preparation Variable transformation Normalization Sparse data Data reduction Derived variables

52 Library for Getting Started Dasu and Johnson, Exploratory Data Mining and Data Cleaning, Wiley, 2003 Francis, L.A., “Dancing with Dirty Data: Methods for Exploring and Cleaning Data”, CAS Winter Forum, March 2005, Find a comprehensive book for doing analysis in Excel such as: Jospeh Schmuller, Statistical Analysis With Excel for Dummies Pyle, Dorian, Data Preparation for Data Mining, Morgan Kaufmann