p Chart VI
- Updated2024-11-20
- 6 minute(s) read
Computes points and limits for a p Chart - a control chart for fraction non-conforming. Number of units inspected n can be constant for all r or a constant value. Calculates both variable and constant chart limits. A range of indices for samples to be used and indices to ignore in the control calculation can also be specified. The actual number of samples used to calculate the control limits is supplied. FORMULAS: pbar = · r / · n p(i) = r(i)/n(i) UCLp = pbar + stderr mult x sqrt((pbar x (1-pbar))/n(i)) CLp = pbar LCLp = pbar - stderr mult x sqrt((pbar x (1-pbar))/n(i)) standard error = sqrt((pbar x (1-pbar))/n(i))

Inputs/Outputs
chart limit src
—
chart limit src specifies whether or not to use standard values for the chart limit calculations. If unwired this defaults to the most common case where the chart limits are calculated from the data in the input array(s). You do not have to wire this cluster unless you want the chart limits to be calculated from standard values. When using standard values the center line for the control chart, p-bar, is set to p0.
r:# units non-conforming/sample
—
n: sample size (variable)
—
n: sample size (variable) is the number of units inspected per sample for each value of r. Use this array if a variable number of units were inspected for each entry in r. The array length must be the same the length of the array r.
n: sample size (constant)
—
(U32) Number of units in sample inspected. Use this input if the same number of units were inspected for each entry in r. Otherwise, if you are providing an array for n, leave this input unwired.
std error multiplier (3)
—
(DBL, default = 3.0). Ordinarily you would leave this unwired and the control chart limits are computed as +/- 3.0 standard errors.
index spec
—
(Optional) cluster of: start index (I32) - index of the first sample to include in the control limit calculation. Default is 0 or index of the first sample in samples X array. end index (I32) - index of the last sample to include in the control limit calculation. Default is 0 which selects the last sample in samples X array. If this cluster is unwired, all samples in samples X input array are included in the control limit calculation.
indices to ignore
—
indices to ignore is the indices of samples to exclude from the control limit calculation. Excluding samples is useful for eliminating out of control points from the control limit calculation. By default, this is an empty array.
# samples in calc
—
(I32) - the number of samples used in the control limits calculation.
p: fraction non-conforming
—
p: fraction non-conforming is the number of units non-conforming divided by the number inspected. This is the fraction non-conforming in each input sample. This is the array plotted on the p control chart.
UCLp
—
LCLp
—
p chart limits
—
p chart limits contains the constant limits for the p chart.
|
p Chart Details
The control limit calculations are as follows:If standard values are used for the control limit calculations, then p-bar is set to std p0, otherwise, p-bar is calculated from the input samples as specified by the index spec and indices to ignore inputs.
if calculated from input data, otherwise 




chart limit src
—
source
—
std p0
—
r:# units non-conforming/sample
—
n: sample size (constant)
—
start index
—
indices to ignore
—
# samples in calc
—
p: fraction non-conforming
—
p chart limits
—
avg UCLp
—