X-Bar Charts: NCSS Statistical Software
X-Bar Charts: NCSS Statistical Software
X-Bar Charts: NCSS Statistical Software
com
Chapter 244
X-bar Charts
Introduction
This procedure generates X-bar control charts for variables. The format of the control charts is fully customizable.
The data for the subgroups can be in a single column or in multiple columns. This procedure permits the defining
of stages. The center line can be entered directly or estimated from the data, or a sub-set of the data. Sigma may
be estimated from the data or a standard sigma value may be entered. A list of out-of-control points can be
produced in the output, if desired, and means may be stored to the spreadsheet.
244-1
© NCSS, LLC. All Rights Reserved.
NCSS Statistical Software NCSS.com
X-bar Charts
∑x
j =1
ij
xi =
n
∑∑ x
i =1 j =1
ij
x= k
.
∑n
i =1
i
If the subgroups are of equal size, the above equation for the grand mean reduces to
k
∑x i
x1 + x 2 + + x k
x= i =1
= .
k k
244-2
© NCSS, LLC. All Rights Reserved.
NCSS Statistical Software NCSS.com
X-bar Charts
∑R
i =1
i
R =
k
E (R ) µR
d2 = =
σ σ
The calculation of E(R) requires the knowledge of the underlying distribution of the xij’s. Making the assumption
that the xij’s follow the normal distribution with constant mean and variance, the values for d2 are derived through
the use of numerical integration. It is important to note that the normality assumption is used and that the accuracy
of this estimate requires that this assumption be valid.
When n is one, we cannot calculate Ri since it requires at least two measurements. The procedure in this case is to
use the ranges of successive pairs of observations. Hence, the range of the first and second observation is
computed, the range of the second and third is computed, and so on. The average of these approximate ranges is
used to estimate σ.
∑s
i =1
i
s =
k
E (s ) µs
c4 = =
σ σ
The calculation of E(s) requires the knowledge of the underlying distribution of the xij’s. Making the assumption
that the xij’s follow the normal distribution with constant mean and variance, the values for c4 are obtained from
n
Γ
2 2
c4 =
n − 1 n − 1
Γ
2
244-3
© NCSS, LLC. All Rights Reserved.
NCSS Statistical Software NCSS.com
X-bar Charts
σ̂
LCL = x − m
n
σ̂
UCL = x + m
n
where m is a multiplier (usually set to 3) chosen to control the likelihood of false alarms (out-of-control signals
when the process is in control).
Runs Tests
The strength of control charts comes from their ability to detect sudden changes in a process that result from the
presence of assignable causes. Unfortunately, the X-bar chart is poor at detecting drifts (gradual trends) or small
shifts in the process. For example, there might be a positive trend in the last ten subgroups, but until a mean goes
above the upper control limit, the chart gives no indication that a change has taken place in the process.
Runs tests can be used to check control charts for unnatural patterns that are most likely caused by assignable
causes. Runs tests are sometimes called “pattern tests”, “out-of-control” tests, or “zones rules”.
While runs tests may be helpful in identifying patterns or smaller shifts in the mean, they also increase the
likelihood of false positive indications. The rate of false positives is typically measured using the average run
length (the average length of a run before a false positive is indicated). When several runs tests are used the
average run length of the control chart becomes very short. Two alternatives to consider before using runs tests
are the CUSUM and EWMA control charts. Runs tests are generally advised against when there is only one
observation per subgroup. In this case, the rate of false positives is quite high (average run length is short).
In order to perform the runs tests, the control chart is divided into six equal zones (three on each side of the
centerline). Since the control limit is three sigma limits (three standard deviations of the mean) in width, each
zone is one sigma wide and is labeled A, B, or C, with the C zone being the closest to the centerline. There is a
lower zone A and an upper zone A. The same is true for B and C. The runs tests look at the pattern in which
points fall in these zones.
The runs tests used in this procedure are described below.
244-4
© NCSS, LLC. All Rights Reserved.
NCSS Statistical Software NCSS.com
X-bar Charts
Test 5: Fifteen Successive Points Fall in Zone C on Either Side of the Centerline
Although this pattern might make you think that the variation in your process has suddenly decreased, this is
usually not the case. It is usually an indication of stratification in the sample. This happens when the samples
come from two distinct distributions having different means. Perhaps there are two machines that are set
differently. Try to isolate the two processes and check each one separately.
Subgroup Size
How many items should be sampled for each subgroup? Some common values are 5, 10, and 20. How does the
subgroup size affect my use of control charts? What about unequal subgroup sizes?
Startup Time
How many subgroups should be used to establish control for my process?
244-5
© NCSS, LLC. All Rights Reserved.
NCSS Statistical Software NCSS.com
X-bar Charts
Normality Assumption
How important is the assumption of normality? How do I check this? Should I consider a transformation? (See
also the Box-Cox Transformation and Capability Analysis procedures in NCSS.)
Data Structure
In this procedure, the data may be in either of two formats. The first data structure option is to have the data in
several columns, with one subgroup per row.
Example dataset
S1 S2 S3 S4 S5
2 6 3 8 5
8 8 7 7 9
6 2 2 4 3
5 6 7 6 10
48 2 6 5 0
. . . . .
. . . . .
. . . . .
The second data structure option uses one column for the response data, and either a subgroup size or a second
column defining the subgroups.
In the alternative example dataset, the Subgroup column is not needed if every subgroup is of size 5 and the user
specifies 5 as the subgroup size. If there are missing values, the Subgroup column should be used, or the structure
of the first example dataset.
244-6
© NCSS, LLC. All Rights Reserved.
NCSS Statistical Software NCSS.com
X-bar Charts
Symbols Section
You can modify the attributes of the symbols using the options in this section.
A wide variety of sizes, shapes, and colors are available for the symbols. The symbols for in-control and out-of-
control points are specified independently. There are additional options to label out-of-control points. The label
244-7
© NCSS, LLC. All Rights Reserved.
NCSS Statistical Software NCSS.com
X-bar Charts
for points outside the primary control limits is the subgroup number. The label for points that are out-of-control
based on the runs test is the number of the first runs test that is signaled by this point.
The user may also specify a column of point labels on the procedure variables tab, to be used to label all or some
of the points of the chart. The raw data may also be shown, based on customizable raw data symbols.
Lines Section
You can specify the format of the various lines using the options in this section. Note that when shading is
desired, the fill will be to the bottom for single lines (such as the mean line), and between the lines for pairs of
lines (such as primary limits).
Lines for the zones, secondary limits, and specification limits are also specified here.
Titles, Legend, Numeric Axis, Group Axis, Grid Lines, and Background
Tabs
Details on setting the options in these tabs are given in the Graphics Components chapter. The legend does not
show by default but can easily be included by going to the Legend tab and clicking the Show Legend checkbox.
244-8
© NCSS, LLC. All Rights Reserved.
NCSS Statistical Software NCSS.com
X-bar Charts
Setup
To run this example, complete the following steps:
Option Value
Variables Tab
Data Variables ........................................ D1-D5
This section displays the center line value that is used in the X-bar chart.
Estimated Grand Average (X-bar-bar)
This value is the average of all the observations. If all the subgroups are of the same size, it is also the average of
all the X-bars.
244-9
© NCSS, LLC. All Rights Reserved.
NCSS Statistical Software NCSS.com
X-bar Charts
This report gives the lower and upper limits for the chart, corresponding to a specific subgroup size.
X-bar Lower and Upper Primary Control Limits
These limits are the primary control limits of the X-bar chart, as defined in the sub-section X-bar Chart Limits of
the Control Chart Formulas section toward the beginning of this chapter.
This report gives the estimation of the population standard deviation (sigma) based on three estimation
techniques. The estimation technique used for the plots in this procedure is based on the ranges.
Estimation Type
The formula for estimating sigma based on the ranges is shown earlier in this chapter in the Control Chart
Formulas section. The formulas for the Standard Deviations method and Weighted Approach method are shown
in the X-bar and s Charts chapter.
Estimated Value
This column gives the R-bar and s-bar estimates based on the corresponding formulas.
Estimated Sigma
This column gives estimates of the population standard deviation (sigma) based on the corresponding estimation
type.
244-10
© NCSS, LLC. All Rights Reserved.
NCSS Statistical Software NCSS.com
X-bar Charts
X-bar Chart
Chart Section for Subgroups 1 to 50 ───────────────────────────────────────────────
This plot shows the sample means, as well as the centerline and control limits for the process mean, based on the
50 subgroups. This process appears to be in control.
Out-of-Control List
Out-of-Control Report ─────────────────────────────────────────────────────────
This report provides a list of the subgroups that failed one of the runs tests (including points outside the control
limits). Since there are no runs or points outside the limits, no points are listed here.
244-11
© NCSS, LLC. All Rights Reserved.
NCSS Statistical Software NCSS.com
X-bar Charts
Setup
To run this example, complete the following steps:
Option Value
Variables Tab
Data Variables ........................................ D1ext-D5ext
Specification Method .............................. First N rows (Enter N)
N ............................................................. 50
Since the first 50 subgroups are the same as those of Example 1, and since only the first 50 subgroups are used in
the calculations for this run, the results for these sections are the same as those of Example 1.
244-12
© NCSS, LLC. All Rights Reserved.
NCSS Statistical Software NCSS.com
X-bar Charts
X-bar Charts
Chart Section for Subgroups 1 to 150 ──────────────────────────────────────────────
This plot has the same limits as those of Example 1. It appears there may have been a shift in process for the last
30 or 40 subgroups, as evidenced by the large majority of points above the center line and out-of-control signal
from subgroups 120 and 142.
Out-of-Control List
Out-of-Control List for Subgroups 1 to 150 ───────────────────────────────────────────
Subgroup
Subgroup Mean Range Label Reason
89 74.8 23 89 X-bar: 2 of 3 in zone A
120 77.6 17 120 X-bar: beyond control limits
121 70.8 10 121 X-bar: 4 of 5 in zone B or beyond
123 71.4 22 123 X-bar: 4 of 5 in zone B or beyond
124 72.8 17 124 X-bar: 4 of 5 in zone B or beyond
125 76.8 25 125 X-bar: 4 of 5 in zone B or beyond
126 69.2 34 126 X-bar: 8 in zone C or beyond
127 69 18 127 X-bar: 8 in zone C or beyond
128 71.2 23 128 X-bar: 8 in zone C or beyond
129 68.6 19 129 X-bar: 8 in zone C or beyond
130 73.6 10 130 X-bar: 8 in zone C or beyond
131 67.8 29 131 X-bar: 8 in zone C or beyond
142 79.2 28 142 X-bar: beyond control limits
143 71 19 143 X-bar: 4 of 5 in zone B or beyond
144 72 20 144 X-bar: 4 of 5 in zone B or beyond
145 74 9 145 X-bar: 4 of 5 in zone B or beyond
146 66.2 15 146 X-bar: 4 of 5 in zone B or beyond
147 71.2 26 147 X-bar: 4 of 5 in zone B or beyond
This list indicates a large number of out-of-control signals (by Runs tests) for subgroups 120 and beyond.
244-13
© NCSS, LLC. All Rights Reserved.
NCSS Statistical Software NCSS.com
X-bar Charts
X-bar Chart
Chart Section for Subgroups 1 to 150 ──────────────────────────────────────────────
As shown here, a variety of enhancements can be made to the formatting of the control charts to make the chart as
easy to read as possible. The numbers above the points near the end represent the number of the first runs test that
is signaled by that point.
244-14
© NCSS, LLC. All Rights Reserved.