Presentation is loading. Please wait.

Presentation is loading. Please wait.

Elementary Statistics: Looking at the Big Picture

Similar presentations


Presentation on theme: "Elementary Statistics: Looking at the Big Picture"— Presentation transcript:

1 Elementary Statistics: Looking at the Big Picture
(C) 2007 Nancy Pfenning Lecture 10: Chapter 5, Section 2 Relationships (Two Categorical Variables) Two-Way Tables Summarizing and Displaying Comparing Proportions or Counts Confounding Variables ©2011 Brooks/Cole, Cengage Learning Elementary Statistics: Looking at the Big Picture Elementary Statistics: Looking at the Big Picture

2 Elementary Statistics: Looking at the Big Picture
(C) 2007 Nancy Pfenning Looking Back: Review 4 Stages of Statistics Data Production (discussed in Lectures 1-4) Displaying and Summarizing Single variables: 1 cat,1 quan (discussed Lectures 5-8) Relationships between 2 variables: Categorical and quantitative (discussed in Lecture 9) Two categorical Two quantitative Probability Statistical Inference ©2011 Brooks/Cole, Cengage Learning Elementary Statistics: Looking at the Big Picture Elementary Statistics: Looking at the Big Picture

3 Single Categorical Variables (Review)
(C) 2007 Nancy Pfenning Single Categorical Variables (Review) Display: Pie Chart Bar Graph Summarize: Count or Proportion or Percentage ©2011 Brooks/Cole, Cengage Learning Elementary Statistics: Looking at the Big Picture Elementary Statistics: Looking at the Big Picture

4 Two Categorical Variables
(C) 2007 Nancy Pfenning Two Categorical Variables 1. Display: Bar Graph 2. Summarize: Proportion or Percentage 3. Organize: Use a 2 way table to organize data Add categorical explanatory variable  ©2011 Brooks/Cole, Cengage Learning Elementary Statistics: Looking at the Big Picture Elementary Statistics: Looking at the Big Picture

5 Example: Two Single Categorical Variables
(C) 2007 Nancy Pfenning Example: Two Single Categorical Variables Background: Data on students’ gender and lenswear (contacts, glasses, or none) in two-way table: Question: What parts of the table convey info about the individual variables gender and lenswear? Response: Right margin is about gender. Bottom margin is about lenswear. ©2011 Brooks/Cole, Cengage Learning Elementary Statistics: Looking at the Big Picture Practice: 5.20a-b p.160 Elementary Statistics: Looking at the Big Picture

6 Example: Relationship between Categorical Variables
(C) 2007 Nancy Pfenning Example: Relationship between Categorical Variables Background: Data on students’ gender and lenswear (contacts, glasses, or none) in two-way table: Question: What part of the table conveys info about the relationship between gender and lenswear? Response: Inside of table is about relationship. ©2011 Brooks/Cole, Cengage Learning Elementary Statistics: Looking at the Big Picture Elementary Statistics: Looking at the Big Picture

7 Summarizing and Displaying Categorical Relationships
(C) 2007 Nancy Pfenning Summarizing and Displaying Categorical Relationships Identify variables’ roles (explanatory, response) Use rows for explanatory, columns for response Compare proportions or percentages in response of interest (conditional proportions or percentages) for various explanatory groups. Display with bar graph: Explanatory groups identified on horizontal axis Conditional percentages or proportions in response(s) of interest graphed vertically ©2011 Brooks/Cole, Cengage Learning Elementary Statistics: Looking at the Big Picture Elementary Statistics: Looking at the Big Picture

8 Elementary Statistics: Looking at the Big Picture
(C) 2007 Nancy Pfenning Definition A conditional percentage or proportion tells the percentage or proportion in the response of interest, given that an individual falls in a particular explanatory group. Formula the amount inside a cell total for that row ©2011 Brooks/Cole, Cengage Learning Elementary Statistics: Looking at the Big Picture Elementary Statistics: Looking at the Big Picture

9 Example: Comparing Counts vs. Proportions
(C) 2007 Nancy Pfenning Example: Comparing Counts vs. Proportions Background: Data on students’ gender and lenswear (contacts, glasses, or none) in two-way table: Question: Since 129 females and 85 males wore no lenses, should we report that fewer males wore no lenses? Response: Fewer males overallcounts are misleading. Report proportion of females with no lenswear: proportion of males with no lenswear: conditional proportions: (higher) ©2011 Brooks/Cole, Cengage Learning Elementary Statistics: Looking at the Big Picture Practice: 5.26 p.162 Elementary Statistics: Looking at the Big Picture

10 Example: DISPLAY PERCENTS
(C) 2007 Nancy Pfenning Example: DISPLAY PERCENTS Background: Data on students’ gender and lenswear (contacts, glasses, or none) in two-way table: Question: Since 129 females and 85 males wore no lenses, should we report that fewer males wore no lenses? Response: Fewer males overallcounts are misleading. Report proportion of females with no lenswear: proportion of males with no lenswear: CONTACTS GLASSES NONE TOTAL FEMALE MALE conditional proportions: (higher) ©2011 Brooks/Cole, Cengage Learning Elementary Statistics: Looking at the Big Picture Practice: 5.26 p.162 Elementary Statistics: Looking at the Big Picture

