4.4: Contingency Tables and Association

0.0(0)
studied byStudied by 0 people
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/6

flashcard set

Earn XP

Description and Tags

Learning Objectives: 1. Compute the marginal distribution of a variable 2. Use the conditional distribution to identify association among categorical data 3. Explain Simpson’s Paradox

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

7 Terms

1
New cards

Contingency Table

  • A “two-way table” that is used to analyze ‘count’ data across two experimental factors/categories of data (usually n set of counts or frequencies)

    • Row variable

    • Column Variable

    • Cell (Each box inside the table)


What is the row/column variable in the table below?

Traditional

Online 

 Hybrid

A

B

C

D

F

      36

      52

      57

      46

      46

   39

   55

   68

   38

   54

    24

    66

    90

    41

    31

Row variable: grade (each row in the table describes the grade received for each group)

Column variable: Delivery Method (Trad., Online, Hybrid)

2
New cards

Marginal Distribution

  • The Frequency or Relative Frequency distribution of either the row or column variable in a contingency table.

3
New cards

EXAMPLE Determining Frequency Marginal Distributions

A professor at a community college in New Mexico conducted a study to assess the effectiveness of delivering an introductory statistics course via traditional lecture-based method, online delivery (no classroom instruction), and hybrid instruction (online course with weekly meetings) methods, the grades students received in each of the courses were tallied.

  • Find the frequency marginal distributions for course grade and delivery method.

Traditional

Online 

 Hybrid

A

B

C

D

F

      36

      52

      57

      46

      46

   39

   55

   68

   38

   54

    24

    66

    90

    41

    31

Traditional

Online 

 Hybrid

Frequency (total)

A

B

C

D

F

      36

      52

      57

      46

      46

   39

   55

   68

   38

   54

    24

    66

    90

    41

    31

  99

173

215

125

131

Frequency (total)

    237

 254

  252

743

4
New cards

EXAMPLE Determining Relative Frequency Marginal Distributions

Determine the relative frequency marginal distribution for course grade and delivery method.

Traditional

Online 

 Hybrid

A

B

C

D

F

      36

      52

      57

      46

      46

   39

   55

   68

   38

   54

    24

    66

    90

    41

    31

Traditional

Online 

 Hybrid

Relative Frequency

A

B

C

D

F

      36

      52

      57

      46

      46

   39

   55

   68

   38

   54

    24

    66

    90

    41

    31

99/743 = 0.133

173/743 =0.233

215/743 =0.289

125/743= 0.168

131/743 =0.176

Relative Frequency

237/743 = 0.319

254/743 = 0.342

 252/743 = 0.339

1.000

RF = Frequency of singular category / All Frequencies of each category totaled /

(picture is refresher on relative frequency)

