Toolvito

Calculates on this device. File exports run online.

Control Chart Generator

Paste your measurements or counts to get the centre line, the upper and lower control limits, a chart and the points that break a run rule. Or work out the limits from a known mean and standard deviation, average range or average share defective.

Enter your values

Your values

The R chart suits small subgroups (up to about 10 values); the S chart suits larger ones.

Numbers separated by spaces, commas or tabs. A first line with column names is skipped. Up to 10,000 values.

Rules that find patterns inside the limits too, such as a run of points on one side of the centre line.

More options

For setting up a chart from past data. Repeated until no point is beyond the new limits (at most 10 times).

Your values are worked out in this browser. They are not sent to a server.

Your result will show here

Fill in the values, then choose Calculate.

Independent check and chart file

Independent check and chart file

Uses the data, chart and rules of the result above. The server works the chart out again with its own program (NumPy and SciPy) and gives it as a picture, with CSV and JSON copies of the tables.

The calculator above works on your device. When you run a task in this section, Toolvito receives the values and result you submit to make the file or run the check. Download the result within one hour after the job finishes. Choose Delete files now to request earlier removal. The hourly cleanup normally removes files within one to two hours after completion.

How to use the control chart generator

  1. Choose the kind of data: measurements in subgroups (several parts measured each time), single measurements, or counts of defects or defective units.
  2. Paste the data in time order. For subgroups, put one subgroup on each line, or one long list and the subgroup size.
  3. Choose the run rules (Western Electric or Nelson) and press Calculate. You get the centre line, the control limits, the charts and a table of every point that breaks a rule.
  4. To set up limits from past data, tick phase I under More options: points beyond the limits are set aside and the limits are worked out again.
  5. The box under the result works the same chart out again on the server and gives it as a picture file.

Which chart?

  • X̄ and R chart: subgroups of 2 to about 10 measurements (for example 5 parts every hour). X̄ and S chart: larger subgroups.
  • I-MR chart (individuals and moving range): one measurement at a time, such as a daily test result.
  • p chart: the share of defective units in samples whose size may change. np chart: the number of defective units in samples of the same size.
  • c chart: the number of defects in the same amount of product each time. u chart: defects per unit when the amount changes.

The formulas

  • X̄ chart: X̿ ± A2 R̄ (or X̿ ± A3 S̄). R chart: D3 R̄ to D4 R̄. S chart: B3 S̄ to B4 S̄. For subgroups of 5: A2 = 0.577, D4 = 2.114.
  • I chart: X̄ ± 2.66 MR̄ (2.66 = 3 ÷ d2, d2 = 1.128 for ranges of two values). MR chart: up to 3.267 MR̄.
  • p chart: p̄ ± 3 √(p̄ (1 − p̄) ÷ n). np chart: n p̄ ± 3 √(n p̄ (1 − p̄)). c chart: c̄ ± 3 √c̄. u chart: ū ± 3 √(ū ÷ n).
  • The constants d2, d3, c4 and the factors made from them are worked out from their definitions for any subgroup size from 2 to 100 (the tables of ASTM E2587-16 agree).

Run rules

  • Western Electric (1956): 1 point beyond 3σ; 2 of 3 in a row beyond 2σ on the same side; 4 of 5 in a row beyond 1σ on the same side; 8 in a row on one side of the centre line.
  • Nelson (1984) adds: 6 in a row rising or falling; 14 in a row alternating up and down; 15 in a row within 1σ; 8 in a row beyond 1σ on either side (and uses 9 in a row on one side).
  • σ here is a third of the distance from the centre line to a control limit. More rules find small shifts sooner but also give more false alarms.

Worked example

Twelve subgroups of five shaft diameters have a grand mean X̿ = 25.00087 mm and an average range R̄ = 0.00842 mm. The X̄ limits are 25.00087 ± 0.577 × 0.00842 = 24.99601 to 25.00572 mm; the R chart goes up to 2.114 × 0.00842 = 0.01780 mm.

Subgroup 10 has a mean of 25.0106 mm, beyond the upper limit: a signal to look for a cause.

Limits you should know

  • Control limits come from the process, not from the specification. A process can be stable and still make parts out of tolerance: check that with a capability study.
  • The limits assume independent points; data that drift slowly or are correlated in time give more signals than the rules expect.
  • p and c charts assume binomial and Poisson counts; very small p̄ or c̄ give a lower limit of 0 and few useful signals.

Related tools