Section 3 Part 1. Relationships between two numerical variables



Similar documents
Correlation Coefficient The correlation coefficient is a summary statistic that describes the linear relationship between two numerical variables 2

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

Correlation key concepts:

Section 14 Simple Linear Regression: Introduction to Least Squares Regression

Correlation. What Is Correlation? Perfect Correlation. Perfect Correlation. Greg C Elvers

Correlational Research. Correlational Research. Stephen E. Brock, Ph.D., NCSP EDS 250. Descriptive Research 1. Correlational Research: Scatter Plots

X X X a) perfect linear correlation b) no correlation c) positive correlation (r = 1) (r = 0) (0 < r < 1)

CORRELATIONAL ANALYSIS: PEARSON S r Purpose of correlational analysis The purpose of performing a correlational analysis: To discover whether there

Lecture 11: Chapter 5, Section 3 Relationships between Two Quantitative Variables; Correlation

We are often interested in the relationship between two variables. Do people with more years of full-time education earn higher salaries?

Statistics for Sports Medicine

Chapter 7: Simple linear regression Learning Objectives

Module 3: Correlation and Covariance

Unit 9 Describing Relationships in Scatter Plots and Line Graphs

Chapter 10. Key Ideas Correlation, Correlation Coefficient (r),

CALCULATIONS & STATISTICS

Chapter 13 Introduction to Linear Regression and Correlation Analysis

Homework 11. Part 1. Name: Score: / null

The correlation coefficient

Example: Boats and Manatees

Introduction to Quantitative Methods

Father s height (inches)

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

CHAPTER 15 NOMINAL MEASURES OF CORRELATION: PHI, THE CONTINGENCY COEFFICIENT, AND CRAMER'S V

Analysis of Data. Organizing Data Files in SPSS. Descriptive Statistics

DATA INTERPRETATION AND STATISTICS

Describing Relationships between Two Variables

UNIVERSITY OF NAIROBI

Simple Predictive Analytics Curtis Seare

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

containing Kendall correlations; and the OUTH = option will create a data set containing Hoeffding statistics.

Descriptive Statistics

Linear Regression. Chapter 5. Prediction via Regression Line Number of new birds and Percent returning. Least Squares

Exercise 1.12 (Pg )

Foundations for Functions

Relationships Between Two Variables: Scatterplots and Correlation

Simple linear regression

Answer: C. The strength of a correlation does not change if units change by a linear transformation such as: Fahrenheit = 32 + (5/9) * Centigrade

CORRELATION ANALYSIS

II. DISTRIBUTIONS distribution normal distribution. standard scores

Additional sources Compilation of sources:

Basic Statistics and Data Analysis for Health Researchers from Foreign Countries

CHAPTER 13 SIMPLE LINEAR REGRESSION. Opening Example. Simple Regression. Linear Regression

You buy a TV for $1000 and pay it off with $100 every week. The table below shows the amount of money you sll owe every week. Week

Univariate Regression

The Dummy s Guide to Data Analysis Using SPSS

Density Curve. A density curve is the graph of a continuous probability distribution. It must satisfy the following properties:

Homework 8 Solutions

Eight things you need to know about interpreting correlations:

Lecture 13/Chapter 10 Relationships between Measurement (Quantitative) Variables

CHAPTER 14 ORDINAL MEASURES OF CORRELATION: SPEARMAN'S RHO AND GAMMA

SIMPLE LINEAR CORRELATION. r can range from -1 to 1, and is independent of units of measurement. Correlation can be done on two dependent variables.

Descriptive statistics; Correlation and regression

The Correlation Coefficient

Session 7 Bivariate Data and Analysis

The Correlation Coefficient

Using Excel for inferential statistics

Regression and Correlation

Analysing Questionnaires using Minitab (for SPSS queries contact -)

Introduction to Regression and Data Analysis

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

Introduction to Statistics and Quantitative Research Methods

Hypothesis testing - Steps

Algebra 1 Course Information

Lean Six Sigma Analyze Phase Introduction. TECH QUALITY and PRODUCTIVITY in INDUSTRY and TECHNOLOGY

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

Association Between Variables

Point Biserial Correlation Tests

Nursing Journal Toolkit: Critiquing a Quantitative Research Article

Econometrics Simple Linear Regression

Chapter 7 Scatterplots, Association, and Correlation

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

There are probably many good ways to describe the goals of science. One might. Correlation: Measuring Relations CHAPTER 12. Relations Among Variables

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

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

2. Simple Linear Regression

TRINITY COLLEGE. Faculty of Engineering, Mathematics and Science. School of Computer Science & Statistics

Biostatistics: Types of Data Analysis

Difference tests (2): nonparametric

Means, standard deviations and. and standard errors

COMP6053 lecture: Relationship between two variables: correlation, covariance and r-squared.

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

Describing, Exploring, and Comparing Data

Pearson s Correlation Coefficient