<table style="min-width: 125px"><colgroup><col><col><col><col><col></colgroup><tbody><tr><td colspan="1" rowspan="1" style="width: 59.8px; height: 22.8px;  border-style: solid; border-width: 1.0px 1.0px 1.0px 1.0px; border- padding: 3.6px 3.6px 3.6px 3.6px"><p></p></td><td colspan="1" rowspan="1" style="width: 100.8px; height: 22.8px;  border-style: solid; border-width: 1.0px 1.0px 1.0px 1.0px; border- padding: 3.6px 3.6px 3.6px 3.6px"><p>Traditional</p></td><td colspan="1" rowspan="1" style="width: 80.8px; height: 22.8px;  border-style: solid; border-width: 1.0px 1.0px 1.0px 1.0px; border- padding: 3.6px 3.6px 3.6px 3.6px"><p>Online&nbsp;</p></td><td colspan="1" rowspan="1" style="width: 79.8px; height: 22.8px;  border-style: solid; border-width: 1.0px 1.0px 1.0px 1.0px; border- padding: 3.6px 3.6px 3.6px 3.6px"><p>&nbsp;Hybrid</p></td><td colspan="1" rowspan="1" style="width: 80.8px; height: 22.8px;  border-style: solid; border-width: 1.0px 1.0px 1.0px 1.0px; border- padding: 3.6px 3.6px 3.6px 3.6px"><p><strong>Relative Frequency</strong></p></td></tr><tr><td colspan="1" rowspan="1" style="width: 59.8px; height: 113.8px;  border-style: solid; border-width: 1.0px 1.0px 1.0px 1.0px; border- padding: 3.6px 3.6px 3.6px 3.6px"><p>A</p><p>B</p><p>C</p><p>D</p><p>F</p></td><td colspan="1" rowspan="1" style="width: 100.8px; height: 113.8px;  border-style: solid; border-width: 1.0px 1.0px 1.0px 1.0px; border- padding: 3.6px 3.6px 3.6px 3.6px"><p>&nbsp; &nbsp; &nbsp; 36</p><p>&nbsp; &nbsp; &nbsp; 52</p><p>&nbsp; &nbsp; &nbsp; 57</p><p>&nbsp; &nbsp; &nbsp; 46</p><p>&nbsp; &nbsp; &nbsp; 46</p></td><td colspan="1" rowspan="1" style="width: 80.8px; height: 113.8px;  border-style: solid; border-width: 1.0px 1.0px 1.0px 1.0px; border- padding: 3.6px 3.6px 3.6px 3.6px"><p>&nbsp;&nbsp; 39</p><p>&nbsp;&nbsp; 55</p><p>&nbsp;&nbsp; 68</p><p>&nbsp;&nbsp; 38</p><p>&nbsp;&nbsp; 54</p></td><td colspan="1" rowspan="1" style="width: 79.8px; height: 113.8px;  border-style: solid; border-width: 1.0px 1.0px 1.0px 1.0px; border- padding: 3.6px 3.6px 3.6px 3.6px"><p>&nbsp; &nbsp; 24</p><p>&nbsp; &nbsp; 66</p><p>&nbsp; &nbsp; 90</p><p>&nbsp; &nbsp; 41</p><p>&nbsp; &nbsp; 31</p></td><td colspan="1" rowspan="1" style="width: 80.8px; height: 113.8px;  border-style: solid; border-width: 1.0px 1.0px 1.0px 1.0px; border- padding: 3.6px 3.6px 3.6px 3.6px"><p><strong>99/743 = 0.133</strong></p><p><strong>173/743 =0.233</strong></p><p><strong>215/743 =0.289</strong></p><p><strong>125/743= 0.168</strong></p><p><strong>131/743 =0.176</strong></p></td></tr><tr><td colspan="1" rowspan="1" style="width: 59.8px; height: 22.8px;  border-style: solid; border-width: 1.0px 1.0px 1.0px 1.0px; border- padding: 3.6px 3.6px 3.6px 3.6px"><p><strong>Relative Frequency</strong></p></td><td colspan="1" rowspan="1" style="width: 100.8px; height: 22.8px;  border-style: solid; border-width: 1.0px 1.0px 1.0px 1.0px; border- padding: 3.6px 3.6px 3.6px 3.6px"><p><strong>237/743 = 0.319</strong></p></td><td colspan="1" rowspan="1" style="width: 80.8px; height: 22.8px;  border-style: solid; border-width: 1.0px 1.0px 1.0px 1.0px; border- padding: 3.6px 3.6px 3.6px 3.6px"><p><strong>254/743 = 0.342</strong></p></td><td colspan="1" rowspan="1" style="width: 79.8px; height: 22.8px;  border-style: solid; border-width: 1.0px 1.0px 1.0px 1.0px; border- padding: 3.6px 3.6px 3.6px 3.6px"><p><strong>&nbsp;252/743 = 0.339</strong></p></td><td colspan="1" rowspan="1" style="width: 80.8px; height: 22.8px;  border-style: solid; border-width: 1.0px 1.0px 1.0px 1.0px; border- padding: 3.6px 3.6px 3.6px 3.6px"><p><strong>1.000</strong></p></td></tr></tbody></table><p>RF = Frequency of singular category / All Frequencies of each category totaled /</p><p>(picture is refresher on relative frequency)</p>
5
New cards

Conditional Distribution

  • Chart that lists the relative frequency of each category of the response variable, given a specific value of the explanatory variable in the contingency table.

6
New cards

EXAMPLE Determining a Conditional Distribution

  • Construct a conditional distribution of course grade by method of delivery.

  • Comment on any type of association that may exist between course grade and delivery method.

Traditional

Online 

 Hybrid

A

B

C

D

F

      36

      52

      57

      46

      46

   39

   55

   68

   38

   54

    24

    66

    90

    41

    31

36 + 52 + 57 + 46 + 46 = 237

36/237 = 0.152

Traditional

 Online 

 Hybrid

A

B

C

D

F

    0.152

    0.219

    0.241

    0.194

    0.194

  0.154

  0.217

  0.268

  0.150

  0.213

  0.095

  0.262

  0.357

  0.163

  0.123

  • It appears that students in the hybrid course are more likely to pass (A, B, or C) than the other two methods.

    36/237 = 0.152

    52/237 = 0.219, and so on…

7
New cards
<p><strong>EXAMPLE Conditional Distribution Bar Graph</strong></p><p class="p2">Using the results of the previous example, create a bar graph that represents the conditional distribution of method of delivery by grade earned. </p>

EXAMPLE Conditional Distribution Bar Graph

Using the results of the previous example, create a bar graph that represents the conditional distribution of method of delivery by grade earned.

EXAMPLE Conditional Distribution Bar Graph

