Distribution
Box-and-whisker plot
Summarises a distribution through median, quartiles, whiskers and optional outlier marks.
- Plot
- Distribution
- Comparison
What it answers
How do centre, spread and potential outliers differ?
- Shape
- Quartile box, whiskers and points
- What it shows
- Median differences, spread and unusual values.
Example
The question
Which product type is delivered fastest and most reliably?
Days from order to delivery by product type (illustrative)
Illustrative teaching data. It belongs to no company.
The misleading version
Same question, drawn badly
Boxes drawn from four values each
What goes wrong. Each box rests on four values, but it looks as reliable as a box built from hundreds. With so few values, plot the points themselves.
When to use it
Use it when
Comparing numeric distributions across groups.
Avoid it when
When multimodal shape or individual values are essential without an additional layer.
How to read it
Read median, quartiles, whiskers and separately marked outliers.
Note
Quartile and whisker conventions differ across tools.
The data you need
- Layout
- Long table
- Fields
- Group: text; Value: number
- One row is
- One raw observation belonging to a group. What is the grain?
- Rules
- Retain individual observations and group labels. State weighting and missing-data rules.
- Optional
- For box plots only, some tools accept Group,Q1,Median,Q3,WhiskerLow,WhiskerHigh plus separate outliers. Other distributions usually need raw data.
- Preparation
- Keep raw numeric observations, group them if needed and handle missingness explicitly. Choose bins, bandwidth or summary conventions as appropriate to this specific plot.
- Units
- Value scale uses original units. Quartiles are positions in the sample distribution; whiskers depend on the chosen rule.
Worked example
Sorted values 1,2,3,4,5. Under an inclusive quartile rule Q1=2, median=3, Q3=4. Draw the box and state whisker rules.
| Group | Value |
|---|---|
| A | 10 |
| A | 12 |
| A | 18 |
| B | 11 |
| B | 23 |
