Two Way Tables Relationship between Two Categorical Variables.

Slides:



Advertisements
Similar presentations
Objectives Construct and interpret two-way frequency
Advertisements

Two – Way Tables Warm Up Lesson Presentation Lesson Quiz
Warm Up 1. P(red | red) 2. P(red | yellow) 3. P(yellow | yellow)
Math notebook, pencil and calculator Conditional Relative Frequencies and Association.
2-Way Tables These are tables that use both the rows and columns to display information. It lets us look for comparative trends and calculate conditional.
Copyright © 2012 Pearson Education. Chapter 7 Randomness and Probability.
Module 14-3 Objectives Construct and interpret two-way frequency
HEAR YE HEAR YE! Check your HW!. Turn to Page 199 and complete #14 *** Answers may be in decimal form.
Grab a sheet from the chair and a calculator.
Table #1 : Elizabeth surveys 9th graders, 10th graders, and 11th graders in her school. She asks each student how many hours they spend doing homework.
Topic/objective: TWO-WAY TABLES Ricardo surveyed 110 eighth grade students to find out if they have a part time job. There are 60 students who have a part-time.
8-2 Data Gathering Warm Up Lesson Presentation Lesson Quiz
Two-Way Relative Frequency Tables
Two-Way Tables.
Warm Up Write down objective and homework in agenda
7-4 Two – Way Tables Warm Up Lesson Presentation Lesson Quiz
Data Gathering Warm Up Lesson Presentation Lesson Quiz
Objectives Construct and interpret two-way frequency
Two – Way Tables Warm Up Lesson Presentation Lesson Quiz
Two – Way Tables Warm Up Lesson Presentation Lesson Quiz
Two – Way Tables Warm Up Lesson Presentation Lesson Quiz
CHAPTER 11 Inference for Distributions of Categorical Data
Two-Way Frequency Tables
Two-Way Frequency Tables
Day 21 AGENDA: Rev Ch 3 and minutes Begin Ch 4.2.
AP Stats Check In Where we’ve been… Chapter 7…Chapter 8…
Objective: The students will take notes on how to ​Construct and interpret two-way frequency tables. Students will demonstrate their understanding by achieving.
Journal Writing Warm-Up
Section 8.1: Two-Way Frequency Tables
Pearson Unit 6 Topic 15: Probability 15-5: Conditional Probability With Frequency Tables Pearson Texas Geometry ©2016 Holt Geometry Texas.
Two Categorical Variables: The Chi-Square Test
BEFORE: April 19, 2016 SCATTER PLOT ACTIVITY
Stand Quietly.
Lesson Two-Way Tables Obj: I can 1) Construct two-way tables 2) Use two-way tables to summarize data HWK: Worksheet.
CHAPTER 11 Inference for Distributions of Categorical Data
Two-Way Frequency Tables
DIVIDE EACH ENTRY BY THE GRAND TOTAL.
A way to organize data in TWO CATEGORIES.
Chapter 10.
Objectives Vocabulary joint relative frequency
Two-Way Frequency Tables
CHAPTER 11 Inference for Distributions of Categorical Data
NC Common Core Standards
Lesson Two-Way Tables Obj: I can 1) Construct two-way tables 2) Use two-way tables to summarize data HWK: Worksheet.
Contingency Tables.
Day 58 – Data Tables.
Two Way Frequency Tables
Is a male or walks to school?
8-2 Data Gathering Warm Up Lesson Presentation Lesson Quiz
Two Way Table.
CHAPTER 11 Inference for Distributions of Categorical Data
REMEMBER: scatterplot two-way frequency table
HEAR YE HEAR YE! Module 19 Test is Friday the 13th!
Data Gathering Warm Up Lesson Presentation Lesson Quiz
Section 8.2: Relative Frequency
Two – Way Tables Warm Up Lesson Presentation Lesson Quiz
Two – Way Tables Warm Up Lesson Presentation Lesson Quiz
CHAPTER 11 Inference for Distributions of Categorical Data
CHAPTER 11 Inference for Distributions of Categorical Data
Two Way Table.
CHAPTER 11 Inference for Distributions of Categorical Data
CHAPTER 11 Inference for Distributions of Categorical Data
CHAPTER 11 Inference for Distributions of Categorical Data
Data Analysis s-ID.1, S-ID.5
CHAPTER 11 Inference for Distributions of Categorical Data
Constructing two-way table Date 3/25/19
Five-Minute Check (over Lesson 12–7) Mathematical Practices Then/Now
Two – Way Tables Warm Up Lesson Presentation Lesson Quiz
Two – Way Tables Warm Up Lesson Presentation Lesson Quiz
Categorical Data By Farrokh Alemi, Ph.D.
Presentation transcript:

