Introduction to Statistics for Psychology. Quantitative Methods for Human Sciences



Similar documents
Introduction to Probability Theory and Statistics for Psychology and Quantitative Methods for Human Sciences

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

Biostatistics: DESCRIPTIVE STATISTICS: 2, VARIABILITY

Exploratory Data Analysis

Lesson 4 Measures of Central Tendency

Descriptive Statistics

Northumberland Knowledge

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

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

THE BINOMIAL DISTRIBUTION & PROBABILITY

Means, standard deviations and. and standard errors

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

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

Descriptive Statistics and Measurement Scales

Lecture 1: Review and Exploratory Data Analysis (EDA)

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

Exploratory data analysis (Chapter 2) Fall 2011

Lecture 2: Descriptive Statistics and Exploratory Data Analysis

Exercise 1.12 (Pg )

Mind on Statistics. Chapter 2

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

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

Statistics Revision Sheet Question 6 of Paper 2

How To Write A Data Analysis

3.2 Measures of Spread

Foundation of Quantitative Data Analysis

MEASURES OF VARIATION

II. DISTRIBUTIONS distribution normal distribution. standard scores

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

Topic 9 ~ Measures of Spread

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

MBA 611 STATISTICS AND QUANTITATIVE METHODS

3: Summary Statistics

Variables. Exploratory Data Analysis

BNG 202 Biomechanics Lab. Descriptive statistics and probability distributions I

Data Exploration Data Visualization

6.4 Normal Distribution

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

CA200 Quantitative Analysis for Business Decisions. File name: CA200_Section_04A_StatisticsIntroduction

Exploratory Data Analysis. Psychology 3256

Diagrams and Graphs of Statistical Data

Summary of Formulas and Concepts. Descriptive Statistics (Ch. 1-4)

Lecture 5 : The Poisson Distribution

Lecture 2. Summarizing the Sample

DATA INTERPRETATION AND STATISTICS

Chapter 1: Exploring Data

AP * Statistics Review. Descriptive Statistics

Descriptive statistics parameters: Measures of centrality

Normal distribution. ) 2 /2σ. 2π σ

HISTOGRAMS, CUMULATIVE FREQUENCY AND BOX PLOTS

Probability and Statistics Prof. Dr. Somesh Kumar Department of Mathematics Indian Institute of Technology, Kharagpur

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

Module 4: Data Exploration

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

Describing and presenting data

Mark. Use this information and the cumulative frequency graph to draw a box plot showing information about the students marks.

This unit will lay the groundwork for later units where the students will extend this knowledge to quadratic and exponential functions.

4. Continuous Random Variables, the Pareto and Normal Distributions

Frequency Distributions

Descriptive Statistics

5/31/ Normal Distributions. Normal Distributions. Chapter 6. Distribution. The Normal Distribution. Outline. Objectives.

Week 3&4: Z tables and the Sampling Distribution of X

Summarizing and Displaying Categorical Data

Week 1. Exploratory Data Analysis

Measures of Central Tendency and Variability: Summarizing your Data for Others

Chapter 2 Data Exploration

Dongfeng Li. Autumn 2010

CALCULATIONS & STATISTICS

Interpreting Data in Normal Distributions

Name: Date: Use the following to answer questions 2-3:

2. Here is a small part of a data set that describes the fuel economy (in miles per gallon) of 2006 model motor vehicles.

Lecture Notes Module 1

Chapter 2 Statistical Foundations: Descriptive Statistics


Statistics. Measurement. Scales of Measurement 7/18/2012

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

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

Concepts of Variables. Levels of Measurement. The Four Levels of Measurement. Nominal Scale. Greg C Elvers, Ph.D.

Mathematical goals. Starting points. Materials required. Time needed

3 Describing Distributions

Descriptive Statistics

Without data, all you are is just another person with an opinion.

CHAPTER THREE COMMON DESCRIPTIVE STATISTICS COMMON DESCRIPTIVE STATISTICS / 13

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

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

MULTIPLE CHOICE. Choose the one alternative that best completes the statement or answers the question.

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

DESCRIPTIVE STATISTICS - CHAPTERS 1 & 2 1

MULTIPLE CHOICE. Choose the one alternative that best completes the statement or answers the question.

Common Tools for Displaying and Communicating Data for Process Improvement

Chapter 3 RANDOM VARIATE GENERATION

EXAM #1 (Example) Instructor: Ela Jackiewicz. Relax and good luck!

Introduction; Descriptive & Univariate Statistics

DESCRIPTIVE STATISTICS & DATA PRESENTATION*

The Dummy s Guide to Data Analysis Using SPSS

Using SPSS, Chapter 2: Descriptive Statistics

Descriptive statistics; Correlation and regression

Measurement & Data Analysis. On the importance of math & measurement. Steps Involved in Doing Scientific Research. Measurement

Module 2: Introduction to Quantitative Data Analysis

Transcription:

Introduction to Statistics for Psychology and Quantitative Methods for Human Sciences Jonathan Marchini

Course Information There is website devoted to the course at http://www.stats.ox.ac.uk/ marchini/phs.html This contains Course timetable/information Lecture slides (on the website before each lecture) Lecture notes (a bit more detailed than the slides) Exercise sheets (tutors may or may not use these) Formulae booklet and definitions booklet Links to past exam papers on the web PLEASE ENTER THE LECTURE THEATRE QUICKLY!

Lecture 1 : Outline Why we need Statistics? - The scientific process Different types of data - Discrete/Continuous - Quantitative/Qualitative Methods of looking at data - Bar charts, Histograms, Dot plots, Scatter plots, Box plots Calculating summary measures of data - Location - Mean, Median, Mode - Dispersion - SIQR, MAD, sample variance, sample standard deviation

The role of Statistics in the Scientific Process Examine the results of the statistical test We start with a question/hypotheis about a given population of objects/events Propose a study/experiment that aims to provide data to help test our hypothesis Collect Data i.e. take a sample from the population Use statistics to test our hypothesis based on a model of the data Study Design (How can we design our study to get the most information about our hypothesis) STATISTICS

An Example Psychologists have long been interested in the relationship between stress and health. A focused question might involve the study of a specific psychological symptom and its impact on the health of the population. To assess whether the symptom is a good indicator of stress we need to measure the symptom and stress levels in a sample of individuals from the population. It is not immediately clear how we should go about collecting this sample, i.e. how we should design the study. We haven t got very far before we need Statistics!

The general focus of this course Examine the results of the statistical test We start with a question/hypotheis about a given population of objects/events Propose a study/experiment that aims to provide data to help test our hypothesis Collect Data i.e. take a sample from the population Use statistics to test our hypothesis based on a model of the data Study Design (How can we design our study to get the most information about our hypothesis) STATISTICS

Datasets consist of measured variables The datasets that Psychologists and Human Scientists collect will usually consist of one more observations on one or more variables. A variable is a property of an object or event that can take on different values. Example Suppose we collect a dataset by measuring the hair colour, resting heart rate and score on an IQ test of every student in a class. The variables in this dataset would then simply be hair colour, resting heart rate and score on an IQ test, i.e. the variables are the properties that we measured/observed.

2 main types of variable 1 Measurement (Quantitative) Data occur when we measure things e.g. height or weight. 2 Categorical (Qualitative) Data occur when we assign objects into labelled groups or categories e.g. when we group people according to hair colour or race. (i) Ordinal variables have a natural ordering e.g. medal gold/silver/bronze (i) Nominal variables do not have a natural ordering e.g. gender

Discrete and Continuous Variables Discrete Data No. of students late for a lecture 0 1 2... 8 There are only a limited set of distinct values/categories i.e. we can t have exactly 2.23 students late, only integer values are allowed. Continuous Data Time spent studying statistics (hrs) 0 3.76 5.67 In theory there are an unlimited set of possible values! There are no discrete jumps between possible values.

Summary of Data Types Types of data Quantitative (Measurement) Qualitative (Categorical) Discrete Continuous Discrete e.g. No. of students in a class e.g.height, Weight Nominal e.g. Hair colour, Race, Smoking status Ordinal e.g. League position, Medal awarded in an Olympic event

Plotting Data One of the most important stages in a statistical analysis can be simply to look at your data right at the start. By doing so you will be able to spot characteristic features, trends and outlying observations that enable you to carry out an appropriate statistical analysis. Also, it is a good idea to look at the results of your analysis using a plot. This can help identify if you did something that wasn t a good idea! REMEMBER Data is messy! No two datasets are the same ALWAYS LOOK AT YOUR DATA