The following contingency table shows the survival status and demographics of passengers on the ill-fated Titanic.

Men

Women

Boys

Girls

Survived

334

318

29

27

Died

1360

104

35

18

  • Draw a conditional bar graph of survival status by demographic characteristic.

<p><strong>EXAMPLE Conditional Distribution Bar Graph</strong></p><p>The following contingency table shows the survival status and demographics of passengers on the ill-fated Titanic.</p><table style="min-width: 125px"><colgroup><col><col><col><col><col></colgroup><tbody><tr><td colspan="1" rowspan="1" style="width: 75.8px; height: 20.8px; border-style: solid; border-width: 1.0px 2.0px 2.0px 1.0px; border- padding: 3.6px 3.6px 3.6px 3.6px"><p></p></td><td colspan="1" rowspan="1" style="width: 62.8px; height: 20.8px; border-style: solid; border-width: 1.0px 1.0px 2.0px 2.0px; border- padding: 3.6px 3.6px 3.6px 3.6px"><p style="text-align: center"><strong>Men</strong></p></td><td colspan="1" rowspan="1" style="width: 81.8px; height: 20.8px; border-style: solid; border-width: 1.0px 1.0px 2.0px 1.0px; border- padding: 3.6px 3.6px 3.6px 3.6px"><p style="text-align: center"><strong>Women</strong></p></td><td colspan="1" rowspan="1" style="width: 69.8px; height: 20.8px; border-style: solid; border-width: 1.0px 1.0px 2.0px 1.0px; border- padding: 3.6px 3.6px 3.6px 3.6px"><p style="text-align: center"><strong>Boys</strong></p></td><td colspan="1" rowspan="1" style="width: 69.8px; height: 20.8px; border-style: solid; border-width: 1.0px 1.0px 2.0px 1.0px; border- padding: 3.6px 3.6px 3.6px 3.6px"><p style="text-align: center"><strong>Girls</strong></p></td></tr><tr><td colspan="1" rowspan="1" style="width: 75.8px; height: 19.8px; border-style: solid; border-width: 2.0px 2.0px 1.0px 1.0px; border- padding: 3.6px 3.6px 3.6px 3.6px"><p><strong>Survived</strong></p></td><td colspan="1" rowspan="1" style="width: 62.8px; height: 19.8px; border-style: solid; border-width: 2.0px 1.0px 1.0px 2.0px; border- padding: 3.6px 3.6px 3.6px 3.6px"><p style="text-align: center">334</p></td><td colspan="1" rowspan="1" style="width: 81.8px; height: 19.8px; border-style: solid; border-width: 2.0px 1.0px 1.0px 1.0px; border- padding: 3.6px 3.6px 3.6px 3.6px"><p style="text-align: center">318</p></td><td colspan="1" rowspan="1" style="width: 69.8px; height: 19.8px; border-style: solid; border-width: 2.0px 1.0px 1.0px 1.0px; border- padding: 3.6px 3.6px 3.6px 3.6px"><p style="text-align: center">29</p></td><td colspan="1" rowspan="1" style="width: 69.8px; height: 19.8px; border-style: solid; border-width: 2.0px 1.0px 1.0px 1.0px; border- padding: 3.6px 3.6px 3.6px 3.6px"><p style="text-align: center">27</p></td></tr><tr><td colspan="1" rowspan="1" style="width: 75.8px; height: 21.8px; border-style: solid; border-width: 1.0px 2.0px 1.0px 1.0px; border- padding: 3.6px 3.6px 3.6px 3.6px"><p><strong>Died</strong></p></td><td colspan="1" rowspan="1" style="width: 62.8px; height: 21.8px; border-style: solid; border-width: 1.0px 1.0px 1.0px 2.0px; border- padding: 3.6px 3.6px 3.6px 3.6px"><p style="text-align: center">1360</p></td><td colspan="1" rowspan="1" style="width: 81.8px; height: 21.8px; border-style: solid; border-width: 1.0px 1.0px 1.0px 1.0px; border- padding: 3.6px 3.6px 3.6px 3.6px"><p style="text-align: center">104</p></td><td colspan="1" rowspan="1" style="width: 69.8px; height: 21.8px; border-style: solid; border-width: 1.0px 1.0px 1.0px 1.0px; border- padding: 3.6px 3.6px 3.6px 3.6px"><p style="text-align: center">35</p></td><td colspan="1" rowspan="1" style="width: 69.8px; height: 21.8px; border-style: solid; border-width: 1.0px 1.0px 1.0px 1.0px; border- padding: 3.6px 3.6px 3.6px 3.6px"><p style="text-align: center">18</p></td></tr></tbody></table><ul><li><p class="p2">Draw a conditional bar graph of survival status by demographic characteristic.</p></li></ul><p></p>