Two Way Tables Relationship between Two Categorical Variables

A two-way table is a useful way to organize data that can be categorized by two variables. This is also call a contingency table. The joint frequencies are the counts in the body of the table. 24, 12, 14, 16, 13, & 21 are joint frequencies.

The total frequency for any row or column is called a marginal frequencies. 50, 50, 40, 25, & 35 are marginal frequencies.

Find the marginal frequencies. 72 74 65 112 40 59 211

The frequency table can be easily changed to show relative frequencies by finding the ratios of each cell’s frequency to the total. To calculate relative frequency, divide each count in the frequency table by the overall total.

Find the Relative Frequencies. /211 /211 /211 72 /211 /211 /211 /211 74 /211 /211 /211 /211 65 /211 112 /211 40 /211 59 /211 211 /211

Find the Relative Frequencies. 0.53 0.19 0.28 0.34 0.35 0.31 1.00 0.15 0.18 0.20 0.09 0.08 0.03 0.11

Do more 10th graders choose popularity or sports? Relative Frequency 0.53 0.19 0.28 0.34 0.35 0.31 1.00 0.15 0.18 0.20 0.09 0.08 0.03 0.11 Do more 10th graders choose popularity or sports? Sports

Relative Frequency 0.53 0.19 0.28 0.34 0.35 0.31 1.00 0.15 0.18 0.20 0.09 0.08 0.03 0.11 Which grade had the greatest response that grades were the most important? 11th Grade

Which grade had the most overall students respond? Relative Frequency 0.53 0.19 0.28 0.34 0.35 0.31 1.00 0.15 0.18 0.20 0.09 0.08 0.03 0.11 Which grade had the most overall students respond? 10th Grade

Suppose you asked 20 children and adults whether they liked broccoli Suppose you asked 20 children and adults whether they liked broccoli. The table shows one way to arrange the data. The joint relative frequencies are the values in each category divided by the total number of values, shown by the shaded cells in the table. Each value is divided by 20, the total number of individuals.

The marginal relative frequencies are found by adding the joint relative frequencies in each row and column.

Example 1: Finding Joint and Marginal Relative Frequencies The table shows the results of randomly selected car insurance quotes for 125 cars made by an insurance company in one week. Make a table of the joint and marginal relative frequencies.

Example 1: Continued Divide each value by the total of 125 to find the joint relative frequencies, and add each row and column to find the marginal relative frequencies. Teen Adult Total 0 acc. 0.12 0.424 0.544 1 acc. 2 + acc. 0.032 0.256 0.288 0.072 0.096 0.168 0.224 0.776 1

Check It Out! Example 1 The table shows the number of books sold at a library sale. Make a table of the joint and marginal relative frequencies.

Check It Out! Example 1 Continued Divide each value by the total of 210 to find the joint relative frequencies, and add each row and column to find the marginal relative frequencies. Fiction Nonfiction Total Hardcover 0.133 0.248 0.381 Paperback 0.448 0.171 0.619 0.581 0.419 1

Example 2: Using Conditional Relative Frequency to Find Probability A reporter asked 150 voters if they plan to vote in favor of a new library and a new arena. The table shows the results.