The Baby-Boom dataset Forty-four babies (a new record) were born in one 24-hour period at the Mater Mothers Hospital in Brisbane, Queensland, Australia, on December 18, 1997. For each of the 44 babies, The Sunday Mail recorded the time of birth, the sex of the child, and the birth weight in grams. Whilst, we did not collect this dataset based on a specific hypothesis, if we wished we could use it to answer several questions of interest. Do girls weigh more than boys at birth? What is the distribution of the number of births per hour? Is birth weight related to the time of birth? Is gender related to the time of birth? Is there an equal chance of being born a girl or boy?

Time Gender Weight 5 1 3837 64 1 3334 78 2 3554 115 2 3838 177 2 3625 245 1 2208 247 1 1745 262 2 2846 271 2 3166 428 2 3520 455 2 3380 492 2 3294 494 1 2576 549 1 3208 635 2 3521 Time Gender Weight 649 1 3746 653 1 3523 693 2 2902 729 2 2635 776 2 3920 785 2 3690 846 1 3430 847 1 3480 873 1 3116 886 1 3428 914 2 3783 991 2 3345 1017 2 3034 1062 1 2184 1087 2 3300 Time Gender Weight 1105 1 2383 1134 2 3428 1149 2 4162 1187 2 3630 1189 2 3406 1191 2 3402 1210 1 3500 1237 2 3736 1251 2 3370 1264 2 2121 1283 2 3150 1337 1 3866 1407 1 3542 1435 1 3278

Bar Charts A Bar Chart is a useful method of summarising Categorical Data. represent the counts/frequencies/percentages in each category by a bar. We Frequency 0 4 8 12 16 20 24 Girl Boy

Histograms A Bar Chart is to Categorical Data as a Histogram is to Measurement Data Frequency 0 5 10 15 20 1500 2000 2500 3000 3500 4000 4500 Birth Weight (g)

Constructing Histograms (an example) For the baby-boom dataset we can draw a histogram of the birth weights. To draw the histogram I found the smallest and largest values smallest = 1745 largest = 4162 There are only 44 weights so I decided on 6 equal sized categories Interval 1500-2000 2000-2500 2500-3000 3000-3500 3500-4000 4000-4500 Frequency 1 4 4 19 15 1 Using these categories works well, the histogram shows us the shape of the distribution and we notice that distribution has an extended left tail.

Too few categories Too many categories Frequency 0 5 10 15 20 25 30 35 Frequency 0 1 2 3 4 5 6 7 1500 2500 3500 4500 1500 2500 3500 4500 Birth Weight (g) Birth Weight (g) Too few categories and the details are lost. Too many categories and the overall shape is obscured by too many details

Cumulative Frequency Plots and Curves Interval 1500-2000 2000-2500 2500-3000 3000-3500 3500-4000 4000-4500 Frequency 1 4 4 19 15 1 Cumulative 1 5 9 28 43 44 Frequency Cumulative Frequency Plot Cumulative Frequency Curve Cumulative Frequency 0 10 20 30 40 50 Cumulative Frequency 0 10 20 30 40 50 1500 2000 2500 3000 3500 4000 4500 Birth Weight (g) 2000 2500 3000 3500 4000 4500 Birth Weight (g)

Dot plots A Dot Plot is a simple and quick way of visualising a dataset. This type of plot is especially useful if data occur in groups and you wish to quickly visualise the differences between the groups. Gender Girl Boy 1500 2000 2500 3000 3500 4000 4500 Birth Weight (g)

Scatter Plots Scatter plots are useful when we wish to visualise the relationship between two measurement variables. Time of birth (mins since 12pm) 0 200 400 600 800 1000 1200 1400 2000 2500 3000 3500 4000 Birth Weight (g)

Comparing Histograms 10 0 10 20 30 10 0 10 20 30 10 0 10 20 30

Summary Measures There are 3 main measures of location The Mode The Median The Mean There are 5 main measures of dispersion The Interquartile Range (IQR) and Semi-Interquartile Range (SIQR) The Mean Deviation The Mean Absolute Deviation (MAD) The Sample Variance (s 2 ) and Population Variance (σ 2 ) The Sample Standard Deviation (s) and Population Standard Deviation (σ)

