Graphical Summaries

⚡ Key Takeaways

Graphical summaries are visual displays — histograms, boxplots, scatterplots, bar charts, and more — that condense a dataset into a picture revealing its shape, center, spread, and unusual features. Key result in words: a well-chosen graph communicates the structure of data faster and more honestly than a table of raw numbers. Where it applies: descriptive statistics, exploratory data analysis, science reporting, journalism, business dashboards. Who/when: developed from William Playfair (1780s) through John Tukey's Exploratory Data Analysis (1977).

💡 The Core Insight

A dataset is a long list of numbers or labels that overwhelms working memory. A graphical summary maps quantities onto visual attributes — position, length, area, angle — that the visual system processes pre-attentively. The art lies in choosing a graph whose visual encoding faithfully preserves the feature you care about, while never distorting it.

Formal Statement

DefinitionTypes of Data

Graphical summaries depend on the measurement scale of the variable being displayed:

  • Categorical (qualitative) — values are labels in distinct groups (e.g., eye colour, blood type). Sub-types: nominal (no order) and ordinal (ordered, e.g., grades A–F).
  • Quantitative (numerical) — values are measured amounts. Sub-types: discrete (counts) and continuous (measurements on a scale).

The data type dictates which graphs are valid.

DefinitionFrequency, Relative Frequency, and Density

For a categorical variable or a binned quantitative variable, define for each class ii:

1
fi=count of observations in class i\quad f_i = \text{count of observations in class } i

Derivation hint: simply tally how many data points fall in each category or bin.

2
ri=fin,n=∑ifi\quad r_i = \frac{f_i}{n}, \qquad n = \sum_i f_i

Derivation hint: divide each count by the total number of observations nn; the rir_i sum to 1. For a histogram with bin width wiw_i, the density (used when bins have unequal widths) is:

3
di=riwi=fin wi\quad d_i = \frac{r_i}{w_i} = \frac{f_i}{n\,w_i}

Derivation hint: so that <strong>area</strong> =di×wi=ri= d_i \times w_i = r_i equals relative frequency — the bar's area, not height, represents proportion.

DefinitionThe Five-Number Summary

A boxplot is built from five order statistics of a sorted dataset x(1)≤x(2)≤⋯≤x(n)x_{(1)} \le x_{(2)} \le \dots \le x_{(n)}:

4
{ min⁡, Q1, median (Q2), Q3, max⁡ }\quad \{\, \min,\ Q_1,\ \text{median } (Q_2),\ Q_3,\ \max \,\}

Derivation hint: the median splits the data in half; Q1Q_1 and Q3Q_3 are the medians of the lower and upper halves respectively. The interquartile range measures spread of the middle 50%:

5
IQR=Q3−Q1\quad \text{IQR} = Q_3 - Q_1

Derivation hint: subtract the first quartile from the third; it is resistant to outliers.

TheoremThe 1.5 × IQR Outlier Rule

An observation xx is flagged as a potential outlier in a boxplot if it lies beyond the fences:

6
x<Q1−1.5⋅IQRorx>Q3+1.5⋅IQR\quad x < Q_1 - 1.5\cdot\text{IQR} \quad\text{or}\quad x > Q_3 + 1.5\cdot\text{IQR}

Derivation hint: Tukey chose the multiplier 1.5 empirically; for a normal distribution roughly 0.7% of data fall outside these fences, making true outliers conspicuous.

Why It Holds / Derivation

ProofWhy area encodes proportion in a histogram

We justify equation [3], that histogram bars should be drawn so area equals relative frequency. 1. We want the total area of all bars to equal 1, so that the histogram approximates a probability distribution. 2. The area of bar ii is height ×\times width =di⋅wi= d_i \cdot w_i. 3. We require ∑idiwi=1\sum_i d_i w_i = 1. 4. Set diwi=rid_i w_i = r_i (the relative frequency of bin ii). Then ∑idiwi=∑iri=1\sum_i d_i w_i = \sum_i r_i = 1 by equation [2]. ✓ 5. Solving for height gives di=ri/wid_i = r_i / w_i, which is equation [3]. 6. Consequence: if all bins have equal width ww, then height ∝ri\propto r_i, so plotting raw counts or frequencies is fine. But with unequal widths, plotting frequency as height distorts the picture — a wide bin looks falsely dominant. Always use density. ■\blacksquare

