15. Lesson 3(DOT)2(COLON) Charts for categorical data

Lesson Focus

Official syllabus section covering Lesson focus within Lesson 3.2: Charts for categorical data: Bar charts, multiple and stacked bar charts, and component bars.; Pie charts and when they help or hinder comparison..

Lesson 3.2: Charts for Categorical Data

Introduction

Welcome to Lesson 3.2: Charts for Categorical Data! In this lesson, we will explore various visual representations of categorical data, including bar charts and pie charts. By the end of this lesson, you, students, will be able to:

  • Identify different types of charts for categorical data.
  • Distinguish when to use bar charts vs. pie charts.
  • Recognize the pitfalls of pictograms and how they can distort data.
  • Match the appropriate chart type to the comparison needed by the reader.

Let’s dive in! πŸ“Š

Understanding Bar Charts

What is a Bar Chart?

A bar chart is a graphical representation of data using rectangular bars. Each bar's length or height represents the value of the categorical variable it represents. Bar charts can be vertical or horizontal.

Example: Single Bar Chart

Consider a scenario in a classroom where we want to display the number of students who prefer different types of sports:

  • Soccer: 15
  • Basketball: 10
  • Tennis: 5

We can create a simple bar chart:

|       Sports Preferences       |
| Soccer    | β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ 15 |
| Basketball| β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ 10 |
| Tennis    | β–ˆβ–ˆβ–ˆβ–ˆβ–ˆ 5 |

The height of the bars makes it easy to see which sport is the most popular at a glance!

Multiple and Stacked Bar Charts

When you need to compare multiple groups or show parts of a whole, multiple and stacked bar charts come into play.

Multiple Bar Chart Example:

Imagine the same sports preferences but split by gender:

  • Males: Soccer (10), Basketball (4), Tennis (3)
  • Females: Soccer (5), Basketball (6), Tennis (2)

A multiple bar chart will have two bars for each sport category to show male and female preferences distinctly.

Stacked Bar Chart Example:

On the other hand, a stacked bar chart combines the two datasets into a single bar for each sport, breaking it down by gender:

|       Sports Preferences       |
| Soccer    | β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ (10 M) β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ (5 F) |
| Basketball| β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ (4 M) β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ (6 F) |
| Tennis    | β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ (3 M) β–ˆβ–ˆβ–ˆ (2 F) |

Both methods allow comparisons, but depend on what information you want to emphasize.

Understanding Pie Charts

What is a Pie Chart?

A pie chart displays data in a circular graph, with slices representing the proportion of each category. Each slice’s angle is proportional to the quantity it represents.

When to Use Pie Charts

Pie charts are most effective when you want to show a part-to-whole relationship. For instance, if we want to show the market share of different phone manufacturers:

  • Apple: 40%
  • Samsung: 30%
  • Huawei: 20%
  • Others: 10%

In such cases,

$$

\text{Pie Chart Representation} = $\text{Angle}$ = \frac{\text{Percent}}{100} $\times 360$\text{ degrees}

$$

When Pie Charts Hinder Comparison

Although pie charts can be useful, they can also make comparisons difficult. For example, if two slices are very similar in size, it can be hard to tell which is larger. In instances where detailed comparisons are required, bar charts would be more effective.

Understanding Pictograms

What is a Pictogram?

A pictogram uses images or icons to represent data. For instance, a pictogram representing the same sports preferences might use soccer balls for soccer, basketballs for basketball, and so on.

Pitfalls of Pictograms

While visually appealing, pictograms can distort the data representation. For example, using images may lead viewers to misinterpret proportions unless a clear scale is provided. For this reason, it’s important to use them carefully and think about whether they truly aid understanding of the data.

Matching Charts to Reader Needs

Choosing the Right Chart

Understanding the audience's needs is essential when presenting data:

  • If clarity in comparisons is needed, bar charts are typically best.
  • For showing fractional data or parts of a whole, pie charts are more suitable.
  • Pictograms can be attractive but should only be used when precision isn't critical.
  • When dealing with complex datasets, consider using multiple or stacked bar charts to convey detailed comparisons.

Conclusion

In this lesson, we covered the important aspects of charts for categorical data, including bar charts, pie charts, and pictograms. You learned how to use these charts effectively based on the data and comparisons needed.

Summary of Key Points:

  • Bar Charts: Great for comparing categories directly.
  • Multiple and Stacked Bar Charts: Useful for showing relationships within subcategories or over time.
  • Pie Charts: Best for showing proportions when comparing parts of a whole.
  • Pictograms: Can add visual interest but may distort the data.

Study Notes

  • A bar chart displays categorical data via rectangular bars.
  • Multiple bar charts compare different groups directly, while stacked bar charts show parts of a whole.
  • A pie chart is used for part-to-whole relationships and may hinder precise comparisons.
  • Pictograms can create misleading representations if not scaled properly.
  • Always consider the audience's needs when choosing the appropriate chart.

Practice Quiz

5 questions to test your understanding