{"id":84146,"date":"2026-03-20T15:43:01","date_gmt":"2026-03-20T20:43:01","guid":{"rendered":"https:\/\/www.albert.io\/blog\/ap-statistics-representing-two-categorical-variables\/"},"modified":"2026-11-16T20:42:37","modified_gmt":"2026-11-17T02:42:37","slug":"ap-statistics-representing-two-categorical-variables","status":"publish","type":"post","link":"https:\/\/www.albert.io\/blog\/ap-statistics-representing-two-categorical-variables\/","title":{"rendered":"AP Statistics Review: Representing Two Categorical Variables"},"content":{"rendered":"<p>When you have two categorical variables, a simple bar chart isn\u2019t enough. You need to see how one variable\u2019s distribution changes across groups of the other. Two-way tables, bar graphs, and mosaic plots are the tools for this job. This article covers AP Statistics Topic 2.1 (UNC-1.P): organizing two categorical variables, calculating the three types of relative frequency, and choosing the right display to reveal relationships in your data.<\/p>\n<h2>Two-Way Tables: Your Foundation<\/h2>\n<p>A <strong>two-way table<\/strong> (also called a contingency table) displays counts for every combination of two categorical variables. Suppose you surveyed 200 students about their favorite lunch option (pizza, salad, sandwich) and their grade level (junior or senior):<\/p>\n<figure id=\"attachment_124130\" aria-describedby=\"caption-attachment-124130\" style=\"width: 700px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" class=\"size-large wp-image-124130\" src=\"https:\/\/www.albert.io\/blog\/wp-content\/uploads\/2026\/11\/two-way-table-segmented-bar.png\" alt=\"A two-way table and segmented bar chart compare conditional distributions.\" width=\"700\" height=\"253\" srcset=\"https:\/\/www.albert.io\/blog\/wp-content\/uploads\/2026\/11\/two-way-table-segmented-bar.png 1218w, https:\/\/www.albert.io\/blog\/wp-content\/uploads\/2026\/11\/two-way-table-segmented-bar-300x108.png 300w, https:\/\/www.albert.io\/blog\/wp-content\/uploads\/2026\/11\/two-way-table-segmented-bar-1024x370.png 1024w, https:\/\/www.albert.io\/blog\/wp-content\/uploads\/2026\/11\/two-way-table-segmented-bar-768x277.png 768w\" sizes=\"auto, (max-width: 700px) 100vw, 700px\" \/><figcaption id=\"caption-attachment-124130\" class=\"wp-caption-text\">A two-way table and segmented bar chart compare conditional distributions.<\/figcaption><\/figure>\n<table>\n<thead>\n<tr>\n<th><\/th>\n<th>Pizza<\/th>\n<th>Salad<\/th>\n<th>Sandwich<\/th>\n<th>Total<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td><strong>Junior<\/strong><\/td>\n<td>45<\/td>\n<td>28<\/td>\n<td>32<\/td>\n<td>105<\/td>\n<\/tr>\n<tr>\n<td><strong>Senior<\/strong><\/td>\n<td>38<\/td>\n<td>35<\/td>\n<td>22<\/td>\n<td>95<\/td>\n<\/tr>\n<tr>\n<td><strong>Total<\/strong><\/td>\n<td>83<\/td>\n<td>63<\/td>\n<td>54<\/td>\n<td>200<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>The inner cells are <strong>cell frequencies<\/strong>. Row and column totals are <strong>marginal frequencies<\/strong>. The lower-right corner is the <strong>grand total<\/strong>. Raw counts are useful, but proportions reveal patterns more clearly.<\/p>\n<h2>Understanding the Three Types of Relative Frequencies<\/h2>\n<p>Dividing counts by the appropriate total produces relative frequencies (proportions) that make comparisons fair across groups of different sizes. Each type answers a different question.<\/p>\n<figure id=\"attachment_124127\" aria-describedby=\"caption-attachment-124127\" style=\"width: 700px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" class=\"size-large wp-image-124127\" src=\"https:\/\/www.albert.io\/blog\/wp-content\/uploads\/2026\/11\/bar-chart-and-pie-chart.png\" alt=\"Bar charts and pie charts for one categorical variable.\" width=\"700\" height=\"275\" srcset=\"https:\/\/www.albert.io\/blog\/wp-content\/uploads\/2026\/11\/bar-chart-and-pie-chart.png 1119w, https:\/\/www.albert.io\/blog\/wp-content\/uploads\/2026\/11\/bar-chart-and-pie-chart-300x118.png 300w, https:\/\/www.albert.io\/blog\/wp-content\/uploads\/2026\/11\/bar-chart-and-pie-chart-1024x403.png 1024w, https:\/\/www.albert.io\/blog\/wp-content\/uploads\/2026\/11\/bar-chart-and-pie-chart-768x302.png 768w\" sizes=\"auto, (max-width: 700px) 100vw, 700px\" \/><figcaption id=\"caption-attachment-124127\" class=\"wp-caption-text\">Bar charts and pie charts for one categorical variable.<\/figcaption><\/figure>\n<p><strong>Joint Relative Frequency:<\/strong> \u201cWhat fraction of <em>all<\/em> observations falls in this specific cell?\u201d Divide the cell frequency by the grand total. For juniors who prefer pizza: 45 \/ 200 = <strong>0.225 (22.5%)<\/strong>. All joint relative frequencies sum to 1.<\/p>\n<p><strong>Marginal Relative Frequency:<\/strong> \u201cWhat fraction of observations belongs to this overall category, ignoring the other variable?\u201d Divide the marginal total by the grand total. For juniors overall: 105 \/ 200 = <strong>0.525 (52.5%)<\/strong>.<\/p>\n<p><strong>Conditional Relative Frequency:<\/strong> \u201cGiven a specific group, what fraction chooses this option?\u201d Divide the cell frequency by the relevant marginal total \u2014 not the grand total. For pizza preference among juniors: 45 \/ 105 = <strong>0.429 (42.9%)<\/strong>.<\/p>\n<table>\n<thead>\n<tr>\n<th>Relative Frequency Type<\/th>\n<th>Question Answered<\/th>\n<th>Denominator<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>Joint<\/td>\n<td>What fraction of all observations is in this cell?<\/td>\n<td>Grand total (200)<\/td>\n<\/tr>\n<tr>\n<td>Marginal<\/td>\n<td>What fraction belongs to this overall category?<\/td>\n<td>Grand total (200)<\/td>\n<\/tr>\n<tr>\n<td>Conditional<\/td>\n<td>Given this group, what fraction chooses this option?<\/td>\n<td>Marginal total (e.g., 105 juniors)<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2>Graphical Representations: Side-by-Side and Segmented Bar Graphs<\/h2>\n<p><strong>Side-by-Side Bar Graphs:<\/strong> Groups bars by category, placing them next to each other for direct comparison. Use conditional relative frequencies (not raw counts) on the y-axis so different group sizes don\u2019t distort the comparison. Best when your question is \u201cHow does the frequency of one category compare across groups?\u201d<\/p>\n<p><strong>Segmented Bar Graphs:<\/strong> Shows the full distribution of one variable within each group as a single bar divided into labeled segments. Each bar reaches 100% and each segment\u2019s height represents the conditional relative frequency. Best when your question is \u201cDoes the overall composition of preferences differ between groups?\u201d<\/p>\n<table>\n<thead>\n<tr>\n<th>Display<\/th>\n<th>Best Question<\/th>\n<th>Main Limitation<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>Side-by-side bar graph<\/td>\n<td>How does one specific category compare across groups?<\/td>\n<td>Can get crowded with many categories<\/td>\n<\/tr>\n<tr>\n<td>Segmented bar graph<\/td>\n<td>Does the overall composition differ between groups?<\/td>\n<td>Hard to compare segments that start at different baselines<\/td>\n<\/tr>\n<tr>\n<td>Mosaic plot<\/td>\n<td>Do the distributions appear independent?<\/td>\n<td>Requires interpreting both width and height simultaneously<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2>Mosaic Plots: A Visual Representation of All Three Frequencies<\/h2>\n<p>A <strong>mosaic plot<\/strong> represents all three relative frequency types as a rectangle divided into tiles. The <em>width<\/em> of each column represents the marginal relative frequency. The <em>height<\/em> of each tile represents the conditional relative frequency. The <em>area<\/em> of each tile equals the joint relative frequency. If all tiles in each column have the same proportional heights, the variables are independent. If heights vary across columns, there\u2019s an association.<\/p>\n<figure id=\"attachment_124155\" aria-describedby=\"caption-attachment-124155\" style=\"width: 596px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" class=\"size-large wp-image-124155\" src=\"https:\/\/www.albert.io\/blog\/wp-content\/uploads\/2026\/11\/mosaic-plot.png\" alt=\"A mosaic plot shows group sizes and conditional proportions at once.\" width=\"596\" height=\"427\" srcset=\"https:\/\/www.albert.io\/blog\/wp-content\/uploads\/2026\/11\/mosaic-plot.png 596w, https:\/\/www.albert.io\/blog\/wp-content\/uploads\/2026\/11\/mosaic-plot-300x215.png 300w\" sizes=\"auto, (max-width: 596px) 100vw, 596px\" \/><figcaption id=\"caption-attachment-124155\" class=\"wp-caption-text\">A mosaic plot shows group sizes and conditional proportions at once.<\/figcaption><\/figure>\n<h2>Comparing Distributions and Identifying Relationships<\/h2>\n<p>The ultimate goal: decide whether the two categorical variables are related. Calculate conditional relative frequencies for each group and compare them. If pizza preference is 42.9% among juniors and 40.0% among seniors \u2014 small difference, likely independent. If 42.9% vs. 10.0% \u2014 large difference signals a real association. <strong>Always compare conditional distributions using proportions, not raw counts.<\/strong><\/p>\n<h2>Test-Taking Strategies<\/h2>\n<p><strong>Mnemonic: JMC denominator rule<\/strong> \u2014 Joint and Marginal both use the grand total; Conditional uses the marginal of your condition. For graph choice: <strong>SSM<\/strong> \u2014 <strong>S<\/strong>ide-by-side to compare one category across groups; <strong>S<\/strong>egmented to compare overall composition; <strong>M<\/strong>osaic to visualize independence.<\/p>\n<p><strong>Cross-Topic Connections<\/strong><\/p>\n<ul>\n<li><strong>Unit 2 (Probability, Random Variables, and Probability Distributions):<\/strong> Conditional relative frequencies are conditional probabilities. P(A|B) = conditional relative frequency of A given B.<\/li>\n<li><strong>Unit 3 (Chi-Square Tests):<\/strong> Two-way tables reappear when formally testing whether observed associations are statistically significant.<\/li>\n<\/ul>\n<p><strong>Common AP Exam Question Formats<\/strong><\/p>\n<ul>\n<li><strong>\u201cCalculate and interpret\u201d:<\/strong> Always show your fraction (numerator \/ denominator = decimal = percentage), then interpret in context.<\/li>\n<li><strong>\u201cChoose the display\u201d:<\/strong> Look for \u201ccompare composition\u201d (segmented), \u201ccompare categories across groups\u201d (side-by-side), or \u201cshow joint and conditional frequencies\u201d (mosaic).<\/li>\n<li><strong>\u201cIs there an association?\u201d:<\/strong> Calculate conditional relative frequencies for at least two groups, compare them, and state your conclusion in one sentence.<\/li>\n<\/ul>\n<p><strong>Frequent Student Mistakes<\/strong><\/p>\n<ul>\n<li><strong>Dividing by the wrong total:<\/strong> Conditional frequencies use a row or column marginal, not the grand total. Reread the question before setting up your fraction.<\/li>\n<li><strong>Confusing conditional directions:<\/strong> \u201cPizza given junior\u201d (45\/105) and \u201cjunior given pizza\u201d (45\/83) are different fractions. Set up the fraction correctly first.<\/li>\n<li><strong>Misreading segmented bars:<\/strong> Compare proportions (relative segment sizes), not absolute heights.<\/li>\n<li><strong>Claiming causation:<\/strong> Use \u201cassociated with\u201d or \u201crelated to\u201d \u2014 never \u201ccauses.\u201d<\/li>\n<\/ul>\n<p><strong>Test-Day Shortcuts and Time Tips<\/strong><\/p>\n<ul>\n<li>For conditional relative frequency, you only need the specific cell count and its marginal total \u2014 ignore the rest of the table.<\/li>\n<li>On visual interpretation questions, compare segment sizes across groups before reading answer choices; your visual judgment is usually correct.<\/li>\n<li>For FRQ association questions, budget 3\u20134 minutes: calculate two conditional relative frequencies, compare in one sentence, state whether variables appear associated.<\/li>\n<\/ul>\n<h2 class=\"wp-block-heading\">Check for Understanding<\/h2>\n<p>Think you&#8217;ve got it? Complete the quiz below to make sure. Download your results at the end.<\/p>\n    <div class=\"inline-quiz-block\"\n         id=\"iq-1\"\n                  data-questions=\"[{&quot;question&quot;:&quot;A survey of 250 adults records age group and exercise frequency. Under 40: 60 exercise regularly, 50 occasionally, and 30 rarely (140 total). Age 40 and over: 33 regularly, 44 occasionally, and 33 rarely (110 total). Among the adults who exercise regularly, what proportion are under 40?&quot;,&quot;explanation&quot;:&quot;The condition is \\&quot;among regular exercisers,\\&quot; so the denominator is the regular-exercise total, $60 + 33 = 93$, and the proportion is $\\\\frac{60}{93} \\\\approx 0.645$. Dividing by 140 is the tempting reversal: it answers \\&quot;among adults under 40, what proportion exercise regularly,\\&quot; a different conditional relative frequency. Dividing by 250 gives a joint or marginal relative frequency, not a conditional one.&quot;,&quot;image_url&quot;:&quot;&quot;,&quot;options&quot;:[{&quot;text&quot;:&quot;About 0.429, because 60 of the 140 adults under 40 exercise regularly&quot;,&quot;isCorrect&quot;:false},{&quot;text&quot;:&quot;About 0.240, because 60 of all 250 adults are under 40 and exercise regularly&quot;,&quot;isCorrect&quot;:false},{&quot;text&quot;:&quot;About 0.645, because 60 of the 93 regular exercisers are under 40&quot;,&quot;isCorrect&quot;:true},{&quot;text&quot;:&quot;About 0.372, because 93 of all 250 adults exercise regularly&quot;,&quot;isCorrect&quot;:false},{&quot;text&quot;:&quot;About 0.560, because 140 of all 250 adults are under 40&quot;,&quot;isCorrect&quot;:false}]},{&quot;question&quot;:&quot;A teacher records whether students used a study app and whether they passed the final exam. Of 90 app users, 72 passed; of 210 non-users, 132 passed. Which statement best describes the relationship between app use and passing?&quot;,&quot;explanation&quot;:&quot;To judge association, compare conditional relative frequencies of passing within each group: $\\\\frac{72}{90} = 0.80$ for app users and $\\\\frac{132}{210} \\\\approx 0.629$ for non-users, a sizable difference. Comparing raw counts is misleading because there are far more non-users, and $\\\\frac{72}{204} \\\\approx 0.353$ answers a different question (what share of passers used the app). The data come from records, not an experiment, so they show association, not causation.&quot;,&quot;image_url&quot;:&quot;&quot;,&quot;options&quot;:[{&quot;text&quot;:&quot;There appears to be an association, since 80% of app users passed compared with about 62.9% of non-users&quot;,&quot;isCorrect&quot;:true},{&quot;text&quot;:&quot;Not using the app is associated with passing, since 132 non-users passed compared with only 72 app users&quot;,&quot;isCorrect&quot;:false},{&quot;text&quot;:&quot;App users were less likely to pass, since only about 35.3% of the students who passed had used the app&quot;,&quot;isCorrect&quot;:false},{&quot;text&quot;:&quot;Not using the app is associated with passing, since 44% of all students passed without it versus 24% with it&quot;,&quot;isCorrect&quot;:false},{&quot;text&quot;:&quot;Using the app causes students to pass, since the pass rate for app users is about 17 points higher&quot;,&quot;isCorrect&quot;:false}]},{&quot;question&quot;:&quot;A mosaic plot shows whether students have a library card (Yes or No) at two schools. The East column has width 0.60 and the West column has width 0.40. In both columns, the Yes tile fills 0.35 of the column&#039;s height. What is the joint relative frequency of West students with a library card, and what does the plot suggest?&quot;,&quot;explanation&quot;:&quot;In a mosaic plot, tile area is the joint relative frequency, so West-Yes is $0.40 \\\\times 0.35 = 0.14$. Equal tile heights mean the conditional proportion with a card is the same at both schools, which suggests no association. Different column widths only show that the schools have different marginal shares of students, so they say nothing about association; 0.21 is the East-Yes tile, not West.&quot;,&quot;image_url&quot;:&quot;&quot;,&quot;options&quot;:[{&quot;text&quot;:&quot;0.35, and the variables appear independent because both Yes tiles have the same height&quot;,&quot;isCorrect&quot;:false},{&quot;text&quot;:&quot;0.40, and the variables appear associated because the West column is narrower than East&quot;,&quot;isCorrect&quot;:false},{&quot;text&quot;:&quot;0.14, and the variables appear associated because the two columns have different widths&quot;,&quot;isCorrect&quot;:false},{&quot;text&quot;:&quot;0.21, and the variables appear independent because both Yes tiles have the same height&quot;,&quot;isCorrect&quot;:false},{&quot;text&quot;:&quot;0.14, and the variables appear independent because both Yes tiles have the same height&quot;,&quot;isCorrect&quot;:true}]},{&quot;question&quot;:&quot;A district surveys students at three schools of very different sizes about how they get to school (bus, car, bike, or walk). The principal wants one display that shows the complete mix of travel modes at each school, with every school shown on the same scale so enrollment size does not affect the picture. Which display best fits this goal?&quot;,&quot;explanation&quot;:&quot;A segmented bar graph built from conditional relative frequencies shows each school&#039;s full composition in a bar that reaches 100 percent, so schools of different sizes are compared on equal footing. The mosaic plot is tempting because it also shows composition, but its column widths would deliberately reflect enrollment, which the principal wants to avoid. Raw counts would let the largest school dominate, and a combined marginal distribution hides the school-to-school comparison entirely.&quot;,&quot;image_url&quot;:&quot;&quot;,&quot;options&quot;:[{&quot;text&quot;:&quot;A side-by-side bar graph showing the raw count of students using each travel mode at each school&quot;,&quot;isCorrect&quot;:false},{&quot;text&quot;:&quot;A segmented bar graph with one bar per school reaching 100%, divided by each mode&#039;s conditional relative frequency&quot;,&quot;isCorrect&quot;:true},{&quot;text&quot;:&quot;A mosaic plot whose column widths are proportional to each school&#039;s share of total district enrollment&quot;,&quot;isCorrect&quot;:false},{&quot;text&quot;:&quot;A bar graph of the marginal relative frequency of each travel mode for all three schools combined&quot;,&quot;isCorrect&quot;:false},{&quot;text&quot;:&quot;A segmented bar graph with one bar per travel mode whose height is the total number of students using it&quot;,&quot;isCorrect&quot;:false}]},{&quot;question&quot;:&quot;A survey of 500 students finds that 30 of the 100 students who eat breakfast daily earned an A last semester, while 48 of the 400 students who skip breakfast earned an A. Which conclusion is best supported?&quot;,&quot;explanation&quot;:&quot;The conditional proportions earning an A are $\\\\frac{30}{100} = 0.30$ for breakfast eaters and $\\\\frac{48}{400} = 0.12$ for skippers, so the variables are associated. Because this is a survey rather than an experiment, other factors such as sleep or family routines could explain the pattern, so claiming breakfast causes higher grades goes too far. Comparing raw counts ignores that four times as many students skip breakfast, which is exactly what conditional proportions correct for.&quot;,&quot;image_url&quot;:&quot;&quot;,&quot;options&quot;:[{&quot;text&quot;:&quot;Eating breakfast causes higher grades, because the A rate is 2.5 times as high for students who eat breakfast&quot;,&quot;isCorrect&quot;:false},{&quot;text&quot;:&quot;Skipping breakfast is associated with earning an A, because 48 skippers earned an A compared with 30 breakfast eaters&quot;,&quot;isCorrect&quot;:false},{&quot;text&quot;:&quot;No comparison can be made, because the two groups of students are very different sizes and so cannot be compared&quot;,&quot;isCorrect&quot;:false},{&quot;text&quot;:&quot;The variables are associated, since 30% and 12% of the two groups earned an A, but a survey cannot show causation&quot;,&quot;isCorrect&quot;:true},{&quot;text&quot;:&quot;There is no association, because the joint relative frequencies of 0.06 and 0.096 are both small proportions&quot;,&quot;isCorrect&quot;:false}]}]\"\n                  data-title=\"Check Your Understanding\"\n         data-quiz-id=\"117133\"\n         data-article-id=\"84146\">\n        <noscript><p>This quiz requires JavaScript to be enabled.<\/p><\/noscript>\n    <\/div>\n    \n","protected":false},"excerpt":{"rendered":"<p>When you have two categorical variables, a simple bar chart isn\u2019t enough. You need to see how one variable\u2019s distribution changes across groups of&hellip;<\/p>\n","protected":false},"author":1,"featured_media":84686,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_lmt_disableupdate":"","_lmt_disable":"","albert_practice_url":"","albert_lit_section":"analysis","albert_lit_sort_order":0,"footnotes":""},"categories":[449],"tags":[13017,15669],"class_list":["post-84146","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-ap-statistics","tag-ced-topic-2-1","tag-cedunit-2"],"acf":{"post_id":null},"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.1.1 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>AP Statistics Review: Representing Two Categorical Variables | Albert<\/title>\n<meta name=\"description\" content=\"Review how to represent two categorical variables in AP Statistics: two-way tables, relative frequencies, segmented bar graphs, and mosaic plots.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.albert.io\/blog\/ap-statistics-representing-two-categorical-variables\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"AP Statistics Review: Representing Two Categorical Variables | Albert\" \/>\n<meta property=\"og:description\" content=\"Review how to represent two categorical variables in AP Statistics: two-way tables, relative frequencies, segmented bar graphs, and mosaic plots.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.albert.io\/blog\/ap-statistics-representing-two-categorical-variables\/\" \/>\n<meta property=\"og:site_name\" content=\"Albert Blog &amp; Resources\" \/>\n<meta property=\"article:published_time\" content=\"2026-03-20T20:43:01+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-11-17T02:42:37+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.albert.io\/blog\/wp-content\/uploads\/2026\/03\/albert-cover-ap-statistics-representing-two-categorical-variables-1774279029349.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"630\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"The Albert Team\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"The Albert Team\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.albert.io\/blog\/ap-statistics-representing-two-categorical-variables\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.albert.io\/blog\/ap-statistics-representing-two-categorical-variables\/\"},\"author\":{\"name\":\"The Albert Team\",\"@id\":\"https:\/\/www.albert.io\/blog\/#\/schema\/person\/316a5d059c87b2f7dd5344bb607fe177\"},\"headline\":\"AP Statistics Review: Representing Two Categorical Variables\",\"datePublished\":\"2026-03-20T20:43:01+00:00\",\"dateModified\":\"2026-11-17T02:42:37+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.albert.io\/blog\/ap-statistics-representing-two-categorical-variables\/\"},\"wordCount\":963,\"image\":{\"@id\":\"https:\/\/www.albert.io\/blog\/ap-statistics-representing-two-categorical-variables\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.albert.io\/blog\/wp-content\/uploads\/2026\/03\/albert-cover-ap-statistics-representing-two-categorical-variables-1774279029349.png\",\"keywords\":[\"CED:TOPIC 2.1\",\"CED:UNIT 2\"],\"articleSection\":[\"AP\u00ae Statistics\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.albert.io\/blog\/ap-statistics-representing-two-categorical-variables\/\",\"url\":\"https:\/\/www.albert.io\/blog\/ap-statistics-representing-two-categorical-variables\/\",\"name\":\"AP Statistics Review: Representing Two Categorical Variables | Albert\",\"isPartOf\":{\"@id\":\"https:\/\/www.albert.io\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.albert.io\/blog\/ap-statistics-representing-two-categorical-variables\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.albert.io\/blog\/ap-statistics-representing-two-categorical-variables\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.albert.io\/blog\/wp-content\/uploads\/2026\/03\/albert-cover-ap-statistics-representing-two-categorical-variables-1774279029349.png\",\"datePublished\":\"2026-03-20T20:43:01+00:00\",\"dateModified\":\"2026-11-17T02:42:37+00:00\",\"author\":{\"@id\":\"https:\/\/www.albert.io\/blog\/#\/schema\/person\/316a5d059c87b2f7dd5344bb607fe177\"},\"description\":\"Review how to represent two categorical variables in AP Statistics: two-way tables, relative frequencies, segmented bar graphs, and mosaic plots.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.albert.io\/blog\/ap-statistics-representing-two-categorical-variables\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.albert.io\/blog\/ap-statistics-representing-two-categorical-variables\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.albert.io\/blog\/ap-statistics-representing-two-categorical-variables\/#primaryimage\",\"url\":\"https:\/\/www.albert.io\/blog\/wp-content\/uploads\/2026\/03\/albert-cover-ap-statistics-representing-two-categorical-variables-1774279029349.png\",\"contentUrl\":\"https:\/\/www.albert.io\/blog\/wp-content\/uploads\/2026\/03\/albert-cover-ap-statistics-representing-two-categorical-variables-1774279029349.png\",\"width\":1200,\"height\":630},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.albert.io\/blog\/ap-statistics-representing-two-categorical-variables\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.albert.io\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"AP Statistics Review: Representing Two Categorical Variables\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.albert.io\/blog\/#website\",\"url\":\"https:\/\/www.albert.io\/blog\/\",\"name\":\"Albert Blog &amp; Resources\",\"description\":\"Free resources and practice materials for students and teachers!\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.albert.io\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.albert.io\/blog\/#\/schema\/person\/316a5d059c87b2f7dd5344bb607fe177\",\"name\":\"The Albert Team\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.albert.io\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/cd93112c9a0ca83a8ee98ffab3e70876e60ab22b5ea917e9fd93c3b7c6d31212?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/cd93112c9a0ca83a8ee98ffab3e70876e60ab22b5ea917e9fd93c3b7c6d31212?s=96&d=mm&r=g\",\"caption\":\"The Albert Team\"},\"description\":\"Albert.io offers the best practice questions for high-stakes exams and core courses spanning grades 6-12. For over five years, hundreds of thousands of students have used Albert to build confidence and score better on their SAT, ACT, AP, and Common Core tests. If you're an educator interested in trying Albert, click the button below to learn about our pilot program.\",\"sameAs\":[\"https:\/\/www.albert.io\/signup?utm_source=blog&amp;utm_campaign=author-bio\"],\"url\":\"https:\/\/www.albert.io\/blog\/author\/learnwithalbert\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"AP Statistics Review: Representing Two Categorical Variables | Albert","description":"Review how to represent two categorical variables in AP Statistics: two-way tables, relative frequencies, segmented bar graphs, and mosaic plots.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.albert.io\/blog\/ap-statistics-representing-two-categorical-variables\/","og_locale":"en_US","og_type":"article","og_title":"AP Statistics Review: Representing Two Categorical Variables | Albert","og_description":"Review how to represent two categorical variables in AP Statistics: two-way tables, relative frequencies, segmented bar graphs, and mosaic plots.","og_url":"https:\/\/www.albert.io\/blog\/ap-statistics-representing-two-categorical-variables\/","og_site_name":"Albert Blog &amp; Resources","article_published_time":"2026-03-20T20:43:01+00:00","article_modified_time":"2026-11-17T02:42:37+00:00","og_image":[{"width":1200,"height":630,"url":"https:\/\/www.albert.io\/blog\/wp-content\/uploads\/2026\/03\/albert-cover-ap-statistics-representing-two-categorical-variables-1774279029349.png","type":"image\/png"}],"author":"The Albert Team","twitter_card":"summary_large_image","twitter_misc":{"Written by":"The Albert Team","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.albert.io\/blog\/ap-statistics-representing-two-categorical-variables\/#article","isPartOf":{"@id":"https:\/\/www.albert.io\/blog\/ap-statistics-representing-two-categorical-variables\/"},"author":{"name":"The Albert Team","@id":"https:\/\/www.albert.io\/blog\/#\/schema\/person\/316a5d059c87b2f7dd5344bb607fe177"},"headline":"AP Statistics Review: Representing Two Categorical Variables","datePublished":"2026-03-20T20:43:01+00:00","dateModified":"2026-11-17T02:42:37+00:00","mainEntityOfPage":{"@id":"https:\/\/www.albert.io\/blog\/ap-statistics-representing-two-categorical-variables\/"},"wordCount":963,"image":{"@id":"https:\/\/www.albert.io\/blog\/ap-statistics-representing-two-categorical-variables\/#primaryimage"},"thumbnailUrl":"https:\/\/www.albert.io\/blog\/wp-content\/uploads\/2026\/03\/albert-cover-ap-statistics-representing-two-categorical-variables-1774279029349.png","keywords":["CED:TOPIC 2.1","CED:UNIT 2"],"articleSection":["AP\u00ae Statistics"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www.albert.io\/blog\/ap-statistics-representing-two-categorical-variables\/","url":"https:\/\/www.albert.io\/blog\/ap-statistics-representing-two-categorical-variables\/","name":"AP Statistics Review: Representing Two Categorical Variables | Albert","isPartOf":{"@id":"https:\/\/www.albert.io\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.albert.io\/blog\/ap-statistics-representing-two-categorical-variables\/#primaryimage"},"image":{"@id":"https:\/\/www.albert.io\/blog\/ap-statistics-representing-two-categorical-variables\/#primaryimage"},"thumbnailUrl":"https:\/\/www.albert.io\/blog\/wp-content\/uploads\/2026\/03\/albert-cover-ap-statistics-representing-two-categorical-variables-1774279029349.png","datePublished":"2026-03-20T20:43:01+00:00","dateModified":"2026-11-17T02:42:37+00:00","author":{"@id":"https:\/\/www.albert.io\/blog\/#\/schema\/person\/316a5d059c87b2f7dd5344bb607fe177"},"description":"Review how to represent two categorical variables in AP Statistics: two-way tables, relative frequencies, segmented bar graphs, and mosaic plots.","breadcrumb":{"@id":"https:\/\/www.albert.io\/blog\/ap-statistics-representing-two-categorical-variables\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.albert.io\/blog\/ap-statistics-representing-two-categorical-variables\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.albert.io\/blog\/ap-statistics-representing-two-categorical-variables\/#primaryimage","url":"https:\/\/www.albert.io\/blog\/wp-content\/uploads\/2026\/03\/albert-cover-ap-statistics-representing-two-categorical-variables-1774279029349.png","contentUrl":"https:\/\/www.albert.io\/blog\/wp-content\/uploads\/2026\/03\/albert-cover-ap-statistics-representing-two-categorical-variables-1774279029349.png","width":1200,"height":630},{"@type":"BreadcrumbList","@id":"https:\/\/www.albert.io\/blog\/ap-statistics-representing-two-categorical-variables\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.albert.io\/blog\/"},{"@type":"ListItem","position":2,"name":"AP Statistics Review: Representing Two Categorical Variables"}]},{"@type":"WebSite","@id":"https:\/\/www.albert.io\/blog\/#website","url":"https:\/\/www.albert.io\/blog\/","name":"Albert Blog &amp; Resources","description":"Free resources and practice materials for students and teachers!","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.albert.io\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.albert.io\/blog\/#\/schema\/person\/316a5d059c87b2f7dd5344bb607fe177","name":"The Albert Team","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.albert.io\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/cd93112c9a0ca83a8ee98ffab3e70876e60ab22b5ea917e9fd93c3b7c6d31212?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/cd93112c9a0ca83a8ee98ffab3e70876e60ab22b5ea917e9fd93c3b7c6d31212?s=96&d=mm&r=g","caption":"The Albert Team"},"description":"Albert.io offers the best practice questions for high-stakes exams and core courses spanning grades 6-12. For over five years, hundreds of thousands of students have used Albert to build confidence and score better on their SAT, ACT, AP, and Common Core tests. If you're an educator interested in trying Albert, click the button below to learn about our pilot program.","sameAs":["https:\/\/www.albert.io\/signup?utm_source=blog&amp;utm_campaign=author-bio"],"url":"https:\/\/www.albert.io\/blog\/author\/learnwithalbert\/"}]}},"modified_by":null,"_links":{"self":[{"href":"https:\/\/www.albert.io\/blog\/wp-json\/wp\/v2\/posts\/84146","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.albert.io\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.albert.io\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.albert.io\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.albert.io\/blog\/wp-json\/wp\/v2\/comments?post=84146"}],"version-history":[{"count":7,"href":"https:\/\/www.albert.io\/blog\/wp-json\/wp\/v2\/posts\/84146\/revisions"}],"predecessor-version":[{"id":124156,"href":"https:\/\/www.albert.io\/blog\/wp-json\/wp\/v2\/posts\/84146\/revisions\/124156"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.albert.io\/blog\/wp-json\/wp\/v2\/media\/84686"}],"wp:attachment":[{"href":"https:\/\/www.albert.io\/blog\/wp-json\/wp\/v2\/media?parent=84146"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.albert.io\/blog\/wp-json\/wp\/v2\/categories?post=84146"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.albert.io\/blog\/wp-json\/wp\/v2\/tags?post=84146"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}