25
STAT 1301 STAT 1301 Chapter 8 Chapter 8 Scatter Plots, Scatter Plots, Correlation Correlation

STAT 1301 Chapter 8 Scatter Plots, Correlation. For Regression Unit You Should Know n How to plot points n Equation of a line Y = mX + b m = slope b =

Embed Size (px)

Citation preview

Page 1: STAT 1301 Chapter 8 Scatter Plots, Correlation. For Regression Unit You Should Know n How to plot points n Equation of a line Y = mX + b m = slope b =

STAT 1301STAT 1301

Chapter 8Chapter 8

Scatter Plots, CorrelationScatter Plots, Correlation

Page 2: STAT 1301 Chapter 8 Scatter Plots, Correlation. For Regression Unit You Should Know n How to plot points n Equation of a line Y = mX + b m = slope b =

For Regression Unit For Regression Unit You Should KnowYou Should Know

How to plot pointsHow to plot points Equation of a lineEquation of a line

Y = mX + bY = mX + b m = slope m = slope b = Y-intercept b = Y-intercept

Plotting line from equationPlotting line from equationY = 3X + 2Y = 3X + 2

Page 3: STAT 1301 Chapter 8 Scatter Plots, Correlation. For Regression Unit You Should Know n How to plot points n Equation of a line Y = mX + b m = slope b =

Data SetData Set

X YX Y

1 51 5

3 93 9

4 74 7

5 15 1

7 137 131 2 3 4 5 6 7 8 1 2 3 4 5 6 7 8

1212

1010

88

66

44

22

00

YY

XX

Page 4: STAT 1301 Chapter 8 Scatter Plots, Correlation. For Regression Unit You Should Know n How to plot points n Equation of a line Y = mX + b m = slope b =

1 2 3 4 5 6 7 8 1 2 3 4 5 6 7 8

1212

1010

88

66

44

22

00

YY

XX

X YX Y

00 2 2

3 11 3 11

Y = 3X + 2Y = 3X + 2

..

..

Page 5: STAT 1301 Chapter 8 Scatter Plots, Correlation. For Regression Unit You Should Know n How to plot points n Equation of a line Y = mX + b m = slope b =

For Regression Unit For Regression Unit You Should KnowYou Should Know

How to plot pointsHow to plot points Equation of a lineEquation of a line

Y = mX + bY = mX + b m = slope m = slope b = b = Y-interceptY-intercept

Plotting line from equationPlotting line from equationY = 3X + 2Y = 3X + 2

Chapter 7 - Good Review if neededChapter 7 - Good Review if needed

Page 6: STAT 1301 Chapter 8 Scatter Plots, Correlation. For Regression Unit You Should Know n How to plot points n Equation of a line Y = mX + b m = slope b =

HistogramHistogram displays distribution of 1 variabledisplays distribution of 1 variable

Scatter DiagramScatter Diagram displays displays joint distribution joint distribution of 2 of 2

variables variables plots data as “points” in theplots data as “points” in the “x-y “x-y

plane.”plane.”

Page 7: STAT 1301 Chapter 8 Scatter Plots, Correlation. For Regression Unit You Should Know n How to plot points n Equation of a line Y = mX + b m = slope b =
Page 8: STAT 1301 Chapter 8 Scatter Plots, Correlation. For Regression Unit You Should Know n How to plot points n Equation of a line Y = mX + b m = slope b =
Page 9: STAT 1301 Chapter 8 Scatter Plots, Correlation. For Regression Unit You Should Know n How to plot points n Equation of a line Y = mX + b m = slope b =

Association Between Two Association Between Two VariablesVariables

• indicates that knowing one helps in predicting the otherindicates that knowing one helps in predicting the other

Linear AssociationLinear Association• our interest in this courseour interest in this course• points “swarm” about a linepoints “swarm” about a line

Correlation AnalysisCorrelation Analysis• measures the strength of measures the strength of linearlinear association association

Page 10: STAT 1301 Chapter 8 Scatter Plots, Correlation. For Regression Unit You Should Know n How to plot points n Equation of a line Y = mX + b m = slope b =

Hypothetical Father-Son DataHypothetical Father-Son Data

Page 11: STAT 1301 Chapter 8 Scatter Plots, Correlation. For Regression Unit You Should Know n How to plot points n Equation of a line Y = mX + b m = slope b =

(association)(association)

