1Why visualization exists at all
Start from how a person takes in information, because every other rule in the course sits downstream of it.
about 65%
of people learn better from a picture than from the same fact in words.
80% vs 20%
seen against read. Reading twice still loses detail later; seeing once holds.
13 ms
to understand an image. Text has to be decoded first, then held, then recalled.
Two consequences worth stating plainly. Text forces the reader to decode, hold in memory, then recall, and a visual skips the decode step. So the chart is the communication, not an illustration of it.
What a visualization actually is
Underneath every chart there is one operation: a number is encoded as a visual property, and the eye reads the property back out. Choosing a chart is really choosing which property will carry your number.
Why statistics alone are not enough
Anscombe's quartet. Four datasets with the same mean of x, same mean of y, same variance and the same regression line. Judged on the summary table you would call them the same phenomenon.
| Dataset | mean x | mean y | var x | var y | correlation | What it actually is |
|---|
Gestalt principles: how the eye groups things
These are not design rules somebody invented. They are observed facts about human perception, which is why they work on every audience.
Data types decide chart types
Before any chart, classify the variable. Everything downstream depends on this.
| Type | Test for it | Example |
|---|---|---|
| Categorical / nominal | Groups with no order | Gender, race |
| Binary | Exactly two, mutually exclusive | Bought or not |
| Ordinal | Ranked, gaps not meaningful | Rating 1 to 5 |
| Continuous | Fractions make sense | Revenue, GDP |
| Discrete | Fractions do not make sense | Number of cars |
- Structured data can be computed on immediately, so it is easier to visualise.
- Unstructured data must be read by a human before any variable exists, so it needs processing first.
- Binary is a special case of categorical, called out separately because it represents something happening or not.
The seven stages of data visualization
The process from raw file to finished visual. Taught in order, but it is a loop, and the loops are the part that matters. Anybody can list seven words.
Choosing a chart from your message
Chart choice starts from what you want to say, not from what data you happen to have.
Boxplot anatomy
The single most useful diagram in this chapter. Start from the idea, not the picture: sort your values, then cut the sorted list into four equal groups. The three cut points are the quartiles, and the distance from Q1 to Q3 is the interquartile range, the middle 50% of the data.
- Sort the values and mark the median.
- Find Q1 and Q3, then draw the box between them.
- Compute IQR = Q3 − Q1, then 1.5 × IQR.
- Set fences at Q1 − 1.5 × IQR and Q3 + 1.5 × IQR. Draw whiskers to the furthest real value inside each fence.
- Plot anything beyond a fence as a separate dot.
Reading the shape
The value of the boxplot is that position tells you about skew with no calculation. Real data is rarely symmetric, so an off-centre median is the normal case rather than an error.
The distribution ladder
Each step shows more of the raw data than the one before. Use the simplest one that shows your finding, since more detail is not automatically better.
Looking at several variables
Absolute counts against proportions
Relationship, and the trap
Always describe a scatter in three separate parts: direction (positive, negative, none), shape (linear, exponential, parabolic, u-shaped) and strength (strong, weak, none).
Correlation is not causation
Called out in the course as the most common analyst error. Correlation states a direction only. It never establishes that one variable produces the other, and if a correlation has no sensible business or theoretical explanation, assume a hidden variable is driving both.
The multivariate toolkit
| Chart | What it adds beyond a scatter |
|---|---|
| Joint plot | Distributions of x and y drawn on the axes, so you can check the relationship holds across the whole range |
| Pair plot | Every variable against every other, coloured by outcome |
| Heat map | Correlation matrix as colour. The diagonal is always 1 |
| Parallel coordinates | Three or four variables side by side. Every axis must be rescaled to be comparable first |
| Dual axis chart | Two variables with different scales, one axis on each side |
Exploratory against explanatory
The same chart can be either. What changes is what you are doing with it.
| Exploratory | Explanatory | |
|---|---|---|
| Purpose | Understand the data | Convince an audience |
| Mode | Asking | Telling |
| Audience | Yourself | Someone else |
| Stages it maps to | Parse, filter, mine | Represent, refine, interact |
| Output | Many rough charts | One deliberate chart |
Context
Named as the single most important thing to settle before designing any visual. One dataset does not have one correct chart. It has one correct chart per audience, because the audience decides what question is being asked.
- Who am I speaking to, and what is their background?
- What are they looking for from this?
- Do I have enough data to give them that?
- How much space and time do I have?
Context is not observable on the chart. It is the reasoning that produced the chart. It sharpens as you work, so an early rough version is fine, but it must exist before you draw. Audience biases and likely objections belong in it too.
Mistakes to avoid
- Too much on one chart creates clutter and the audience stops looking for the insight.
- Use several visuals rather than forcing every data point into one.
- Always label both axes and give the chart a header.
- Scale both axes to suit the data, since bad scaling distorts the pattern and produces wrong conclusions.
Key points
- Three perception facts: 65% visual learners, 80% against 20% retention, 13 ms to process an image.
- Three uses of visualization: decisions, patterns and trends, presenting an argument.
- Six Gestalt principles by name with one use each.
- What Anscombe's quartet proves, and why summary statistics mislead.
- Five data types, and structured against unstructured.
- Seven stages in order, plus at least three backward loops and their triggers.
- Four chart families, with the question each answers.
- Boxplot anatomy: quartiles, median, whiskers at 1.5 × IQR, outliers beyond.
- The distribution ladder: histogram, boxplot, boxen, swarm, and what each adds.
- Absolute against 100% stacked bar, and why the conclusion can reverse.
- Correlation is not causation, and what a confounding variable does.
- Exploratory against explanatory, and that one chart can serve both.
- Context: one dataset, one correct chart per audience.