11 Example: DISPLAY PERCENTS
(C) 2007 Nancy Pfenning Example: DISPLAY PERCENTS Background: Data on students’ gender and lenswear (contacts, glasses, or none) in two-way table: Question: Since 129 females and 85 males wore no lenses, should we report that fewer males wore no lenses? Response: Fewer males overallcounts are misleading. Report proportion of females with no lenswear: proportion of males with no lenswear: conditional proportions: (higher) ©2011 Brooks/Cole, Cengage Learning Elementary Statistics: Looking at the Big Picture Practice: 5.26 p.162 Elementary Statistics: Looking at the Big Picture

12 Example: Displaying Categorical Relationship
(C) 2007 Nancy Pfenning Example: Displaying Categorical Relationship Background: Counts and conditional percentages produced with software: Question: How can we display this information? Response: Bar graph: sex on hor. axis, lens % on vert. axis. Looking in Depth: We could also show three groups of two bars each. Caution: If we made lenswear explanatory, we’d compare 129/214 =60% with no lenses female, 85/214= 40% with no lenses male, etc. Why is this not useful? ©2011 Brooks/Cole, Cengage Learning Elementary Statistics: Looking at the Big Picture Practice: 5.21a-d p.161 Elementary Statistics: Looking at the Big Picture

13 Example: Interpreting Results
(C) 2007 Nancy Pfenning Example: Interpreting Results Background: Counts and conditional percentages produced with software: Questions: Are you convinced that, in general, all females wear contacts more than males do? all males are more likely to wear no lenses? Responses: Consider how different sample percentages are: Contacts: 43% (F) seems much more than 26% (M) No lenses: 46% (F) seems pretty close to 52% (M) . Looking Ahead: Inference will let us judge if sample differences are large enough to suggest a general trend. For now, we can guess that the first difference is “real”, due to different priorities for importance of appearance. ©2011 Brooks/Cole, Cengage Learning Elementary Statistics: Looking at the Big Picture Practice: 5.20d-g p.161 Elementary Statistics: Looking at the Big Picture

14 Example: Comparing Proportions
(C) 2007 Nancy Pfenning Example: Comparing Proportions Background: An experiment considered if wasp larvae were less likely to attack an embryo if it was a brother: Question: What are the relevant proportions to compare? Response: Brother: 16/31 = 0.52 were attacked Unrelated: 24/31 = 0.77 were attacked  less likely to attack a brother wasp Attacked Not attacked Total Brother 16 15 31 Unrelated 24 7 40 22 62 ©2011 Brooks/Cole, Cengage Learning Elementary Statistics: Looking at the Big Picture Practice: 5.32 p.164 Elementary Statistics: Looking at the Big Picture

15 Example: Comparing Proportions
(C) 2007 Nancy Pfenning Example: Comparing Proportions Background: An experiment considered if wasp larvae were less likely to attack an embryo if it was a brother: Brother: 16/31 = 0.52 were attacked Unrelated: 24/31 = 0.77 were attacked less likely to attack a brother wasp Questions for discussion: Would similar results be obtained for humans? (Picture children confined with either a sibling or a stranger…) Which more often has equal counts in the explanatory categories being compared: experiment or obs. study? ©2011 Brooks/Cole, Cengage Learning Elementary Statistics: Looking at the Big Picture Practice: 5.32 p.164 Elementary Statistics: Looking at the Big Picture

16 Another Comparison in Considering Categorical Relationships
(C) 2007 Nancy Pfenning Another Comparison in Considering Categorical Relationships Consider how different the counts are from what we’d expect if the “explanatory” and “response” variables were in fact unrelated. ©2011 Brooks/Cole, Cengage Learning Elementary Statistics: Looking at the Big Picture Elementary Statistics: Looking at the Big Picture

17 Example: Expected Counts
(C) 2007 Nancy Pfenning Example: Expected Counts Background: Experiment considered if wasp larvae were less likely to attack embryo if it was a brother: Question: What counts would we expect to see, if being a brother had no effect on likelihood of attack? Response: Overall 40/62 attacked expect (40/62)(31)=20 brothers, (40/62)(31)=20 unrelated to be attacked; Attacked Not attacked Total Brother 16 15 31 Unrelated 24 7 40 22 62  11  20  20  11 remaining 11 brothers and 11 unrelated not attacked. ©2011 Brooks/Cole, Cengage Learning Elementary Statistics: Looking at the Big Picture Practice: 5.29a p.163 Elementary Statistics: Looking at the Big Picture

18 Example: Comparing Counts
(C) 2007 Nancy Pfenning Example: Comparing Counts Background: Tables of observed and expected counts in wasp aggression experiment: Question: How do the counts compare? Response: Each observed is either 4 more or 4 less than expected. Obs A NA T B 16 15 31 U 24 7 40 22 62 Exp A NA T B 20 11 31 U 40 22 62 Looking Ahead: Inference (Part 4) will help decide if these differences are large enough to provide evidence that kinship and aggression are related. ©2011 Brooks/Cole, Cengage Learning Elementary Statistics: Looking at the Big Picture Practice: 5.29b p.163 Elementary Statistics: Looking at the Big Picture

