WELCOME! Lecture 3 Thommy Perlinger

Similar documents
SPSS QM II. SPSS Manual Quantitative methods II (7.5hp) SHORT INSTRUCTIONS BE CAREFUL

Chapter 6: DESCRIPTIVE STATISTICS

LAB 1 INSTRUCTIONS DESCRIBING AND DISPLAYING DATA

Further Maths Notes. Common Mistakes. Read the bold words in the exam! Always check data entry. Write equations in terms of variables

1. Basic Steps for Data Analysis Data Editor. 2.4.To create a new SPSS file

IAT 355 Visual Analytics. Data and Statistical Models. Lyn Bartram

STA 570 Spring Lecture 5 Tuesday, Feb 1

Prepare a stem-and-leaf graph for the following data. In your final display, you should arrange the leaves for each stem in increasing order.

Math 120 Introduction to Statistics Mr. Toner s Lecture Notes 3.1 Measures of Central Tendency

Statistics: Normal Distribution, Sampling, Function Fitting & Regression Analysis (Grade 12) *

UNIT 1A EXPLORING UNIVARIATE DATA

Learner Expectations UNIT 1: GRAPICAL AND NUMERIC REPRESENTATIONS OF DATA. Sept. Fathom Lab: Distributions and Best Methods of Display

Data can be in the form of numbers, words, measurements, observations or even just descriptions of things.

2.1 Objectives. Math Chapter 2. Chapter 2. Variable. Categorical Variable EXPLORING DATA WITH GRAPHS AND NUMERICAL SUMMARIES

Regression III: Advanced Methods

STA Rev. F Learning Objectives. Learning Objectives (Cont.) Module 3 Descriptive Measures

Lecture 6: Chapter 6 Summary

Part I, Chapters 4 & 5. Data Tables and Data Analysis Statistics and Figures

Averages and Variation

Acquisition Description Exploration Examination Understanding what data is collected. Characterizing properties of data.

3 Graphical Displays of Data

AND NUMERICAL SUMMARIES. Chapter 2

Univariate Statistics Summary

STA Module 2B Organizing Data and Comparing Distributions (Part II)

STA Learning Objectives. Learning Objectives (cont.) Module 2B Organizing Data and Comparing Distributions (Part II)

Chapter 2 Describing, Exploring, and Comparing Data

How individual data points are positioned within a data set.

Statistics Lecture 6. Looking at data one variable

STA Module 4 The Normal Distribution

STA /25/12. Module 4 The Normal Distribution. Learning Objectives. Let s Look at Some Examples of Normal Curves

The basic arrangement of numeric data is called an ARRAY. Array is the derived data from fundamental data Example :- To store marks of 50 student

CHAPTER 3: Data Description

CHAPTER 1. Introduction. Statistics: Statistics is the science of collecting, organizing, analyzing, presenting and interpreting data.

Your Name: Section: INTRODUCTION TO STATISTICAL REASONING Computer Lab #4 Scatterplots and Regression

Chapter 2. Descriptive Statistics: Organizing, Displaying and Summarizing Data

Chapter 1. Looking at Data-Distribution

Statistical Methods. Instructor: Lingsong Zhang. Any questions, ask me during the office hour, or me, I will answer promptly.

Chapter2 Description of samples and populations. 2.1 Introduction.

ECLT 5810 Data Preprocessing. Prof. Wai Lam

Research Methods for Business and Management. Session 8a- Analyzing Quantitative Data- using SPSS 16 Andre Samuel

Data Preprocessing. S1 Teknik Informatika Fakultas Teknologi Informasi Universitas Kristen Maranatha

Excel 2010 with XLSTAT

Chapter 2 Modeling Distributions of Data

AP Statistics Summer Assignment:

Vocabulary. 5-number summary Rule. Area principle. Bar chart. Boxplot. Categorical data condition. Categorical variable.

Chapter 5: The beast of bias

