A frequency distribution for two variables

Slides:



Advertisements
Similar presentations
~adapted from walch education A two-way frequency table is a table of data that separates responses by a characteristic of the respondents A trend, or.
Advertisements

This slide show has been created by Eric Arbetter at Barrington Elementary School. Click here to begin the activity.
CHI-SQUARE(X2) DISTRIBUTION
Review of Probability.
M&Ms Two-way Tables Ellen Gundlach STAT 301 Course Coordinator Purdue University.
Chris Morgan, MATH G160 April 11, 2012 Lecture 29 Chapter 2.3 & 2.4: Stem and Leaf Plots and Cross Tabulation 1.
© red ©
Candy Capability Dr. Ron Tibben-Lembke. Lotta Candy.
Geometry - Statistics: Conditional Probability Unit 4
Two-Way Frequency Tables
Introduction to Spreadsheets Microsoft Excel. What is a spreadsheet? Enter data. Analyze data. Make graphs.
Chapter 26: Comparing Counts. To analyze categorical data, we construct two-way tables and examine the counts of percents of the explanatory and response.
Skip Counting Counting by 2, 5, and 10.
Notes Over 12.5 Probability of Independent Events 1. You are playing a game with 2 numbered cubes. Find the probability of rolling a sum of 8 on the first.
Find the probability and odds of simple events.
1 12/3/03 Math warm-up Draw an example of each a line graph, bar graph, and a circle graph. (without exact numbers) Label it. When would you use a line.
Why Aren’t There More Red M&M’s® in My Bag? (adapted from Texas Instruments) Technology 1.
M&M Experiment Which color are you most likely to get?
Chapter 11 Inference for Tables: Chi-Square Procedures 11.1 Target Goal:I can compute expected counts, conditional distributions, and contributions to.
Scientific Method Activity:  Problem: Are the colors equally represented in a pack of milk chocolate M&Ms?  Hypothesis: I think there will be 19 M&Ms.
The Great M&M’s Mystery! Section Starter Sickle-cell trait is a hereditary condition that is common among blacks and can cause medical.
1 Chapter 10. Section 10.1 and 10.2 Triola, Elementary Statistics, Eighth Edition. Copyright Addison Wesley Longman M ARIO F. T RIOLA E IGHTH E DITION.
The Scientific Method:
AGENDA:. AP STAT Ch. 14.: X 2 Tests Goodness of Fit Homogeniety Independence EQ: What are expected values and how are they used to calculate Chi-Square?
Two-way Tables And various probabilities.... Two-way table of counts Rows: gender Columns: pierced ears N Y All M F All Cell.
Seven Steps for Doing  2 1) State the hypothesis 2) Create data table 3) Find  2 critical 4) Calculate the expected frequencies 5) Calculate  2 6)
Chapter 11 Chi-Square Procedures 11.2 Contingency Tables; Association.
FRACTIONS & SHAPES BY:. How many of these are colored red? * out of *.
GRAPHING RELATIONSHIPS For each graph, determine the graphing relationship and record it on a white board.
Color Distribution A block BrownYellowOrangeRedGreenBlue GreenYellowOrangeRedPurple M&M Skittles.
My Penguin Math Book By:. I see How many penguins do you see? Count them and type the number in the box penguins.
ORGANIZING AND SUMMARIZING DATA Chapter Organizing Qualitative Data Using Excel Obj: organize data into charts by hand and using excel Raw data.
Displaying Distributions – Qualitative Variables – Part 2 Lecture 16 Sec Wed, Feb 11, 2004.
Displaying and Describing Categorical Data Chapter 3.
Chi Square Test of Homogeneity. Are the different types of M&M’s distributed the same across the different colors? PlainPeanutPeanut Butter Crispy Brown7447.
Test of independence: Contingency Table
CHAPTER 1 Exploring Data
Skip Counting Counting by 2, 5, and 10.
Tips for Creating Graphs
Color of m&m's in One 1.69 Oz. Bag
M&M’s Lab.
Chi-Square - Goodness of Fit
Is a persons’ size related to if they were bullied
Skip Counting Counting by 2, 5, and 10.
Relations in Categorical Data
Contingency Tables and Association
Warmup Which part- time jobs employed 10 or more of the students?
Align The Stars Continue.
The Table Categorization
Overview of School Effects (sample data)
Can I color yellow?. Can I color yellow?
5 Geographic Regions of Georgia
Colors/Color Words.
Bar Chart The data must already be in Frequency Distribution form (see the presentation if needed).
What Color is it?.
Section 4-3 Relations in Categorical Data
Two Way Frequency Tables
Assistant prof. Dr. Mayasah A. Sadiq FICMS-FM
REMEMBER: scatterplot two-way frequency table
Temperature and Color of Stars
Chapter 26 Comparing Counts.
HIMS 650 Homework set 5 Putting it all together
Section Way Tables and Marginal Distributions
M&M Math By: Jacob Warnock.
Chapter 14.1 Goodness of Fit Test.
Probability Lesson 4: Non-Equally Likely Events
Two-Way Frequency Tables
Relations in Categorical Data
Day 59 – Joint Frequencies
Color Box Button - Gray Type : object Type : object Type : object
Presentation transcript:

