PS 225 Lecture 17 Correlation Line Review. Scatterplot (Scattergram) X: Independent Variable Y:...

22
PS 225 Lecture 17 Correlation Line Review

Transcript of PS 225 Lecture 17 Correlation Line Review. Scatterplot (Scattergram) X: Independent Variable Y:...

Page 1: PS 225 Lecture 17 Correlation Line Review. Scatterplot (Scattergram)  X: Independent Variable  Y: Dependent Variable  Plot X,Y Pairs Length (in)Weight.

PS 225Lecture 17

Correlation

Line Review

Page 2: PS 225 Lecture 17 Correlation Line Review. Scatterplot (Scattergram)  X: Independent Variable  Y: Dependent Variable  Plot X,Y Pairs Length (in)Weight.

Scatterplot (Scattergram)

X: Independent Variable Y: Dependent Variable Plot X,Y Pairs

Length (in) Weight (oz)

18 22

19 26

22 25

23 23

20 22

19 21

Page 3: PS 225 Lecture 17 Correlation Line Review. Scatterplot (Scattergram)  X: Independent Variable  Y: Dependent Variable  Plot X,Y Pairs Length (in)Weight.

Relationships

Page 4: PS 225 Lecture 17 Correlation Line Review. Scatterplot (Scattergram)  X: Independent Variable  Y: Dependent Variable  Plot X,Y Pairs Length (in)Weight.

Relationships

Page 5: PS 225 Lecture 17 Correlation Line Review. Scatterplot (Scattergram)  X: Independent Variable  Y: Dependent Variable  Plot X,Y Pairs Length (in)Weight.

Relationships

Page 6: PS 225 Lecture 17 Correlation Line Review. Scatterplot (Scattergram)  X: Independent Variable  Y: Dependent Variable  Plot X,Y Pairs Length (in)Weight.

General Linear Relationship

Page 7: PS 225 Lecture 17 Correlation Line Review. Scatterplot (Scattergram)  X: Independent Variable  Y: Dependent Variable  Plot X,Y Pairs Length (in)Weight.

Correlation Coefficient

R Measure of the strength of a linear relationship Sign denotes the direction of the relationship Absolute value denotes the strength of the

relationship Close to 1, strong Close to zero, weak

What if the mean of a variable is dependent on the value of another variable? Is it dependent? How much is it dependent? How can we express the dependence algebraically?

Page 8: PS 225 Lecture 17 Correlation Line Review. Scatterplot (Scattergram)  X: Independent Variable  Y: Dependent Variable  Plot X,Y Pairs Length (in)Weight.

Scatterplots with Positively Correlated Data

As x increases, y increases The correlation coefficient, r, is positive

Page 9: PS 225 Lecture 17 Correlation Line Review. Scatterplot (Scattergram)  X: Independent Variable  Y: Dependent Variable  Plot X,Y Pairs Length (in)Weight.

Scatterplots with Negatively Correlated Data

As x increases, y decreases The correlation coefficient, r, is negative

Page 10: PS 225 Lecture 17 Correlation Line Review. Scatterplot (Scattergram)  X: Independent Variable  Y: Dependent Variable  Plot X,Y Pairs Length (in)Weight.

Scatterplots with Non-Linearly Correlated Data

Page 11: PS 225 Lecture 17 Correlation Line Review. Scatterplot (Scattergram)  X: Independent Variable  Y: Dependent Variable  Plot X,Y Pairs Length (in)Weight.

Values of r

R is between -1 and 1 -1 is negatively correlated 1 is positively correlated 0 is not correlated

Page 12: PS 225 Lecture 17 Correlation Line Review. Scatterplot (Scattergram)  X: Independent Variable  Y: Dependent Variable  Plot X,Y Pairs Length (in)Weight.

Hypothesis

Ho: No linear relationship between x and y variables

Ha: There is a linear relationship between x and y variables

Page 13: PS 225 Lecture 17 Correlation Line Review. Scatterplot (Scattergram)  X: Independent Variable  Y: Dependent Variable  Plot X,Y Pairs Length (in)Weight.

Scatterplot Age Wed vs. # of Children

Page 14: PS 225 Lecture 17 Correlation Line Review. Scatterplot (Scattergram)  X: Independent Variable  Y: Dependent Variable  Plot X,Y Pairs Length (in)Weight.

SPSS Correlation

Page 15: PS 225 Lecture 17 Correlation Line Review. Scatterplot (Scattergram)  X: Independent Variable  Y: Dependent Variable  Plot X,Y Pairs Length (in)Weight.

Definition

r2

Coefficient of determinationis the proportion of the variation in y thatis explained by the linear relationship.

Page 16: PS 225 Lecture 17 Correlation Line Review. Scatterplot (Scattergram)  X: Independent Variable  Y: Dependent Variable  Plot X,Y Pairs Length (in)Weight.
Page 17: PS 225 Lecture 17 Correlation Line Review. Scatterplot (Scattergram)  X: Independent Variable  Y: Dependent Variable  Plot X,Y Pairs Length (in)Weight.
Page 18: PS 225 Lecture 17 Correlation Line Review. Scatterplot (Scattergram)  X: Independent Variable  Y: Dependent Variable  Plot X,Y Pairs Length (in)Weight.

Measuring Correlation with SPSS Output

Page 19: PS 225 Lecture 17 Correlation Line Review. Scatterplot (Scattergram)  X: Independent Variable  Y: Dependent Variable  Plot X,Y Pairs Length (in)Weight.

Adding Regression Line

Page 20: PS 225 Lecture 17 Correlation Line Review. Scatterplot (Scattergram)  X: Independent Variable  Y: Dependent Variable  Plot X,Y Pairs Length (in)Weight.

Equation for a Line

y=mx+b M is slope

“rise over run” Ratio of increase in y-coordinate and

increase in x-coordinate B is y-intercept

Value of y where the line crosses the y-axis

X has a value of zero at that point

Page 21: PS 225 Lecture 17 Correlation Line Review. Scatterplot (Scattergram)  X: Independent Variable  Y: Dependent Variable  Plot X,Y Pairs Length (in)Weight.

Example

Label the x and y axis Graph the point (2,2) Graph the line y = 2x + 1

If x is 3, what is the value of y?

Page 22: PS 225 Lecture 17 Correlation Line Review. Scatterplot (Scattergram)  X: Independent Variable  Y: Dependent Variable  Plot X,Y Pairs Length (in)Weight.

SPSS Assignment

Does the number of years of education an individual has affect the hours of television a person watches?

Does age affect the hours of television a person watches?

How might the above relationships impact the results of Putnam’s study?