Frequency distributions and tables

Analytika TeamLast reviewed 5 min read

A frequency distribution is the most basic summary of a variable: a list of the values it takes and how often each one occurs. It’s often the first table in a results section, and the first thing to look at when checking data for errors.

Categorical data: a frequency table

In a 1974 survey of 592 statistics students (R’s HairEyeColor data), hair colour was distributed like this:

Hair colourFrequencyRelative frequency
Brown28648.3%
Blond12721.5%
Black10818.2%
Red7112.0%
Total592100%

The relative frequency is the count divided by the total. Percentages make groups of different sizes comparable. For unordered categories, sorting by frequency makes the table easier to read. The most frequent category is the mode.

Ordinal and discrete data: add cumulative frequency

When values have a natural order, the cumulative percentage (the share at or below each value) is useful. Number of cylinders in the 32 mtcars cars:

CylindersFrequency%Cumulative %
41134.434.4
6721.956.3
81443.8100.0

So 56% of the cars have six cylinders or fewer. For survey items, cumulative percentages answer questions like “what share agreed or strongly agreed?”.

Continuous data: grouped frequencies and histograms

A continuous variable rarely repeats exact values, so you group them into intervals (bins). Fuel economy for the same 32 cars:

MPGFrequency
10 to under 155
15 to under 2013
20 to under 258
25 to under 302
30 to 354

Drawn as a histogram (bars touching, because the scale is continuous), this shows most cars in the 15–20 range, with a tail of high-mpg cars to the right: a mild positive skew.

Choosing bins

  • Bins should be equal width, non-overlapping, and cover every value.
  • Too few bins hide the shape. Too many make random noise look like real peaks. Software defaults (such as Sturges’ rule) are a reasonable start, but try a couple of widths before settling.
  • State clearly which end of each bin is included.

Bar chart or histogram?

Bar chartHistogram
ForCategorical and ordinal dataContinuous data
BarsSeparated by gapsTouching
Order of barsAny order for categories, natural order for ordinal dataFixed by the number line

What frequency tables catch

Running a frequency table on every variable is the fastest data check there is. It surfaces impossible codes (a 6 on a 1–5 scale), inconsistent spellings (“Male”, “male”, “M”), missing-value codes such as 99 or −999 that would wreck an average, and categories too small to analyse. See common data cleaning mistakes.

Our free descriptive statistics calculator and Likert scale analyzer both produce frequency tables in your browser. For a full summary, see descriptive statistics.

More in Descriptive statistics

Try it with the free tools

Run this on your own data

Upload a dataset and ask your question in plain English. Analytika checks the assumptions, picks the test, runs it, and writes the results up in APA format.

Try it free