Week 2: Frequency distributions

1. Descriptive Statistics

3 Graphical Displays of Data

Key Stage 3 Curriculum

CHAPTER-13. Mining Class Comparisons: Discrimination between DifferentClasses: 13.4 Class Description: Presentation of Both Characterization and

Chapter 2: Looking at Multivariate Data

8. MINITAB COMMANDS WEEK-BY-WEEK

Chapter 6 Normal Probability Distributions

CHAPTER 2 DESCRIPTIVE STATISTICS

Visual Analytics. Visualizing multivariate data:

Preparing for Data Analysis

Chapter 2: The Normal Distribution

At the end of the chapter, you will learn to: Present data in textual form. Construct different types of table and graphs

WORKSHOP: Using the Health Survey for England, 2014

Chapter 3: Describing, Exploring & Comparing Data

CHAPTER 2: DESCRIPTIVE STATISTICS Lecture Notes for Introductory Statistics 1. Daphne Skipper, Augusta University (2016)

Name Date Types of Graphs and Creating Graphs Notes

Mean Tests & X 2 Parametric vs Nonparametric Errors Selection of a Statistical Test SW242

Stat 528 (Autumn 2008) Density Curves and the Normal Distribution. Measures of center and spread. Features of the normal distribution

Section 9: One Variable Statistics

number Understand the equivalence between recurring decimals and fractions

Introduction. About this Document. What is SPSS. ohow to get SPSS. oopening Data

Section 6.3: Measures of Position

Things you ll know (or know better to watch out for!) when you leave in December: 1. What you can and cannot infer from graphs.

Summarising Data. Mark Lunt 09/10/2018. Arthritis Research UK Epidemiology Unit University of Manchester

appstats6.notebook September 27, 2016

MHPE 494: Data Analysis. Welcome! The Analytic Process

Subject. Creating a diagram. Dataset. Importing the data file. Descriptive statistics with TANAGRA.

8: Statistics. Populations and Samples. Histograms and Frequency Polygons. Page 1 of 10

Missing Data Analysis for the Employee Dataset

1 Overview of Statistics; Essential Vocabulary

LASER s Level 2 Maths Course - Summary

BIO 360: Vertebrate Physiology Lab 9: Graphing in Excel. Lab 9: Graphing: how, why, when, and what does it mean? Due 3/26

MATH 1070 Introductory Statistics Lecture notes Descriptive Statistics and Graphical Representation

Integrated Mathematics I Performance Level Descriptors

Lecture Slides. Elementary Statistics Twelfth Edition. by Mario F. Triola. and the Triola Statistics Series. Section 2.1- #

CCSSM Curriculum Analysis Project Tool 1 Interpreting Functions in Grades 9-12

Lecture 1: Exploratory data analysis

This chapter will show how to organize data and then construct appropriate graphs to represent the data in a concise, easy-to-understand form.

Middle School Math Course 2

Table of Contents (As covered from textbook)

Applied Regression Modeling: A Business Approach

AP Statistics Prerequisite Packet

Page 1. Graphical and Numerical Statistics

What are we working with? Data Abstractions. Week 4 Lecture A IAT 814 Lyn Bartram

Name: Date: Period: Chapter 2. Section 1: Describing Location in a Distribution

Analytical model A structure and process for analyzing a dataset. For example, a decision tree is a model for the classification of a dataset.

round decimals to the nearest decimal place and order negative numbers in context

MATH& 146 Lesson 10. Section 1.6 Graphing Numerical Data

Slide Copyright 2005 Pearson Education, Inc. SEVENTH EDITION and EXPANDED SEVENTH EDITION. Chapter 13. Statistics Sampling Techniques

Basic Statistical Terms and Definitions

Applied Regression Modeling: A Business Approach

Preparing for Data Analysis

MAT 142 College Mathematics. Module ST. Statistics. Terri Miller revised July 14, 2015

