STATISTICS & PROBABILITY • ONE-VARIABLE DATA

Representing Data with Plots on the Real Number Line

Master dot plots, histograms, and box plots — three essential tools for visualizing the shape, center, and spread of a data set.

Historical Context & Motivation

Long before calculators and spreadsheets, people needed ways to make sense of large collections of numbers. A table of raw data is hard to interpret at a glance—your eye doesn't naturally detect patterns among rows and columns of digits. The solution, developed gradually over centuries, was to translate data into visual displays arranged along a number line so that the shape, center, and spread of a distribution would be immediately apparent.

1786
Scottish engineer William Playfair published The Commercial and Political Atlas, introducing the bar chart and line graph to the world. His bar chart—grouping data into categories with lengths proportional to quantities—laid the conceptual groundwork for the modern histogram.
1884
Karl Pearson, while lecturing at University College London, formalized the histogram as a tool for representing frequency distributions of continuous data. He coined the term itself, and his approach became a cornerstone of the emerging field of mathematical statistics.
1900s
Simple frequency plots—where a dot or tally is placed above each observed value on a number line—gained popularity in classrooms. These dot plots (also called line plots) became a standard introductory tool because they require almost no abstraction: every data point gets its own visible mark.
1977
John Tukey published Exploratory Data Analysis, introducing the box-and-whisker plot. Tukey designed the box plot to reveal the five-number summary (minimum, Q₁, median, Q₃, maximum) and to flag outliers—all in a single compact graphic that could be drawn by hand in seconds.
Today
Software tools can generate these plots instantly, but understanding how and why each display works remains essential. Choosing between a dot plot, histogram, or box plot is a design decision that depends on the size of your data set, the questions you want to answer, and the audience you want to convince.

The fundamental question these tools all answer is the same: What does the distribution of a single variable look like? Each plot type reveals different aspects of that distribution, and learning to construct and interpret all three gives you a versatile analytical toolkit.

Core Principles & Definitions

Before diving into construction details, let's establish the foundational ideas shared by all three plot types. Every one of these displays organizes data along a real number line, which means the horizontal axis represents the quantitative variable being measured. What differs is how individual data points are encoded visually.

1

Dot Plot

Each observation is represented by a single dot (or symbol) placed directly above its value on the number line. When multiple observations share a value, the dots stack vertically. Best for small to moderate data sets (roughly n ≤ 50).
2

Histogram

The number line is divided into equal-width intervals called bins. A rectangle (bar) is drawn over each bin with height proportional to the count (or relative frequency) of observations falling in that interval. Individual values are not shown.
3

Box Plot

A rectangular box spans from Q₁ to Q₃ (the interquartile range), with a line at the median. "Whiskers" extend to the smallest and largest non-outlier values. Outliers, if any, are plotted as individual points beyond the whiskers.
4

Five-Number Summary

The foundation of a box plot: Minimum, Q₁ (25th percentile), Median (50th percentile), Q₃ (75th percentile), and Maximum. Together these five values summarize the center and spread of a distribution.
KEY TAKEAWAY
Think of your data set as a crowd of people standing along a sidewalk. A dot plot is an aerial photograph showing every person as a dot—you can count heads and see exactly where they cluster. A histogram is like dividing the sidewalk into blocks and counting how many people stand in each block. A box plot is a summary report: it tells you where the middle 50 % of the crowd is standing, where the center person stands, and how far the outermost people have wandered.

Visual Explanation — Seeing the Same Data Three Ways

To make the differences concrete, consider this data set of 20 quiz scores (out of 10) from a statistics class:

3, 4, 5, 5, 6, 6, 6, 7, 7, 7, 7, 7, 8, 8, 8, 8, 9, 9, 9, 10

Below is a combined diagram showing how this same data set appears as a dot plot, a histogram, and a box plot. Notice how each display emphasizes different features: the dot plot shows every individual score, the histogram groups scores into bins to reveal the overall shape, and the box plot compresses the distribution into a five-number summary.

Three representations of the same data set: dot plot (top), histogram (middle), and box plot (bottom).

The dot plot at top makes it easy to see that 7 is the mode (most frequent score) and that the distribution is slightly left-skewed—there are a few low scores pulling the tail toward the left. The histogram in the middle aggregates the data into wider bins, making the overall bell-like shape more obvious at the cost of hiding individual values. The box plot at the bottom strips the information down to five key numbers and shows that the middle 50 % of students scored between 6 and 8.5.

Mathematical Framework — How to Construct Each Plot

Constructing a Dot Plot

A dot plot requires no calculations beyond counting. Draw a horizontal number line that spans from the minimum to the maximum of your data. For each observation, place a dot above the corresponding value. If a value appears more than once, stack the dots vertically. The height of each column of dots is exactly the frequency of that value.

Constructing a Histogram

A histogram requires you to decide on a bin width (also called class width). Once chosen, you count how many observations fall in each bin. The key formulas are:

