Module 2: Introduction to Quantitative Data Analysis



Similar documents
Summarizing and Displaying Categorical Data

Diagrams and Graphs of Statistical Data

Exploratory data analysis (Chapter 2) Fall 2011

DESCRIPTIVE STATISTICS AND EXPLORATORY DATA ANALYSIS

Data exploration with Microsoft Excel: univariate analysis

Variables. Exploratory Data Analysis

Foundation of Quantitative Data Analysis

Using SPSS, Chapter 2: Descriptive Statistics

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

Business Statistics. Successful completion of Introductory and/or Intermediate Algebra courses is recommended before taking Business Statistics.

Sta 309 (Statistics And Probability for Engineers)

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

MTH 140 Statistics Videos

Module 1: Using Quantitative Data in Research: Concepts and Definitions

Exercise 1.12 (Pg )

Describing, Exploring, and Comparing Data

Course Text. Required Computing Software. Course Description. Course Objectives. StraighterLine. Business Statistics

Analyzing Experimental Data

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

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

MBA 611 STATISTICS AND QUANTITATIVE METHODS

Statistics I for QBIC. Contents and Objectives. Chapters 1 7. Revised: August 2013

Common Tools for Displaying and Communicating Data for Process Improvement

BNG 202 Biomechanics Lab. Descriptive statistics and probability distributions I

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

Demographics of Atlanta, Georgia:

How To Write A Data Analysis

Chapter 2: Frequency Distributions and Graphs

AMS 7L LAB #2 Spring, Exploratory Data Analysis

Northumberland Knowledge

HISTOGRAMS, CUMULATIVE FREQUENCY AND BOX PLOTS

Data Exploration Data Visualization

Introduction to Statistics for Psychology. Quantitative Methods for Human Sciences

Excel Charts & Graphs

Descriptive Analysis

Lecture 2: Descriptive Statistics and Exploratory Data Analysis

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

Descriptive Statistics

Data Visualization Techniques

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

Module 4: Data Exploration

Get The Picture: Visualizing Financial Data part 1

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

Getting started manual

DATA INTERPRETATION AND STATISTICS

Data Visualization Techniques

Statistics Revision Sheet Question 6 of Paper 2

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

Appendix G STATISTICAL METHODS INFECTIOUS METHODS STATISTICAL ROADMAP. Prepared in Support of: CDC/NCEH Cross Sectional Assessment Study.

2. Simple Linear Regression

Exploratory Data Analysis. Psychology 3256

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

SCHOOL OF HEALTH AND HUMAN SCIENCES DON T FORGET TO RECODE YOUR MISSING VALUES

2013 MBA Jump Start Program. Statistics Module Part 3

Institute of Actuaries of India Subject CT3 Probability and Mathematical Statistics

What Does the Normal Distribution Sound Like?

Intro to Statistics 8 Curriculum

Fairfield Public Schools

Exploratory Data Analysis

Data Mining Techniques Chapter 5: The Lure of Statistics: Data Mining Using Familiar Tools

A Picture Really Is Worth a Thousand Words

Basic Tools for Process Improvement

Descriptive Statistics and Exploratory Data Analysis

THE BINOMIAL DISTRIBUTION & PROBABILITY

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

LAGUARDIA COMMUNITY COLLEGE CITY UNIVERSITY OF NEW YORK DEPARTMENT OF MATHEMATICS, ENGINEERING, AND COMPUTER SCIENCE

Data Analysis Tools. Tools for Summarizing Data

STA-201-TE. 5. Measures of relationship: correlation (5%) Correlation coefficient; Pearson r; correlation and causation; proportion of common variance


SPSS TUTORIAL & EXERCISE BOOK

2: Frequency Distributions

Lecture 1: Review and Exploratory Data Analysis (EDA)

All Visualizations Documentation

Statistics Chapter 2

2 Describing, Exploring, and

Charting Your Course: Charts and Graphs for IT Projects

IBM SPSS Direct Marketing 23

Part 2: Data Visualization How to communicate complex ideas with simple, efficient and accurate data graphics

