Advancing QE Skills | Not Every Measurement is Independent — Diagnosing Autocorrelation in Continuous Measurement Data, Effective Sample Size, and Recalculation Criteria

By: QTank Published: 11/23/2026 Views: 55
Current rating: ★★★☆☆ Rate this Equivalent to 8 ratings

A company's extrusion line performs 100% full inspection on a critical dimension, with one reading every 2 seconds. The quality engineer (QE) plotted three months of records into an I-MR chart, finding that the control limits were about 30% narrower than the actual process variation, resulting in over 60 alarms in a week. The process engineer adjusted the parameters three times, but the dimensions became even more scattered. The problem lies not in the process but in the data: adjacent readings are inherently not independent. Treating them as independent samples to calculate the moving range systematically underestimates σ, narrows the control limits, and inflates the Cpk.

1. Applicable Scenarios: When to Check, and When Checking Won't Help

Preceding criteria: The same process, in time order, with sampling intervals less than the process's inherent memory length — if all three conditions are met, adjacent points are correlated, and a check must be performed before creating a single-value chart.

Three types of data that must be checked:

  • Online full inspection / high-frequency collection: One reading per piece, per second, or per meter, such as in extrusion, coating, continuous casting, injection molding cycles, heat treatment furnace temperatures, and online thickness and diameter measurements.
  • Output from automatic inspection equipment: Continuous data output from visual, laser, and weighing equipment, which may have internal filtering or averaging.
  • Data sources for Cpk commitments: Customer requests for capability reports, and the data comes from 100% inspection rather than sampling.

Scenarios where checking is unnecessary or ineffective:

  • Data has been summarized by batch (one mean per batch), with batches nearly independent.
  • Sampling intervals are greater than three times the process time constant, meaning the process has "forgotten" the previous value.
  • Destructive testing, with only 3-5 pieces per batch and intervals of several hours.
  • Sample sizes less than 50: The standard error of r1 is approximately 1/√n, and at n=30, it is as high as 0.18. You cannot distinguish whether it is 0.1 or 0.3, and a forced judgment will only yield a pseudo-conclusion of "approximately independent."

Not covered by this method: One-time capability studies (e.g., 300 pieces submitted for PPAP) that are only arranged by piece number without time sequence cannot estimate autocorrelation. For such data, stratify by machine, shift, or batch before selecting a control chart; do not apply autocorrelation formulas here.

By industry and stage: Continuous and process manufacturing are the most typical (extrusion, coating, wire and cable, continuous casting, injection molding / die casting, tablet weighing), followed by online visual inspections in electronic assembly. As long as "data is automatically collected and the sampling rate is faster than process changes," this method applies regardless of the company size. Conversely, in scenarios of single-piece small batches, with only 3-5 pieces per batch, or where the process itself is already controlled to extremely low variation (Cpk greater than 2, σ close to the resolution of the measuring instrument), the impact of autocorrelation on these numbers is so small that it is not worth conducting a separate analysis — first resolve the resolution and GR&R issues.

2. Criteria and Thresholds

2.1 Three Basic Criteria

Item Threshold Explanation
Sample size n ≥ 50, preferably ≥ 100 Below 50 points, the estimation error of r1 overshadows the signal itself.
Single-lag significance \ r1\
Joint significance At least two \ r_k\

2.2 The More Correlated, the More Severe the Error

Lag-1 autocorrelation r1 σ underestimated Reported Cpk inflated Control limit width narrowed False alarm rate per point False alarm interval (points) Effective sample size n=100
0.1 5% 1.05 times 5% 0.44% About 226 82
0.2 11% 1.12 times 11% 0.73% About 137 67
0.3 16% 1.20 times 16% 1.21% About 83 54
0.5 29% 1.41 times 29% 3.39% About 30 33
0.7 45% 1.83 times 45% 10.0% About 10 18
0.9 68% 3.16 times 68% 34.3% About 3 5

The formulas and conditions in the table must all be met:

  • σ underestimation ratio = 1-√(1-r1): Applicable only to AR(1) type correlation and when σ is estimated using MRbar/1.128. The reason is that the variance of the difference between adjacent points is 2σ²(1-r1), and the expected moving range is compressed to 1.128σ√(1-r1).
  • Cpk inflation factor = 1/√(1-r1): The extent to which the denominator is reduced is the extent to which Cpk is inflated, regardless of the specification limits.
  • False alarm rate estimated assuming "control limits set at 3σ_hat, points still approximately independent": In real data, adjacent points are correlated, leading to serial alarms, and the actual false alarm interval is shorter than indicated in the table.
  • Effective sample size n_eff = n(1-r1)/(1+r1): Use this to calculate the confidence interval for Cpk and to determine if "this batch of data is sufficient," not the original n.

Consequence in a nutshell: When r1=0.5, the reported Cpk of 1.33 corresponds to a true level of only 0.94, with a bilateral nonconforming rate of about 4,800 ppm, which is more than 70 times the committed value of 66 ppm.

2.3 Distinguishing Between Process-Induced and Instrument-Induced Autocorrelation

This step determines all subsequent actions; a wrong judgment means wasted effort.

Signature (look at the shape of r1 to r10) Source Action
r_k approximately decays exponentially as r1^k, no truncation Process inertia (temperature, concentration, tension, mold temperature) Grouping or EWMA is effective; σ is estimated within groups, representing short-term capability.
r1 ≈ (m-1)/m, and drops sharply to 0 at lag ≥ m (m=2→0.5, m=5→0.8, m=10→0.9) Instrument or system performs m-point moving average / filtering Grouping is ineffective; original sampling values or data without smoothing must be used.
Sharp peaks only at fixed lags (e.g., lag 24 = one mold change per shift) Periodic events, batch changes, or model changes Stratify by event, exclude model change segments, and analyze within batches.

