31
Chapter 2 Examining Relationships

Chapter 2 Examining Relationships

  • Upload
    freira

  • View
    83

  • Download
    0

Embed Size (px)

DESCRIPTION

Chapter 2 Examining Relationships . Response variable measures outcome of a study (dependent variable) Explanatory variable explains or influences changes in response variable (independent) Practice: pg 81 #2.1, 2.2. 2.1 Scatterplots. Scatterplot. - PowerPoint PPT Presentation

Citation preview

Page 1: Chapter 2   Examining Relationships

Chapter 2 Examining Relationships

Page 2: Chapter 2   Examining Relationships

Response variable measures outcome of a study (dependent variable)

Explanatory variable explains or influences changes in response variable (independent)

Practice: pg 81 #2.1, 2.2

Page 3: Chapter 2   Examining Relationships

2.1 Scatterplots

Page 4: Chapter 2   Examining Relationships

Scatterplot

shows relationship between two quantitative variables measured on the same individuals

most common way to display relation between two variables

Example using calculator: pg 83 #2.4 powerboats vs. manatees killed

Page 5: Chapter 2   Examining Relationships

Examining a scatterplot

Look for overall pattern and deviations from the pattern

Describe overall shape by the form, direction, and strength of the relationship

Look for outliers

Page 6: Chapter 2   Examining Relationships

Clusters

Page 7: Chapter 2   Examining Relationships

Look for: positively and negatively associated strength is determined by how closely

the points follow a clear form (use strong or weak)

Page 8: Chapter 2   Examining Relationships

Adding categorical variables to scatterplots use different colors or symbols to plot points

Practice: pg. 89 #2.7

Page 9: Chapter 2   Examining Relationships

Section 2.1 practice problems: pg 91 #2.8, 9, 10, 11

Page 10: Chapter 2   Examining Relationships

2.2 Correlation

Page 11: Chapter 2   Examining Relationships

Correlation

A linear relationship is strong if the points lie close to a straight line. Our eyes are not good judges of strength of linear relationship

measures the direction and strength of the linear relationship between two quantitative variables

equation: to calculate on calculator: calculate with

manatees

))((11

yx syy

sxx

nr

Page 12: Chapter 2   Examining Relationships

Correlation r is the average product of z-scores r is positive when there is a positive

association r requires that both variables be

quantitative r has no unit of measure its just a

number

Page 13: Chapter 2   Examining Relationships
Page 14: Chapter 2   Examining Relationships

r is strongly affected by outliers r is used along with the mean and

standard deviation to describe two-variable data

Page 15: Chapter 2   Examining Relationships

Section 2.2 practice problems pg 103 2.21, 24, 29

Page 16: Chapter 2   Examining Relationships

2.3 Least-Squares Regression

Page 17: Chapter 2   Examining Relationships

least-squares regression line

regression line is a straight line that describes how a response variable (y) changes as an explanatory variable (x) (best fit line)

standard line that doesn’t depend on our guess as to where the line should go

Page 18: Chapter 2   Examining Relationships

line that makes the sum of the squares of the vertical distances of the data points from the line as small as possible

to calculate the equation of regression line with calculator:

Page 19: Chapter 2   Examining Relationships

Facts about least-squares regression

the least-squares regression looks at distance from y to line (not x) so you cannot switch the x and y variables and get the same line

the least-squares regression line always passes through the point (x,y)

the square of the correlation is the proportion of data accounted for by the least-square regression line when you report a regression, give r2 as a measure

of how successful the regression was in explaining the response

Practice problems: pg 114 #2.33, 34

Page 20: Chapter 2   Examining Relationships

Residuals the difference between an observed value of

the response variable and the value predicted by the regression line (y-ŷ)

to calculate residuals on calculator: examining residuals helps assess how well the

line describes the data the mean of the residuals is always zero residual plot is a scatterplot of the regression

residuals against the explanatory variable to help assess the fit of a regression line

Make residual plot of manatees data

Page 21: Chapter 2   Examining Relationships

Things to look for in residual plot

1. Curved pattern – shows relationship is not linear

2. Increasing or decreasing spread – prediction of y when x is large will be less accurate

3. Individual points with large residuals – these points are outliers

4. Individual points that are extreme in the x direction

Page 22: Chapter 2   Examining Relationships
Page 23: Chapter 2   Examining Relationships

Consider the following data on x=height (in inches) and y=average weight (in pounds) for American females, age 30-39

X 58 59 60 61 62 63 64 65 66 67 Y 113 115 118 121 124 128 131 134 137 141

X 68 69 70 71 72 Y 145 150 153 159 164

Make scatterplot. Is the data linear? Plot residual plot.

Page 24: Chapter 2   Examining Relationships
Page 25: Chapter 2   Examining Relationships

Practice: pg 122 #2.36, 37Section 2.3 practice: pg 124 # 2.42, 44, 45, 47, 48

Page 26: Chapter 2   Examining Relationships

2.4 Cautions about Correlation and Regression

Page 27: Chapter 2   Examining Relationships

Extrapolation

use of a regression line for prediction far outside the range of values of the explanatory variable (x) that you used to obtain the line

often is not accurate

Page 28: Chapter 2   Examining Relationships

Using averaged data

average temp, average, salary, average age, etc.

do not apply results to individuals correlations based on averages are

usually too high when applied to individuals

Page 29: Chapter 2   Examining Relationships

Lurking variables

sometimes the relationship between two variables is influenced by other variables that were not measured or even thought about

Page 30: Chapter 2   Examining Relationships

Association is not causation

a strong association does not necessarily mean that x causes y

example: manatee deaths vs powerboat registrations

Page 31: Chapter 2   Examining Relationships

Section 2.4 practice: pg 136 2.57, 58, 59