In mathematics, there are four attainment targets: using and applying mathematics; number and algebra; shape, space and measures, and handling data.

Basics of Statistics

List of Examples. Examples 319

IBM SPSS Direct Marketing 22

Exploratory Data Analysis

Directions for Frequency Tables, Histograms, and Frequency Bar Charts

Week 1. Exploratory Data Analysis

Exploratory Spatial Data Analysis

White Paper. Data Visualization Techniques. From Basics to Big Data With SAS Visual Analytics

An introduction to using Microsoft Excel for quantitative data analysis

Data exploration with Microsoft Excel: analysing more than one variable

STAB22 section 1.1. total = 88(200/100) + 85(200/100) + 77(300/100) + 90(200/100) + 80(100/100) = = 837,

TEACHER NOTES MATH NSPIRED

STATGRAPHICS Online. Statistical Analysis and Data Visualization System. Revised 6/21/2012. Copyright 2012 by StatPoint Technologies, Inc.

Chapter 2 Data Exploration

A DATA ANALYSIS TOOL THAT ORGANIZES ANALYSIS BY VARIABLE TYPES. Rodney Carr Deakin University Australia

Using Excel for descriptive statistics

STATISTICAL ANALYSIS WITH EXCEL COURSE OUTLINE

IBM SPSS Statistics for Beginners for Windows

Transcription:

Module 2: Introduction to Quantitative Data Analysis Contents Antony Fielding 1 University of Birmingham & Centre for Multilevel Modelling Rebecca Pillinger Centre for Multilevel Modelling Introduction... 2... 3 C2.1.1 Frequency distributions... 3 C2.1.2 Summary statistics of key features of distributions...10 C2.2 Comparisons and relationships: the role of variability... 15 C2.2.1 Comparing subgroups as a form of relationship...15 C2.2.2 Relationships and their direction...16 C2.2.3 The role of variability...18 C2.2.4 Homoscedasticity and heteroscedasticity...20 C2.3 Some other examples of relationships and the role of explained variability... 21 Introduction Some of the sections within this module have online quizzes for you to test your understanding. To find the quizzes: EXAMPLE From within the LEMMA learning environment Go down to the Lesson for Module 2: Introduction to Quantitative Data Analysis Click"2.1 Univariate Data Summary" to open Lesson 2.1 Click to open the first question Q1(i) Introduction The aim of this module is to give an overall view of some the principles of effective data analysis. The focus is on how we summarise data to uncover patterns and relationships between variables, and how these relationships can begin to explain the values of the variables that we observe. Some key statistical vocabulary is introduced and concepts are illustrated by example. You will learn about the following: C2.3.1 Extending to two categorical explanators for a continuous response: the possibility of interactions...21 C2.3.2 Variability of categorical responses...26 C2.3.3 Where both response and explanatory variables are continuous...28 C2.3.4 Patterns other than straight lines...31 C2.3.5 Relationship between a continuous response and combinations of categorical and continuous explanators: Progress of students in schools...33 C2.4 Working towards the idea of a formal statistical model... 40 C2.5 Comments on statistical inference; uncertainty, estimation and hypothesis testing 44 C2.5.1 Estimation...44 C2.5.2 Confidence Intervals...47 C2.5.3 Testing hypotheses...47 Ways of summarising the shape and pattern of the values of a single variable, at different levels of measurement. Understanding the role of variability in comparative analysis and the study of relationships. The elaboration of relationships, the importance of control variables, and the concepts of confounding, suppression and interaction. The essential parts of a statistical model: pattern and residual variation. Key concepts in inference from samples. 1 With contributed material from Kelvyn Jones and Fiona Steele and extensive comment by Harvey Goldstein. Centre for Multilevel Modelling, 2008 1 Centre for Multilevel Modelling, 2008 2

