ProcessControl
NPChart
generate the NP chart
Calling Sequence
Parameters
Description
Computation
Options
Examples
References
NPChart(X, n, options, plotoptions)
X
-
data
n
sample size
options
(optional) equation(s) of the form option=value where option is one of color, confidencelevel, controllimits, or pbar; specify options for generating the NP chart
plotoptions
(optional) parameters to pass to the plot command
The NPChart command generates the control chart for number of nonconforming items per sample (NP chart) for the specified observations. The chart also contains the upper control limit (UCL), the lower control limit (LCL), and the average fraction of nonconforming items (represented by the center line) of the underlying quality characteristic. Unless explicitly given, the average fraction of nonconforming items and the control limits are computed based on the data.
The first parameter X is a single data sample, given as a Vector or list. Each value represents the number of nonconforming items in the corresponding sample.
The second parameter n specifies the size of the individual samples. All samples are expected to be of size n.
All computations involving data are performed in floating-point; therefore, all data provided must have type realcons and all returned solutions are floating-point, even if the problem is specified with exact values.
For more information about computation in the ProcessControl package, see the ProcessControl help page.
The options argument can contain one or more of the following options.
color=list -- This option specifies colors of the various components of the NP chart. The value of this option must be a list containing the color of the control limits, center line, data to be plotted, and the specification limits.
confidencelevel=realcons -- This option specifies the required confidence level. The default value is 0.9973, corresponding to a 3 sigma confidence level.
controllimits=deduce or [realcons, realcons] -- This option specifies the values for the control limits. The first element is the value of the lower control limit. The second element is the value of the upper control limit. For data with variable sample size, the value of this option must be a list of control limits for each sample. If this option is set to deduce (the default value), the control limits are computed based on the data.
pbar=deduce or realcons -- This option specifies the average fraction of nonconforming items per data sample.
with⁡ProcessControl:
infolevelProcessControl≔1:
A≔12,8,6,9,10,12,11,16,10,6,20,15,9,8,6,8,10,7,5,8,5,8,10,6,9
NPChart⁡A,100
Estimated Control Limits: [.621857384815469, 18.0981426151846]
NPControlLimits⁡A,100
0.621857385211602,18.0981426147884
l≔NPControlLimits⁡A,100,confidencelevel=0.90
l≔4.56901148714472,14.1509885128553
NPChart⁡A,100,controllimits=l
Estimated Control Limits: [4.56901148714472, 14.1509885128553]
Montgomery, Douglas, C. Introduction to Statistical Quality Control. 2nd ed. New York: John Wiley & Sons, 1991.
See Also
infolevel
ProcessControl[NPControlLimits]
ProcessControl[PChart]
Statistics
Download Help Document