1 es9 chapters 4 ~ scatterplots & correlation. 2 es9 chapter goals to be able to present...

16
1 ES9 50 40 30 20 10 60 50 40 30 20 10 Weight Height Regression Plot Y = 2.31464 + 1.28722X r = 0.559 Chapters 4 ~ Scatterplots & Correlation

Upload: lorraine-roberts

Post on 06-Jan-2018

227 views

Category:

Documents


1 download

DESCRIPTION

3 ES9 Three combinations of variable types: 1.Both variables are qualitative (attribute) 2.One variable is qualitative (attribute) and the other is quantitative (numerical) 3.Both variables are quantitative (both numerical) Bivariate Data Bivariate Data: Consists of the values of two different response variables that are obtained from the same population of interest

TRANSCRIPT

Page 1: 1 ES9 Chapters 4 ~ Scatterplots & Correlation. 2 ES9 Chapter Goals To be able to present bivariate data in tabular and graphic form To gain an understanding

1

ES9

5040302010

60

50

40

30

20

10

Weight

Height

Regression PlotY = 2.31464 + 1.28722X

r = 0.559

Chapters 4 ~ Scatterplots & Correlation

Page 2: 1 ES9 Chapters 4 ~ Scatterplots & Correlation. 2 ES9 Chapter Goals To be able to present bivariate data in tabular and graphic form To gain an understanding

2

ES9 Chapter Goals

• To be able to present bivariate data in tabular and graphic form

• To gain an understanding of the distinction between the basic purposes of correlation analysis and regression analysis

• To become familiar with the ideas of descriptive presentation

Page 3: 1 ES9 Chapters 4 ~ Scatterplots & Correlation. 2 ES9 Chapter Goals To be able to present bivariate data in tabular and graphic form To gain an understanding

3

ES9

Three combinations of variable types:

1. Both variables are qualitative (attribute)

2. One variable is qualitative (attribute) and the other is quantitative (numerical)

3. Both variables are quantitative (both numerical)

Bivariate DataBivariate Data: Consists of the values of two different response variables that are obtained from the same population of interest

Page 4: 1 ES9 Chapters 4 ~ Scatterplots & Correlation. 2 ES9 Chapter Goals To be able to present bivariate data in tabular and graphic form To gain an understanding

4

ES9 Two Quantitative Variables1. Expressed as ordered pairs: (x, y)2. x: input variable, independent variable

y: output variable, dependent variable

Scatter Diagram: A plot of all the ordered pairs of bivariate data on a coordinate axis system. The input variable x is plotted on the horizontal axis, and the output variable y is plotted on the vertical axis.

Note: Use scales so that the range of the y-values is equal to or slightly less than the range of the x-values. This creates a window that is approximately square.

Page 5: 1 ES9 Chapters 4 ~ Scatterplots & Correlation. 2 ES9 Chapter Goals To be able to present bivariate data in tabular and graphic form To gain an understanding

5

ES9

Example: In a study involving children’s fear related to being hospitalized, the age and the score each child made

on the Child Medical Fear Scale (CMFS) are given in the table below:

Age (x ) 8 9 9 10 11 9 8 9 8 11CMFS (y ) 31 25 40 27 35 29 25 34 44 19

Age (x ) 7 6 6 8 9 12 15 13 10 10CMFS (y ) 28 47 42 37 35 16 12 23 26 36

Example

Construct a scatter diagram for this data

Page 6: 1 ES9 Chapters 4 ~ Scatterplots & Correlation. 2 ES9 Chapter Goals To be able to present bivariate data in tabular and graphic form To gain an understanding

6

ES9

• age = input variable, CMFS = output variable

Solution

Child Medical Fear Scale

1514131211109876

50

40

30

20

10

CMFS

Age

Page 7: 1 ES9 Chapters 4 ~ Scatterplots & Correlation. 2 ES9 Chapter Goals To be able to present bivariate data in tabular and graphic form To gain an understanding

7

ES9 Linear Correlation• Measures the strength of a linear relationship

between two variables

– As x increases, no definite shift in y: no correlation

– As x increases, a definite shift in y: correlation

