Docsity

Elementary Statistics: Understanding Correlation between Two Quantitative Variables - Prof, Study notes of Data Analysis & Statistical Methods

Toggle sidebar
bg1
(C) 2007 Nancy Pfenning
Elementary Statistics: Looking at the Big Picture 1
(C) 2007 Nancy Pfenning Elementary Statistics: Looking at the Big Picture
Lecture 11
Relationships between Two
Quantitative Variables; Correlation
Display and Summarize
Correlation for Direction and Strength
Properties of Correlation
Regression Line
(C) 2007 Nancy Pfenning Elementary Statistics: Looking at the Big Picture L11.2
Looking Back: Review
4 Stages of Statistics
Data Production (discussed in Lectures 1-4)
Displaying and Summarizing
Single variables: 1 cat,1 q uan (discussed Lectures 5-8)
Relationships between 2 variables:
Categorical and quantitative (d iscussed in Lecture 9)
Two categorical (discussed in Lecture 10)
Two quantitative
Probability
Statistical Inference
(C) 2007 Nancy Pfenning Elementary Statistics: Looking at the Big Picture L11.3
Review
Single quantitative variables
Display with histogram
Summarize with mean and standard deviation
(C) 2007 Nancy Pfenning Elementary Statistics: Looking at the Big Picture L11.4
Example: Two Single Quantitative Variables
Background: Data on male students’ heights and
weights:
Question: What do these tell us about the
relationship between male height and weight?
pf3
pf4
pf5
pf8
pf9
pfa

Partial preview of the text

Download Elementary Statistics: Understanding Correlation between Two Quantitative Variables - Prof and more Study notes Data Analysis & Statistical Methods in PDF only on Docsity!

(C) 2007 Nancy Pfenning Elementary Statistics: Looking at the Big Picture

Lecture 11

Relationships between Two

Quantitative Variables; Correlation

Display and Summarize Correlation for Direction and Strength Properties of Correlation Regression Line (C) 2007 Nancy Pfenning Elementary Statistics: Looking at the Big Picture L11. 2

Looking Back: Review

 4 Stages of Statistics

 Data Production (discussed in Lectures 1-4)  Displaying and Summarizing  Single variables: 1 cat,1 quan (discussed Lectures 5-8)  Relationships between 2 variables:  Categorical and quantitative (discussed in Lecture 9)  Two categorical (discussed in Lecture 10)  Two quantitative  Probability  Statistical Inference (C) 2007 Nancy Pfenning Elementary Statistics: Looking at the Big Picture L11. 3

Review

 Single quantitative variables

 Display with histogram  Summarize with mean and standard deviation (C) 2007 Nancy Pfenning Elementary Statistics: Looking at the Big Picture L11. 4

Example: Two Single Quantitative Variables

Background : Data on male students’ heights and weights:  Question: What do these tell us about the relationship between male height and weight?

(C) 2007 Nancy Pfenning Elementary Statistics: Looking at the Big Picture L11. 6

Example: Two Single Quantitative Variables

Background : Data on male students’ heights and weights:  Response: (C) 2007 Nancy Pfenning Elementary Statistics: Looking at the Big Picture L11. 7 Definition

 Scatterplot displays relationship between 2

quantitative variables:

 Explanatory variable ( x ) on horizontal axis  Response variable ( y ) on vertical axis (C) 2007 Nancy Pfenning Elementary Statistics: Looking at the Big Picture L11. 8 Example: Explanatory/Response Roles

 Background : We’re interested in the

relationship between male students’ heights

and weights.

 Question: Which variable should be graphed

along the horizontal axis of the scatterplot?

(C) 2007 Nancy Pfenning Elementary Statistics: Looking at the Big Picture L11. 10 Example: Explanatory/Response Roles

 Background : We’re interested in the

relationship between male students’ heights

and weights.

 Response:

(C) 2007 Nancy Pfenning Elementary Statistics: Looking at the Big Picture L11. 16

Example: Relative Strengths

Background : Scatterplots display:  mothers’ ht. vs. fathers’ ht. (left)  males’ wt. vs. ht. (middle)  mothers’ age vs. fathers’ age (right):  Question: How do relationships’ strengths compare? (Which is strongest, which is weakest?) (C) 2007 Nancy Pfenning Elementary Statistics: Looking at the Big Picture L11. 18

Example: Relative Strengths

Background : Scatterplots display:  mothers’ ht. vs. fathers’ ht. (left)  males’ wt. vs. ht. (middle)  mothers’ age vs. fathers’ age (right):  Response:  Strongest is plot on _____  Weakest is plot on ______ (C) 2007 Nancy Pfenning Elementary Statistics: Looking at the Big Picture L11. 19

Example: Negative Relationship

Background : Scatterplot displays price vs. age for 14 used Pontiac Grand Am’s.  Questions:  Why should we expect the relationship to be negative?  Does it appear linear? Is it weak or strong? (C) 2007 Nancy Pfenning Elementary Statistics: Looking at the Big Picture L11. 21

Example: Negative Relationship

Background : Scatterplot displays price vs. age for 14 used Pontiac Grand Am’s.  Responses:  

(C) 2007 Nancy Pfenning Elementary Statistics: Looking at the Big Picture L11. 22 Definition

 Correlation r : tells direction and strength of

linear relation between 2 quantitative variables

Direction: r is  positive for positive relationship  negative for negative relationship  zero for no relationship  Strength: r is between -1 and +1; it is  close to 1 in absolute value for strong relationship  close to 0 in absolute value for weak relationship  close to 0.5 in absolute value for moderate relationship (C) 2007 Nancy Pfenning Elementary Statistics: Looking at the Big Picture L11. 23

