1 / 10

Two way tables

Two way tables. Marginal distributions. Bar charts… revisited. Bar charts are sometimes referred to as one way tables. They show data for single categorical data. What do we do when a data set involves two categorical variables?. Gonna be rich?.

lee-hewitt
Télécharger la présentation

Two way tables

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Two way tables Marginal distributions

  2. Bar charts… revisited • Bar charts are sometimes referred to as one way tables. They show data for single categorical data. • What do we do when a data set involves two categorical variables?

  3. Gonna be rich? • A survey of 4826 random young adults (19-25) asked “What do you think the chances are that you will have more than a middle-class income at age 30? Gender

  4. Gonna be rich? • Percents are more useful than counts when comparing groups. • Response Percent Almost no chance 194/4826= 4% Some chance 712/4826=14.8% 50-50 chance 1416/4826= 29.3% A good chance 1421/4826= 29.4% Almost certain 1083/4826=22.4%

  5. Gonna be rich? • Based on the survey data, can we conclude that young men and women differ in their opinions about the likelihood of future wealth? • Make a side-by side (or stacked) bar graph

  6. Gonna be rich? • My analysis: • Based on the sample data, men seem somewhat more optimistic about their future income than women. Men were less likely to say that they have “some chance but probably not” than women (11.6% vs 18.0%). Men were more likely to say that they have a “good chance” (30.8% vs 28%) or are “almost certain” (24.3% vs 20.5%) to have more than a middle-class income by age 30.

  7. Gonna be rich? • Definition: Association • We say there is an association between two variables if knowing the value of one variable helps to predict/analyze the value of the other. • Can we say the “rich opinion” data shows association? (can we approximate?) * Think law of complements*

  8. Gonna be rich? • A conditional distribution is a distribution for a sub-population. • Calculate the conditional distribution of opinions among young men.

  9. What’s your superpower? • 415 children were surveyed from the U.S. and Canada about what super power they would choose. The results are below: • A) calculate the marginal distributions (in %) • B) Make a graph to display the marginal distribution and describe what you see. • C) Is there association? Site evidence

  10. What’s your superpower? • A) Answers: fly=23.9%, Freeze time=23.1%, Invisibility=16.1%, Superstrength=10.4%, telepathy=26.5% • B) graphs will vary- I suggest bar graph. It appears that telepathy, flying, and freeze time were the most popular choices with approximately 25% of students choosing each one. Invisibility was the 4th most popular with strength as the least popular in this survey. • C) There is an association between country of origin and superpower preference. Students in Canada are more likely to choose flying and freezing while students in the U.S. are more likely to choose invisibility or telepathy. Superstrength is equally unpopular in both countries.

More Related