Before we decide on appropriate methods of analysis to address our research question we will usually want to get to know our data. At the very minimum we will want to establish that the variables we plan to use do indeed vary. We will also want to establish an initial picture of the nature of that variation, since it is the study of such variation that will form the basis of further analysis. Thus the first step in any quantitative investigation is to separately summarise each particular variable in various informative ways. Since these initial summaries deal with only one variable they will be called univariate analyses. For instance in our research we might be contemplating using the variable Years of Education, from the European Social Survey data introduced in Module 1. It will be initially useful to know something about the distribution of respondents over the values of this variable. What is the general level of education? How widely dispersed are the values? Is there a concentration of a large number of units (individuals) at particular points? Are there units with extreme values in our data set? Are there curious or inexplicable values which may lead us to suspect errors? In the case of nominal variables, such as Marital Status or Ethnic Group, or of ordinal variables, such as Income measured by twelve ranges, how many units fall into each category? The answers to these questions will affect the analyses we perform. We should also re-emphasise the major point discussed in Module 1 that the level of measurement of a variable may restrict what summaries are appropriate. C2.1.1 Frequency distributions Frequency distributions are perhaps the most commonly used initial summaries. They count how many in the set of units under consideration have different values, or groups of values, of the variable. Frequency distributions can usually be employed whatever the level of measurement. However, there are a number of conventions which influence different ways of grouping values. C2.1.1.1 Categorical data Table 2.1 and Table 2.2 represent typical summaries for the categories of a nominal variable, Marital Status, and an ordered variable, Education Level (defined as the highest level of education attained). Table 2.1. Frequency distribution of Marital Status Number % of all cases % of valid cases Married 22974 54.2 54.5 Separated 627 1.5 1.5 Divorced 2758 6.5 6.5 Widowed 3836 9.1 9.1 Never married 11946 28.2 28.3 Refusal 102 0.2 - Don't know 32 0.1 - No answer 84 0.2 - Total 42359 100.0 100.0 Table 2.2 Frequency distribution of Education Level Number % of all cases % of valid cases Cumulative % of valid cases Not completed 1,684 4.0 4.0 4.0 primary education Primary or first 5,634 13.3 13.4 17.4 stage of basic Lower secondary 9,610 22.7 22.9 40.1 or second stage of basic Upper secondary 13,730 32.4 32.7 72.8 Post secondary, 3,517 8.3 8.4 81.2 non-tertiary First stage of 5,448 12.9 13.0 94.2 tertiary Second stage of 2,419 5.7 5.8 100.0 tertiary Refusal 43 0.1 - Don't know 153 0.4 - No answer 121 0.3 - Total 42359 100.0 100.0 Centre for Multilevel Modelling, 2008 3 Centre for Multilevel Modelling, 2008 4

These tables show the number of respondents in a subsample from the European Social Survey (ESS) data that fall into each of the categories of the variable. 2 There are also a number of categories relating to different sorts of missing data. Handling such missing data is a complex problem beyond the scope of this module, but it is important to recognise their existence. When they are removed we have what are usually termed valid cases for further analysis. For the rest of this section we will focus only on summarising valid cases. The tables also show percentage distributions. Percentages are usually easier to interpret because of their familiar feel, and because they show us the relative frequency of the values of the variable in the data. This enables us to better judge the relative importance of the values. In Table 2.1 we can see, for instance, that over half of our subsample is married. In Table 2.2 we can see that there are very few cases in the first and last valid categories. Since the ordering of the categories has meaning here, we note that the extremes of Education Level contain relatively small numbers. The most frequently occurring categories, married in the first case and upper secondary in the second, are called the modes of the distributions. There is an extra column called the cumulative frequency in Table 2.2 that is appropriate for ordinal (or grouped ratio or interval level) variables, and which gives the percentage of units with a value of the variable less than or equal to the value of the row in question. So, for example, 72.8% achieve secondary education or lower or, to look at it another way, 27.2% go beyond secondary education. A cumulative summary in the opposite direction would produce figures like the latter 3, showing the percentage of units with a value of the variable greater than or equal to the value of the row in question. It is often easier to pick out key features of the data by visualising them. Figure 2.1 is a pie-chart for the distribution of marital status where the angles (and thus the sizes) of the slices of the pie are in proportion to the relative frequencies in the last column of Table 2.1. The pie chart is perhaps the most common way of visualising distributions for categorical data but bar charts are sometimes also used. Figure 2.1: Pie chart of distribution of Marital Status Married Separated Divorced Widowed Never married Refusal Don't know No answer C2.1.1.2 Continuous data There are a few new issues connected with frequency distributions for continuous variables since to display patterns we must often group values in a meaningful way. In the ESS there is a variable defined by answers to the question How long have you lived in this area?, which we will call Years of Residence. Data are recorded to the nearest whole year and the set of possible values are integers between zero and ninety eight, so only a small percentage of units will take each particular value. A full frequency distribution with ninety nine groups would be too detailed, patterns would be difficult to discern and the table would not be very informative. To avoid these problems the values must be grouped into classes or intervals. In determining the appropriate number of intervals and their widths we need to strike a balance between too many intervals (which leads to groups with relatively few cases in each) or too few intervals (which results in too great a loss of information). There are no hard and fast rules for this. One possible set of intervals for Years of Residence is shown in Table 2.3. Here the intervals are of an equal width of ten years, and are perhaps easier to handle when this is the case, but as will be seen in another example later in this section there is no necessity that this should be so. 2 This is the subsample of cases made available on the ESS website for on-line analysis at http://essedunet.nsd.uib.no/cms/topics/1/. 3 but shifted down a row. Centre for Multilevel Modelling, 2008 5 Centre for Multilevel Modelling, 2008 6