The Mode The Mode of a set of numbers is simply the most common value e.g. the mode of the following set of numbers 1, 1, 2, 2, 2, 3, 3, 3, 3, 4, 5, 5, 6, 6, 7, 8, 10, 13 is 3. Frequency 0 1 2 3 4 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14

Advantage The Mode has the advantage that it is always a score that actually occurred and can be applied to nominal data. Disadvantage There may be two or more values that share the largest frequency. In the case of two modes we would report both and refer to the distribution as bimodal. Frequency 0 5 10 15 20 25 30 35 5 10 15 20 25

The Median The Median can be thought of as the middle value i.e. the value for which 50% of the data fall below when arranged in numerical order. For example, consider the numbers When arranged in numerical order we see that the median value is 8. 15, 3, 9, 21, 1, 8, 4, 1, 3, 4, 8, 9, 15, 21 If there were an even number of scores e.g. 1, 3, 4,8, 9, 15 then we take the midpoint of the two middle values. In this case the median is (4 + 8)/2 = 6.

In general, if we have N data points then the median location is defined as follows: Median Location = (N+1) 2 For example, the median location of 7 numbers is (7 + 1)/2 = 4 and the median of 8 numbers is (8 + 1)/2 = 4.5 i.e. between observation 4 and 5 (when the numbers are arranged in order). Advantage The median is unaffected by extreme scores (a point it shares with the mode). We say the median is resistant to outliers. For example, the median of the numbers 1, 3, 4, 8, 9, 15, 99999 is still 8. This property is very useful in practice as outlying observations can and do occur (Data is messy remember!).

The Mean The Mean of a set of scores is the sum 1 of the scores divided by the number of scores. For example, the mean of 1, 3, 4, 8, 9, 15 is 1 + 3 + 4 + 8 + 9 + 15 6 = 6.667 (to 3 dp) In mathematical notation, the mean of a set of n numbers x 1,..., x n is denoted by x where n i=1 x = x i x or x = (in the formula book) n n See the appendix of the notes for a brief description of the summation notation ( ) 1 The total when we add them all up

Advantage The mean is the most widely used measure of location. Historically, this is because statisticians can write down equations for the mean and derive nice theoretical properties for the mean, which are much harder for the mode and median. Disadvantage The mean is not resistant For example, the mean of to outlying observations. 1, 3, 4, 8, 9, 15, 99999 is 14323.57, whereas the median (from above) is 8.

Sometimes discrete measurement data are presented in the form of a frequency table in which the frequencies of each value are given. We calculate the sum of the data as Data (x) 1 2 3 4 5 6 Frequency (f) 2 4 6 7 4 1 (2 1) + (4 2) + (6 3) + (7 4) + (4 5) + (1 6) = 82 and the number of observations as The the mean is given by 2 + 4 + 6 + 7 + 4 + 1 = 24 x = 82 24 = 3.42 (2 dp)

In mathematical notation the formula for the mean of frequency data is given by n i=1 x = f ix i fx n i=1 f or x = i f

The relationship between the mean, median and mode Symmetric mean = median = mode 10 0 10 20 30 Positive Skew mean median mode 0 5 10 15 20 25 30 Negative Skew mean median mode 0 5 10 15 20 25 30

IQR and SIQR The IQR is the range of the middle 50% of the data. The SIQR is simply half the IQR. Frequency 0 50 100 150 200 IQR 25% 75% 5 0 5 10 15 20 25

We calculate the IQR in the following way: Calculate the 25% point (1st quartile) of the dataset. The location of the 1st quartile is defined to be the ( ) N+1 4 th data point. Calculate the 75% point (3rd quartile) of the dataset. The location of the 3rd quartile is defined to be the ( 3(N+1) ) 4 th data point. Calculate the IQR as IQR = 3rd quartile - 1st quartile Example 1 Consider the set of 11 numbers (which have been arranged in order) 10, 15, 18, 33, 34, 36, 51, 73, 80, 86, 92 The 1st quartile is the (11+1) 4 = 3rd data point = 18 The 3rd quartile is the 3(11+1) 4 = 9th data point = 80 IQR = 80-18 = 62 SIQR = 62 / 2 = 31.

