/
9.2: Scatterplots , Association, and Correlation 9.2: Scatterplots , Association, and Correlation

9.2: Scatterplots , Association, and Correlation - PowerPoint Presentation

test
test . @test
Follow
374 views
Uploaded On 2018-02-03

9.2: Scatterplots , Association, and Correlation - PPT Presentation

Objective To look for relationships between two quantitative variables Scatterplots Scatterplots may be the most common and most effective display for data In a scatterplot you can see patterns trends relationships and even the occasional extraordinary value sitting apart from the o ID: 627728

cont correlation variables association correlation cont association variables scatterplots strength direction linear quantitative variable straight points conditions scatterplot positive coefficient data outlier

Share:

Link:

Embed:

Download Presentation from below link

Download Presentation The PPT/PDF document "9.2: Scatterplots , Association, and Cor..." is the property of its rightful owner. Permission is granted to download and print the materials on this web site for personal, non-commercial use only, and to display it on your personal computer provided you do not modify the materials and that you retain all copyright notices contained in the materials. By downloading content from our website, you accept the terms of this agreement.


Presentation Transcript

Slide1

9.2: Scatterplots, Association, and Correlation

Objective

: To look for relationships between two quantitative variablesSlide2

Scatterplots

Scatterplots

may be the most common and most effective display for data.

In a scatterplot, you can see patterns, trends, relationships, and even the occasional extraordinary value sitting apart from the others.

Scatterplots

are the best way to start observing the relationship and the ideal way to picture

associations

between

two

quantitative

variables

.Slide3

Scatterplots (cont.)When looking at scatterplots, we will look for

direction

,

form

,

strength

, and

unusual features

.

Direction

:

A pattern that runs from the upper left to the lower right is said to have a

negative

direction (just like the graph of a line with a negative slope).

A trend running the other way has a

positive

direction (just like the graph of a line with a positive slope).Slide4

Scatterplots (cont.)

Direction

(cont.)

Can the NOAA predict where a hurricane will go?

The figure shows a

negative direction

and a negative association between the year since 1970 and the and the prediction errors made by NOAA.As the years have passed, the predictions have improved (errors have decreased).Slide5

Scatterplots (cont.)

Form

:

If the relationship isn’t straight, but curves gently, while still increasing or decreasing steadily,

we can often find ways to make it more nearly straight.Slide6

Scatterplots (cont.)

Strength

:

At one extreme, the points appear to follow a single stream

(whether straight, curved, or bending all over the place).Slide7

Scatterplots (cont.)

Strength (cont.)

:

At

the other extreme, the points appear as a vague cloud with no discernible trend or pattern:

Note

: we will quantify the amount of scatter soon.Slide8

Roles of Variables

It is important to determine which of the two quantitative variables goes on the

x

-axis and which on the

y

-axis.

This

determination is made based on the roles played by the variables.When the roles are clear, the explanatory or predictor variable goes on the x

-axis, and the

response

variable

(variable of interest) goes on the

y

-axis.Slide9

Discussion

What do you expect the scatterplot to look like? Remember direction, form, strength, and unusual features.

1. Drug dosage and degree of pain relief

2

. Calories consumed and weight lossSlide10

CorrelationData collected from students in Statistics classes included their heights (in inches) and weights (in pounds):

Here

we see

positive

association

and

a fairly

straight form, there seems to a high outlier.

OutlierSlide11

Correlation (cont.)

How strong is the association between weight and height of Statistics students?

If we had to put a number on the strength, we would not want it to depend on the units we used.

A scatterplot of

heights (

in centimeters)

and weights

(in kilograms) doesn’t change the shape of the pattern:Slide12

Correlation (cont.)Slide13

Correlation (cont.)Note that the underlying linear pattern seems steeper in the standardized plot than in the original scatterplot.

That’s because we made the scales of the axes the same.

Equal scaling gives a neutral way of drawing the scatterplot and a fairer impression of the strength of the associationSlide14

