Variability chart: compare spread across nested factors

Updated

A variability chart plots every observation grouped by a hierarchy of factors, such as machine, then head, then part. For each combination of factor levels (a cell) it shows the individual values, their mean and their spread, usually with a second chart of the cell standard deviations underneath. It shows at a glance which groups differ in level, which differ in spread, and at which level of the hierarchy the variation enters.

When to use it

  • Your data come from a structure of nested or crossed factors: lines and stations, fillers and nozzles, molds and cavities, operators and parts.
  • You want to see differences in spread, not only differences in averages.
  • You are looking at a gage study and want to see each operator's readings on each part.
  • You want a picture to go with an ANOVA or a test for equal variances, so nobody has to trust the p-values blindly.

How it works

  1. Arrange the factors from the outside in. Put the broadest factor first (filler), then the factor inside it (nozzle). The x-axis lists every cell, grouped by the outer factor.
  2. Plot each observation in its cell, so you can see every value, not just a summary.
  3. Mark the cell means and, if helpful, the means of the outer groups.
  4. Plot the cell standard deviations in a second chart below, on the same x-axis. A cell with a tall bar varies more than the others.

For each cell with values x₁ … xₙ:

Cell mean = (x₁ + … + xₙ) / n Cell SD = √( Σ (xᵢ − x̄)² / (n − 1) )

The chart answers three questions in order. Do the outer groups differ in level? Do the inner groups within each outer group differ in level? Does any cell differ in spread?

Example

A juice plant fills 500 mL bottles on two rotary fillers, each with many nozzles. The line target is 501.0 mL, but the plant uses more juice than the bottles shipped can explain, a sign of overfilling. The quality technician takes 5 consecutive bottles from each of three nozzles on each filler and measures the fill volume (mL).

FillerNozzleBottles (mL)MeanSD
11500.8, 501.3, 500.5, 501.0, 500.9500.900.29
12501.2, 500.7, 501.0, 501.4, 500.8501.020.29
13500.6, 501.1, 500.9, 500.4, 501.0500.800.29
21501.5, 501.0, 501.3, 501.7, 501.2501.340.27
22501.1, 501.6, 501.4, 500.9, 501.3501.260.27
23502.9, 500.8, 503.6, 501.4, 504.1502.561.42
Fill volume by filler and nozzle501502503504Fill volume (mL)F1 N1F1 N2F1 N3F2 N1F2 N2F2 N3
Fill volume by filler and nozzle
Standard deviation of fill volume by filler and nozzle0.00.51.01.5Standard deviation (mL)F1 N1F1 N2F1 N3F2 N1F2 N2F2 N3
Standard deviation of fill volume by filler and nozzle

Filler 1 averages 500.91 mL; filler 2 averages 501.72 mL. All 30 bottles together have a standard deviation of 0.83 mL. Without nozzle 3 of filler 2, the other 25 bottles have a standard deviation of 0.33 mL, and the five ordinary nozzles share a pooled within-nozzle standard deviation of about 0.28 mL.

How to read the results

  • One cell has a different spread. Nozzle 3 on filler 2 has a standard deviation of 1.42 mL, about five times the others. Its values jump from 500.8 to 504.1 mL. A worn or sticky fill valve behaves like this. That one nozzle makes up most of the variation in the whole sample.
  • The fillers differ in level. Even leaving out the bad nozzle, filler 2 runs about 0.4 mL higher than filler 1 (nozzles 1 and 2 average about 501.3 mL against about 500.9 mL). That is a setting, not a random effect.
  • Within a filler, the good nozzles agree. Nozzle means on filler 1 range from 500.80 to 501.02 mL, a span smaller than the bottle-to-bottle spread, so there is no evidence of nozzle-to-nozzle differences there.
  • Two separate actions. Repair the fill valve on nozzle 3 of filler 2, which attacks the spread. Then bring filler 2 back to the 501.0 mL target, which attacks the level. Both changes reduce the overfill.
  • Five bottles per cell is a small sample. A standard deviation from 5 values is rough. A difference of five times is clear, but a difference of 20% would not be. Use a test for equal variances when the gap is less obvious.

Common mistakes

  • Looking only at the means. A cell whose mean is on target can still be the worst one, because its values swing both ways. Always read the standard deviation chart.
  • Mixing the order of factors. Putting nozzle outside filler makes "nozzle 1" look like one thing when it is really two different nozzles on two machines. Nest the factors the way the process is built.
  • Too few values per cell. With 2 or 3 values per cell, the standard deviations jump around and the chart can mislead. Aim for at least 5.
  • Treating the chart as proof. It shows where to look. Confirm a suspected cause by fixing it and checking that the spread drops.

Frequently asked questions

What is the difference between a variability chart and a boxplot?

A boxplot summarizes each group by its quartiles. A variability chart arranges groups in a hierarchy of factors, shows individual values and adds a chart of standard deviations. With few values per cell, the individual points are more honest than a box.

What is the difference between a variability chart and a multi-vari chart?

They are close relatives. A multi-vari chart is organized around families of variation (within-piece, piece-to-piece, time-to-time) and connects averages to show shifts. A variability chart focuses on comparing every cell's level and spread across nested factors.

Can I use a variability chart for a gage study?

Yes, and it is a common use. Put operator outside and part inside, plot each operator's repeat readings for each part, and read the standard deviation chart for repeatability. For the numbers, run a crossed gage R&R study.

Does a variability chart need balanced data?

No. Cells can have different numbers of values. The standard deviations of small cells are less reliable, so give them less weight when you compare.

Try it with your own data

StatLab SPC is free, open-source statistics for engineers. It runs in your browser, works offline, and never uploads your data.

Open StatLab