The Mean Deviation To measure the spread of a dataset it seems sensible to use the deviation of each data point from the mean of the distribution. The deviation of each data point from the mean is simply the data point minus the mean. small spread = small deviations large spread = large deviations

Data Deviations x x x 10 10-48 = -38 15 15-48 = -33 18 18-48 = - 30 33 33-48 = -15 34 34-48 = -14 36 36-48 = -12 51 51-48 = 3 73 73-48 = 25 80 80-48 = 32 86 86-48 = 38 92 92-48 = 44 Sum = 528 Sum = 0 x = 528 (x x) = 0 The mean is x = 528 11 = 48 The Mean Deviation of a set of numbers is simply mean of deviations. In practice, the mean deviation is always zero.

Mean Absolute Deviation (MAD) We solve the problem of the deviations summing to zero by considering the absolute values of the deviations. The absolute value of a number is the value of that number with any minus sign removed, e.g. 3 = 3. We then measure spread using the mean of the absolute deviations, denoted (MAD). This can be written in mathematical notation as n i=1 x i x n or x x n

Data Deviations Deviations x x x x x 10 10-48 = -38 38 15 15-48 = -33 33 18 18-48 = - 30 30 33 33-48 = -15 15 34 34-48 = -14 14 36 36-48 = -12 12 51 51-48 = 3 3 73 73-48 = 25 25 80 80-48 = 32 32 86 86-48 = 38 38 92 92-48 = 44 44 Sum = 528 Sum = 0 Sum = 284 x = 528 (x x) = 0 x x = 284 MAD = 284 11 = 25.818 (to 3dp)

The Sample Variance (s 2 ) and Population Variance (σ 2 ) Another way to ensure the deviations don t sum to zero is to look at the squared deviations. Thus another way of measuring the spread is to consider the mean of the squared deviations, called the Variance If our dataset consists of the whole population (a rare occurrence) then we can calculate the population variance σ 2 (said sigma squared ) as n σ 2 i=1 = (x i x) 2 (x x) or σ 2 2 = n n When we just have a sample from the population (most of the time) we can calculate the sample variance s 2 as n s 2 i=1 = (x i x) 2 (x x) or s 2 2 = n 1 n 1 NB We divide by n 1 when calculating the sample variance as then s 2 is a better estimate of the population variance σ 2 than if we had divided by n.

Data Deviations Deviations 2 x x x (x x) 2 10 10-48 = -38 1444 15 15-48 = -33 1089 18 18-48 = - 30 900 33 33-48 = -15 225 34 34-48 = -14 196 36 36-48 = -12 144 51 51-48 = 3 9 73 73-48 = 25 625 80 80-48 = 32 1024 86 86-48 = 38 1444 92 92-48 = 44 1936 Sum = 528 Sum = 0 Sum = 9036 x = 528 (x x) = 0 (x x) 2 = 9036 s 2 = 9036 11 1 = 903.6

The Sample and Population Standard Deviation (s and σ) Notice how the sample variance in our example is much higher than the SIQR and the MAD. SIQR = 31 MAD = 25.818 s 2 = 903.6 This happens because we have squared the deviations transforming them to a quite different scale. We can recover the scale of the original data by simply taking the square root of the sample (population) variance.

Thus we define the sample standard deviation s as s = n i=1 (x i x) 2 n 1 and we define the population standard deviation σ as σ = n i=1 (x i x) 2 n Returning to Example 1 the sample standard deviation is s = 903.6 = 30.05 (to 2dp) which is comparable with the SIQR and the MAD.

Box Plots 2000 2500 3000 3500 4000 Upper Whisker Lower Whisker 3rd quartile Median 1st quartile Outliers

A box plot consists of three main parts 1 A box that covers the middle 50% of the data. The edges of the box are the 1st and 3rd quartiles. A line is drawn in the box at the median value. 2 Whiskers that extend out from the box to indicate how far the data extend either side of the box. The whiskers should extend no further than 1.5 times the length of the box, i.e. the maximum length of a whisker is 1.5 times the IQR. 3 All points that lie outside the whiskers are plotted individually as outlying observations.

Plotting box plots of measurements in different groups side by side can be illustrative. For example, box plots of birth weight for each gender side by side and indicates that the distributions have quite different shapes. 2000 2500 3000 3500 4000 Girls Boys