Correlation (cont.)

The points in the upper right and lower left (those in green)

strengthen the impression of a positive association

between height and weight.

The points in the upper left and lower right where

z

x

and

z

y

have opposite signs (those in red)

tend to weaken the positive association.

Points with

z

-scores of zero

(those in blue)

don’t vote either way

, because their product is zero.Slide15

Correlation (cont.)The

correlation coefficient (

r

)

gives us a numerical measurement of the strength of the linear relationship between the explanatory and response variables. Slide16

Correlation Coefficient (r)Calculating this by hand can be time consuming and redundant. Below are the steps to calculating it with the use of a calculator:

Make

sure your diagnostics are ON (2

nd

 Catalog, scroll to Diagnostics ON  Enter

)

Store your values into L1 and L2 (x and y respectively)Stat  Calc  8: LinReg(a+bx)Before

pressing Enter, define the lists: L1, L2  EnterSlide17

Day 2Slide18

Correlation Conditions

Correlation

measures the strength of the

linear

association between two

quantitative

variables. Before you use correlation, you must check several conditions:Quantitative Variables ConditionStraight Enough ConditionOutlier ConditionSlide19

Correlation Conditions (cont.)

Quantitative Variables Condition

:

Correlation

applies only to quantitative variables.

Don’t

apply correlation to categorical data camouflaged as quantitative (zip codes, ID #s, area codes, etc.).

Check that you know the variables’ units and what they measure.Slide20

Correlation Conditions (cont.)

Straight Enough Condition

:

You can

calculate

a correlation coefficient for any pair of variables.

But

correlation measures the strength only of the linear association, and will be misleading if the relationship is not linear.Slide21

Correlation Conditions (cont.)

Outlier Condition

:

Outliers can distort the correlation dramatically.

An

outlier can make an otherwise small correlation look big or hide a large correlation.

It

can even give an otherwise positive association a negative correlation coefficient (and vice versa).

When

you see an outlier, it’s often a good idea to report the correlations with and without the point.Slide22

Correlation Properties

The

sign of a correlation coefficient

gives the

direction of the association

.

Correlation

is always between –1 and +1. Correlation can be exactly equal to –1 or +1, but these values are unusual in real data because they mean that all the data points fall exactly on a single straight line.A correlation near zero corresponds to a weak linear association.Slide23

Correlation Properties (cont.)

Correlation treats

x

and

y

symmetrically:

The

correlation of x with y is the same as the correlation of y with x.Correlation has no units.Correlation is not affected by changes in the center or scale of either variable.

Correlation

depends only on the

z

-scores, and they are unaffected by changes in center or scale.Slide24

Correlation Properties (cont.)

Correlation measures the strength of the

linear

association between the two variables.

Variables

can have a strong association but still have a small correlation

if the association isn’t linear

.Correlation is sensitive to outliers. A single outlying value can make a small correlation large or make a large one small.Slide25

Correlation ≠ CausationWhenever we have a strong correlation, it is tempting to explain it by imagining that the predictor variable has

caused

the response to help.

Scatterplots

and correlation coefficients

never

prove causation.

A hidden variable that stands behind a relationship and determines it by simultaneously affecting the other two variables is called a lurking variable.Slide26

Correlation Tables

It is common in some fields to compute the correlations between each pair of variables in a collection of variables and arrange these correlations in a table. Slide27

Finding Correlation ExampleSketch a

scatterplot of the following

information. Discuss the direction, form, and strength of the association. If the data meet the appropriate conditions, find the correlation coefficient (r).

Bill ($)

33.46

50.68

87.92

98.84

63.3

107.34

Tip ($)

5.5

5

8.08

17

12

16Slide28

Finding Correlation Example (cont.)Slide29

Assignments

Day 1:

9.2 Problem Set Online

# 1, 2, 5, 6, 8

Day 2:

9.2 Problem Set

Online

# 11, 12, 16, 25, 34, 35 – 37