Your Training Partner
Techniques Toolbox
Scatter diagram of an online sign-up funnel over 60 hours of traffic from 8:00 to 20:00. Up to 2 seconds of premium calculator response time, abandonment stays around 14%. From about 2 seconds it rises with response time to 34.6% at 6.3 seconds. An outlier at 1.2 seconds and 37.5% stands apart from the cloud.

Scatter Diagram

A scatter diagram is a chart that plots pairs of measurements on two axes to show whether two variables vary together. Each point is one observed unit: an hour, a batch, a case file. The suspected cause goes on the horizontal axis and the effect on the vertical axis. The cloud of points shows the direction of the relationship, its strength, its shape and the outliers. Spreadsheets call this chart a scatter chart or an XY chart. The diagram shows an association. It proves no cause.

Goal

Nancy Tague defines the scatter diagram in The Quality Toolbox: a graph that plots pairs of numerical data on two axes to look for a relationship between two variables. Each point carries two measurements taken on the same unit.

The diagram tests a candidate cause against the data. The Ishikawa diagram yields the possible causes of an effect. For each cause that can be measured, the analyst records the cause and the effect on the same units and plots the cloud.

The deliverable is the chart with its data and a written reading: the direction, the strength, the shape, the spread, the outliers and a verdict on the cause. The verdict keeps the cause for a controlled test, rules it out or asks for more data.

Kaoru Ishikawa brought together seven basic quality tools for the quality circles: the check sheet, the Pareto chart, the Ishikawa diagram, the histogram, the control chart, the scatter diagram and stratification.

Usage

When to use it

  • A candidate cause from an Ishikawa diagram: check against the data that it varies with the effect before funding a fix.
  • Two indicators that seem linked: see whether the link holds across all units or rests on a few striking months.
  • A process setting and a product characteristic: see how a temperature, a speed or a dosage bears on a dimension or a strength.
  • Analyse phase of a DMAIC project: pick out the causes that the Improve phase will test.
  • Before a control chart: plot each measurement against the previous one to see whether successive measurements depend on each other (autocorrelation).
  • Before a design of experiments: select the factors that the trial will vary.
  • Pairs already on record: application logs, the ERP and inspection records supply the data. No new data needs to be collected.

When not to use it

  • Cause or effect in categories: a complaint reason cannot be placed on a numeric scale. The Pareto chart or stratification handles it.
  • A single measurement tracked over time: the control chart shows whether it changes.
  • A decision that requires proof of a cause: the cloud shows an association. A design of experiments or an A/B test establishes the cause.

Description

The elements

A pair combines two measurements taken on the same unit: the same part, the same batch, the same hour of traffic. Each pair gives one point. The set of points forms the cloud.

The horizontal axis (X) carries the suspected cause. The vertical axis (Y) carries the effect. The NIST statistics handbook calls Y the response and X a variable suspected of being related to the response. Both variables are numbers: a duration, a percentage, a temperature, a count of defects. Each axis carries the name of its variable and its unit.

The choice of axes records the team's hypothesis about the direction of cause. The chart shows the same association whichever way the axes go.

Building the diagram

  1. Name the cause and the effect. The analyst takes a candidate cause from the Ishikawa diagram and the effect under study. A supplier or a team cannot be expressed as a number: such causes belong to stratification.
  2. Choose the unit. The unit sets the period over which each measurement is calculated.
  3. Record the pairs. The analyst records X and Y on the same unit and over the same period. A weekly average paired with a daily value does not make a point. The analyst keeps every unit in the period. The units where the effect is zero stay in the record. Each pair carries its date.
  4. Plot. The analyst places one point per pair. Two identical pairs give two points set side by side. The axes cover the range of the data and need not start at zero. Under the chart, the analyst states the number of pairs, the period and the source.
  5. Read the shape. The analyst names the direction, the strength, the shape, the spread and the outliers.
  6. Check the reading. The analyst looks for a third variable, checks that the record is complete and traces each outlier back to its source.
  7. Write the verdict. The verdict sits under the chart and in the list of candidate causes: cause kept for a test, cause ruled out or more data needed.

Reading the shape

The NIST handbook asks of the cloud whether X and Y are related, whether the relationship is linear or non-linear, whether the variation in Y depends on X and whether the data contain outliers. The analyst writes the answers as direction, strength, shape, spread and outliers.

The direction is positive when Y rises with X. It is negative when Y falls as X rises. The strength shows in the thickness of the cloud: points tightly grouped around a line mark a strong relationship. A wide cloud marks a weak one. The shape is linear when the points follow a straight line. It is non-linear when they follow a curve: a threshold, a saturation, an optimum.

The spread of Y can change with X. A funnel-shaped cloud signals that Y becomes less predictable as X grows. An outlier stands far from the cloud. The analyst traces it back to its source before explaining it or setting it aside.

Y
X
Positive relationship
Y
X
Negative relationship
Y
X
No relationship
Y
X
Non-linear relationship
Y
X
Increasing spread
Y
X
Outlier
Typical shapes of the cloud: positive relationship, negative relationship, no relationship, non-linear relationship, increasing spread, outlier.

Before ruling out the cause of a shapeless cloud, the analyst checks the two traps that ASQ points out. Over too narrow a range of X, a relationship that exists stays invisible. A relationship specific to one machine or one team can also vanish in the cloud of all sources: stratification brings it back. After these checks, the analyst rules out the cause or looks for another measure of the same cause.

A calculation that looks for a straight line misses a U-shaped or threshold relationship. The chart shows it.

What the cloud does not prove

NIST makes the point: a cause produces an association, but an association does not prove a cause. Only knowledge of the domain tells whether the relationship is causal. ASQ names the common trap: two variables vary together because both follow a third variable.

At an insurer, claim files with many attachments take longer to process. The cloud of all files rises. Split by line of business, the household contents files and the motor files form two flat clouds. The line of business sets both the number of attachments and the processing time.

All files
Processing time (days)
0481216202428024681012
Attachments per file
By line of business
Processing time (days)
0481216202428024681012
Household contentsMotor
Attachments per file
Processing time of 40 claim files by number of attachments. Across all files, the cloud rises. Split by line of business, the household contents files and the motor files form two flat clouds: the line of business sets both the number of attachments and the processing time.

Stratification separates the points by source: machine, team, line of business, period. A relationship that disappears within each stratum came from the strata. Time is a frequent third variable. Two measurements that drift over the period vary together without acting on each other. With the date of each pair, the analyst colours the points by period and sees the drift.

A cause that survives these checks remains a hypothesis. A design of experiments or an A/B test verifies it: it changes the cause on some of the units and compares the effect.

Complete data

A cloud plotted on only some of the units can hide the relationship. The common case is a record that keeps only the units with a defect. The units without a defect carry the missing information.

Batches with a defect
Bonding defects per batch
0123410121416182022242628
Workshop temperature at bonding (°C)
All batches
Bonding defects per batch
0123410121416182022242628
Workshop temperature at bonding (°C)
Bonding defects per batch by workshop temperature. On the left, the 7 batches with a defect show no visible relationship. On the right, the 23 batches of the month: the 5 batches bonded below 18 °C all have a defect. At 18 °C or above, 2 of 18 batches have one.

On the eve of the Challenger launch in January 1986, managers at NASA and Morton Thiokol compared the joint temperature only on the flights where the joints had suffered thermal damage. These 7 flights spread from 12 to 24 °C with no visible pattern. The Presidential Commission redid the comparison with all flights. The 4 flights launched at 17 °C or below all show damage. Of the 20 flights launched at 19 °C or above, 3 show damage.

The cloud speaks only for the range it covers. On launch day, the forecast joint temperature was −0.6 °C. The coldest flight until then had launched at 12 °C.

When the shape is unclear

With about ten points, a single point shifts the reading. If the cloud leaves the relationship uncertain, the analyst counts the points by hand with the trend test. ASQ presents this test and credits it to Nancy Tague.

The analyst draws the median of X and the median of Y: each line leaves as many points on one side as on the other. The two lines divide the cloud into four quadrants. Points that lie on a median do not count. The analyst adds up the points of opposite quadrants in pairs. The smaller of the two sums is called Q. The number of points counted is called N.

The trend test table gives a limit for each N. If Q is below that limit, the two variables are related. Otherwise the pattern may come from chance. The table appears in The Quality Toolbox. In the ASQ example, 24 points give Q = 6. The limit for N = 24 is also 6: the test shows no relationship.

Regression then estimates the slope of the relationship and the uncertainty on that slope. It requires statistical software. The diagram comes first: it shows the shape that the calculation assumes.

The scatter diagram and its neighbours

ToolQuestionDataResult
Scatter diagramDo two measurements vary together?Pairs of measurements on the same unitsAn association, its direction and its shape
Ishikawa diagramWhich causes can produce the effect?The group's knowledgeCandidate causes
HistogramWhat shape does the variation of one measurement take?One measurement on many unitsThe centre, the spread and the shape
Control chartDoes the variation change over time?One measurement in the order recordedA stable or unstable process
Design of experimentsWhat effect does each factor produce?Trials whose factors the team setsA cause and its quantified effect
StratificationDo the data mix several sources?The measurements with their source: machine, team, periodSubsets to compare
RegressionBy how much does Y change when X changes?The pairs of the scatter diagramA slope and its uncertainty
The scatter diagram and the neighbouring tools: the question each one asks, the data it reads and the result it delivers.

AI considerations

An assistant writes the Python or R code that joins two exports and plots the cloud with one colour per stratum. A log timestamped in UTC joined to a web analytics tool set to Swiss time shifts each pair by one or two hours. The analyst checks the join key, the unit and the period on a few rows before reading the chart.

When the analyst pastes values into the conversation, a language model can copy some of them wrongly without saying so. The analyst plots the chart from the source file in a spreadsheet or in code.

The model reads a rising cloud and proposes a cause with confidence. It does not know the domain's third variable: the line of business of the claim, the time of day, the change of supplier. NIST leaves that judgement to whoever knows the domain. The model's explanation remains a hypothesis that stratification or a controlled test verifies.

Processing times or amounts linked to individuals are personal data under the Federal Act on Data Protection (FADP). Before passing them to an external AI service, the analyst removes the identifiers. The diagram needs only two numbers per unit.

Examples

The diagram tests a candidate cause taken from the Ishikawa diagram of a health insurer's online sign-up funnel: the premium calculator slows down under load. Each point is one hour between 8:00 and 20:00 over the five working days of a week in November. X carries the calculator's median response time over the hour. Y carries the share of visitors reaching the calculator screen who leave the funnel at that screen.

Abandonment at the calculator screen (%)
010203040012345672 sDeployment
Median calculator response time (s)
60 hours between 8:00 and 20:00 from Monday to Friday. Sources: calculator log and web analytics tool.
Scatter diagram of 60 hours of the sign-up funnel. Up to 2 s of response time, abandonment stays around 14%. From about 2 s it rises with response time to 34.6% at 6.3 s. The outlier at 1.2 s and 37.5% matches a deployment that blocked the "Continue" button.
ElementReading
Pairs60 hours between 8:00 and 20:00 from Monday to Friday. Sources: calculator log and web analytics tool.
DirectionPositive.
StrengthStrong above 2 s: the points stay close to a line.
ShapeA threshold. Up to 2 s, abandonment stays between 9 and 18%. Its mean is 14%. From about 2 s it rises to 34.6% at 6.3 s.
SpreadConstant. Above 2 s, the scatter of the points around the line is about 1 percentage point and does not grow with response time.
OutlierWednesday 14:00 to 15:00: 1.2 s and 37.5%. The operations log shows a deployment that blocked the "Continue" button for 25 minutes. The point stays on the chart with its note.
Third variableThe hours above 3 s are all evening hours. Within the 15 hours from 17:00 to 20:00 taken alone, abandonment still rises with response time.
VerdictCause kept. A/B test on the evening hours: half the traffic receives premiums calculated in advance.
Written reading under the scatter diagram of the example: the pairs, the direction, the strength, the shape, the spread, the outlier, the third variable and the verdict.

Below 2 s, abandonment does not vary with response time: the cloud promises no gain in the quiet hours. The test therefore targets the evening hours, when the calculator exceeds that threshold.

Visualisations

The example chart, the typical shapes, the strata and the truncated record are drawings: the position of the points carries the information. The reading of the example, the comparison with neighbouring tools and the cost consist of rows and columns, so they are tables.

Cost

DimensionLevelJustification
PreparationMediumThe analyst finds the cause and the effect measured on the same unit over the same period. They often sit in two systems. The analyst then joins the two exports.
ExecutionLowA spreadsheet plots the cloud in a few minutes. The analyst then looks for a third variable and checks the outliers in one to two hours.
DocumentationLowThe chart, its data, its source and the verdict written under it.

Tooling

A spreadsheet is enough. Excel ("Scatter") and LibreOffice Calc ("XY (Scatter)") plot the chart and add a trendline. That line imposes a shape chosen in advance: a straight line by default. The analyst adds it only after reading the cloud. The spreadsheet colours the points by stratum only when each stratum is a series of its own.

Minitab and JMP plot the diagram by group and move on to regression in the same analysis. R with ggplot2 and Python with matplotlib do the same work in code that the team reruns on the next month's data. When many points overlap, semi-transparent points show the density.

Power BI and Tableau place the cloud in a dashboard. A filter by period or by source stands in for stratification there.

Sources

  • Ishikawa, Kaoru, Guide to Quality Control, Asian Productivity Organization, original Japanese edition 1968: the scatter diagram among the seven basic quality tools.
  • ASQ, "What is a Scatter Diagram?": the definition, the construction, the warning about the third variable, the trend test and the checks to run on a cloud that shows no relationship.
  • Tague, Nancy R., The Quality Toolbox, 2nd edition, ASQ Quality Press, 2005: the definition and the procedure, the cause on X and the effect on Y.
  • NIST/SEMATECH, e-Handbook of Statistical Methods, §1.3.3.26 "Scatter Plot": the questions the chart answers, the typical shapes and the line between association and causality.
  • Presidential Commission on the Space Shuttle Challenger Accident, Report of the Presidential Commission on the Space Shuttle Challenger Accident, vol. 1, ch. VI, 1986, pp. 146 to 147: Figures 6 and 7 compare the joint temperature on the flights with damage only, then on all flights.
SCAMPER
All techniques
Scope Modelling