2.4 How Wide Should the Groups Be

To ensure that groups are approximately independent, use r1^k ≤ 0.2, and the subgroup size k ≥ ln(0.2)/ln(r1):

r1 0.3 0.5 0.7 0.8 0.9
Minimum k 2 3 5 8 16

Thus, the practice of "taking 5 consecutive pieces every 30 minutes" is only approximately valid when r1 ≤ 0.7; for online measurement data with r1=0.9, it is equivalent to no grouping, and the within-group σ is still compressed by correlation.

2.5 A Calculation Example: What Does r1=0.62 Mean?

For a critical dimension of an injection-molded part, 200 consecutive readings (one per mold) were obtained, with r1=0.62, r2=0.38, and r3=0.24, showing exponential decay — typical process inertia. Using the above formulas:

  • σ is underestimated by 38%, and the reported Cpk of 1.42, when adjusted for actual variation, is only 0.88.
  • The bilateral nonconforming rate increases from about 20 ppm in the report to about 8,600 ppm in reality, a difference of two orders of magnitude.
  • The effective sample size n_eff = 200×0.38/1.62 ≈ 47 — this "200-piece" capability report statistically equates to only 47 independent readings, and the confidence interval should be calculated based on 47.
  • The grouping threshold k ≥ ln(0.2)/ln(0.62) ≈ 3.4, so a subgroup size of 4 molds is勉强成立.

The same data yields two different Cpk values before and after adjustment: 1.42 and 0.88. The former can pass an audit, but the latter is what actually happens on the production line.

3. Executable Steps

  1. Maintain time order in data storage: When exporting original records, retain the collection timestamp and order, and record the sampling interval. Do not use tables that have been reordered by dimension, machine, or piece number — once the order is disrupted, autocorrelation cannot be estimated.
  2. Calculate r1 to r10: In Excel, start with =CORREL(B3:B302,B2:B301) and shift right to get lags 1 to 10; plot as a bar chart to observe the shape.
  3. Determine significance and signature: Use 2/√n to check individual points; if two or more consecutive lags exceed the limit, the sequence is not independent. Then, refer to the signature table in 2.3 to determine whether the autocorrelation is due to process inertia, instrument smoothing, or periodic events.
  4. Adjust the calculation criteria: For process inertia — re-group the data according to k in 2.4 and use Xbar-R, or directly switch to EWMA. For instrument smoothing — re-collect data using the original sampling values. For periodic events — exclude model change segments and analyze within batches. Always specify the source of σ (within-group / overall) in the report, and include n_eff in the Cpk report.
  5. Re-measure and adjust external reporting: Recalculate r1 after two to four weeks, aiming for |r1| < 0.2 and false alarms returning to an average of about one every 370 points. If the recalculated Cpk is more than 20% lower than the original report, reassess the commitment to the customer based on the new value, and do not continue using the old report.

4. Counterexamples and Misconceptions

  1. Measuring every piece but treating as independent samples: Control limits are 30% narrower, with over ten alarms per day, leading to the control chart being turned off. The biggest cost of false alarms is not wasted time but the drowning of true signals — too many alarms and no alarms have the same outcome.
  2. Using MRbar/1.128 to report "short-term capability": The method itself is not wrong, but when data is autocorrelated, MR only reflects the difference between adjacent points, not the process variation. When r1=0.7, σ is underestimated by 45%, and a process reported with Cpk 1.6 may actually have a true level of only 0.87.
  3. Sorting data before calculating correlation: Sorting by dimension size will inevitably make r1 close to 1, leading to the incorrect conclusion that the process is severely autocorrelated. Conversely, randomizing the data will make r1 zero, masking the problem. Autocorrelation can only be calculated in time order.
  4. Overlooking the smoothing inherent in instruments: Online thickness gauges often perform a 5-point moving average, resulting in a natural r1≈0.8. Changing subgroups or adding samples is ineffective — the smoothing flattens the true variation itself, and short-term impacts are also smoothed out, making the control chart unable to detect shifts or prevent peaks.
  5. Using n instead of n_eff to calculate confidence intervals: 300 autocorrelated readings reduce to about 100 when using n_eff, underestimating the width of the Cpk confidence interval by about 1.7 times, and failing to protect the lower limit of the commitment.
  6. Treating "reasonable subgrouping" as a free pass: When the subgroup width is less than ln(0.2)/ln(r1), the within-group σ is still compressed by correlation, and the nominal Xbar-R chart is essentially still a single-value chart.

5. Self-Check List

  • Data is sorted by collection time, with sampling intervals recorded, and not reordered by dimension, machine, or piece number.
  • n ≥ 50, r1 to r10 have been calculated, and significance has been determined using 2/√n or Ljung-Box.
  • The signature table has been used to distinguish whether the autocorrelation is due to process inertia, instrument smoothing, or periodic events.
  • The source of σ (within-group / overall) is clearly stated in the report, and the Cpk confidence interval is calculated using n_eff.
  • The subgroup width k ≥ ln(0.2)/ln(r1), or EWMA has been adopted and re-measured to |r1| < 0.2.
  • The difference between the recalculated Cpk and the original report has been assessed, and a new commitment to the customer is made if the reduction exceeds 20%.

Adjacent points are not independent, leading to distorted control limits and Cpk.

Knowledge code: 6.3.1

Version: v20261123

Author: QTank QTank is dedicated to providing systematic professional knowledge, methodologies, and practical tools for quality management practitioners, helping companies continuously improve their quality capabilities.