Docsity

Lecture Notes on Correlation - Basic Statistics | STAT 220, Study notes of Statistics

Toggle sidebar
bg1
Chapter 8: Correlation
Context . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
Association . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
Dependent and independent variables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
Summarizing data on two variables. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
Interpreting r. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
Values for r. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
SD line. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
Computing r. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
1
pf3
pf4

Partial preview of the text

Download Lecture Notes on Correlation - Basic Statistics | STAT 220 and more Study notes Statistics in PDF only on Docsity!

Chapter 8: Correlation

  • Context
  • Association
  • Dependent and independent variables
  • Summarizing data on two variables.
  • Interpreting r
  • Values for r
  • SD line.
  • Computing r

Context

n We looked at data collection:

u controlled experiments (Ch 1) u observational studies (Ch 2) u sampling (Ch 19)

n Then we looked at summarizing data on one variable:

u histogram (Ch 3) u average, median, SD (Ch 4) u normal approximation, percentiles, boxplot (Ch 5)

n Now we will look at summarizing the relationship between two variables. Example: height of fathers and sons. See overhead. 2 / 9

Association

n If there is a strong association between two variables, then knowing one helps a lot in predicting the other.

n If there is a weak association, then knowing one variable does not help much in guessing the other.

n Examples:

u The length and weight of a 2 by 4 - strong association u Height of fathers and sons - medium association u The height of people and the size of their house - weak association 3 / 9

Dependent and independent variables

n Usually we label one variable as independent and one as dependent

n The independent variable is thought to influence the dependent variable

n Example:

u A father’s height influences the son’s height u So the father’s height is the independent variable and the son’s height is the dependent variable.

n This is not a set in stone rule - depends on the research

n Which one to put on which axis?

u The independent variable is put on the horizontal x-axis u The dependent variable is put on the vertical y-axis

n See overhead

4 / 9

SD line

n Points of scatter diagram tend to cluster around the SD line

n The SD line goes through the point of averages

n The SD line goes through all the points that are an equal number of SDs away from the average, for both variables. Example: u If a father is 1 SD above average in height, and his son is 1 SD above average in height, then the point falls on the SD line. u If a father is 1 SD above average in height, and his son is 0.5 SD above average in height, then the point does not fall on the SD line.

n The slope of the SD line is:

u (SD of y)/(SD of x) if the correlation is positive u - (SD of y)/(SD of x) if the correlation is negative 8 / 9

Computing r

n Step 1: Convert the x-values to standard units

n Step 2: Convert the y-values to standard units

n Step 3: For each row in the table, work out the product: (x in standard units) × (y in standard units)

n Step 4: Take the average of the products. That is r.

n Example: see overhead

n Why does this work? See overhead

n What happens to r if we do a change of scale? (adding a number to all entries of the list, or multiplying all entries of the list by a number) 9 / 9