Transcription:

Quantitative Methods II WELCOME! Lecture 3 Thommy Perlinger

Program Lecture 3 Cleaning and transforming data Graphical examination of the data Missing Values

Graphical examination of the data It is important to understand, evaluate, and interpret results from multivariate analyses, which might be complex. This requires a thorough understanding of the basic characteristics of the underlying data and relationships. Graphical techniques are used to complement the empirical measures, to provide a visual representation of the basic relationships in order to feel confident in the understanding of these relationships.

Recap: Quantitative variables Discrete variables Take only some values, often integer values. A clear indicator that your variable is discrete is that it begins with Number of Eg. number of children. Continuous variables Take any value in an interval. A more precise measurement would always give more decimals. Eg. weight.

Recap: Describing distributions Bar charts display distributions of categorical variables, and discrete (quantitative) variables Histograms display distributions of continuous variables. 50 40 30 Count 20 10 0 40-50 60-70 80-90 100-110 Weight

Recap: Describing distributions To interpret a histogram, think about: The general shape The center & spread Deviations from the general shape

Recap: Graphs for continuous variables Relationship betwen two variables (bivariate relationships): Scatter plot

Examining relationships To interpret a scatterplot: The pattern of points represents the relationship A strong organization of points along a straight line implies a linear relationship or correlation A curved set of points may denote a nonlinear relationship A seemingly random pattern of points may indicate that there is no relationship.

Scatterplot matrix in the book Scatterplots Bivariate (pairwise) scatterplots Histograms Univariate graphs

Recap: Correlation The Pearson correlation coefficient (r ) measures the direction (positive/negative) and strength of the linear relationship between two variables X andy The correlation is always a number between -1 and 1-1 r 1 The population correlation coefficient is denoted (the Greek letter rho)

Recap: Correlation If there is a strong positive linear relationship between X and Y, the value of the correlation coefficient (r ) is close to 1. If there is a strong negative linear relationship between X and Y, the value of the correlation coefficient (r ) is close to -1. If there is no linear relationship at all between X and Y, the value of the correlation coefficient (r ) is close to 0. Y Y Y r = 1 r = -1 r = 0 X X X

Examples of scatter plots of data with various correlation coefficients Y Y Y r = -1 X r = -.6 X r = 0 X Y Y Y r = +1 X r = +.3 X r = 0 12 X

Scatterplot matrix in the book Correlations Bivariate (pairwise) correlations Scatterplots Bivariate (pairwise) scatterplots Histograms Univariate graphs

Scatterplot matrix in SPSS Scatterplots with X and Y reversed Scatterplots Bivariate (pairwise) scatterplots

Examining group differences Groups can be formed from the categories of a nonmetric variable. Group differences are often of interest, differences of one or more metric variables. Assessing group differences is done through univariate analyses such as t-tests, or multivariate techniques such as MANOVA (multivariate analysis of variance). The graphical method used for this task is the boxplot.

Recap: Boxplot (for any data where the median is appropriate) 25% 50% 25% Age (years)

Recap: Boxplot Max Q3 Median Q1 Min Age (years) IQR If the median lies near one end of the box, skewness is indicated.

Recap: Boxplot Outliers Outlier: an observation more than 1.5 interquartile ranges away from Q1 or Q3. Extreme outlier (* in SPSS): an observation more than 3 interquartile ranges away from Q1 or Q3.

Examining group differences Boxplots are used as a complement to the statistical tests to get descriptive information that adds to our understanding of the group differences

Program Lecture 3 Cleaning and transforming data Graphical examination of the data Missing Values

Missing data When values on one or more variable(s) are not available for analysis, we say that we have missing data. Missing data are a fact of life in multivariate analysis. Data entry errors or data collection problems, or the respondent refusing to answer (among other things) can lead to missing data.