Overview of Non-Parametric Statistics PRESENTER: ELAINE EISENBEISZ OWNER AND PRINCIPAL, OMEGA STATISTICS

Lecture 2. Summarizing the Sample

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

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

Course Objective This course is designed to give you a basic understanding of how to run regressions in SPSS.

THE KRUSKAL WALLLIS TEST

table to see that the probability is (b) What is the probability that x is between 16 and 60? The z-scores for 16 and 60 are: = 1.

Module 5: Statistical Analysis

Outline. Topic 4 - Analysis of Variance Approach to Regression. Partitioning Sums of Squares. Total Sum of Squares. Partitioning sums of squares

UNIVERSITY OF TORONTO SCARBOROUGH Department of Computer and Mathematical Sciences Midterm Test March 2014

17. SIMPLE LINEAR REGRESSION II

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

NCSS Statistical Software Principal Components Regression. In ordinary least squares, the regression coefficients are estimated using the formula ( )

SPSS ADVANCED ANALYSIS WENDIANN SETHI SPRING 2011

Transcription:

Section 3 Part 1 Relationships between two numerical variables 1

Relationship between two variables The summary statistics covered in the previous lessons are appropriate for describing a single variable. In many investigations, there is interest in evaluating the relationship between two variables. Depending on the type of data, different statistics are used to measure the relationship between two variables. 2

Measuring relationship between two variables Nominal binary data Odds Ratio or Risk Ratio (covered in Section 3 part 2) Numerical data Pearson Correlation Coefficient Ordinal data or Skewed Numerical data Spearman Rank Correlation Coefficient 3

Correlation Coefficients Correlation coefficients measure the linear relationship between two numerical variables. Most often the Pearson Correlation Coefficient is used to describe the linear relationship Note if just the term correlation coefficient is used, it is referring to the Pearson Correlation Coefficient If one variable is numerical and the other variable is ordinal or if both variables are ordinal, use the Spearman rank correlation coefficient instead. 4

Correlation Analysis Examples For correlation analysis, you have pairs of values for each individual (x, y). The goal is to measure the linear relationship between these values. For example, what is the linear relationship between: Weight and height Blood pressure and age Daily fat intake and cholesterol Weight and cholesterol Age and bone density 5

Types of Relationships between 2 variables There are 2 types of relationships between numerical variables Deterministic relationship the values of the 2 variables are related through an exact mathematical formula. Statistical relationship this is not a perfectly linear relationship. This is what we will explore through correlation analysis. 6

Example of Deterministic Linear Relationship Weight in kg Deterministic linear relationship 85 80 75 70 65 60 55 50 45 100 120 140 160 180 Weight in pounds The relationship between weight measured in lbs. And weight measured in kg. is deterministic because it can be described with a Mathematical formula: 1 pound = 0.4536 *kg All the points in the plot fall on a straight line in a deterministic relationship 7

Statistical Linear Relationship Var Y 120 110 100 90 80 70 60 50 40 70 80 90 100 110 120 130 140 Var X In a statistical linear relationship the plotted (x,y) values do not fall exactly on a straight line. You can see, however, that there is a general linear trend in the plot of the (x,y) values. The correlation coefficient provides information about the direction and strength of the linear relationship between two numerical values. 8

Nonlinear Relationship Var. Y 15 10 5 0 Nonlinear relationship 0 5 10 15 20 Var. X A nonlinear relationship between two variables results in a scatter plot of the (x,y) values that do not follow a straight line pattern. The relationship between these two variables is a curvilinear relationship. The correlation coefficient does not provide a description of the strength and direction of nonlinear relationships. 9

Random scatter: no pattern IQ 130 120 110 100 90 80 70 60 58 60 62 64 66 68 70 Height This scatter plot of IQ and height for 18 individuals illustrates the situation where there is no relationship between the two variables. The (x,y) values do not have either a linear or curvilinear pattern. These points have a random scatter, indicating no relationship. 10

Scatter Plots Plot the 2 variables in a scatter plot The pattern of the dots in the plot indicates the direction of the statistical relationship between the variables Positive correlation (weight and height) Negative correlation (age and bone density) 11

Height and Weight: a positive linear relationship Ht (in) Wt (lbs) 64 150 67 170 69 180 60 135 68 156 69 168 70 210 71 215 65 145 66 167 Weight (lbs) 250 200 150 100 50 0 58 60 62 64 66 68 70 72 Height (In) 12

Age and Bone Density (mg/cm 2 ): a negative linear relationship Age Bone Density 50 940 52 980 56 950 59 945 60 880 61 895 61 835 63 846 64 865 67 840 68 825 70 810 73 790 74 750 77 710 78 760 78 720 80 720 Bone density Bone Density and Age for Women 1100 1000 900 800 700 600 500 40 50 60 70 80 90 Age 13

Strength of the Association The correlation coefficient provides a measure of the strength and direction of the linear relationship. The sign of the correlation coefficient indicates the direction Positive coefficient => Negative coefficient => Strength of association Correlation coefficients closer to 1 or -1 indicates a stronger relationship Correlation coefficients = 0 (or close to 0) indicate a nonexistent or very weak linear relationship 14