Page 12: STAT 1301 Chapter 8 Scatter Plots, Correlation. For Regression Unit You Should Know n How to plot points n Equation of a line Y = mX + b m = slope b =

Regression AnalysisRegression Analysis

we want to predict the we want to predict the dependentdependent variablevariable using the using the independent independent variablevariable

DependentDependentVariableVariable

(Y)(Y)

Independent Variable (X)Independent Variable (X)

Page 13: STAT 1301 Chapter 8 Scatter Plots, Correlation. For Regression Unit You Should Know n How to plot points n Equation of a line Y = mX + b m = slope b =

Correlation CoefficientCorrelation Coefficient- measures linear - measures linear

associationassociation

-1 0 +1-1 0 +1

perfect no perfectperfect no perfect

negative linear positivenegative linear positiverelationship relationship relationshiprelationship relationship relationship

We use the letter “ r ” to denote the correlation We use the letter “ r ” to denote the correlation coefficient.coefficient.

Page 14: STAT 1301 Chapter 8 Scatter Plots, Correlation. For Regression Unit You Should Know n How to plot points n Equation of a line Y = mX + b m = slope b =

Positive CorrelationPositive Correlation - - high values of one variable are associated with- - high values of one variable are associated with

high values of the other high values of the other

Examples:Examples: Father’s height, Father’s height,

son’s heightson’s height daily grade, final daily grade, final

gradegrade r = 0.93 for plot on r = 0.93 for plot on

the leftthe left 1 2 3 4 5 6 7 81 2 3 4 5 6 7 8

33

22

11

00

Page 15: STAT 1301 Chapter 8 Scatter Plots, Correlation. For Regression Unit You Should Know n How to plot points n Equation of a line Y = mX + b m = slope b =
Page 16: STAT 1301 Chapter 8 Scatter Plots, Correlation. For Regression Unit You Should Know n How to plot points n Equation of a line Y = mX + b m = slope b =

Negative CorrelationNegative Correlation - -- - high with low, low with highhigh with low, low with high

Examples:Examples: Car weight, Car weight,

miles per gallonmiles per gallon Days absent, final Days absent, final

gradegrade r = - 0.89 for plot r = - 0.89 for plot

shown hereshown here 1 2 3 4 5 6 71 2 3 4 5 6 7

44

33

22

11

00

Page 17: STAT 1301 Chapter 8 Scatter Plots, Correlation. For Regression Unit You Should Know n How to plot points n Equation of a line Y = mX + b m = slope b =
Page 18: STAT 1301 Chapter 8 Scatter Plots, Correlation. For Regression Unit You Should Know n How to plot points n Equation of a line Y = mX + b m = slope b =

Zero CorrelationZero Correlation - - no linear relationship- - no linear relationship

Examples:Examples: height, IQ scoreheight, IQ score r = 0.0 for plot r = 0.0 for plot

herehere

1 2 3 4 5 6 71 2 3 4 5 6 7

55

44

33

22

11

00

Page 19: STAT 1301 Chapter 8 Scatter Plots, Correlation. For Regression Unit You Should Know n How to plot points n Equation of a line Y = mX + b m = slope b =

-.75, 0, .5, .99-.75, 0, .5, .99

Page 20: STAT 1301 Chapter 8 Scatter Plots, Correlation. For Regression Unit You Should Know n How to plot points n Equation of a line Y = mX + b m = slope b =
Page 21: STAT 1301 Chapter 8 Scatter Plots, Correlation. For Regression Unit You Should Know n How to plot points n Equation of a line Y = mX + b m = slope b =

r = 0.00r = 0.00

Page 22: STAT 1301 Chapter 8 Scatter Plots, Correlation. For Regression Unit You Should Know n How to plot points n Equation of a line Y = mX + b m = slope b =

r = 0.40r = 0.40

Page 23: STAT 1301 Chapter 8 Scatter Plots, Correlation. For Regression Unit You Should Know n How to plot points n Equation of a line Y = mX + b m = slope b =

r = - 0.60r = - 0.60

Page 24: STAT 1301 Chapter 8 Scatter Plots, Correlation. For Regression Unit You Should Know n How to plot points n Equation of a line Y = mX + b m = slope b =

r = 0.8r = 0.8

Page 25: STAT 1301 Chapter 8 Scatter Plots, Correlation. For Regression Unit You Should Know n How to plot points n Equation of a line Y = mX + b m = slope b =

r = 0.95r = 0.95