Biostatistics · Introductory

The Basic Elements

Written by SignalsLab

Early edition: these lessons are being reviewed.

Content

Summary

A frequency distribution organizes data into a tabular or graphical summary showing how often specific values occur. For categorical data, bar graphs are used, while continuous data often employs curves where the area under the line represents 100% of the cases. Visualizing these distributions allows researchers to compare groups based on their mean and standard deviation.

Intuition

Think of a frequency distribution as a way to turn a messy list of numbers into a clear picture. Instead of looking at individual test scores or grades, you group them to see the overall pattern. The horizontal axis (X-axis) maps out the possible values, like scores from 0 to 100, while the vertical axis (Y-axis) counts how many times each value appears, labeled as frequency (f). When we smooth this out into a curve, the entire space under that line isn't empty; it holds every single data point in your study, totaling 100% of the cases. This visual structure is crucial because it lets you instantly compare different groups, such as seeing how two classes might have the same average score but very different spreads of performance.

Derivation

  1. Data is unstructured and needs organization.
  2. A frequency distribution is defined as a tabular or graphical summary of value occurrences.
  3. For categorical data (nominal/ordinal), bar graphs display counts per category.
  4. The X-axis defines the variable's value range (e.g., 0 to 100).
  5. The Y-axis represents frequency (f), the count of each value.
  6. For continuous data, a smooth curve is used.
  7. The area under this curve contains 100% of the study's cases.
  8. Visualization enables comparison of distributions via mean and standard deviation.

Worked example

Problem

Consider a class with letter grades A, B, C, D, and F. How would you visualize this data, and what does the X-axis represent?

  1. Identify the data type: Letter grades are ordinal data because they have a rank (A is better than B) but no precise numerical interval.
  2. Select the visualization: Bar graphs are the preferred method for nominal or ordinal data.
  3. Define the axes: The X-axis represents the categories (A, B, C, D, F), and the Y-axis (f) represents the number of students receiving each grade.
  4. Interpret the result: The height of each bar shows the count for that specific grade, emphasizing categorical separation.

Answer Use a bar graph where the X-axis lists the letter grades and the Y-axis shows the frequency of students in each grade.

Common mistakes

  • Confusing the X-axis with frequency; the X-axis shows the variable's value range, while the Y-axis shows frequency.
  • Thinking the area under a frequency curve is empty space; it actually contains 100% of the cases.
  • Using bar graphs for continuous numerical data when a smooth curve is more appropriate for showing density.
  • Ignoring the difference between nominal (no order) and ordinal (ranked) data when choosing visualization methods.

Animation

Animation coming soon

The animated version of this lesson is being prepared for the web. In the Signals AI app, lessons are drawn step by step.

Code

This is a text lesson: it has no animation code yet.

ccBYNC© 2026 SignalsLab. Lesson text shared as is under CC BY-NC 4.0.