Missing data If there is a lot of missing data, the results can be biased. The larger the rate of missing data, the larger the risk of making incorrect generalizations to the target population There are different ways of dealing with missing data, you can e.g. impute data (substitute the missing data with some values). It is important to identify any patterns and relationships underlying the missing data, in order to maintain as close as possible the original distribution of values when any remedy is applied.

The impact of missing data The missing data processes, especially those based on actions by the respondent (e.g. nonresponse to some questions), are rarely known beforehand. Questions to be investigated regarding missing data: 1) Are the missing data scattered randomly throughout the observations, or are distinct patterns identifiable? 2) How prevalent are the missing data (what is the extent of the missing data)?

The impact of missing data The practical impact is the reduction of the sample size available for analysis. Since several variables are included in the analysis, any individual with a missing value on any of the variables will not be a part of the analysis. It has been shown that if 10% of the data is randomly missing in a set of five variables, the sample is reduced to only 40% of the original size. In such situations, you must either gather additional observations, or find a remedy for the missing data.

The impact of missing data From a substantive perspective, any statistical results based on data with a nonrandom missing data process could be biased. If, e.g., individuals that don t provide their household income tend to be those in the higher income brackets, the results will be erroneus. We still get results from the analysis even without the missing data, but it is important to consider the validity of the results.

A four-step process for identifying missing data and applying remedies Step 1: determine the type of missing data Is the missing data part of the research design and under the control of the researcher? Or are the causes and impacts of the missing data truly unknown? If the missing data are expected and part of the research design, they are termed ignorable. The missing data process is then operating at random (the observed values are a random sample of the total set of values) and no specific remedies are needed.

Example: ignorable missing data 1. Have you experienced any pain during the past 7 days? 2. How strong was your pain as worst? (If you answered no to question 1, proceed to question 3) No pain Worst pain imaginable Missing data on question 2 are part of the research design and would be inappropriate to attempt to remedy.

A four-step process for identifying missing data and applying remedies Step 1 Is the missing data ignorable? Yes Apply specialized techniques for ignorable missing data

Non-ignorable missing data In general, missing data that cannot be classified as ignorable fall into two classes based on their source: 1) Known processes. Missing data that can be identified due to procedural factors, such as errors in data entry, failure to complete the entire questionnaire, etc. 2) Unknown processes. Most often directly related to the respondent, e.g. refusal to respond to certain questions (common when questions are of a sensitive nature), or when the respondent has no opinion or not enough knowledge to answer.

Non-ignorable missing data When non-ignorable missing data occur in a random pattern, some remedies may be applicable to mitigate (ease) the effect of the missing data.

A four-step process for identifying missing data and applying remedies Step 1 Is the missing data ignorable? No Step 2 Is the extent of missing data substantial enough to warrant action? Yes Apply specialized techniques for ignorable missing data

A four-step process for identifying missing data and applying remedies Step 2: determine the extent of missing data Determine the extent of missing data for individual variables, individual cases (subjects/objects), and even overall. Determine whether the amount of missing data is low enough to not affect the results, even if it is non-random. If the extent is sufficiently low, then any of the approaches for remedying missing data may be applied.

Assessing the extent of missing data To identify the extent of missing data, and any exceptionally high levels of missing data that occur for individual cases or observations, tabulate the following: 1) The percentage of variables with missing data for each case/individual/object 2) The number of cases with missing data for each variable separately This can be done using the Missing Values Analysis option in SPSS.

Assessing any patterns of missing data Using the tabulations for each case and each variable: Look for any nonrandom patterns in the data, such as concentration of missing data in a specific set of questions, or signs of individuals not completing the questionnaire, etc.

Imputation Imputation is the process of substituting the missing value with a valid value based on other variables and/or cases in the sample. The reason for imputation is that it is desirable to keep as much information as possible in your data set. If the extent of missing data is acceptably low, and no specific nonrandom patterns appear, an imputation technique can be used without biasing the results too much.

