{"id":390,"date":"2022-06-17T16:51:29","date_gmt":"2022-06-17T16:51:29","guid":{"rendered":"https:\/\/courses.lumenlearning.com\/alphamodule\/?post_type=chapter&#038;p=390"},"modified":"2022-06-17T16:51:39","modified_gmt":"2022-06-17T16:51:39","slug":"displaying-categorical-data-what-to-know-3","status":"publish","type":"chapter","link":"https:\/\/courses.lumenlearning.com\/alphamodule\/chapter\/displaying-categorical-data-what-to-know-3\/","title":{"raw":"Displaying Categorical Data: What to Know 3","rendered":"Displaying Categorical Data: What to Know 3"},"content":{"raw":"<h2 id=\"Bar Graphs\">Bar Graphs<\/h2>\r\nOne of the most commonly used graphs for visualizing the distribution of a categorical variable is a bar graph. In a <strong>bar graph<\/strong>, categories are represented by bars that are separated from each other. The bars can be vertical or horizontal, and the height (or length) of each bar represents the measure of the data in each category. Bars can represent frequencies, relative frequencies (proportion), or percentages.\r\n\r\n<img class=\"alignnone wp-image-1688\" src=\"https:\/\/s3-us-west-2.amazonaws.com\/courses-images\/wp-content\/uploads\/sites\/5738\/2021\/10\/19204205\/Screen-Shot-2022-01-19-at-3.41.46-PM.png\" alt=\"The bar graph is titled &quot;Vertical Bar Graph&quot; with the x-axis labeled &quot;Eye Color&quot;, and the y-axis labeled &quot;Height (in inches)&quot;. The height (in inches) ranges from 0-80 in increments of 10. The eye color and their heights (in inches) are as follows: Blue 48, Brown 72, Grey 59, Hazel 76, and Green 63.\" width=\"403\" height=\"243\" \/><img class=\"alignnone wp-image-1689\" src=\"https:\/\/s3-us-west-2.amazonaws.com\/courses-images\/wp-content\/uploads\/sites\/5738\/2021\/10\/19204355\/Screen-Shot-2022-01-19-at-3.43.40-PM.png\" alt=\"The bar graph is titled &quot;Horizontal Bar Graph&quot; with the x-axis labeled &quot;Height (in inches)&quot;, and the y-axis labeled &quot;Eye Color&quot;. The height (in inches) ranges from 0-80 in increments of 10. The eye color and their heights (in inches) are as follows: Blue 48, Brown 72, Grey 59, Hazel 76, and Green 63.\" width=\"444\" height=\"238\" \/>\r\n<h3 id=\"Bar Graphs\">Interpreting bar graphs<\/h3>\r\n<span style=\"background-color: #ffff00;\">At this point, students will be presented with two datasets. They will be able to choose which one they would like to use to answer example questions before creating bar graphs using the data analysis tool.<\/span>\r\n\r\nThe bar graph below displays the number of cones each of a small ice cream shop sold on the 4th of July. Note that the counts (numbers of cones) are listed on the vertical axis while each flavor sold is listed along the horizontal axis. Examine the graph, then answer the questions in the Example that follows.\r\n\r\n<img class=\"alignnone wp-image-2958 size-full\" src=\"https:\/\/s3-us-west-2.amazonaws.com\/courses-images\/wp-content\/uploads\/sites\/5738\/2021\/10\/08195223\/IceCream_Hist1.png\" alt=\"A bar graph entitled &quot;Ice Cream Sales.&quot; Butter Pecan has a count of less than 10. Strawberry has a count of more than 50 and less than 60. Neapolitan has a count of 30. Vanilla has a count of 45. Chocolate has a count of 50. Cookies and Cream has a count of 30. Mint Chocolate chip has a count of 60. Other has a count between 20 and 30.\" width=\"832\" height=\"350\" \/>\r\n<div class=\"textbox exercises\">\r\n<h3>Example<\/h3>\r\nUse the Ice Cream Flavors bar graph above to answer these questions.\r\n\r\na)\u00a0 Which flavor sold the fewest number of cones?[reveal-answer q=\"901078\"]Show Solution[\/reveal-answer]\r\n[hidden-answer a=\"901078\"]Butter Pecan[\/hidden-answer]\r\n\r\n&nbsp;\r\n\r\nb) About how many cones of Neapolitan ice cream were sold?\u00a0[reveal-answer q=\"110753\"]Show Solution[\/reveal-answer]\r\n[hidden-answer a=\"110753\"][latex]30[\/latex][\/hidden-answer]\r\n\r\n<\/div>\r\nNow that you have had a chance to become familiar with this categorical visualization, follow the directions below to use technology to create a bar graph for a real dataset.\r\n<h3 id=\"CreateBar\">Creating bar graphs from data<\/h3>\r\nRecall the frequency table you created earlier in this section using the <em>Describing and Exploring Categorical Data tool.\u00a0<\/em>When you used the technology tool to create the frequency table, a bar graph was also created on that page. Let's go back to the tool to explore the bar graph. If you still have the tool open for this dataset, just follow steps 4 and 5 below to view the bar graph.\r\n<div class=\"textbox\">\r\n\r\nGo to the data analysis tool\u00a0 <em>Describing and Exploring Categorical Data<\/em>\u00a0 at\u00a0 \u00a0<a href=\"https:\/\/dcmathpathways.shinyapps.io\/EDA_categorical\/\" target=\"_blank\" rel=\"noopener\">https:\/\/dcmathpathways.shinyapps.io\/EDA_categorical\/<\/a>\r\n<p style=\"padding-left: 30px;\">Step 1) Select the\u00a0<strong>One Categorical Variable<\/strong> tab.<\/p>\r\n<p style=\"padding-left: 30px;\">Step 2)\u00a0Locate the dropdown under <strong>Enter Data<\/strong> and select <strong>From Textbook<\/strong>.<\/p>\r\n<p style=\"padding-left: 30px;\">Step 3) Locate the dropdown under <strong>Dataset<\/strong> and select <strong>Young Adults: Enjoy Music<\/strong>.<\/p>\r\nSee the bar graph under the frequency table on the tool page. You can change the appearance of the graph using the<strong>\u00a0Options\u00a0<\/strong>selections. You can show counts or percentages on the vertical axis or in the bars, change the bars from vertical to horizontal, customize order, and even change the color of the bars in the\u00a0<strong>Modify\/Include\u00a0<\/strong>section. Let's explore how to change the bars from vertical to horizontal and then change the horizontal axis from Count to Percent (%).\r\n<p style=\"padding-left: 30px;\">Step 4)\u00a0<span style=\"font-size: 1em;\">Click the <strong>Horizontal Bars<\/strong> box to change the perspective of the graph from counts as bar-heights to bar-lengths. Note how the Count range switches from the vertical axis to the horizontal axis.\u00a0<\/span><\/p>\r\n<p style=\"padding-left: 30px;\"><span style=\"font-size: 1em;\">Step 5) Click the <strong>Show Percent<\/strong> box to change the heights (or lengths of horizontal bars) from counts to percentages. Note how the Count range switches to Percent (%).\u00a0<\/span><\/p>\r\n\r\n<\/div>\r\nTake a moment to explore switching these options back and forth to see how the graph changes then answer Question 5 below.\r\n<div class=\"textbox key-takeaways\">\r\n<h3>question 5<\/h3>\r\n[ohm_question hide_question_numbers=1]240591[\/ohm_question]\r\n\r\n[reveal-answer q=\"287570\"]Hint[\/reveal-answer]\r\n[hidden-answer a=\"287570\"]Hint: The heights of the bars represent the measure of the frequency, relative frequency, or percentage of surveyed young adults for each music rating.[\/hidden-answer]\r\n\r\n<\/div>\r\n<h2 id=\"Pie Charts\">Pie Charts<\/h2>\r\nAnother common graph used for displaying the distribution of categorical data is a pie chart. In a <strong>pie chart<\/strong>, categories are represented by wedges in a circle and are proportional in size to the percentage of individuals\/items in each category.\u00a0There are several ways to present pie chart data visually. A pie chart may include all the information needed to read it within each wedge or they may provided some image in the chart and some in a key off to the side.\r\n\r\n<img class=\"alignnone wp-image-1691\" src=\"https:\/\/s3-us-west-2.amazonaws.com\/courses-images\/wp-content\/uploads\/sites\/5738\/2021\/10\/19210226\/Screen-Shot-2022-01-19-at-4.01.15-PM.png\" alt=\"The pie chart is titled &quot;Students in a Course&quot; and includes 4 sections: Freshman (35%), Sophomore (29%), Junior (23%), and Senior (13%). These percentages are included inside the pie chart.\" width=\"449\" height=\"267\" \/><img class=\"alignnone wp-image-1692\" src=\"https:\/\/s3-us-west-2.amazonaws.com\/courses-images\/wp-content\/uploads\/sites\/5738\/2021\/10\/19210253\/Screen-Shot-2022-01-19-at-4.02.12-PM.png\" alt=\"The pie chart is titled &quot;Students in a Course&quot; and includes 4 sections: Freshman (35%), Sophomore (29%), Junior (23%), and Senior (13%). In this pie chart, only the percentages are included inside the pie chart with the student classifications listed outside of the pie chart in a legend.\" width=\"411\" height=\"246\" \/>\r\n<h3 id=\"Pie Charts\">Interpreting pie charts<\/h3>\r\nPie charts are useful for showing percentages (parts of a whole) at some particular instance in time. For example, the following chart displays flavors of ice cream sold at an ice cream shop as a percentage of all ice cream sales on July 4th. This chart contains the same information as the bar chart does above, but shows percentages rather than counts.\r\n\r\n<img class=\"alignnone wp-image-1801 size-full\" src=\"https:\/\/s3-us-west-2.amazonaws.com\/courses-images\/wp-content\/uploads\/sites\/5738\/2021\/10\/24221019\/Screen-Shot-2022-01-24-at-5.09.54-PM.png\" alt=\"The pie chart is titled &quot;Ice Cream Sales&quot; and is divided into 8 sections: Butter Pecan (2%), Strawberry (18%), Neapolitan (10%), Vanilla (15%), Chocolate (17%), Cookies and Cream (10%), Mint Chocolate Chip (20%), Other (8%).\" width=\"1736\" height=\"914\" \/>\r\n<div class=\"textbox exercises\">\r\n<h3>Example<\/h3>\r\nUse the chart above to answer the following questions.\r\n\r\na) What flavor made up the largest percentage of ice cream sales?\r\n[reveal-answer q=\"140681\"]Show Solution[\/reveal-answer]\r\n[hidden-answer a=\"140681\"]Mint Chocolate Chip[\/hidden-answer]\r\n\r\nb) What percent of sales was attributed to strawberry ice cream?\r\n<p style=\"padding-left: 30px;\">[reveal-answer q=\"806070\"]Show Solution[\/reveal-answer]\r\n[hidden-answer a=\"806070\"][latex]18[\/latex]%[\/hidden-answer]<\/p>\r\n\r\n<\/div>\r\n<h3 id=\"CreatePie\">Creating pie charts from data<\/h3>\r\nWhen you used the <em>Describing and Exploring Categorical Data\u00a0<\/em>data tool to create the frequency table and bar graph, you also had the option to create a pie chart. Let's do that now. If you still have the tool open, skip to Step 4 below.\r\n<div class=\"textbox\">\r\n\r\nGo to the data analysis tool\u00a0 <em>Describing and Exploring Categorical Data<\/em>\u00a0 at\u00a0 \u00a0<a href=\"https:\/\/dcmathpathways.shinyapps.io\/EDA_categorical\/\" target=\"_blank\" rel=\"noopener\">https:\/\/dcmathpathways.shinyapps.io\/EDA_categorical\/<\/a>\r\n<p style=\"padding-left: 30px;\">Step 1) Select the\u00a0<strong>One Categorical Variable<\/strong> tab.<\/p>\r\n<p style=\"padding-left: 30px;\">Step 2)\u00a0Locate the dropdown under <strong>Enter Data<\/strong> and select <strong>From Textbook<\/strong>.<\/p>\r\n<p style=\"padding-left: 30px;\">Step 3) Locate the dropdown under <strong>Dataset<\/strong> and select <strong>Young Adults: Enjoy Music<\/strong>.<\/p>\r\n<p style=\"padding-left: 30px;\">Step 4)\u00a0<span style=\"font-size: 1em;\">Under the\u00a0<strong>Additional Plots<\/strong> section, select <strong>Pie Chart<\/strong>.\u00a0<\/span>Scroll down to see the pie chart on the page under the bar graph.<\/p>\r\n\r\n<\/div>\r\n<div class=\"textbox key-takeaways\">\r\n<h3>question 6<\/h3>\r\n[ohm_question hide_question_numbers=1]240593[\/ohm_question]\r\n\r\n[reveal-answer q=\"282030\"]Hint[\/reveal-answer]\r\n[hidden-answer a=\"282030\"]Make sure that One Categorical Variable and the correct dataset (Young Adults: Enjoy Music) are selected.[\/hidden-answer]\r\n\r\n<\/div>\r\nIt's difficult to visualize a summary of the <em>Enjoy music <\/em>categories since just one or two of them dominate the chart. Let's leave the tool now and explore another one of the variables from the dataset: <em>Punctuality<\/em>. The following pie chart displays the distribution of the categorical variable <em>Punctuality<\/em>. Use this pie chart to answer Questions 7 and 8 below.\r\n\r\n<img class=\"aligncenter wp-image-1109\" src=\"https:\/\/s3-us-west-2.amazonaws.com\/courses-images\/wp-content\/uploads\/sites\/5738\/2021\/10\/12005123\/3A-Pie-Chart-67.png\" alt=\"A pie chart of young adults punctuality. The section for &quot;I am often early&quot; is 38.5%. The section for &quot;I am always on time&quot; is 34.6%. The section for &quot;I am often running late&quot; is 26.9%.\" width=\"504\" height=\"324\" \/>\r\n<div class=\"textbox key-takeaways\">\r\n<h3>question 7<\/h3>\r\n[ohm_question hide_question_numbers=1]240757[\/ohm_question]\r\n\r\n[reveal-answer q=\"100546\"]Hint[\/reveal-answer]\r\n[hidden-answer a=\"100546\"]Refer to the key next to the chart.[\/hidden-answer]\r\n\r\n<\/div>\r\n<div class=\"textbox key-takeaways\">\r\n<h3>question 8<\/h3>\r\n[ohm_question hide_question_numbers=1]240758[\/ohm_question]\r\n\r\n[reveal-answer q=\"899480\"]Hint[\/reveal-answer]\r\n[hidden-answer a=\"899480\"]What do <em>you<\/em> think?[\/hidden-answer]\r\n\r\n<\/div>","rendered":"<h2 id=\"Bar Graphs\">Bar Graphs<\/h2>\n<p>One of the most commonly used graphs for visualizing the distribution of a categorical variable is a bar graph. In a <strong>bar graph<\/strong>, categories are represented by bars that are separated from each other. The bars can be vertical or horizontal, and the height (or length) of each bar represents the measure of the data in each category. Bars can represent frequencies, relative frequencies (proportion), or percentages.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-1688\" src=\"https:\/\/s3-us-west-2.amazonaws.com\/courses-images\/wp-content\/uploads\/sites\/5738\/2021\/10\/19204205\/Screen-Shot-2022-01-19-at-3.41.46-PM.png\" alt=\"The bar graph is titled &quot;Vertical Bar Graph&quot; with the x-axis labeled &quot;Eye Color&quot;, and the y-axis labeled &quot;Height (in inches)&quot;. The height (in inches) ranges from 0-80 in increments of 10. The eye color and their heights (in inches) are as follows: Blue 48, Brown 72, Grey 59, Hazel 76, and Green 63.\" width=\"403\" height=\"243\" \/><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-1689\" src=\"https:\/\/s3-us-west-2.amazonaws.com\/courses-images\/wp-content\/uploads\/sites\/5738\/2021\/10\/19204355\/Screen-Shot-2022-01-19-at-3.43.40-PM.png\" alt=\"The bar graph is titled &quot;Horizontal Bar Graph&quot; with the x-axis labeled &quot;Height (in inches)&quot;, and the y-axis labeled &quot;Eye Color&quot;. The height (in inches) ranges from 0-80 in increments of 10. The eye color and their heights (in inches) are as follows: Blue 48, Brown 72, Grey 59, Hazel 76, and Green 63.\" width=\"444\" height=\"238\" \/><\/p>\n<h3 id=\"Bar Graphs\">Interpreting bar graphs<\/h3>\n<p><span style=\"background-color: #ffff00;\">At this point, students will be presented with two datasets. They will be able to choose which one they would like to use to answer example questions before creating bar graphs using the data analysis tool.<\/span><\/p>\n<p>The bar graph below displays the number of cones each of a small ice cream shop sold on the 4th of July. Note that the counts (numbers of cones) are listed on the vertical axis while each flavor sold is listed along the horizontal axis. Examine the graph, then answer the questions in the Example that follows.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-2958 size-full\" src=\"https:\/\/s3-us-west-2.amazonaws.com\/courses-images\/wp-content\/uploads\/sites\/5738\/2021\/10\/08195223\/IceCream_Hist1.png\" alt=\"A bar graph entitled &quot;Ice Cream Sales.&quot; Butter Pecan has a count of less than 10. Strawberry has a count of more than 50 and less than 60. Neapolitan has a count of 30. Vanilla has a count of 45. Chocolate has a count of 50. Cookies and Cream has a count of 30. Mint Chocolate chip has a count of 60. Other has a count between 20 and 30.\" width=\"832\" height=\"350\" \/><\/p>\n<div class=\"textbox exercises\">\n<h3>Example<\/h3>\n<p>Use the Ice Cream Flavors bar graph above to answer these questions.<\/p>\n<p>a)\u00a0 Which flavor sold the fewest number of cones?<\/p>\n<div class=\"qa-wrapper\" style=\"display: block\"><span class=\"show-answer collapsed\" style=\"cursor: pointer\" data-target=\"q901078\">Show Solution<\/span><\/p>\n<div id=\"q901078\" class=\"hidden-answer\" style=\"display: none\">Butter Pecan<\/div>\n<\/div>\n<p>&nbsp;<\/p>\n<p>b) About how many cones of Neapolitan ice cream were sold?\u00a0<\/p>\n<div class=\"qa-wrapper\" style=\"display: block\"><span class=\"show-answer collapsed\" style=\"cursor: pointer\" data-target=\"q110753\">Show Solution<\/span><\/p>\n<div id=\"q110753\" class=\"hidden-answer\" style=\"display: none\">[latex]30[\/latex]<\/div>\n<\/div>\n<\/div>\n<p>Now that you have had a chance to become familiar with this categorical visualization, follow the directions below to use technology to create a bar graph for a real dataset.<\/p>\n<h3 id=\"CreateBar\">Creating bar graphs from data<\/h3>\n<p>Recall the frequency table you created earlier in this section using the <em>Describing and Exploring Categorical Data tool.\u00a0<\/em>When you used the technology tool to create the frequency table, a bar graph was also created on that page. Let&#8217;s go back to the tool to explore the bar graph. If you still have the tool open for this dataset, just follow steps 4 and 5 below to view the bar graph.<\/p>\n<div class=\"textbox\">\n<p>Go to the data analysis tool\u00a0 <em>Describing and Exploring Categorical Data<\/em>\u00a0 at\u00a0 \u00a0<a href=\"https:\/\/dcmathpathways.shinyapps.io\/EDA_categorical\/\" target=\"_blank\" rel=\"noopener\">https:\/\/dcmathpathways.shinyapps.io\/EDA_categorical\/<\/a><\/p>\n<p style=\"padding-left: 30px;\">Step 1) Select the\u00a0<strong>One Categorical Variable<\/strong> tab.<\/p>\n<p style=\"padding-left: 30px;\">Step 2)\u00a0Locate the dropdown under <strong>Enter Data<\/strong> and select <strong>From Textbook<\/strong>.<\/p>\n<p style=\"padding-left: 30px;\">Step 3) Locate the dropdown under <strong>Dataset<\/strong> and select <strong>Young Adults: Enjoy Music<\/strong>.<\/p>\n<p>See the bar graph under the frequency table on the tool page. You can change the appearance of the graph using the<strong>\u00a0Options\u00a0<\/strong>selections. You can show counts or percentages on the vertical axis or in the bars, change the bars from vertical to horizontal, customize order, and even change the color of the bars in the\u00a0<strong>Modify\/Include\u00a0<\/strong>section. Let&#8217;s explore how to change the bars from vertical to horizontal and then change the horizontal axis from Count to Percent (%).<\/p>\n<p style=\"padding-left: 30px;\">Step 4)\u00a0<span style=\"font-size: 1em;\">Click the <strong>Horizontal Bars<\/strong> box to change the perspective of the graph from counts as bar-heights to bar-lengths. Note how the Count range switches from the vertical axis to the horizontal axis.\u00a0<\/span><\/p>\n<p style=\"padding-left: 30px;\"><span style=\"font-size: 1em;\">Step 5) Click the <strong>Show Percent<\/strong> box to change the heights (or lengths of horizontal bars) from counts to percentages. Note how the Count range switches to Percent (%).\u00a0<\/span><\/p>\n<\/div>\n<p>Take a moment to explore switching these options back and forth to see how the graph changes then answer Question 5 below.<\/p>\n<div class=\"textbox key-takeaways\">\n<h3>question 5<\/h3>\n<p><iframe loading=\"lazy\" id=\"ohm240591\" class=\"resizable\" src=\"https:\/\/ohm.lumenlearning.com\/multiembedq.php?id=240591&theme=oea&iframe_resize_id=ohm240591\" width=\"100%\" height=\"150\"><\/iframe><\/p>\n<div class=\"qa-wrapper\" style=\"display: block\"><span class=\"show-answer collapsed\" style=\"cursor: pointer\" data-target=\"q287570\">Hint<\/span><\/p>\n<div id=\"q287570\" class=\"hidden-answer\" style=\"display: none\">Hint: The heights of the bars represent the measure of the frequency, relative frequency, or percentage of surveyed young adults for each music rating.<\/div>\n<\/div>\n<\/div>\n<h2 id=\"Pie Charts\">Pie Charts<\/h2>\n<p>Another common graph used for displaying the distribution of categorical data is a pie chart. In a <strong>pie chart<\/strong>, categories are represented by wedges in a circle and are proportional in size to the percentage of individuals\/items in each category.\u00a0There are several ways to present pie chart data visually. A pie chart may include all the information needed to read it within each wedge or they may provided some image in the chart and some in a key off to the side.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-1691\" src=\"https:\/\/s3-us-west-2.amazonaws.com\/courses-images\/wp-content\/uploads\/sites\/5738\/2021\/10\/19210226\/Screen-Shot-2022-01-19-at-4.01.15-PM.png\" alt=\"The pie chart is titled &quot;Students in a Course&quot; and includes 4 sections: Freshman (35%), Sophomore (29%), Junior (23%), and Senior (13%). These percentages are included inside the pie chart.\" width=\"449\" height=\"267\" \/><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-1692\" src=\"https:\/\/s3-us-west-2.amazonaws.com\/courses-images\/wp-content\/uploads\/sites\/5738\/2021\/10\/19210253\/Screen-Shot-2022-01-19-at-4.02.12-PM.png\" alt=\"The pie chart is titled &quot;Students in a Course&quot; and includes 4 sections: Freshman (35%), Sophomore (29%), Junior (23%), and Senior (13%). In this pie chart, only the percentages are included inside the pie chart with the student classifications listed outside of the pie chart in a legend.\" width=\"411\" height=\"246\" \/><\/p>\n<h3 id=\"Pie Charts\">Interpreting pie charts<\/h3>\n<p>Pie charts are useful for showing percentages (parts of a whole) at some particular instance in time. For example, the following chart displays flavors of ice cream sold at an ice cream shop as a percentage of all ice cream sales on July 4th. This chart contains the same information as the bar chart does above, but shows percentages rather than counts.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-1801 size-full\" src=\"https:\/\/s3-us-west-2.amazonaws.com\/courses-images\/wp-content\/uploads\/sites\/5738\/2021\/10\/24221019\/Screen-Shot-2022-01-24-at-5.09.54-PM.png\" alt=\"The pie chart is titled &quot;Ice Cream Sales&quot; and is divided into 8 sections: Butter Pecan (2%), Strawberry (18%), Neapolitan (10%), Vanilla (15%), Chocolate (17%), Cookies and Cream (10%), Mint Chocolate Chip (20%), Other (8%).\" width=\"1736\" height=\"914\" \/><\/p>\n<div class=\"textbox exercises\">\n<h3>Example<\/h3>\n<p>Use the chart above to answer the following questions.<\/p>\n<p>a) What flavor made up the largest percentage of ice cream sales?<\/p>\n<div class=\"qa-wrapper\" style=\"display: block\"><span class=\"show-answer collapsed\" style=\"cursor: pointer\" data-target=\"q140681\">Show Solution<\/span><\/p>\n<div id=\"q140681\" class=\"hidden-answer\" style=\"display: none\">Mint Chocolate Chip<\/div>\n<\/div>\n<p>b) What percent of sales was attributed to strawberry ice cream?<\/p>\n<p style=\"padding-left: 30px;\">\n<div class=\"qa-wrapper\" style=\"display: block\"><span class=\"show-answer collapsed\" style=\"cursor: pointer\" data-target=\"q806070\">Show Solution<\/span><\/p>\n<div id=\"q806070\" class=\"hidden-answer\" style=\"display: none\">[latex]18[\/latex]%<\/div>\n<\/div>\n<\/div>\n<h3 id=\"CreatePie\">Creating pie charts from data<\/h3>\n<p>When you used the <em>Describing and Exploring Categorical Data\u00a0<\/em>data tool to create the frequency table and bar graph, you also had the option to create a pie chart. Let&#8217;s do that now. If you still have the tool open, skip to Step 4 below.<\/p>\n<div class=\"textbox\">\n<p>Go to the data analysis tool\u00a0 <em>Describing and Exploring Categorical Data<\/em>\u00a0 at\u00a0 \u00a0<a href=\"https:\/\/dcmathpathways.shinyapps.io\/EDA_categorical\/\" target=\"_blank\" rel=\"noopener\">https:\/\/dcmathpathways.shinyapps.io\/EDA_categorical\/<\/a><\/p>\n<p style=\"padding-left: 30px;\">Step 1) Select the\u00a0<strong>One Categorical Variable<\/strong> tab.<\/p>\n<p style=\"padding-left: 30px;\">Step 2)\u00a0Locate the dropdown under <strong>Enter Data<\/strong> and select <strong>From Textbook<\/strong>.<\/p>\n<p style=\"padding-left: 30px;\">Step 3) Locate the dropdown under <strong>Dataset<\/strong> and select <strong>Young Adults: Enjoy Music<\/strong>.<\/p>\n<p style=\"padding-left: 30px;\">Step 4)\u00a0<span style=\"font-size: 1em;\">Under the\u00a0<strong>Additional Plots<\/strong> section, select <strong>Pie Chart<\/strong>.\u00a0<\/span>Scroll down to see the pie chart on the page under the bar graph.<\/p>\n<\/div>\n<div class=\"textbox key-takeaways\">\n<h3>question 6<\/h3>\n<p><iframe loading=\"lazy\" id=\"ohm240593\" class=\"resizable\" src=\"https:\/\/ohm.lumenlearning.com\/multiembedq.php?id=240593&theme=oea&iframe_resize_id=ohm240593\" width=\"100%\" height=\"150\"><\/iframe><\/p>\n<div class=\"qa-wrapper\" style=\"display: block\"><span class=\"show-answer collapsed\" style=\"cursor: pointer\" data-target=\"q282030\">Hint<\/span><\/p>\n<div id=\"q282030\" class=\"hidden-answer\" style=\"display: none\">Make sure that One Categorical Variable and the correct dataset (Young Adults: Enjoy Music) are selected.<\/div>\n<\/div>\n<\/div>\n<p>It&#8217;s difficult to visualize a summary of the <em>Enjoy music <\/em>categories since just one or two of them dominate the chart. Let&#8217;s leave the tool now and explore another one of the variables from the dataset: <em>Punctuality<\/em>. The following pie chart displays the distribution of the categorical variable <em>Punctuality<\/em>. Use this pie chart to answer Questions 7 and 8 below.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-1109\" src=\"https:\/\/s3-us-west-2.amazonaws.com\/courses-images\/wp-content\/uploads\/sites\/5738\/2021\/10\/12005123\/3A-Pie-Chart-67.png\" alt=\"A pie chart of young adults punctuality. The section for &quot;I am often early&quot; is 38.5%. The section for &quot;I am always on time&quot; is 34.6%. The section for &quot;I am often running late&quot; is 26.9%.\" width=\"504\" height=\"324\" \/><\/p>\n<div class=\"textbox key-takeaways\">\n<h3>question 7<\/h3>\n<p><iframe loading=\"lazy\" id=\"ohm240757\" class=\"resizable\" src=\"https:\/\/ohm.lumenlearning.com\/multiembedq.php?id=240757&theme=oea&iframe_resize_id=ohm240757\" width=\"100%\" height=\"150\"><\/iframe><\/p>\n<div class=\"qa-wrapper\" style=\"display: block\"><span class=\"show-answer collapsed\" style=\"cursor: pointer\" data-target=\"q100546\">Hint<\/span><\/p>\n<div id=\"q100546\" class=\"hidden-answer\" style=\"display: none\">Refer to the key next to the chart.<\/div>\n<\/div>\n<\/div>\n<div class=\"textbox key-takeaways\">\n<h3>question 8<\/h3>\n<p><iframe loading=\"lazy\" id=\"ohm240758\" class=\"resizable\" src=\"https:\/\/ohm.lumenlearning.com\/multiembedq.php?id=240758&theme=oea&iframe_resize_id=ohm240758\" width=\"100%\" height=\"150\"><\/iframe><\/p>\n<div class=\"qa-wrapper\" style=\"display: block\"><span class=\"show-answer collapsed\" style=\"cursor: pointer\" data-target=\"q899480\">Hint<\/span><\/p>\n<div id=\"q899480\" class=\"hidden-answer\" style=\"display: none\">What do <em>you<\/em> think?<\/div>\n<\/div>\n<\/div>\n","protected":false},"author":17533,"menu_order":6,"template":"","meta":{"_candela_citation":"[]","CANDELA_OUTCOMES_GUID":"","pb_show_title":"on","pb_short_title":"","pb_subtitle":"","pb_authors":[],"pb_section_license":""},"chapter-type":[],"contributor":[],"license":[],"class_list":["post-390","chapter","type-chapter","status-publish","hentry"],"part":160,"_links":{"self":[{"href":"https:\/\/courses.lumenlearning.com\/alphamodule\/wp-json\/pressbooks\/v2\/chapters\/390","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/courses.lumenlearning.com\/alphamodule\/wp-json\/pressbooks\/v2\/chapters"}],"about":[{"href":"https:\/\/courses.lumenlearning.com\/alphamodule\/wp-json\/wp\/v2\/types\/chapter"}],"author":[{"embeddable":true,"href":"https:\/\/courses.lumenlearning.com\/alphamodule\/wp-json\/wp\/v2\/users\/17533"}],"version-history":[{"count":1,"href":"https:\/\/courses.lumenlearning.com\/alphamodule\/wp-json\/pressbooks\/v2\/chapters\/390\/revisions"}],"predecessor-version":[{"id":400,"href":"https:\/\/courses.lumenlearning.com\/alphamodule\/wp-json\/pressbooks\/v2\/chapters\/390\/revisions\/400"}],"part":[{"href":"https:\/\/courses.lumenlearning.com\/alphamodule\/wp-json\/pressbooks\/v2\/parts\/160"}],"metadata":[{"href":"https:\/\/courses.lumenlearning.com\/alphamodule\/wp-json\/pressbooks\/v2\/chapters\/390\/metadata\/"}],"wp:attachment":[{"href":"https:\/\/courses.lumenlearning.com\/alphamodule\/wp-json\/wp\/v2\/media?parent=390"}],"wp:term":[{"taxonomy":"chapter-type","embeddable":true,"href":"https:\/\/courses.lumenlearning.com\/alphamodule\/wp-json\/pressbooks\/v2\/chapter-type?post=390"},{"taxonomy":"contributor","embeddable":true,"href":"https:\/\/courses.lumenlearning.com\/alphamodule\/wp-json\/wp\/v2\/contributor?post=390"},{"taxonomy":"license","embeddable":true,"href":"https:\/\/courses.lumenlearning.com\/alphamodule\/wp-json\/wp\/v2\/license?post=390"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}