– Positive correlation: x increases, y increases

– Negative correlation: x increases, y decreases

– If the ordered pairs follow a straight-line path: linear correlation

Page 8: 1 ES9 Chapters 4 ~ Scatterplots & Correlation. 2 ES9 Chapter Goals To be able to present bivariate data in tabular and graphic form To gain an understanding

8

ES9

• As x increases, there is no definite shift in y:

Example: No Correlation

302010

55

45

35

Output

Input

Page 9: 1 ES9 Chapters 4 ~ Scatterplots & Correlation. 2 ES9 Chapter Goals To be able to present bivariate data in tabular and graphic form To gain an understanding

9

ES9

• As x increases, y also increases:

Example: Positive Correlation

55504540353025201510

60

50

40

30

20

Output

Input

Page 10: 1 ES9 Chapters 4 ~ Scatterplots & Correlation. 2 ES9 Chapter Goals To be able to present bivariate data in tabular and graphic form To gain an understanding

10

ES9

• As x increases, y decreases:

Example: Negative Correlation

Output

Input

55504540353025201510

95

85

75

65

55

Page 11: 1 ES9 Chapters 4 ~ Scatterplots & Correlation. 2 ES9 Chapter Goals To be able to present bivariate data in tabular and graphic form To gain an understanding

11

ES9 Please Note Perfect positive correlation: all the points lie along a line

with positive slope

Perfect negative correlation: all the points lie along a line with negative slope

If the points lie along a horizontal or vertical line: no correlation

If the points exhibit some other nonlinear pattern: no linear relationship, no correlation

Need some way to measure correlation

Page 12: 1 ES9 Chapters 4 ~ Scatterplots & Correlation. 2 ES9 Chapter Goals To be able to present bivariate data in tabular and graphic form To gain an understanding

12

ES9 Bivariate DataCoefficient of Linear Correlation: r, measures the strength of the linear relationship between two variables

rx x y yn s sx y

( )( )( )1

Pearson’s Product Moment Formula:

1 1r

Notes: r = +1: perfect positive correlation r = -1 : perfect negative correlation

Page 13: 1 ES9 Chapters 4 ~ Scatterplots & Correlation. 2 ES9 Chapter Goals To be able to present bivariate data in tabular and graphic form To gain an understanding

13

ES9 Alternate Formula for r

SS “sum of squ ares for ( )x x” x

xn

22

SS “sum of squ ares for ( )y y” y

yn

22

SS “sum of squares for ( )xy xy” xyx yn

r xyx y

SSSS SS

( )( ) ( )

Page 14: 1 ES9 Chapters 4 ~ Scatterplots & Correlation. 2 ES9 Chapter Goals To be able to present bivariate data in tabular and graphic form To gain an understanding

14

ES9

Example: The table below presents the weight (in thousands of pounds) x and the gasoline mileage (miles per gallon) y for ten different automobiles. Find the linear

correlation coefficient:

Example

x y x2 y2 xy

x y x2 y2 xy

Page 15: 1 ES9 Chapters 4 ~ Scatterplots & Correlation. 2 ES9 Chapter Goals To be able to present bivariate data in tabular and graphic form To gain an understanding

15

ES9 Completing the Calculation for r

SS( ) ( ) .y y

yn

22 2

10665 30910

1116 9

SS( ) . ( . )( ) .xy xyx yn

1010 9 34 1 30910

42 79

r xyx y

SSSS SS

( )( ) ( )

.( . )( . )

0.42 797 449 1116 9

47

SS( ) . ( . ) .x x

xn

22 2

123 73 34 110

7 449

Page 16: 1 ES9 Chapters 4 ~ Scatterplots & Correlation. 2 ES9 Chapter Goals To be able to present bivariate data in tabular and graphic form To gain an understanding

16

ES9 Please Note r is usually rounded to the nearest hundredth

r close to 0: little or no linear correlation

As the magnitude of r increases, towards -1 or +1, there is an increasingly stronger linear correlation between

the two variables

Method of estimating r based on the scatter diagram. Window should be approximately square. Useful for checking calculations.