Distribution

Frequency polygon

Connects bin frequencies at their midpoints to describe a distribution.

  • Plot
  • Distribution
  • Comparison

What it answers

How does frequency vary across numeric ranges?

Shape
Line through bin midpoints
What it shows
Shape and changes in binned frequency.

Example

The question

How do delivery times compare between our two warehouses?

Deliveries by days taken, two warehouses (frequency polygons)

Deliveries by days taken, two warehouses (frequency polygons)Lines join the counts at each bin midpoint. Malmö peaks at 3 days; Lund peaks at 5 days and is more spread out.Deliveries010203040123456789LundMalmö
Deliveries by days taken, two warehouses (frequency polygons)Lines join the counts at each bin midpoint. Malmö peaks at 3 days; Lund peaks at 5 days and is more spread out.MalmöLundDeliveries010203040123456789
Lines join the counts at each bin midpoint. Malmö peaks at 3 days; Lund peaks at 5 days and is more spread out.

Illustrative data. It belongs to no company.

When to use it

Use it when

Comparing binned distributions with less filled overlap.

Avoid it when

When connections could be mistaken for observed values between bins.

How to read it

Read frequencies at bin midpoints and follow the connecting line.

Note

Can also use pre-binned midpoint and frequency columns.

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.
Example of the input layout: Long tableA long table: one row per observation, few columns. New data adds rows.ValueAABBC
A long table: one row per observation, few columns. New data adds rows.

Worked example

Bins[10,15),[15,20),[20,25) have counts 3,1,1. Plot midpoints 12.5,17.5,22.5; the peak is the first bin.

Value
10
12
12
18
23