NP Charts
NP Charts
com
Chapter 257
NP Charts
Introduction
This procedure generates the NP control chart for the number nonconforming of a sample. The format of
the control charts is fully customizable. This procedure permits the defining of stages. For the NP chart, the
value for P can be entered directly or NP can be estimated from the data, or a sub-set of the data. A list of
out-of-control points can be produced in the output, if desired, and proportion nonconforming values may
be stored to the spreadsheet.
NP Control Charts
NP charts are used to monitor the number of nonconforming units of a process based on samples taken
from the process at given times (hours, shifts, days, weeks, months, etc.). Typically, an initial series of
samples is used to estimate the average number of nonconforming units per sample. The estimated
average is then used to produce control limits for the number of nonconforming units. During this initial
phase, the process should be in control. If points are out-of-control during the initial (estimation) phase, the
assignable cause should be determined, and the sample should be removed from estimation.
Once the control limits have been established for the NP chart, these limits may be used to monitor the
number nonconforming going forward. When a point is outside these established control limits it indicates
that the number of nonconforming units of the process is out-of-control. An assignable cause is suspected
whenever the control chart indicates an out-of-control process.
257-1
© NCSS, LLC. All Rights Reserved.
NCSS Statistical Software NCSS.com
NP Charts
NP Chart Formulas
Suppose we have k samples, each of size n. Let Di represent the number of nonconforming units in the ith
sample.
NP Chart Limits
The lower and upper control limits for the P chart are calculated using the formulas
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).
257-2
© NCSS, LLC. All Rights Reserved.
NCSS Statistical Software NCSS.com
NP Charts
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 NP 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 samples, but until a
number of nonconforming units 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 proportion, 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.
In order to perform the runs tests, the control chart is divided into six equal zones (three on each side of the
center line). Since the control limit is three sigma limits (three standard deviations of the proportion) in
width, each zone is one sigma wide and is labeled A, B, or C, with the C zone being the closest to the center
line. 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.
257-3
© NCSS, LLC. All Rights Reserved.
NCSS Statistical Software NCSS.com
NP Charts
Test 5: Fifteen Successive Points Fall in Zone C on Either Side of the Center
Line
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.
Sample Size
How many items should be sampled for each sample? How does the sample size affect my use of control
charts? What about unequal sample sizes?
Startup Time
How many samples should be used to establish control for my process?
257-4
© NCSS, LLC. All Rights Reserved.
NCSS Statistical Software NCSS.com
NP Charts
Data Structure
In this procedure, the data are entered in two columns. One column contains the sample size for each
sample, the other column contains the number of nonconforming units.
Example Dataset
N Nonconf
50 2
50 8
50 6
50 3
50 4
50 2
50 7
50 1
50 9
50 7
50 3
50 5
. .
. .
. .
257-5
© NCSS, LLC. All Rights Reserved.
NCSS Statistical Software NCSS.com
NP Charts
Symbols Section
You can modify the attributes of the symbols using the options in this section.
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).
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.
257-6
© NCSS, LLC. All Rights Reserved.
NCSS Statistical Software NCSS.com
NP Charts
Setup
To run this example, complete the following steps:
Variables Tab
___________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________
This section displays the calculation values and limits that are to be used in the NP chart. The formulas for
each calculation are described in the NP chart formula section toward the beginning of this chapter.
257-7
© NCSS, LLC. All Rights Reserved.
NCSS Statistical Software NCSS.com
NP Charts
Proportion Nonconforming
This is the proportion of nonconforming units.
NP Chart
The NP chart shows the sequence of numbers of leaking connections. The chart shows that samples 32 and
33 merit further investigation for an assignable cause. After reviewing the records, the investigators found
that the 32nd and 33rd samples came during and immediately after the training of a new connection installer.
257-8
© NCSS, LLC. All Rights Reserved.
NCSS Statistical Software NCSS.com
NP Charts
Out-of-Control List
This report provides a list of the samples that failed one of the runs tests (including points outside the
control limits). The report shows that samples 32 and 33 are beyond the control limits. Because the 32nd and
33rd samples came during and immediately after the training of a new connection installer, the investigators
determine that the chart limits should be revised to exclude samples 32 and 33. Samples 34 and 37 show
runs in the data, but they do seem to signal an important change in the process.
257-9
© NCSS, LLC. All Rights Reserved.
NCSS Statistical Software NCSS.com
NP Charts
Setup
To run this example, complete the following steps:
Variables Tab
___________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________
257-10
© NCSS, LLC. All Rights Reserved.
NCSS Statistical Software NCSS.com
NP Charts
The limits in this report and chart are now based on all samples except samples 32 and 33. The values for
samples 32 and 33 are included in the chart, but they are not included in the calculations. Because two of
the more extreme values were removed, the control limits are narrower than those of Example 1. Although
sample 10 now gives an out-of-control signal, the investigators did not find an assignable cause and
therefore chose to leave sample 10 in the calculations of the center line and limits. Sample 34 gives an out-
of-control signal due to samples 32 and 33 being beyond zone A.
The NP chart can be additionally enhanced by labeling the points that were not included in the calculations.
To do this, set the Point Label Variable to Label.
257-11
© NCSS, LLC. All Rights Reserved.
NCSS Statistical Software NCSS.com
NP Charts
257-12
© NCSS, LLC. All Rights Reserved.
NCSS Statistical Software NCSS.com
NP Charts
Setup
To run this example, complete the following steps:
Variables Tab
___________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________
257-13
© NCSS, LLC. All Rights Reserved.
NCSS Statistical Software NCSS.com
NP Charts
The estimation and limits section shows the same results as Example 2, since the calculations are again
based only on the first 40 samples, excluding 32 and 33. The plot shows a stable continuation of the process
from samples 41 to 60.
257-14
© NCSS, LLC. All Rights Reserved.
NCSS Statistical Software NCSS.com
NP Charts
NP Chart
As shown here, a variety of enhancements can be made to the formatting of the control chart to make the
chart as easy to read as possible.
257-15
© NCSS, LLC. All Rights Reserved.
NCSS Statistical Software NCSS.com
NP Charts
Setup
To run this example, complete the following steps:
Variables Tab
___________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________
257-16
© NCSS, LLC. All Rights Reserved.
NCSS Statistical Software NCSS.com
NP Charts
Estimation and Limit Section for Samples 61 to 120 where KeepStage equals 1
─────────────────────────────────────────────────────────────────────────
Number of Samples: 30
Sample Size Variable: SizeStage
Number Nonconforming Variable: LeakStage
─────────────────────────────────────────────────────────────────────────
Number Nonconf. Limits
Average Average # Total Total # Proportion ───────────────────
Sample Size Nonconf. Sample Size Nonconf. Nonconf. Lower Limit Upper Limit
───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
70.00 4.100000 2100 123 0.05857143 0.000000 9.993956
─────────────────────────────────────────────────────────────────────────
This section displays the estimation for each stage separately. The average number nonconforming is
decreased by about 40%.
257-17
© NCSS, LLC. All Rights Reserved.
NCSS Statistical Software NCSS.com
NP Charts
NP Chart
The NP chart shows the substantial decrease in the number of leaking connections in the second stage. The
center line and limits of the second stage are estimated from samples 61 to 90.
Out-of-Control List
With no new out-of-control points, the out-of-control list is the same as that of the previous examples. There
is not an Out-of-Control List for samples 61 to 120 since there are no out-of-control points in this group.
257-18
© NCSS, LLC. All Rights Reserved.