👩‍🏫 2.1 Displaying and Summarizing a Categorical Variable (Tabbed)

Displaying and Summarizing a Categorical Variable

As a reminder, categorical variables place an observational unit into one of several groups using category labels. This section should be mostly review, but covers the ways to display and summarize a single categorical variable and allows you your first chance to tinker in some statistical software - StatCrunch. This content should take about 🐢⌚ 40 minutes if you worked through all of the content (read, watch at 1x speed, attempt problems then watch/read feedback). Expand the tabs below to explore.

Summarizing a Categorical Variable with Tables

⚠ Caution ⚠

The summaries of these variables may be numbers, but the underlying variable is categorical - categorizing students by major.

For categorical data, the most common numerical measures are percentages or proportions (though tallies or counts may also be used). In statistics, tallies or counts may be referred to as frequencies while percentages or proportions may be referred to as relative frequencies.

Frequency Tables

These measurements mentioned above may be displayed within a table like the one below which shows the student majors from one of my sections of Math 119 in terms of frequency (#) and relative frequency (proportion and %).

Top Majors in Math 119 (Fall 2021)

Major

#

Rel

Freq

% of Total

Business

17

0.165

16.5%

Other

12

0.117

11.7%

Biology

11

0.107

10.7%

Nursing

10

0.097

9.7%

Allied Health

6

0.058

5.8%

Computer Science

5

0.049

4.9%

Kinesiology

5

0.049

4.9%

Social Science

5

0.049

4.9%

Undecided

5

0.049

4.9%

This table shows the top majors in all of my Math 119 sections in Fall 2021. The most common major for Math 119 students that semester (and in previous semesters) was Business with 17 students or 16.5% of the 103 students who shared their major falling in that category.

Understanding Check 

Suppose you found the following table, but someone had dropped a bottle of ink on it, obscuring some of the original data! Fill in the missing values based on your knowledge of frequencies, relative frequencies, and percents. There are 127 students represented in the table.

Frequency Table for Favorite Movie Genre (Fall 2021 Math 119 Survey)

n = 127

Want a video walkthrough? Click below.

💡 Understanding Check Walkthrough

Creating Frequency Tables

💡 If you need the StatCrunch details, be sure to visit the 🔍 StatCrunch Help page in our Resources for Students Module!

Now you get to play with the Fall 2021 Survey data we've been using in the examples. Click Fall 2021 Survey data Links to an external site. and create a frequency table for FirstGen using StatCrunch. Fill in the table below based on your output. Round the relative frequency values to 3 decimal places and the percentages to a single decimal like the table in the previous question.

Understanding Check 

Most likely, if you got marked wrong on this, it was for a rounding error. If we're rounding 0.29365079 to the thousandths place (or three decimal places), we want to look at the fourth decimal place to make decisions about how to round: 0.29365079 if that number is 5 or more, we want to round the digit before it up! So our relative frequency for the No category is 0.294 rather than 0.293. If you'd prefer a video walkthrough, you can find it here: Creating Frequency Table Walkthrough

Before you click "Next" please read through all of tabbed pages.