19 Example: Expected Counts in Lenswear Table
(C) 2007 Nancy Pfenning Example: Expected Counts in Lenswear Table Background: Data on students’ gender and lenswear (contacts, glasses, or none) in two-way table: Question: What counts would we expect to wear glasses, if there were no relationship between gender and lenswear? Response: Altogether, 69/446 wore glasses. If there were no relationship, we’d expect females and =25 males with glasses. C G N Total F 121 32 129 282 M 42 37 85 164 163 69 214 446 ©2011 Brooks/Cole, Cengage Learning Elementary Statistics: Looking at the Big Picture Practice: 5.31d p.164 Elementary Statistics: Looking at the Big Picture

20 Example: Observed vs. Expected Counts
(C) 2007 Nancy Pfenning Example: Observed vs. Expected Counts Background:If gender and lenswear were unrelated, we’d expect 44 females and 25 males with glasses. Question: How different are the observed and expected counts of females and males with glasses? Response: Considerably fewer females wore glasses, compared to what we’d expect if there were no relationship. More males wore glasses than what we’d expect. C G N Total F 121 32 129 282 M 42 37 85 164 163 69 214 446 ©2011 Brooks/Cole, Cengage Learning Elementary Statistics: Looking at the Big Picture Practice: 5.31e p.164 Elementary Statistics: Looking at the Big Picture

21 Confounding Variable in Categorical Relationships
(C) 2007 Nancy Pfenning Confounding Variable in Categorical Relationships If data in two-way table arise from an observational study, consider possibility of confounding variables. Looking Back: Sampling and Design issues should always be considered before reporting summaries of single variables or relationships. ©2011 Brooks/Cole, Cengage Learning Elementary Statistics: Looking at the Big Picture Elementary Statistics: Looking at the Big Picture

22 Example: Confounding Variables
(C) 2007 Nancy Pfenning Example: Confounding Variables Background: Survey results for full-time students: Question: Is there a relationship between whether or not major is decided and living on or off campus? Response: %s are very different… (Is there a confounding variable?) ©2011 Brooks/Cole, Cengage Learning Elementary Statistics: Looking at the Big Picture Practice: 5.32b p.164 Elementary Statistics: Looking at the Big Picture

23 Example: Handling Confounding Variables
(C) 2007 Nancy Pfenning Example: Handling Confounding Variables Background: Year at school may be confounding variable in relationship between major decided or not and living situation. Question: How should we handle the data? Response: Separate according to year. Underclassmen (1st&2nd yr): proportions on campus are virtually identical for those with major decided or not. Upperclassmen (3rd &4th yr): proportions are “pretty close”. ©2011 Brooks/Cole, Cengage Learning Elementary Statistics: Looking at the Big Picture Practice: 5.32c p.164 Elementary Statistics: Looking at the Big Picture

24 Example: Handling Confounding Variables
(C) 2007 Nancy Pfenning Example: Handling Confounding Variables Background: Year at school may be confounding variable in relationship between major decided or not and living situation. Question: How should we handle the data? Response: Separate according to year. Looking Ahead: In Part 4, we will show that this difference (21% vs. 13%) is not “statistically significant”. ©2011 Brooks/Cole, Cengage Learning Elementary Statistics: Looking at the Big Picture Practice: 5.32c p.164 Elementary Statistics: Looking at the Big Picture

25 Elementary Statistics: Looking at the Big Picture
(C) 2007 Nancy Pfenning Simpson’s Paradox If the nature of a relationship changes, depending on whether groups are combined or kept separate, we call this phenomenon “Simpson’s Paradox”. ©2011 Brooks/Cole, Cengage Learning Elementary Statistics: Looking at the Big Picture Elementary Statistics: Looking at the Big Picture

26 Example: Considering Confounding Variables
(C) 2007 Nancy Pfenning Example: Considering Confounding Variables Background: Suppose that boys, like Bart, tend to eat a lot of sugar and they also tend to be hyperactive. Girls, like Lisa, tend not to eat much sugar and they are less likely to be hyperactive. Question: Why would the data lead to a misperception that sugar causes hyperactivity? Response: Simpson’s Paradox! ©2011 Brooks/Cole, Cengage Learning Elementary Statistics: Looking at the Big Picture Elementary Statistics: Looking at the Big Picture

27 Lecture Summary (Categorical Relationships)
(C) 2007 Nancy Pfenning Lecture Summary (Categorical Relationships) Two-Way Tables Individual variables in margins Relationship inside table Summarize: Compare (conditional) proportions. Display: Bar graph Interpreting Results: How different are proportions? Comparing Observed and Expected Counts Confounding Variables ©2011 Brooks/Cole, Cengage Learning Elementary Statistics: Looking at the Big Picture Elementary Statistics: Looking at the Big Picture


Download ppt "Elementary Statistics: Looking at the Big Picture"

Similar presentations


Ads by Google