Distribution
Histogram
Groups numeric observations into intervals and shows frequency, proportion or density.
- Plot
- Distribution
- Frequency
What it answers
Where do numeric observations concentrate?
- Shape
- Adjacent bars across numeric bins
- What it shows
- Centre, spread, skew and possible modes.
Example
The question
How long do customers usually take to pay an invoice?
Days to pay, 60 invoices (illustrative)
Illustrative teaching data. It belongs to no company.
The misleading version
Same question, drawn badly
Two bins hide the shape
What goes wrong. With only two bins the peak at 30 to 40 days and the long tail vanish. Try several bin widths before you choose one.
When to use it
Use it when
Understanding one numeric distribution.
Avoid it when
When categories are discrete labels or bin choices dominate a tiny sample.
How to read it
Read numeric bin boundaries and bar frequency or density.
Note
Specify bins and the vertical-axis measure.
The data you need
- Layout
- Long table
- Fields
- Value: number
- One row is
- One raw numeric observation. What is the grain?
- Rules
- Use raw observations unless the chosen renderer explicitly accepts summaries or bins. Define missing-value treatment.
- Optional
- Optional frequency Weight. Pre-binned alternative: BinStart,BinEnd,Count; do not treat counts as raw values.
- 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
- The measurement axis retains its original unit. Frequency uses observations; normalised frequency divides by group sample size; density also depends on interval width.
Worked example
Values 10,12,12,18,23; bins[10,15),[15,20),[20,25). Counts 3,1,1 show concentration in the first bin.
| Value |
|---|
| 10 |
| 12 |
| 12 |
| 18 |
| 23 |