Correlation Coefficient r = [ ( x ( x x) 2 x)( y ][ y) ( y y) 2 ] The statistic r is called the Correlation Coefficient r is always between 1 and 1 The closer r is to 1 or -1, the stronger the linear relationship http://www.ruf.rice.edu/~lane/stat_sim/comp_r/ 15

Strong positive relationship 250 200 r = 0.85 Weight (lbs) 150 100 50 0 58 60 62 64 66 68 70 72 Height (In) The correlation coefficient for the (height, weight) data = 0.85 indicating a strong (close to 1.0), positive linear relationship between height and weight. 16

Strong negative relationship 1100 Bone Density and Age for Women Bome density 1000 900 800 700 600 r = -0.96 500 40 50 60 70 80 90 Age The correlation coefficient for the (age, bone density) data = -0.96 indicating a strong (close to -1.0), negative linear relationship between age and bone density for women. 17

Correlation Coefficient Interpretation: Guidelines* These guidelines can be used to interpret the correlation coefficient 0 to 0.25 ( or 0 to 0.25) weak or no linear relationship 0.25 to 0.5 (or 0.25 to 0.5) fair degree of linear relationship 0.50 to 0.75 (or 0.5 to 0.75) moderately strong linear relationship > 0.75 ( or -0.75) very strong linear relationship 1 or 1 perfect linear relationship deterministic relationship * Colton (1974) 18

Nonlinear Relationship: r = 0 Nonlinear relationship 15 Var. Y 10 5 0 0 5 10 15 20 Var. X This plot illustrates that the correlation coefficient only measures the strength of linear relationships. Here there is a nonlinear (curvilinear) relationship between X and Y but the correlation coefficient = 0. 19

Random Scatter: r = 0.002 IQ 130 120 110 100 90 80 70 60 58 60 62 64 66 68 70 Height When there is a random scatter of points, the correlation coefficient will be near 0 indicating no linear relationship between the variables 20

Notes about Correlation Coefficient The correlation coefficient is independent of the units used in measuring the variables The correlation coefficient is independent of which variable is designated the X variable and which is designated the Y variable 21

Correlation vs. Causation Strong correlation does not imply causation (i.e. that changes in one variable cause changes in the other variable). Example*: There is a strong positive correlation between the number of television sets /person and the average life expectancy for the world s nations. Does having more TV sets cause longer life expectancy? *Moore & McCabe 22

Coefficient of Determination The coefficient of Determination is the correlation coefficient squared (R 2 ) R 2 = the percent of variation in the Y variable that is explained by the linear association between the two variables From example of age / bone density: Correlation coefficient for age and bone density r = -0.96. Coefficient of determination=r 2 = (-0.96) 2 = 0.92 92% of the variation in bone density is explained by the linear association between age and bone density 23

Effect of outlier on r One outlier has been added to the random pattern plot of height and IQ: a 74 inch tall person with IQ of 165 Addition of this one point results in r changing from 0.002 to 0.44 Random Pattern with outlier 200 170 r = 0.44 IQ 140 110 80 50 58 63 68 73 Height 24

Correlation Coefficient and Outliers The Pearson s correlation coefficient can be influenced by extreme values (outliers). Outliers are most easily identified from a scatter-plot. If an outlier is suspected, calculate r with and without the outlier. If the results are very different, consider calculating the Spearman rank correlation coefficient instead. 25

Spearman Rank Correlation (Spearman s Rho) Non-parametric: analysis methods that make no assumptions about the data distribution (often based on the rank of a data piece). Spearman rank correlation is the appropriate correlation analysis to use when Both variables are ordinal data One variable is continuous and one is ordinal Continuous data is skewed due to outlier(s) 26

Spearman rank correlation Procedure Order the data values for each variable from lowest to highest Assign ranks for each variable (1 up to n) Use the ranks instead of the original data values in the formula for the correlation coefficient 27

Skewed Data due to outlier 12 10 8 6 4 Pearson Correlation = 0.41 2 0 0 5 10 15 20 With the outlier point (17,9) r = 0.41. Without the outlier, r = -0.04. 28

Original values and Rank values X Y X-rank Y-rank 8 7 6 4 10 3 3 4 2 17 9 7 2 6 1 6 3 5 5 2 4 The smallest X value is given rank 1, the largest is given rank 7 Similarly, the smallest Y value is given rank 1, the largest is given rank 7 Other values are ranked according to their order. 29

Spearman s Rho: the Spearman rank correlation coefficient Ranked values of Y 12 10 8 6 4 2 0 Spearman s Rho = 0.18 0 2 4 6 8 Ranked values of X Ranking the values of X and Y removes the influence of the outlier Spearman s Rho is not as large as the Pearson s correlation coefficient for the original data (r = 0.44) and the outlier is not excluded from analysis. 30