Chapter 3 Graphical and Numerical Summaries of Qualitative Data UNIT OBJECTIVES At the conclusion of this unit you should be able to: n 1)Construct graphs that appropriately describe data n 2)Calculate and interpret numerical summaries of a data set. n 3)Combine numerical methods with graphical methods to analyze a data set.
Displaying Qualitative Data “Sometimes you can see a lot just by looking.” Yogi Berra Hall of Fame Catcher, NY Yankees
The three rules of data analysis won’t be difficult to remember n 1.Make a picture —reveals aspects not obvious in the raw data; enables you to think clearly about the patterns and relationships that may be hiding in your data. n 2.Make a picture —to show important features of and patterns in the data. You may also see things that you did not expect: the extraordinary (possibly wrong) data values or unexpected patterns n 3.Make a picture —the best way to tell others about your data is with a well-chosen picture.
Bar Charts: show counts or relative frequency for each category n Example: Titanic passenger/crew distribution
Pie Charts: shows proportions of the whole in each category n Example: Titanic passenger/crew distribution
Example: Top 10 causes of death in the United States 2001 RankCauses of deathCounts % of top 10s % of total deaths 1Heart disease700,14237%28% 2Cancer553,76829%22% 3Cerebrovascular163,5389%6% 4Chronic respiratory123,0136%5% 5Accidents101,5375%4% 6Diabetes mellitus71,3724%3% 7Flu and pneumonia62,0343%2% 8Alzheimer’s disease53,8523%2% 9Kidney disorders39,4802% 10Septicemia32,2382%1% All other causes629,96725% For each individual who died in the United States in 2001, we record what was the cause of death. The table above is a summary of that information.
Top 10 causes of deaths in the United States 2001 Top 10 causes of death: bar graph Each category is represented by one bar. The bar’s height shows the count (or sometimes the percentage) for that particular category. The number of individuals who died of an accident in 2001 is approximately 100,000.
Bar graph sorted by rank Easy to analyze Top 10 causes of deaths in the United States 2001 Sorted alphabetically Much less useful
Percent of people dying from top 10 causes of death in the United States in 2001 Top 10 causes of death: pie chart Each slice represents a piece of one whole. The size of a slice depends on what percent of the whole this category represents.
Percent of deaths from top 10 causes Percent of deaths from all causes Make sure your labels match the data. Make sure all percents add up to 100.
Side-by side bar chart
Student Debt North Carolina Schools
Contingency Tables: Categories for Two Variables n Example: Survival and class on the Titanic Marginal distributions marg. dist. of survival 710/ % 1491/ % marg. dist. of class 885/ % 325/ % 285/ % 706/ %
Marginal distribution of class. Bar chart.
Marginal distribution of class: Pie chart
Contingency Tables: Categories for Two Variables (cont.) n Conditional distributions. Given the class of a passenger, what is the chance the passenger survived?
Conditional distributions: segmented bar chart
Contingency Tables: Categories for Two Variables (cont.) Questions: n What fraction of survivors were in first class? n What fraction of passengers were in first class and survivors ? n What fraction of the first class passengers survived? 202/ / /325
TV viewers during the Super Bowl in What is the marginal distribution of those who watched the commercials only? % % % %
TV viewers during the Super Bowl in What percentage watched the Game and were Female? % % % %
TV viewers during the Super Bowl in Given that a viewer did not watch the Super Bowl Game or Commercials, what percentage were male? % % % %
3-Way Tables n Example: Georgia death-sentence data
UC Berkeley Lawsuit
LAWSUIT (cont.)
Simpson’s Paradox n The reversal of the direction of a comparison or association when data from several groups are combined to form a single group.
Fly Alaska Airlines, the on- time airline!
American West Wins! You’re a Hero!
End of Chapter 3