Number of Bins (Sturges' Rule)
k = 1 + 3.322 × log₁₀(n)
where n is the number of observations and k is rounded to the nearest integer
Bin Width
w = (max − min) / k
where max and min are the largest and smallest data values

Sturges' rule is a guideline, not a rigid law—feel free to adjust bin width so that boundaries fall on convenient numbers. Once you've settled on bins, tally the observations in each, then draw bars whose heights equal those tallies. Note that the bars in a histogram touch each other (no gaps), reflecting that the data is continuous or can be treated as continuous.

Constructing a Box Plot

A box plot is built from the five-number summary. Computing Q₁ and Q₃ requires ordering the data and then finding the medians of the lower and upper halves.

Median (n observations, sorted)
Median = x₍₍ₙ₊₁₎/₂₎ if n is odd; (x₍ₙ/₂₎ + x₍ₙ/₂₊₁₎) / 2 if n is even
Q₁ = median of the lower half; Q₃ = median of the upper half
Interquartile Range (IQR)
IQR = Q₃ − Q₁
The "fence" for outliers: any value below Q₁ − 1.5 × IQR or above Q₃ + 1.5 × IQR is an outlier

After computing these values, draw the box from Q₁ to Q₃, mark the median inside the box, extend whiskers to the most extreme non-outlier values, and plot any outliers as individual points. The IQR captures the middle 50 % of the data, so the length of the box is a direct visual representation of spread.

KEY TAKEAWAY
The 1.5 × IQR rule for outliers works like a speed limit on a highway. The IQR defines the "normal range of traffic," and anything more than 1.5 lengths beyond that range is flagged as unusually far from the pack. It's not a proof that the value is an error—just a signal that it deserves a closer look.

Detailed Breakdown — Reading Shape, Center, and Spread

Each plot type reveals the shape (symmetric, skewed left, skewed right, uniform, bimodal), the center (where the "typical" value lies), and the spread (how much variability exists). The diagram below illustrates four common distribution shapes and what they look like as box plots.

Four common distribution shapes shown as simplified histograms with corresponding box plots underneath each.

A symmetric distribution has its mean, median, and mode all near the center. In a right-skewed distribution (like household income data), the long tail extends to the right, pulling the mean above the median. A left-skewed distribution (like age at retirement for people who retire) has its tail extending toward lower values. Recognizing skewness from any of the three plot types is one of the most important skills in descriptive statistics.

Worked Example — Building All Three Plots

A teacher records the number of hours 15 students spent studying for a final exam:

2, 3, 3, 4, 5, 5, 5, 6, 6, 7, 7, 8, 8, 10, 12

Building All Three Plots
1
Step 1 — Sort the Data & Find the Five-Number SummaryThe data is already sorted. With n = 15 observations, the median is the 8th value: Median = 6. The lower half is {2, 3, 3, 4, 5, 5, 5} with median at the 4th value: Q₁ = 4. The upper half is {6, 7, 7, 8, 8, 10, 12} with median at the 4th value: Q₃ = 8. So the five-number summary is:
Min = 2, Q₁ = 4, Median = 6, Q₃ = 8, Max = 12
2
Step 2 — Calculate IQR and Check for OutliersIQR = Q₃ − Q₁ = 8 − 4 = 4. The lower fence is Q₁ − 1.5 × IQR = 4 − 6 = −2, and the upper fence is Q₃ + 1.5 × IQR = 8 + 6 = 14. Since all data values fall between −2 and 14, there are no outliers.
3
Step 3 — Draw the Dot PlotDraw a number line from 2 to 12. Place one dot above 2, two dots above 3, one dot above 4, three dots above 5, two dots above 6, two dots above 7, two dots above 8, one dot above 10, and one dot above 12. The cluster around 5–7 reveals the center, while the values 10 and 12 stretch the distribution rightward—hinting at right skew.
4
Step 4 — Build the HistogramUsing Sturges' rule: k = 1 + 3.322 × log₁₀(15) ≈ 1 + 3.322 × 1.176 ≈ 4.9 → 5 bins. Bin width: w = (12 − 2) / 5 = 2. So the bins are [2, 4), [4, 6), [6, 8), [8, 10), and [10, 12]. Counting: 3, 4, 4, 2, 2. Draw five bars with these heights—the tallest bars in the middle confirm the distribution's center, and the bars at the right show the right tail.
5
Step 5 — Construct the Box PlotOn the same number line, draw a box from Q₁ = 4 to Q₃ = 8. Mark a vertical line at the median = 6. Extend the left whisker to 2 (min) and the right whisker to 12 (max). Notice the right whisker (8 to 12 = 4 units) is longer than the left whisker (4 to 2 = 2 units), and the median sits in the left half of the box. Both features confirm right skewness.
6
Step 6 — InterpretAll three plots tell a consistent story: most students studied between 3 and 8 hours, with a typical (median) study time of 6 hours. A few students studied significantly more (10 and 12 hours), stretching the distribution to the right. If you wanted to report a single "typical" value, the median of 6 would be more representative than the mean (6.07 in this case) because the right skew pulls the mean slightly upward.

Strengths, Limitations, and When to Use Each

Choosing the right plot is a design decision. Each type has trade-offs, and the best choice depends on your data set size, the level of detail you need, and the audience you're communicating with.

FeatureDot PlotHistogramBox Plot
Shows individual valuesYes — every data point visibleNo — values grouped into binsOnly outliers shown individually
Best for data set sizeSmall (n ≤ ~50)Medium to large (n ≥ 20)Any size; excels at comparisons
Reveals shapeYes, if n is moderateYes — primary purposePartially (via whisker lengths)
Shows centerVisually (cluster location)Visually (tallest bars)Explicitly (median line)
Shows spreadRange visible at a glanceWidth of occupied binsIQR (box) and range (whiskers)
Identifies outliersVisually (isolated dots)Hard to detectExplicitly plotted beyond fences
Good for comparing groupsOnly with very small dataPossible with side-by-side histogramsExcellent — parallel box plots
LimitationCluttered with large nShape depends on bin width choiceHides modality (bimodal looks like one hump)
KEY TAKEAWAY
Think of these plots like three levels of zoom on a camera. A dot plot is the closest zoom—you see every grain of sand on the beach. A histogram pulls back to show the dunes and shoreline. A box plot zooms all the way out to satellite view—you can compare entire coastlines side-by-side but lose the fine detail. The right zoom level depends on the question you're trying to answer.

Connection to Advanced Theory

The three plots you've studied here belong to the broader field of Exploratory Data Analysis (EDA), which John Tukey championed as a first step before any formal statistical testing. In more advanced coursework, these visual tools connect to deeper ideas:

This LessonAdvanced Extension
Histogram shape (symmetric, skewed)Probability density functions — in AP Statistics and college courses, histograms lead to the concept of a smooth density curve. The normal distribution is the most famous example.
Box plot and IQRRobust statistics — Q₁, median, Q₃, and IQR are "resistant" measures, meaning outliers have little effect on them. This contrasts with the mean and standard deviation, which are sensitive to extreme values.
Outlier detection via 1.5 × IQR ruleZ-scores and percentiles — a more precise method uses z-scores (how many standard deviations from the mean) or formal statistical tests like the Grubbs test to flag outliers.
Comparing distributions (parallel box plots)Hypothesis testing — when you eyeball two box plots and wonder "are these groups really different?", the formal answer comes from t-tests, ANOVA, or nonparametric tests you'll encounter in college statistics.
Choosing bin width in histogramsKernel density estimation (KDE) — a sophisticated smoothing technique that replaces the histogram's rectangular bins with smooth, overlapping curves, producing a continuous density estimate.

For now, the essential skill is being able to construct each plot by hand, interpret what it reveals about center, spread, and shape, and choose the right plot for a given situation. These abilities form the foundation for every statistical analysis you'll encounter going forward.

Practice Problems

PROBLEM 1CONCEPTUAL
A data set contains 200 observations of continuous data (household electricity usage in kWh). Which plot type—dot plot, histogram, or box plot—would be the least effective for displaying this data? Explain your reasoning.
PROBLEM 2BASIC CALCULATION
Given the sorted data set: 10, 14, 18, 22, 25, 28, 30, 34, 38, 42, find the five-number summary.
PROBLEM 3INTERMEDIATE
A histogram of test scores has four bins: [50, 60) with frequency 3; [60, 70) with frequency 8; [70, 80) with frequency 12; [80, 90] with frequency 7. A total of 30 students took the test. Without seeing the raw data, describe the shape of the distribution and estimate the interval that contains the median.
PROBLEM 4APPLIED / MULTI-STEP
A city official collects daily high temperatures (°F) for 14 days in October: 58, 61, 63, 65, 66, 67, 68, 69, 70, 72, 74, 76, 82, 95. Construct the five-number summary, identify any outliers using the 1.5 × IQR rule, and describe what the box plot would look like (including where the whiskers would end).
PROBLEM 5CRITICAL THINKING
Two classes take the same exam. Class A's box plot has: Min = 52, Q₁ = 68, Median = 76, Q₃ = 84, Max = 98. Class B's box plot has: Min = 60, Q₁ = 70, Median = 75, Q₃ = 80, Max = 90. Without seeing the actual scores, compare the two classes in terms of center, spread, shape, and consistency. Which class performed "better"? Is that question as simple as it seems?

Lesson Summary

You've now learned three fundamental tools for representing one-variable data on the real number line. A dot plot places a mark for every observation, making it ideal for small data sets where individual values matter. A histogram groups data into bins and uses bar heights to show frequency, revealing the overall shape of the distribution—whether it is symmetric, left-skewed, or right-skewed. A box plot compresses the data into its five-number summary (minimum, Q₁, median, Q₃, maximum), displays the interquartile range as a box, and explicitly flags outliers using the 1.5 × IQR rule.

Each plot type answers the same core question—what does the distribution look like?—but at different levels of detail. Mastering all three means you can choose the right visualization for any data set you encounter, whether you're exploring data on your own or presenting findings to an audience. These skills are not just academic requirements; they are the foundational language of modern data analysis and will appear in virtually every statistics course, standardized exam, and real-world analytical task you'll face.

Varsity Tutors • Statistics & Probability (Common Core) • Representing Data with Plots on the Real Number Line