Table 2.3 Grouped frequency distribution of approximate Years of Residence in area at interview (valid cases only) Whole year range Number of valid cases Percentage Cumulative Percentage 0-9 11606 27.8 27.8 10-19 8667 20.7 48.5 20-29 7470 17.9 66.4 30-39 5400 12.9 79.3 40-49 3567 8.5 87.8 50-59 2369 5.7 93.5 60-69 1381 3.3 96.8 70-79 987 2.4 99.2 80-89 247 0.6 99.8 90-99 80 0.2 100.0 Total 41774 100 variables graphically. The most common are histograms although other devices such as stem and leaf plots (for small datasets) or box and whisker plots (also called boxplots) may be employed. Figure 2.2 depicts a histogram for the distribution of Years of Residence in Table 2.3. Each rectangle here corresponds to one of the intervals, with the horizontal width of the rectangle proportional to the width of that interval. The areas of the rectangles are proportional to the numbers (or percentages) in each range. It is important to note that the construction of a histogram is governed by the areas of the rectangles, not their heights. Only if the intervals are of equal width, as they are here, are the two equivalent. The areas give a proper visual interpretation of the relative sizes of these ranges. In the diagram an approximate smooth curve has also been drawn to connect the tops of the rectangles. This is called a frequency curve and gives us an impression of the shape of the distribution. Here we have an example of an asymmetric distribution with a long tail, called a skewed distribution. Almost 50% of lengths of residence are under 20 years and after that point the number of units in each range decreases gradually as the length of residence increases. 4 The long tail is therefore to the right and so this is an example of positive skew. If the long tail had been to the left, i.e. towards smaller values along the continuous range, we would refer to the distribution as negatively skewed. Sometimes the raw data provided to the analyst is already grouped into intervals of values, so that there is less flexibility and the only decision then might be whether to summarise further by aggregating intervals. One such example is the Income variable, recorded from questionnaires in twelve ranges of values and coded 1-12 in our example dataset. The frequency distribution of valid cases is displayed in Table 2.4. The widths of the ranges here are not equal but are wider for ranges at the higher end of the income scale. Figure 2.2 Histogram of approximate Years of Residence in area at interview (valid cases only) There are also useful ways of presenting such frequency distributions of continuous 4 More detailed examination of the ungrouped data would reveal that the 11606 cases in the first interval are almost uniformly spread over each of the separate single values in that group. Centre for Multilevel Modelling, 2008 7 Centre for Multilevel Modelling, 2008 8

This document is only the first few pages of the full version. To see the complete document please go to learning materials and register: http://www.cmm.bris.ac.uk/lemma The course is completely free. We ask for a few details about yourself for our research purposes only. We will not give any details to any other organisation unless it is with your express permission.