A frequency distribution for two variables Cross Tabs A frequency distribution for two variables

M&Ms Color Distribution % according to their website Brown Yellow Red Blue Orange Green Plain 13 14 24 20 16 Peanut 12 15 23

We take a sample of M&M’s and find a sample distribution to compare to the website distribution

My M&Ms data in counts 14 10 8 4 54 2 3 5 22 16 13 15 12 76 Brown Yellow Red Blue Orange Green Total Plain 14 10 8 4 54 Peanut 2 3 5 22 16 13 15 12 76

14 of the 76 M&M’s were plain brown M&M’s Yellow Red Blue Orange Green Total Plain 14 10 8 4 54 Peanut 2 3 5 22 16 13 15 12 76 14 of the 76 M&M’s were plain brown M&M’s

Brown Yellow Red Blue Orange Green Total Plain 14 10 8 4 54 Peanut 2 3 5 22 16 13 15 12 76 54 of the 76 M&M’s were Plain

8 of the 76 M&M’s were blue 14 10 8 4 54 2 3 5 22 16 13 15 12 76 Brown Yellow Red Blue Orange Green Total Plain 14 10 8 4 54 Peanut 2 3 5 22 16 13 15 12 76 8 of the 76 M&M’s were blue

Probability To find the probability: N(event)/N(total) P(peanut green M&M) = N(Peanut Green)/N(Total M&M’s)

To find Joint Distribution, we find the probabilities of each cell by dividing by the total (76) Brown Yellow Red Blue Orange Green Total Plain 14/76 10/76 8/76 4/76 54/76 Peanut 2/76 3/76 5/76 0/76 22/76 16/76 13/76 15/76 12/76 76

My M&Ms data: With Marginal Distributions Brown Yellow Red Blue Orange Green Marg. for flavor Plain 18.4 13.2 10.5 5.3 71.1 Peanut 2.6 3.9 6.6 28.9 Marg. for color 21.0 17.1 19.8 15.8 100

Knowing that the M&M is green, what is the probability it was Peanut? Brown Yellow Red Blue Orange Green Total Plain 14 10 8 4 54 Peanut 2 3 5 22 16 13 15 12 76 We can focus on just the green column so the probability of Peanut is: N(Green Peanut)/N(Green) = 4/12

Conditional distribution of flavor for color We know the color of our M&M already, but now how is flavor distributed for this color?

Knowing that the M&M is Plain, what is the probability it is Yellow? Brown Yellow Red Blue Orange Green Total Plain 14 10 8 4 54 Peanut 2 3 5 22 16 13 15 12 76 We can focus on just the Plain row so the probability of Yellow is: N(Yellow Plain)/N(Plain) = 10/54

Conditional distribution of color for flavor We know the flavor of our M&M already, but now how is color distributed for this color?

Conditional distributions in general Conditional distribution of X for Y (we know Y for sure already, but we want to know the probability or % of having X be true as well):

Bar graphs for conditional distribution of color for both flavors

Joint Distribution (In white boxes) Marginal (In gray boxed) Conditional (Given color or flavor) Brown Yellow Red Blue Orange Green Marg. for flavor Plain 18.4 13.2 10.5 5.3 71.1 Peanut 2.6 3.9 6.6 28.9 Marg. for color 21.0 17.1 19.8 15.8 100