∎
mathematician · John Wilder Tukey | 1915–2000

An American mathematician and statistician at Princeton and Bell Labs, Tukey reshaped how data is explored. In his 1977 book Exploratory Data Analysis he invented the boxplot (box-and-whisker diagram) and the stem-and-leaf plot, championing the idea that one should look at data before fitting models. He coined the words "bit" and "software." His philosophy — let the data suggest hypotheses rather than only test them — underpins modern data science and the very notion of a graphical summary.

Building Intuition

🧠 Intuition

Think of a dataset as a crowd of people in a stadium. A table is like reading every ticket stub one by one — accurate but unmanageable. A histogram is like flying overhead: you instantly see where the crowd is dense (the peak), how spread out they are, and whether anyone is sitting far off alone (an outlier). A boxplot is a stripped-down aerial view showing only the central 50% (the box), the typical range (whiskers), and the loners (dots). A scatterplot seats two crowds on perpendicular axes so you can spot whether tall people also tend to be heavy — an association. The right graph turns invisible structure into something your eye catches in a fraction of a second.

Figure
A boxplot and its five-number summary, showing the IQR box, whiskers, and an outlier

```svg

value 0 50 100 min Q1 median Q3 max (within fence) outlier IQR = Q3 − Q1

```

Worked Examples

ExampleBuilding a Five-Number Summary and Boxplot

Given: test scores of 11 students:

42, 55, 61, 61, 68, 70, 73, 78, 85, 91, 9742,\ 55,\ 61,\ 61,\ 68,\ 70,\ 73,\ 78,\ 85,\ 91,\ 97

(already sorted, n=11n = 11).

Steps: 1. Median (Q2Q_2): with n=11n=11, the median is the 6th value =70= \mathbf{70}. 2. Lower half (below the median): 42,55,61,61,6842, 55, 61, 61, 68 — five values. Its median is the 3rd =Q1=61= \mathbf{Q_1 = 61}. 3. Upper half: 73,78,85,91,9773, 78, 85, 91, 97. Its median is the 3rd =Q3=85= \mathbf{Q_3 = 85}. 4. Min =42=42, Max =97=97. 5. IQR =85−61=24= 85 - 61 = 24 (equation [5]). 6. Fences (equation [6]): lower =61−1.5(24)=25= 61 - 1.5(24) = 25; upper =85+1.5(24)=121= 85 + 1.5(24) = 121. No value lies outside [25,121][25, 121], so no outliers.

Answer:

{min⁡,Q1,med,Q3,max⁡}={42, 61, 70, 85, 97},IQR=24 points\boxed{\{\min, Q_1, \text{med}, Q_3, \max\} = \{42,\ 61,\ 70,\ 85,\ 97\},\quad \text{IQR}=24 \text{ points}}
ExampleHistogram with Unequal Bins Using Density

Given: ages of 100 visitors grouped into uneven bins:

Age rangeCount fif_iWidth wiw_i
0–102010
10–203010
20–404020
40–801040

n=100n = 100.

Steps: compute density di=fi/(n wi)d_i = f_i/(n\,w_i) (equation [3]) for correct bar heights: 1. 0–10: d=20/(100⋅10)=0.020d = 20/(100\cdot10) = 0.020 2. 10–20: d=30/(100⋅10)=0.030d = 30/(100\cdot10) = 0.030 3. 20–40: d=40/(100⋅20)=0.020d = 40/(100\cdot20) = 0.020 4. 40–80: d=10/(100⋅40)=0.0025d = 10/(100\cdot40) = 0.0025

Note the trap: the 20–40 bin has the highest count (40) but the same density as the 0–10 bin. Plotting raw counts would make 20–40 look tallest and most dominant; the density view shows it is no more concentrated than the youngest group.

Answer:

densities=0.020, 0.030, 0.020, 0.0025 per year\boxed{\text{densities} = 0.020,\ 0.030,\ 0.020,\ 0.0025 \text{ per year}}

Each bar's area equals its relative frequency (0.20, 0.30, 0.40, 0.10), summing to 1.