A. Make a table of the joint and marginal relative frequencies. Example 2A Continued A. Make a table of the joint and marginal relative frequencies. Yes No Total 0.14 0.2 0.34 0.38 0.28 0.66 0.52 0.48 1 Library Arena

Example 2B Continued B. If you are given that a voter plans to vote no to the new library, what is the probability the voter also plans to say no to the new arena? 0.28 ≈ 0.58 0.48 Yes No Total 0.14 0.2 0.34 0.38 0.28 0.66 0.52 0.48 1 Library Arena

Check It Out! Example 2 The classes at a dance academy include ballet and tap dancing. Enrollment in these classes is shown in the table. 2a. Copy and complete the table of the joint relative frequencies and marginal relative frequencies.

Check It Out! Example 2 continued Yes No Total 0.19 0.26 0.45 0.43 0.12 0.55 0.62 0.38 1 Ballet Tap 2b. If you are given that a student is taking ballet, what is the probability that the student is not taking tap? 0.43 0.62 ≈ 0.69 or 69%

Example 3: Comparing Conditional Probabilities A company sells items in a store, online, and through a catalog. A manager recorded whether or not the 50 sales made one day were paid for with a gift card. Use conditional probabilities to determine for which method a customer is most likely to pay with a gift card.

Example 3 Continued Gift Card Another Method TOTAL Store 0.12 0.18 0.30 Online 0.26 0.44 Catalog 0.10 0.16 0.40 0.60 1 P(gift card if in store) = 0.4 P(gift card if online) ≈ 0.41 P(gift card if by catalog) ≈ 0.38 so most likely if buying online. A customer is most likely to pay with a gift card if buying online.

Check It Out! Example 3 Francine is evaluating three driving schools. She asked 50 people who attended the schools whether they passed their driving tests on the first try. Use conditional probabilities to determine which is the best school. Use conditional probabilities to determine which is the best school.

Check It Out! Example 3 Continued Pass Fail TOTAL Al’s Driving 0.28 0.16 0.44 Drive Time 0.22 0.14 0.36 Crash Course 0.10 0.20 0.60 0.40 1 Al’s Driving has the best pass rate, about 64%, versus 61% for Drive Time and 50% for Crash Course.

To find a conditional relative frequency , divide the joint relative frequency by the marginal relative frequency. Conditional relative frequencies can be used to find conditional probabilities.

In a poll, 150 students (75 boys and 75 girls) were asked if they prefer board games or video games. The data are shown in the two-way frequency table. Based on the table, use conditional relative frequency to find which statement best describes the association between gender and game preference? Which statements are true? a. Girls are more likely than boys to prefer board games. b. Girls are more likely to prefer board games to video games. c. Boys are more likely than girls to prefer board games. d. Boys are more likely to prefer board games to video games. Board Games Video Games Total Boys 22 53 75 Girls 32 43 54 96 150 22/75=0.29 53/75=0.71 32/75=0.43 43/75=0.57 A

At a juice-bottling factory, quality-control technicians randomly select bottles and mark them pass or fail. The manager randomly selects the results of 50 tests and organizes the data by shift and result. The table below shows these results.

1. Make a table of the joint and marginal relative frequencies. Pass Fail Total Morn. 0.28 0.1 0.38 After. Eve. 0.2 0.08 0.22 0.12 0.34 0.7 0.3 1

Find the probability that a bottle was inspected in the afternoon given that it failed the inspection. ≈ 0.08 0.3 0.27 Pass Fail Total Morn. 0.28 0.1 0.38 After. Eve. 0.2 0.08 0.22 0.12 0.34 0.7 0.3 1

Lesson Quiz: Part 3 3. Use conditional probabilities to determine on which shift a bottle is most likely to pass inspection. P(pass if in morning) ≈ 0.74, P(pass if in afternoon) ≈ 0.71, P(pass if in evening) ≈ 0.65, so most likely to pass in the morning

Two Way Tables Relationship between Two Categorical Variables