From the free course AP Statistics on Lykke
1.4 Graphical Representations for One Categorical Variable
Key concepts: Bar chart — bar height gives the frequency or relative frequency of a category · Gaps between bars — categories are separate, not a continuous scale · Pie chart — each slice's area is that category's share of the whole · Area principle — height and area stay proportional to frequency · Frequency scale versus relative frequency scale for fair comparison · Comparing two or more data sets on the same categorical variable
While a frequency table organizes data into a readable list, a graphical representation transforms those numbers into a visual landscape. For a single categorical variable, the primary goal of a graph is to display the distribution—the categories and the frequency (or relative frequency)…
While a frequency table organizes data into a readable list, a graphical representation transforms those numbers into a visual landscape. For a single categorical variable, the primary goal of a graph is to display the distribution—the categories and the frequency (or relative frequency) of individuals falling into each. In the context of the AP Statistics framework, moving from a table to a graph is not merely an aesthetic choice; it is a shift toward identifying patterns, comparing the prevalence of categories, and justifying claims with visual evidence.
The Workhorse: Bar Charts
The bar chart is the most versatile tool for representing categorical data. It displays the possible values of the variable on one axis (usually the horizontal axis) and the frequency or relative frequency on the other. Because categorical variables represent distinct groups rather than a continuous numerical range, the bars in a bar chart must be drawn with spaces between them. This visual separation reinforces the idea that "Red" and "Blue" are separate categories, unlike the touching bars of a histogram used for quantitative data.
When constructing or interpreting bar charts (Skill 3.A), precision in scaling is paramount. A frequency bar chart uses raw counts, making it ideal for understanding the exact size of a sample. A relative frequency bar chart uses proportions or percentages, which is essential when the goal is to describe the "part-of-the-whole" relationship or when comparing two different-sized groups. Regardless of the scale, the area principle must be respected: the area of the bar must be proportional to the frequency it represents.
Alternatives: Pie Charts and Segmented Bars
While bar charts are excellent for comparison, pie charts and segmented bar charts emphasize how a single categorical variable is distributed as parts of a single whole. A pie chart divides a circle into slices, where the area of each slice is proportional to the relative frequency of the category. While visually intuitive for showing "majority" vs. "minority," pie charts are often criticized in professional statistics because the human eye is less adept at comparing angles and areas than it is at comparing the linear heights of bars.
A segmented bar chart (sometimes called a stacked bar chart) provides a middle ground. It represents the entire sample as a single bar, with segments stacked on top of each other. The height of each segment corresponds to the relative frequency of that category. This format is particularly useful when space is limited or when preparing to analyze the relationship between two categorical variables in later units.
Describing and Justifying with Data (Skills 4.A & 4.B)
In the AP Statistics environment, "describing" a distribution (Skill 4.A) requires more than just listing numbers. It requires contextualizing the visual evidence. Consider a study of primary "Commute Method" for employees at a tech firm. A bar chart shows the "Bicycle" bar reaching 0.45 on the relative frequency axis, while "Drive Alone" reaches 0.20.
To justify a conclusion (Skill 4.B), a student must explicitly link the claim to the graphical evidence.
- Claim: "The majority of employees use eco-friendly transportation."
- Justification: "Based on the relative frequency bar chart, the 'Bicycle' and 'Walking' categories combined account for a relative frequency of 0.65 (45% + 20%), which is greater than 0.50."
The Area Principle: A statistical rule stating that the area occupied by a part of a graph must be proportional to the magnitude of the value it represents. Violating this—such as by using 3D effects or varying bar widths—misleads the viewer.
Misconception Check: The Truncated Axis
A common error in media and student work is the "truncated" or "broken" vertical axis. If a bar chart comparing two categories (e.g., 48% vs. 52%) starts the y-axis at 45% instead of 0%, the 52% bar will appear multiple times taller than the 48% bar. This violates the area principle and creates a visual lie. Always check that the vertical axis starts at zero to ensure the relative heights accurately reflect the data.
Contextual Example: Streaming Service Preferences
A survey asks 200 teenagers which streaming service they use most often. The data shows: Netflix (90), YouTube (70), Disney+ (30), and Other (10).
- Construction (3.A): To create a relative frequency bar chart, we calculate the proportions: Netflix (0.45), YouTube (0.35), Disney+ (0.15), and Other (0.05).
- Description (4.A): The distribution is dominated by Netflix and YouTube, which together account for 80% of the primary usage.
- Justification (4.B): We can conclude that Netflix is the most popular service because its bar height (0.45) is the greatest among all categories.
Interpretation Check: You are presented with a segmented bar chart showing the favorite pizza toppings of a class. The "Pepperoni" segment spans from the 0% mark to the 40% mark. The "Mushroom" segment spans from the 40% mark to the 55% mark.
- Which topping is more popular?
- What is the relative frequency of the "Mushroom" preference?
(Answer: Pepperoni is more popular because its segment height is 40%, while the Mushroom segment height is only 15% [55% - 40%].)