Common Misconceptions

⚠️ Common mistake

A boxplot does not show shape or modality. Two datasets — one symmetric and unimodal, one bimodal (two peaks) — can produce identical boxplots, because a boxplot only records five summary numbers and hides the density between them. Always pair a boxplot with a histogram or dotplot if shape matters. Likewise, a longer whisker does not mean more data — it merely means the extreme values reach farther; the box, not the whiskers, holds the central 50%.

⚠️ Common mistake

Truncated and manipulated axes lie. Starting a bar chart's vertical axis at a value other than zero exaggerates differences; a 2% change can be made to look like a doubling. Bar charts must begin at zero. (Line graphs of time series may use a non-zero baseline, since they emphasize change, not magnitude — but this must be clearly labelled.)

CounterexampleAnscombe's Quartet

In 1973 statistician Francis Anscombe constructed four datasets, each with eleven (x,y)(x,y) points, that share — to two decimal places — the same mean of xx (9.0), mean of yy (7.5), variance, correlation (r≈0.816r \approx 0.816), and regression line (y=3.00+0.50xy = 3.00 + 0.50x). Yet when plotted:

  • Set I is a noisy linear cloud (the "honest" case);
  • Set II is a perfect curve (relationship is non-linear, not linear);
  • Set III is perfectly linear except for one outlier dragging the line;
  • Set IV has all xx identical except one influential point.

Identical numerical summaries; four completely different stories. The lesson: always plot your data. Numbers alone can be summarized into agreement while concealing the truth.

Connections

connection

Graphical summaries sit at the heart of Descriptive Statistics, turning the numerical Measures of Central Tendency (mean, median, mode) and Measures of Spread (range, IQR, standard deviation) into pictures. Histograms are empirical estimates of an underlying Probability Distribution, and a smooth, bell-shaped histogram hints at the Normal Distribution. Scatterplots are the visual face of Correlation and Linear Regression, where the strength of a linear pattern is quantified by the correlation coefficient rr. The boxplot's resistance to outliers connects to the broader idea of Robust Statistics.

Real-World Applications

🔬 Where this appears

Historical Development

⏳ History
- 1765 — Joseph Priestley publishes timeline charts, an early use of position to encode time.
- 1786 — William Playfair, in The Commercial and Political Atlas, invents the line graph and bar chart to display trade data.
- 1801 — Playfair introduces the pie chart in his Statistical Breviary.
- 1858 — Florence Nightingale uses her "coxcomb" (polar-area) diagrams to argue that disease, not battle, killed most soldiers in the Crimean War — pioneering data visualization for persuasion.
- 1869 — Charles Joseph Minard publishes his famous flow map of Napoleon's 1812 Russian campaign, hailed as one of the best statistical graphics ever drawn.
- 1900s — Karl Pearson formalizes the histogram and coins the term.
- 1973 — Francis Anscombe publishes his quartet, dramatizing the danger of summary statistics without plots.
- 1977 — John Tukey publishes Exploratory Data Analysis, introducing the boxplot and stem-and-leaf plot.
- 1983 — Edward Tufte publishes The Visual Display of Quantitative Information, establishing principles of graphical integrity ("data-ink ratio," avoiding "chartjunk").

Subtleties & Limits

open-problem

The choice of bin width for a histogram has no universally correct answer — too narrow and the picture is noisy spikes; too wide and real structure is smoothed away. Rules like Sturges' formula (k=1+log⁡2nk = 1 + \log_2 n bins) and the Freedman–Diaconis rule (width =2 IQR/n1/3= 2\,\text{IQR}/n^{1/3}) give guidelines, but the "best" binning remains partly subjective and dataset-dependent. More deeply, how to honestly visualize high-dimensional data (many variables at once) is still an active research frontier; techniques like parallel coordinates, t-SNE, and UMAP attempt it, but each distorts some relationships while preserving others — there is no perfect projection of many dimensions onto a flat page.

See Also

Descriptive Statistics · Histograms · Boxplots · Scatterplots · Anscombe's Quartet · Edward Tufte · Five-Number Summary · Exploratory Data Analysis · Bar Charts and Pie Charts