How much missing data is too much? Rules of thumb Missing data under 10% for an individual case or observation can generally be ignored, except when the missing data occurs in a specific nonrandom fashion (e.g. concentration in a specific set of questions, missing answers at the end of the questionnaire implying non-completion, etc.) The number of cases with no missing data must be sufficient for the selected analysis technique if values will not be substituted (imputed) for the missing data (complete-case analysis).

Deleting individual cases and/or variables Consider the simplest approach of remedying missing data, i.e. deleting cases and/or variables with high levels of missing data. You may find that the missing data are concentrated in a small subset of cases and/or variables, and the exclusion of these might substantially reduce the extent of the missing data. If cases where a nonrandom pattern of missing data is present, this might be the most efficient solution.

Deletions based on missing data Rules of thumb Variables or cases with 50% or more missing data should always be deleted. Variables with as little as 15% missing data are candidates for deletion, but higher levels of missing data (20% to 30%) can often be remedied. Be sure that the overall decrease in missing data is large enough to justify deleting an individual variable or case.

Deletions based on missing data Rules of thumb, cont d Cases with missing data for dependent/response variable(s) typically are deleted to avoid any artificial increase in relationships with independent variable When deleting a variable, ensure that alternative variables, hopefully highly correlated, are available to represent the intent of the original variable. Always consider performing the analysis both with and without the deleted cases or variable(s) to identify any marked differences.

Example: HBAT missing data A pretest of a questionnaire used to collect the HBAT data, consisting of n=70 individuals and 14 variables.

Example: HBAT missing data Step 1 Is the missing data ignorable? No Step 2 Is the extent of missing data substantial enough to warrant action? All the missing data in this example are unknown, due to nonresponse by the respondents, and thus not ignorable.

Example: HBAT missing data Univariate Statistics N Mean Std. Deviation Missing No. of Extremes a Count Percent Low High v1 49 4,008,9318 21 30,0 0 0 v2 57 1,944,8751 13 18,6 0 0 v3 53 8,062 1,4072 17 24,3 0 0 v4 63 5,168 1,1714 7 10,0 0 0 v5 61 2,856,7760 9 12,9 0 0 v6 64 2,611,7174 6 8,6 0 0 v7 61 6,823 1,6809 9 12,9 1 0 v8 61 46,033 9,3559 9 12,9 0 0 v9 63 4,759,8319 7 10,0 0 0 v10 68 2 2,9 v11 68 2 2,9 Categorical variables v12 68 2 2,9 v13 69 1 1,4 v14 68 2 2,9 a. Number of cases outside the range (Q1-1.5*IQR, Q3 + 1.5*IQR). V1, V2, and V3 are possible candidates for deletion SPSS: Analyze >> Missing Value Analysis

Example: HBAT missing data SPSS: Analyze >> Missing Value Analysis. Click Pattern, mark Cases with missing values

Example: HBAT missing data

Example: HBAT missing data 6 individuals with 50% missing data, candidates for deletion All missing values for the categorical variables occur in these 6 cases.

Example: HBAT missing data 26 cases with complete data (no missing values) Only one more complete case if V3 is deleted SPSS: Analyze >> Missing Value Analysis. Click Pattern, mark Tabulated cases 11 more complete cases by deletion of V1 and V3 (37-26=11) 6 more complete cases by deletion of V1 only (32-26=6)

A four-step process for identifying missing data and applying remedies Step 1 Is the missing data ignorable? Delete cases and/or variables with high missing data Yes No Step 2 Is the extent of missing data substantial enough to warrant action? Yes Should cases and/or variables be deleted due to high levels of missing data? No Step 3 Are the missing data processes MAR (nonrandom) or MCAR (random)? No Step 4 Do you want to replace the missing data with values?

