This lesson explains how to create **frequency tables** and **relative frequency tables**.

**What is a Frequency Table?**

A** frequency table** is a table that shows how many times certain values occur in a data set.

A **relative frequency table** is a table that shows how many times certain values occur relative to all the observations in a data set.

Let’s walk through an example on how to construct both of these tables.

**Example: Constructing Frequency Tables**

Suppose we have the following data set:

To make a **frequency table** of the variable *Favorite Color*, we simply count how many times each color shows up:

And to make a **relative frequency table** of the variable *Favorite Color*, we simply count how many times each color shows up and divide by the total number of observations in the data set.

For example, purple shows up 5 times and there are 20 total observations. This means the relative frequency of purple is 5/20 = 25%. We can do the same calculation for the other colors as well: