Change-point analysis
Overview
Change-point analysis looks back over a CRM’s results and answers three questions: did the laboratory’s results shift, where, and how sure can you be? On the precision charts it asks the same of the pairs’ precision. It needs no target, no standard deviation and no control lines, and it does not assume the results are normally distributed.
Tick “Show change points” on the Shewhart or CUSUM chart. A dashed purple line marks each change found at 95% confidence or more, with the confidence on the line. On the Shewhart chart the mean of each stretch between changes is drawn across it. Every change, with its despatch (or date) and the shift in standard deviations, is listed under the chart, together with any possible change at 90 to 95%. When there are more than 5, the 5 most certain are listed, and the line under them gives the total. Every change at 95% or more is still drawn.
When to use
- Reviewing a CRM’s history: when did the laboratory start reading high or low, and when did it stop?
- Choosing which batches to look at again after the CUSUM signals.
- Checking whether a change of method, laboratory or batch of the standard shows in the results.
How it is worked out
For the results on the chart, in the chart’s order (Taylor, 2000):
- Take the mean of the results, x̄, and the running total of each result’s difference from it:
Si = Si−1 + (xi − x̄), S0 = 0
- The change is after the result where Si is furthest from zero.
- Its strength is the range of the running total, Sdiff = max(S) − min(S), counting the 0 it starts from.
- The results are shuffled 1,000 times. A shuffle keeps the same results but mixes away any change. The confidence is the share of shuffles whose Sdiff is smaller than the real one.
- At 95% or more it is a change: the results are split there and each side is looked at again. At 90 to 95% it is a possible change, listed but not split.
A stretch of fewer than 8 results is not looked at. The shuffles always start from the same seed, so the same results always give the same changes.
| Symbol | Description |
|---|---|
| xi | The i-th result, in the chart’s order |
| x̄ | The mean of the results in the stretch |
| Si | The running total of differences from the mean |
| Sdiff | The range of the running total |
On the precision charts
Tick “Show change points” on the RD v Sequence or RD Rolling Median chart to find where precision changed. The same analysis runs on each pair’s |RD|, in the chart’s order (on RD Rolling Median, the pairs in despatch date order), with two differences.
- It runs on the ranks of |RD|, not the values. |RD| is skewed, and one large pair can make a step that isn’t there, or hide one that is. Each pair’s |RD| is replaced by its rank among all the chart’s pairs before the running total is worked out, and a stretch split off at a change keeps those ranks. A pair with no |RD|, such as two results of zero, is left out.
- Precision depends on grade: lower grades give poorer precision. So each change is listed with the median |RD| before and after it. The median grade (the mean of the pair) before and after is given only when it rises by a quarter or more, or falls by a fifth or more, at the same point, in the direction that could explain the change. A fall in grade can explain poorer precision, and a rise better precision.
- A change is listed only when the median |RD| moves by at least 1 percentage point. With many pairs the test finds smaller steps that are too small to act on. They are counted under the chart, not drawn. When more than 5 changes are found, the 5 largest are listed and the rest counted.
Each check stage is looked at on its own. Compare like with like before reading a change as one at the laboratory: a Thompson Howarth chart shows how precision varies with grade.
Lab events on the Overview
A control chart shows one CRM and one analyte. When a laboratory changes something, many analytes in several CRMs shift together, each by about 1 SD. That is small on any one chart and plain when the changes are seen side by side.
Select “Look for lab events” on the Overview. The same analysis runs on every CRM and analyte at the laboratory, in Laboratory return date order, so each change is the one the Shewhart chart shows on a Date axis. A change is dated by the first result after it.
- A lab event is 6 or more changes on one day, in at least 2 CRMs and 3 analytes, with 80% or more trending the same way.
- Such days within 14 days of each other, trending the same way, are one event. A CRM that is run less often shows the same change a little later.
- One CRM changing alone points to that CRM. Several changing together point to the laboratory.
- An event near the end of the data is marked provisional when the CRMs that changed have a median of fewer than 8 results after it. A few results can make a step that later results don’t confirm.
An event says the results changed and when. It doesn’t say why. Ask the laboratory what changed on or just before the event’s first day: a new calibration, instrument, reagent batch, or digestion or weighing procedure.
Week by week and Bias against grade open from the same card and from the Charts tab. They use no change points, and have their own page: Week by week and bias against grade.
Limits
- On a CRM chart it finds shifts in the mean, not changes in scatter. On a precision chart it finds changes in precision, from the pairs’ |RD|.
- It assumes each result is independent of the one before.
- With few results the confidence is modest even for a real shift, so treat a possible change as a reason to look, not a finding. Of 100 runs with no change at all, about 10 will show a possible change.
- The order matters: on a Check ID, Lab Job No or Despatch No axis the results are in that order; on a Date axis, in date order.
Reference
- Taylor, W. A. (2000). Change-point analysis: a powerful new tool for detecting changes. Taylor Enterprises.
- Change-point analysis workbook: a free Excel workbook, paste in one standard’s results
- Control charts for standards: the Shewhart chart, the Nelson rules and the CUSUM together