Example: HBAT missing data Step 1 Is the missing data ignorable? Delete cases and/or variables with high missing data Yes 2 variables (V1 and 3), and 6 cases are to be deleted. No Step 2 Is the extent of missing data substantial enough to warrant action? Yes Should cases and/or variables be deleted due to high levels of missing data? No Step 3 Are the missing data processes MAR (nonrandom) or MCAR (random)? No Step 4 Do you want to replace the missing data with values?

A four-step process for identifying missing data and applying remedies Step 3: diagnose the randomness of the missing data processes If the extent of missing data is substantial enough to warrant action, the degree of randomness in the missing data has to be ascertained. A nonrandom missing data process is present between the two variables X and Y when significant differences in the values of X occur between cases that have valid data for Y versus those cases with missing data on Y.

Levels of randomness of the missing data process Two levels of randomness of missing data: Missing At Random (MAR), which requires special methods to accommodate a nonrandom component. Missing Completely At Random (MCAR), which is sufficiently random to accommodate any type of missing data remedy. The distinction between these two levels is in the generalizability to the population.

Missing at random (MAR) If the missing values of Y depend on the variable X, but not on Y, the data are missing at random. The observed values of Y represent a random sample of the actual Y values for each observed value of X, but the observed data for Y do not necessarily represent a truly random sample of all Y values. The missing data process is random in the sample, but the observed values are not generalizable to the population.

Example: Missing at random (MAR) X= gender of the respondents (assumed to be known) Y = household income Missing data are random for both males and females, but occur much more frequently for males. The missing data is random within the gender variable, but the observed data is not generalizable to the population since it does not reflect the ultimate distribution of the household income values.

Missing completely at random (MCAR) Data are missing completely at random if the observed values of Y are truly a random sample of all Y values, with no underlying process that introduces bias to the observed data. There is no property of the cases that distinguishes those with missing data from cases with complete data.

Example: Missing completely at random (MCAR) X= gender of the respondents (assumed to be known) Y = household income Missing data are random for both males and females, and in equal proportions for both gender. In this missing data process, any remedy can be applied without having to consider the impact of any other variable or missing data process.

Diagnostic tests for levels of randomness There are two diagnostics tests that can be used to assess the level of randomness (MAR or MCAR): 1) Two groups of individuals are formed: one with missing values of Y, and another with valid values of Y. Then statistical tests (e.g. t-tests) are performed to see if differences exist between the two groups based on other variables of interest. Significant differences indicate the possibility of nonrandom missing data. A number of variables should be examined to find any consistent pattern. Either a large number of differences or a systematic pattern may indicate a nonrandom component (MAR).

Diagnostic tests for levels of randomness 2) An overall test of randomness compares patterns of missing data on all variables with the pattern expected for random missing data. If no significant differences are found, the missing data can be classified as MCAR. If significant differences are found, the nonrandom missing data processes have to be investigated. As a result of these tests, the missing data process is classified as either MAR or MCAR.

Example: HBAT missing data 1) Two groups of individuals are formed: one with missing values of e.g. V2, and another with valid values of V2. Then, t-tests are performed to see if differences exist between the two groups based on all other numerical variables of interest.

Variable that the groups are based on Variables used to test for differences between the groups

Example: HBAT missing data Three significant differences between groups based on V2. Only one significant difference among the rest of the tests. SPSS: Analyze >> Missing Value Analysis. Click Descriptives, mark t tests with groups formed by indicator variables

Example: HBAT missing data 2) An overall test of randomness. H 0 : H a : P-value (two-sided) The observed pattern of missing data does not differ from a random pattern. The observed pattern of missing data differs from a random pattern. SPSS: Analyze >> Missing Value Analysis. To the right under Estimation, mark EM (for Little s MCAR test).

Example: HBAT missing data This result, together with the analysis showing minimal differences in a nonrandom pattern, allows us to conclude that the missing data process is MCAR. If the MCAR test had been significant, or a nonrandom pattern had been obvious in the previous analysis, the missing data process would have been concluded to be MAR.