Data and statistics · cheat sheet

Correlation and scatter plot

A scatter plot shows pairs of values as points; the correlation coefficient r (from −1 to +1) measures how closely they follow a straight line.

Common practice
5 steps
Used by Process Improvement Specialist

What it is

A scatter plot shows pairs of values as points. The correlation coefficient r summarises how closely they follow a straight line: +1 perfectly rising, −1 perfectly falling, 0 no straight-line link.

When to use it

When you suspect two measures move together, before building a model.

Why it works

It's the quickest way to see whether a suspected cause moves with the result.

Do

  • Always plot before calculating.
  • r only measures straight-line links.

Don't

  • Calculating r without looking at the plot.
  • Reading correlation as proof of cause.
  • Missing a curved relationship that r understates.

Step by step

  1. Pair the data
  2. Plot
  3. Look at the shape
  4. Calculate r
  5. Test it
Also called: Scatter diagram, correlation coefficient, rPrint the blank template ↗

Worked example

The situation. A café's daily temperature (°C) and cold drink sales over 8 days.

  1. r = 1.00: a very strong positive link.

The result. The café plans cold drink stock from the weather forecast.

Scatter plot data Print blank
Tem­peratureSales
14210
16240
18260
20300
22330
24350
26390
28420

Filled in for: A café's daily temperature (°C) and cold drink sales over 8 days.

Item or periodPossible cause (x)Result (y)

Copy this structure, or print the blank version and fill it in by hand.

Before you use it: check these

CheckIf it fails
A roughly straight-line relationship (look at the plot)Use a curve, or a rank correlation
No extreme points driving the resultCheck them against the source; report with and without

How to do it with real data

The full calculation, as it happens in the story: the data, every step, how to read the result, and the spreadsheet functions to do it yourself.

Worked example with real data

Does urgent use of routine slots go with longer waits?

From Day 37: Measuring the likely cause of the Process Improvement Specialist story

Astrid (Data Analyst) counts, for each of the 20 weeks, the share of routine slots used for urgent cases, and plots it against that week's median wait.

Weekly median wait against urgent use of routine slots05101520810131618Urgent use of routine slots (%)Median wait (days)11, 813, 915, 811, 714, 910, 814, 912, 811, 812, 912, 812, 108, 1014, 1110, 1118, 1213, 1216, 1312, 1215, 13

Step by step

  1. Plot firsteach week is one point: urgent use across, wait up
  2. Correlation coefficientr measures how closely points follow a straight line, from −1 to +1= r = 0.46
  3. Strength0 to 0.3 weak, 0.3 to 0.7 moderate, above 0.7 strong= moderate, positive
  4. Is it real?test of r with 18 degrees of freedom= p = 0.04
  5. Share explainedr² = 0.46²= 21% of the week-to-week variation
WeekRoutine slots offeredUrgent use of routine slots (%)Median wait (days)
Week 1259118
Week 2261139
Week 3270158
Week 4265117
Week 5254149
Week 6262108
Week 7259149
Week 8263128
Week 9254118
Week 10263129
Week 11263128
Week 122401210
Week 13234810
Week 142351411
Week 152251011
Week 162431812
Week 172221312
Week 182381613
Week 192301212
Week 202281513

How to read the result

Weeks with more urgent cases in routine slots tend to have longer waits, but the link is moderate. Something else explains more of the variation: the number of routine slots offered.

What it led to

Urgent use moves from “likely” to “proven, moderate effect”. Next, build a model with both causes together.

Do it in a spreadsheet

Correlation=CORREL(C2:C21,D2:D21)
r²=RSQ(D2:D21,C2:C21)
ChartInsert a scatter chart of columns C and D, then add a trendline
Try it yourself: A scatter plot shows r = −0.85 between staff on duty and queue length. What does that tell you?

A strong negative link: more staff goes with shorter queues. It's still a link, not proof of cause, but with a clear mechanism it's convincing.

In the roles

How a Process Improvement Specialist uses it

Weekly urgent use of routine slots against median wait: r = 0.46, p = 0.04, moderate.

Questions people ask

Does a strong r prove cause?

No. Both may be driven by something else. A mechanism and a test of the change are needed.

Related techniques

← All techniques and tools