Docsity

Exploring Associations: Contingency Tables, Correlation, and Regression - Prof. Rickie Dom, Study notes of Statistics

Toggle sidebar
bg1
Chapter 3
Association: Contingency,
Correlation, and Regression
3.0 Introduction
•Goal of Chapter: Examine the ‘association’ or re-
lationship between two variables, one usually called
response variable and the other explanatory vari-
able
•Examples:
–Is Expected Grade in Math 220 associated with
math grades earned in high school?
–Is Number of Pairs of Shoes Owned associated
with or related to gender?
•Definitions, page 90. The response variable is the
outcome variable on which comparisons are made.
The explanatory variable defines the groups to
be compared with respect to values on the response
variable.
•Definition, page 90. An association exists between
two variables if a particular value for one variable is
1
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d

Partial preview of the text

Download Exploring Associations: Contingency Tables, Correlation, and Regression - Prof. Rickie Dom and more Study notes Statistics in PDF only on Docsity!

Chapter 3

Association: Contingency,

Correlation, and Regression

3.0 Introduction

  • Goal of Chapter: Examine the ‘association’ or re- lationship between two variables, one usually called response variable and the other explanatory vari- able
  • Examples:
    • Is Expected Grade in Math 220 associated with math grades earned in high school?
    • Is Number of Pairs of Shoes Owned associated with or related to gender?
  • Definitions, page 90. The response variable is the outcome variable on which comparisons are made. The explanatory variable defines the groups to be compared with respect to values on the response variable.
  • Definition, page 90. An association exists between two variables if a particular value for one variable is 1

more likely to occur with certain values of the other variable

3.1 How We Explore the Association between Two Categorical Variables?

A. Contingency Table (page 92). A display for two cat- egorical variables. Its rows list the categories and its columns list the categories of the other variable. Each entry in the table is the frequency of cases in the sample with certain outcomes on the two vari- ables.

  • Expected Grade (D.V.) versus High School Math Grades (I.V.)

Expected Grade

HSGRADE A B C Total

A 5 2 0 7

B 14 6 0 20

C 1 2 2 5

Total 20 10 2 32

  • Political Views (D.V.) versus Gender (I.V.)

B. Conditional Proportions Tables: Proportions on D.V. for different I.V. Categories

  • Expected Grade (D.V.) versus High School Math Grades (I.V.) Continengency Table Again

Expected Grade

HSGRADE A B C Total

A 5 2 0 7

B 14 6 0 20

C 1 2 2 5

Total 20 10 2 32

Conditional Proportions Table

Expected Grade

HSGRADE A B C Total n

A 0.71 0.29 0.00 1.00 7

B 0.70 0.30 0.00 1.00 20

C 0.20 0.40 0.40 1.00 5

  • Political Views Versus Gender

Contingency Table Again

Political View

Gender Liberal Moderate Conservative Total

Female 8 6 1 15

Male 4 7 5 16

Total 12 13 6 31

Conditional Proportions Table

Political View

Gender Liberal Moderate Conservative Total n

Female 0.53 0.40 0.07 1.00 15

Male 0.25 0.44 0.31 1.00 16

C. Clustered Bar Chart: Graphical Representation of Relationship Between Two Categorical Variables

  • Expected Grade in Math 220 Versus High School Math Grades

Expected Grade

HSGRADE A B C Total n

A 0.71 0.29 0.00 1.00 7

B 0.70 0.30 0.00 1.00 20

C 0.20 0.40 0.40 1.00 5

  • Political Views Versus Gender

Conditional Proportions Table

Political View

Gender Liberal Moderate Conservative Total n

Female 0.53 0.40 0.07 1.00 15

Male 0.25 0.44 0.31 1.00 16

Clustered Bar Chart

3.2 How Can We Explore the Association be- tween Two Quantitative Variables?

A. The Scatterplot

  1. Definition, page 99. Graphical display for two quantitative variables. It uses horizontal axis for the explanatory variable x and the vertical axis for the response variable y. The values of x and y for a subject are represented by a point relative to the two axes. The observations for the n subjects are n points on the scatterplot.
  1. Example

y = Dad’s Age, x = Mom’s age

  1. Characteristics of Association in Scatterplots
    • Direction: Positive, Negative, None
    • Form: Linear, Curved, None
    • Strength
    • Outliers
  1. Another example

Source (Peck, Olsen, Devore), page 244 x = distance (meters) from shore of measurement on river water velocity y = velocity of water at distance (cm/second) n = 10

x 0.5 1.5 2.5 3.5 4.5 5.5 6.5 7.5 8.5 9. y 22.00 23.18 25.48 25.25 27.15 27.83 28.49 28.18 28.50 28.

B. The Correlation coefficient (correlation) as a mea- sure of strength

  1. Correlation The correlation summarizes the direction and strength of a straight-line association between two quantitative variables. Correlation is denoted by r - r takes on values between −1 and 1 - r > 0 implies a positive association and r < 0 implies a negative association. - The closer r is to ±1, the closer the data points fall to a straight line, and the stronger is the linear association. The closer r is to 0, the weaker is the linear association (See page 104 in book) - The value of the correlation does not depend on the unit of measurement for either variable. - Two variables have the same correlation no matter which is treated as the response vari- able
  2. Formula Correlation = r = (^) n−^11 Σ(x− sxx )(y− syy ) We will use SPSS or your calculator (so start practicing - read your calculator manual)
  • Data: On 50 states y = percentage of individuals without health insurance x = high school graduation rate

r = − 0. 451

  • Source: Peck, Olsen, and Devore, page 125

y = yield of a plot of grain (kg/hectare) x = time between flowering and harvesting (days)

x 16 18 20 22 24 26 28 30 y 2508 2518 3304 3423 3057 3190 3500 3883

x 32 34 36 38 40 42 44 46 y 3823 3646 3708 3333 3517 3214 3103 2776

r = 0. 274

Example of Prediction: If a femur bone is found and x = 40 cm (about 16 inches), then the pre- dicted height of person is yˆ = 61.4+2.4(40) = 157.4 cm or about 63 inches. Note: The point (40,157.4) is a point on the line.

  • Using Data to Find the Slope and y-intercept of a Regression Line SPSS commands: ANALYZE, REGRESSION, LINEAR. Move response variable to dependent variable box. Move explanatory variable to independent vari- able box. (Click on SAVE button and check unstandard- ized predicted values and unstandardized residu- als to save these values). Click on CONTINUE. Click on OK.
  • Example of Output from SPSS - TreadMill, Ski Race Time

x 7.7 8.4 8.7 9.0 9.6 9.6 10.0 10. y 71.0 71.4 65.0 68.7 64.4 69.4 63.0 64.

x 10.4 11.0 11. y 66.9 62.6 61.