1 / 44

Chapter One exploring data

Chapter One exploring data. Section 1.1 analyzing categorical data. Distribution of a categorical variable. Frequency table. Relative frequency table.

Download Presentation

Chapter One exploring data

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. Chapter One exploring data Section 1.1 analyzing categorical data

  2. Distribution of a categorical variable Frequency table Relative frequency table

  3. In this case, the individuals are the radio stations and the variable being measured is the kind of programming that each station broadcasts. The table on the left, which we call a frequency table, displays the counts of stations in each format category. On the right, we see a relative frequency table of the data that shows the percents of stations in each format category.

  4. Distribution of a categorical variable Frequency table Relative frequency table

  5. It’s a good idea to check data for consistency. The counts should add to 13,838, the total number of stations. They do. The percents should add to 100%. In fact, they add to 99.9%. What happened? Each percent is rounded to the nearest tenth. The exact percents would add to 100, but the rounded percents only come close. This is roundoff error. Roundoff errors don’t point to mistakes in our work, just to the effect of rounding off results.

  6. Pie charts

  7. Pie charts are best when emphasizing each categories relation to the whole

  8. Pie charts are best when emphasizing each categories relation to the whole • Bar graphs are also called bar charts

  9. Pie charts are best when emphasizing each categories relation to the whole • Bar graphs are also called bar charts • Bar graphs are also more flexible than pie charts. Both graphs can display the distribution of a categorical variable, but a bar graph can also compare any set of quantities that are measured in the same units.

  10. Bar charts

  11. If I were to give you a list of several age groups and the percent of people in each age group that own an ipod what do you think would be better to display the data a pie chart or a bar graph???

  12. Bar Graph Because the data will not add up to a whole it is separate data we are comparing

  13. Bar graphs can be misleading in 2 ways… If you don’t keep the widths even the proportions will be misleading If you don’t start the vertical scale at zero the proprtions by comparison can also be misleading

  14. What happens when we have two categorical variables?? A sample of 200 children were asked which superpower they would most like to have and their gender was also recorded, let’s look at the results…

  15. This is a two-way table because it describes two categorical variables, gender and superpower preference. Superpower is the row variable because each row in the table describes a different superpower the kids chose. Gender is the column variable. The entries in the table are the counts of individuals in each preference-by-gender class.

  16. The distributions of preference alone and gender alone are called marginal distributions because they appear at the right and bottom margins of the two-way table.

  17. The distributions of preference alone and gender alone are called marginal distributions because they appear at the right and bottom margins of the two-way table. The marginal distribution of one of the categorical variables in a two-way table of counts is the distribution of values of that variable among all individuals described by the table.

  18. The distributions of preference alone and gender alone are called marginal distributions because they appear at the right and bottom margins of the two-way table. The marginal distribution of one of the categorical variables in a two-way table of counts is the distribution of values of that variable among all individuals described by the table. Now if we want to display the marginal distribution as percents we use the following formula: row total = 30 = 0.15 = 15% table total 200

  19. The distributions of preference alone and gender alone are called marginal distributions because they appear at the right and bottom margins of the two-way table. The marginal distribution of one of the categorical variables in a two-way table of counts is the distribution of values of that variable among all individuals described by the table. Now if we want to display the marginal distribution as percents we use the following formula: row total = 30 = 0.15 = 15% table total 200 Now lets convert the whole marginal distribution into percents

  20. Now if we were to change all the data in the female column to percents we would have the conditional distributionof preference among girls.

  21. Now if we were to change all the data in the female column to percents we would have the conditional distributionof preference among girls. A conditional distribution of a variable describes the values of that variable among individuals who have a specific value of another variable. There is a separate conditional distribution for each value of the other variable.

  22. Organizing a statistical problem Although no single strategy will work on every problem, here is a four step process that can be helpful to follow

  23. Organizing a statistical problem Although no single strategy will work on every problem, here is a four step process that can be helpful to follow State: What’s the question that you’re trying to answer?

  24. Organizing a statistical problem Although no single strategy will work on every problem, here is a four step process that can be helpful to follow State: What’s the question that you’re trying to answer? Plan: How will you go about answering the question? What Statistical techniques does this problem call for?

  25. Organizing a statistical problem Although no single strategy will work on every problem, here is a four step process that can be helpful to follow State: What’s the question that you’re trying to answer? Plan: How will you go about answering the question? What Statistical techniques does this problem call for? Do: Make graphs and carry out needed calculations.

  26. Organizing a statistical problem Although no single strategy will work on every problem, here is a four step process that can be helpful to follow State: What’s the question that you’re trying to answer? Plan: How will you go about answering the question? What Statistical techniques does this problem call for? Do: Make graphs and carry out needed calculations. Conclude: Give your practical conclusion in the setting of the real-world problem.

  27. Based on the survey data, can we conclude that boys and girls differ in their preference of superpower? Let’s use the four-step process to support our answer with evidence.

  28. Based on the survey data, can we conclude that boys and girls differ in their preference of superpower? Let’s use the four-step process to support our answer with evidence. State: What is the relationship between gender and the answer to the question “What superpower would you prefer?”

  29. Based on the survey data, can we conclude that boys and girls differ in their preference of superpower? Let’s use the four-step process to support our answer with evidence. State: What is the relationship between gender and the answer to the question “What superpower would you prefer?” Plan: We suspect that gender might influence a child’s opinion about superpowers. So we will compare the conditional distributions of responses for females alone and for males alone.

  30. Based on the survey data, can we conclude that boys and girls differ in their preference of superpower? Let’s use the four-step process to support our answer with evidence. State: What is the relationship between gender and the answer to the question “What superpower would you prefer?” Plan: We suspect that gender might influence a child’s opinion about superpowers. So we will compare the conditional distributions of responses for females alone and for males alone. Do: Here is a table and side-by-side bar graph comparing the opinions of males and females. We will use percents instead of counts since the numbers of females and males are different.

  31. State: What is the relationship between gender and the answer to the question “What superpower would you prefer?” Plan: We suspect that gender might influence a child’s opinion about superpowers. So we will compare the conditional distributions of responses for females alone and for males alone. Do: Here is a table and side-by-side bar graph comparing the opinions of males and females. We will use percents instead of counts since the numbers of females and males are different.

  32. Conclude: Based on the sample data, females were much more likely to choose telepathy than males, while males were much more likely to choose superstrength or freeze time than females. Females were slightly more likely to choose flying and equally likely to choose invisibility.

  33. Conclude: Based on the sample data, females were much more likely to choose telepathy than males, while males were much more likely to choose superstrength or freeze time than females. Females were slightly more likely to choose flying and equally likely to choose invisibility. We say that there is an association between two variables if specific values of one variable tend to occur in common with specific values of the other.

  34. Conclude: Based on the sample data, females were much more likely to choose telepathy than males, while males were much more likely to choose superstrength or freeze time than females. Females were slightly more likely to choose flying and equally likely to choose invisibility. We say that there is an association between two variables if specific values of one variable tend to occur in common with specific values of the other. So… if Females are more likely to choose telepathy that means there is an association between the variable gender and superpower choice.

  35. Summary • The distribution of a categorical variable lists the categories and gives the count (frequency table) or percent (relative frequency table) of individuals that fall in each category.

  36. Summary • The distribution of a categorical variable lists the categories and gives the count (frequency table) or percent (relative frequency table) of individuals that fall in each category. • Pie charts and bar graphs display the distribution of a categorical variable. Bar graphs can also compare any set of quantities measured in the same units. When examining any graph, ask yourself, “ What do I see?”

  37. Summary • The distribution of a categorical variable lists the categories and gives the count (frequency table) or percent (relative frequency table) of individuals that fall in each category. • Pie charts and bar graphs display the distribution of a categorical variable. Bar graphs can also compare any set of quantities measured in the same units. When examining any graph, ask yourself, “ What do I see?” • A two-way table of counts organizes data about two categorical variables. Two-way tables are often used to summarize large amounts of information by grouping outcomes into categories.

  38. Summary • The row totals and column totals in a two-way table give the marginal distributions of the two individual variables. It is clearer to present these distributions as percents of the table total. Marginal distributions tell us nothing about the relationship between the variables.

  39. Summary • The row totals and column totals in a two-way table give the marginal distributions of the two individual variables. It is clearer to present these distributions as percents of the table total. Marginal distributions tell us nothing about the relationship between the variables. • Theses are two sets of conditional distributions for a two-way table: the distributions of the row variable for each value of the column variable, and the distributions of the column variable for each value of the row variable.

  40. Summary • The row totals and column totals in a two-way table give the marginal distributions of the two individual variables. It is clearer to present these distributions as percents of the table total. Marginal distributions tell us nothing about the relationship between the variables. • Theses are two sets of conditional distributions for a two-way table: the distributions of the row variable for each value of the column variable, and the distributions of the column variable for each value of the row variable. • A statistical problem has a real-world setting. You can organize many problems using the four steps state, plan, do, and conclude.

  41. Summary • To describe the association between the row and column variables, compare an appropriate set of conditional distributions. Remember that even a strong association between two categorical variables can be influenced by other variables lurking in the background.

  42. Summary • To describe the association between the row and column variables, compare an appropriate set of conditional distributions. Remember that even a strong association between two categorical variables can be influenced by other variables lurking in the background.

More Related