Example: Extreme Values of Correlation

Background : Scatterplots show relationships…  Price per kilogram vs. price per pound for groceries  Used cars’ age vs. year made  Students’ final exam score vs. (number) order handed in  Question: Which has r = -1? r = 0? r = +1? 2000 2005 2010 (C) 2007 Nancy Pfenning Elementary Statistics: Looking at the Big Picture L11. 25

Example: Extreme Values of Correlation

Background : Scatterplots show relationships…  Response:  Price per kilogram vs. price per pound:  Used cars’ age vs. year made:  Students’ final exam score vs. order handed in: (For this class, order tells us nothing about final score.) (C) 2007 Nancy Pfenning Elementary Statistics: Looking at the Big Picture L11. 26

Example: Other Values of r

Background : Scatterplots display:  mothers’ ht. vs. fathers’ ht. (left)  males’ wt. vs. ht. (middle)  mothers’ age vs. fathers’ age (right):  Question: Which graphs go with which correlation: r = 0.23, r = 0.78, r = 0.65?

(C) 2007 Nancy Pfenning Elementary Statistics: Looking at the Big Picture L11. 33

Example: Correlation when Roles are Switched

Background : For male students plot: weight vs. height (left) or height vs. weight (right):  Questions:  How do directions and strengths compare, left vs. right?  How do correlations r compare, left vs. right? (C) 2007 Nancy Pfenning Elementary Statistics: Looking at the Big Picture L11. 35

Example: Correlation when Roles are Switched

Background : For male students plot: weight vs. height (left) or height vs. weight (right):  Responses:   (C) 2007 Nancy Pfenning Elementary Statistics: Looking at the Big Picture L11. 36 More about Correlation r

 Tells direction and strength of linear relation

between 2 quantitative variables

 A strong curved relationship may have r close to 0  Correlation not appropriate for categorical data

 Unaffected by roles explanatory/response

 Unaffected by change of units

 Overstates strength if based on averages

(C) 2007 Nancy Pfenning Elementary Statistics: Looking at the Big Picture L11. 37

Example: Correlation when Units are Changed

Background : For male students plot… Left: wt (lbs) vs. ht (in) or Right: wt (kg) vs. ht (cm)  Questions:  How do directions and strengths compare, left vs. right?  How do correlations r compare, left vs. right?

(C) 2007 Nancy Pfenning Elementary Statistics: Looking at the Big Picture L11. 39

Example: Correlation when Units are Changed

Background : For male students plot… Left: wt (lbs) vs. ht (in) or Right: wt (kg) vs. ht (cm)  Responses:   (C) 2007 Nancy Pfenning Elementary Statistics: Looking at the Big Picture L11. 40 More about Correlation r

 Tells direction and strength of linear relation

between 2 quantitative variables

 A strong curved relationship may have r close to 0  Correlation not appropriate for categorical data

 Unaffected by roles explanatory/response

 Unaffected by change of units

 Overstates strength if based on averages

(C) 2007 Nancy Pfenning Elementary Statistics: Looking at the Big Picture L11. 41

Example: Correlation Based on Averages

Background : For male students plot… Left: wt. vs. ht. or Right: average wt. vs. ht.  Question: Which one has r = +0.87? (other r =+0.65) (C) 2007 Nancy Pfenning Elementary Statistics: Looking at the Big Picture L11. 43

Example: Correlation Based on Averages

Background : For male students plot… Left: wt. vs. ht. or Right: average wt. vs. ht.  Response: Plot on _______has r = +0.87 (stronger).

(C) 2007 Nancy Pfenning Elementary Statistics: Looking at the Big Picture L11. 48 Least Squares Regression Line

 Response:

2. Find line that makes best predictions:

Minimize sum of squared residuals

(prediction errors). Resulting line called

least squares line or regression line.

A Closer Look: The mathematician Sir Francis Galton called it the “regression” line because of the “regression to mediocrity” seen in any imperfect relationship: besides responding to x, we see y tending towards its average value. (C) 2007 Nancy Pfenning Elementary Statistics: Looking at the Big Picture L11. 49 Least Squares Regression Line

If form appears linear, then we picture points

clustered around a straight line.

 Questions:

1. Is there only one “best” line?

2. If so, how can we find it? Minimize errors

3. If found, how can we use it? Predictions

 Response:

1. Methods of calculusunique “best” line

(C) 2007 Nancy Pfenning Elementary Statistics: Looking at the Big Picture L11. 50 Least Squares Regression Line

If form appears linear, then we picture points

clustered around a straight line.

 Questions:

1. Is there only one “best” line?

2. If so, how can we find it?

3. If found, how can we use it?

 Response:

1. “Best” line has

(C) 2007 Nancy Pfenning Elementary Statistics: Looking at the Big Picture L11. 51

Example: Least Squares Regression Line

Background : Car-buyer wants to know if $4000 is fair price for 8-yr-old Grand Am; uses software to regress price on age for 14 used Grand Am’s:  Question: How can she use the line?

(C) 2007 Nancy Pfenning Elementary Statistics: Looking at the Big Picture L11. 53

Example: Least Squares Regression Line

Background : Car-buyer wants to know if $4000 is fair price for 8-yr-old Grand Am; uses software to regress price on age for 14 used Grand Am’s:  Response: Predict for x =8, =_______ (C) 2007 Nancy Pfenning Elementary Statistics: Looking at the Big Picture L6. 54

Lecture Summary

(Quantitative Relationships; Correlation)

 Display with scatterplot  Summarize with form, direction, strength  Correlation r tells direction and strength  Properties of r  Unaffected by explanatory/response roles  Unaffected by change of units  Overstates strength if based on averages  Least squares regression line for predictions