Statistical Process Control 6 of 11
On this page

Statistical Process Control

2.5 Control Charts by Attribute

Chapter 5 of 10 31 min read

Many quality characteristics cannot be expressed in terms of numerical values. For example, saying whether or not a part is defective. Characteristics of this type are called attributes.

2.5.1 Graphic $p$ - proportion or fraction of defective

The defective fraction p is defined as the number of defective (non-conforming) items in the sample divided by the number of items in the sample. The sample value of p is recorded as a fraction of the subgroup size.

The defective fraction p may refer to samples of fixed sizes n collected regularly, or it may also refer to 100$\char37$ of production in a given time interval (for example, one hour, one day, etc.). This means that subgroups can, in principle, be of variable size. As a consequence of the variability in sample size, the control limits will also have variable amplitude.

The characterization of an item as defective or non-defective may depend on the observation of one or more quality characteristics. In this case, the item may have several types of defects, and in many circumstances it will be relevant to classify the defects by different importance, suggesting the use of demerit charts.

Thus, we can construct graphs for proportion in the following ways

  1. Constant sample size;
  2. Variable sample size;
  3. With the sample mean ($\overline{n}$);
  4. With the average of the defectives ($\overline{p}$).

The construction of p-charts is only possible if the following conditions are met:

$$n \ast \overline{p} \geq 5$$

$$n \ast (1-\overline{p}) \geq 5$$

1. Constant sample size

The Central Line and Control Limits are determined, in the form:

$$LSC = p^{\prime}+3\sqrt{\dfrac{p^{\prime}(1-p^{\prime})}{n}}$$

$$LC = p^{\prime}$$

$$LIC = p^{\prime}-3\sqrt{\dfrac{p^{\prime}(1-p^{\prime})}{n}}$$

2. Variable sample size

The control limits are (for the ith sample):

$$LSC = p^{\prime}+3\sqrt{\dfrac{p^{\prime}(1-p^{\prime})}{n_i}}$$

$$LIC = p^{\prime}-3\sqrt{\dfrac{p^{\prime}(1-p^{\prime})}{n_i}}$$

where ni = size of the ith sample.

3. With the sample mean ($\overline{n}$)

We define

$$\overline{n} = \dfrac{(n_1 + \ldots + n_m)}{m}$$

where ni = size of the ith sample and m is the number of samples.

The control limits are:

$$LSC = p^{\prime}+3\sqrt{\dfrac{p^{\prime}(1-p^{\prime})}{\overline{n}}}$$

$$LIC = p^{\prime}-3\sqrt{\dfrac{p^{\prime}(1-p^{\prime})}{\overline{n}}}$$

4. With the average of defectives ($\overline{p}$)

We define

$$\overline{p} = \dfrac{(p_1 + \ldots + p_m)}{m}$$

where pi = proportion of defectives in the ith sample and m is the number of samples.

Thus, the control limits (amplitude 3σ) and average line are:

$$LSC = \overline{p} + 3\sqrt{\dfrac{\overline{p}(1-\overline{p})}{n}}$$

$$LC = \overline{p}$$

$$LIC = \overline{p} - 3\sqrt{\dfrac{\overline{p}(1-\overline{p})}{n}}$$

Example 5.1.1

An orange juice factory presented the following data regarding the number of dented (defective) cans (see Table 2.5.1). In this example we have sample size $n = 50$.

Samples Number of Defectives (Di) Fraction of Defectives (pi)
1 12 0,24
2 15 0,30
3 8 0,16
4 10 0,20
5 4 0,08
6 7 0,14
7 16 0,32
8 9 0,18
9 14 0,28
10 10 0,20
11 5 0,10
12 6 0,12
13 17 0,34
14 12 0,24
15 22 0,44
16 8 0,16
17 10 0,20
18 5 0,10
19 13 0,26
20 11 0,22
21 20 0,40
22 18 0,36
23 24 0,48
24 15 0,30
25 9 0,18
26 12 0,24
27 7 0,14
28 13 0,26
29 9 0,18
30 6 0,12

Table 2.5.1: Cans crushed at the orange juice factory

$$\overline{p} = \dfrac{\sum_{i=1}^{m}p_i}{m} = \dfrac{\sum_{i=1}^{30}p_i}{30} = \dfrac{6,94}{30} = 0,2313$$

Notation: Here we will consider ni as the size of each sample and m as the number of samples. For this example we have $n_i = 50$ for everyone $i$ (equal sizes) and $m = 30$.

Check for large samples:

$$n_i \ast \overline{p} = 50 \ast (0,2313) = 11,565 \geq 5$$

$$n_i \ast (1-\overline{p}) = 50 \ast (0,7687) = 38,435 \geq 5$$

p-chart

$$LSC = \overline{p} + 3\sqrt{\dfrac{\overline{p}(1-\overline{p})}{n_i}} = 0,2313 + 3\sqrt{\dfrac{0,2313(1-0,2313)}{50}} = 0,41$$

$$LC = \overline{p} = 0,2313$$

$$LIC = \overline{p} - 3\sqrt{\dfrac{\overline{p}(1-\overline{p})}{n_i}} = 0,2313 - 3\sqrt{\dfrac{0,2313(1-0,2313)}{50}} = 0,052$$

Below are the results obtained by Software Action for this example.

Center line Lower Limit Upper Limit
0.2313 0.0524 0.4102

Table 2.5.2: Proportion chart for scrap

Figura 2.5.1

Figure 2.5.1: Graph p.

We verified, in the scrap proportion graph, that points 15 and 23 are outside the upper control limit, indicating the existence of special causes of variation. After analyzing these points, they were removed from the samples and new control limits were calculated.

$$\overline{p} = \dfrac{\sum_{i=1}^{28}p_i}{28} = \dfrac{6,02}{28} = 0,215$$

Therefore, the control limits are

$$LSC = \overline{p} + 3\sqrt{\dfrac{\overline{p}(1-\overline{p})}{n_i}} = 0,215 + 3\sqrt{\dfrac{0,215(1-0,215)}{50}} = 0,389$$

$$LC = \overline{p} = 0,215$$

$$LIC = \overline{p} - 3\sqrt{\dfrac{\overline{p}(1-\overline{p})}{n_i}} = 0,215 - 3\sqrt{\dfrac{0,215(1-0,215)}{50}} = 0,041$$

Below we have the results obtained by Software Action and the graph without points 15 and 23, with the revised control limits.

Center line Lower Limit Upper Limit
0.215 0.0407 0.3893

Table 2.5.3: Proportion chart for scrap (without points 15 and 23)

Figura 2.5.2

Figure 2.5.2: P chart, with revised limits.

We can note that, despite the removal of points outside the control limits and the calculation of revised control limits, there is still a point outside the new limits indicating the presence of a special cause of variation. After taking action to correct this special cause, new data was collected and a new graph was generated. This new data is shown in the following table.

Samples Defective Fraction of Defectives (pi)
31 9 0,18
32 6 0,12
33 12 0,24
34 5 0,1
35 6 0,12
36 4 0,08
37 5 0,1
38 3 0,06
39 7 0,14
40 6 0,12
41 2 0,04
42 4 0,08
43 3 0,06
44 6 0,12
45 5 0,1
46 4 0,08
47 8 0,16
48 5 0,1
49 6 0,12
50 7 0,14
51 5 0,1
52 6 0,12
53 3 0,06
54 4 0,08

Table 2.5.3: Additional data

$$\overline{p} = \dfrac{\sum_{i=1}^{24}p_i}{24} = \dfrac{2,62}{24} = 0,10917$$

Thus, the control limits for the new data are

$$LSC = \overline{p} + 3\sqrt{\dfrac{\overline{p}(1-\overline{p})}{n_i}} = 0,10917 + 3\sqrt{\dfrac{0,10917(1-0,10917)}{50}} = 0,24147$$

$$LC = \overline{p} = 0,10917$$

$$LIC = \overline{p} - 3\sqrt{\dfrac{\overline{p}(1-\overline{p})}{n_i}} = 0,10917 - 3\sqrt{\dfrac{0,10917(1-0,10917)}{50}} = 0$$

Below are the results obtained by Software Action.

Center line Lower Limit Upper Limit
0.1092 0 0.2415

Table 2.5.4: Chart of proportions for scrap (additional data)

Figura 2.5.3

Figure 2.5.3: P graph, with added data.

We can see in the graph in Figure 2.5.3 that, after action on the special cause of variation followed by the collection of new data, the process is under statistical control.

To understand how to perform this function of Software Action, you can refer to the user manual.

Example 5.1.2

Below we have data on sand inclusion defects in camshaft molds.

Samples Total Cast (ni) Inclusion defects (Di)
1 1536 33
2 1536 49
3 1536 31
4 1536 52
5 1536 30
6 1536 26
7 1520 51
8 1488 25
9 1344 41
10 944 18
11 1152 22
12 1152 13
13 1683 13
14 1700 25
15 1700 62
16 1870 15
17 1140 30
18 1152 26
19 1140 4
20 1128 23
21 1152 10
22 1128 6
23 1152 21
24 1152 21
25 1152 7
26 1152 22
27 1152 23
28 1140 16
29 1140 15
30 1128 18

Table 2.5.5: Sand inclusion defects

Notation: Here we will consider ni as the size of each sample and n as the number of samples. For this example, $n_i$ assumes different values for each sample and $n = 30$.

p-chart

We now calculate the Upper Limit and the Lower Limit for the first sample (Sample 1) in which $n_i = 1536$.

$$LC = \overline{p} = \dfrac{\sum_{i=1}^{30}Di}{\sum_{i=1}^{30}ni} = \dfrac{748}{39777} = 0,018804$$

$$LSC = \overline{p} + 3\sqrt{\dfrac{\overline{p}(1-\overline{p})}{n_i}} = 0,018804 + 3\sqrt{\dfrac{0,018804(1-0,018804)}{1536}} = 0,02920$$

$$LIC = \overline{p} - 3\sqrt{\dfrac{\overline{p}(1-\overline{p})}{n_i}} = 0,018804 - 3\sqrt{\dfrac{0,018804(1-0,018804)}{1536}} = 0,00841$$

The same procedure must be done for all other samples.

Below we present the results obtained by Software Action for all these samples.

Center line Lower Limit Upper Limit Fraction of Defectives
0.0188048 0.0084071 0.0292026 0.0214844
0.0188048 0.0084071 0.0292026 0.031901
0.0188048 0.0084071 0.0292026 0.0201823
0.0188048 0.0084071 0.0292026 0.0338542
0.0188048 0.0084071 0.0292026 0.0195312
0.0188048 0.0084071 0.0292026 0.0169271
0.0188048 0.0083525 0.0292571 0.0335526
0.0188048 0.0082407 0.0293689 0.0168011
0.0188048 0.0076892 0.0299205 0.030506
0.0188048 0.0055417 0.032068 0.0190678
0.0188048 0.0067986 0.0308111 0.0190972
0.0188048 0.0067986 0.0308111 0.0112847
0.0188048 0.0088716 0.0287381 0.0077243
0.0188048 0.0089214 0.0286883 0.0147059
0.0188048 0.0089214 0.0286883 0.0364706
0.0188048 0.0093813 0.0282284 0.0080214
0.0188048 0.0067356 0.0308741 0.0263158
0.0188048 0.0067986 0.0308111 0.0225694
0.0188048 0.0067356 0.0308741 0.0035088
0.0188048 0.0066715 0.0309381 0.0203901
0.0188048 0.0067986 0.0308111 0.0086806
0.0188048 0.0066715 0.0309381 0.0053191
0.0188048 0.0067986 0.0308111 0.0182292
0.0188048 0.0067986 0.0308111 0.0182292
0.0188048 0.0067986 0.0308111 0.0060764
0.0188048 0.0067986 0.0308111 0.0190972
0.0188048 0.0067986 0.0308111 0.0199653
0.0188048 0.0067356 0.0308741 0.0140351
0.0188048 0.0067356 0.0308741 0.0131579
0.0188048 0.0066715 0.0309381 0.0159574

Table 2.5.6: Proportion chart for scrap

Figura 2.5.4

Figure 2.5.4: Graph p.

We can see in the graph in Figure 2.5.4 the existence of several points outside the control limit indicating that the process is not under statistical control.

To understand how to perform this function of Software Action, you can refer to the user manual.

2.5.2 Graphic $np$ - number of defectives

The number of defective $np$ is defined as the number of defective (nonconforming) items in the sample. The construction of the graphics $np$ is based on the binomial distribution, and this control chart can only be constructed when we deal with samples of equal size ($n$). Control Limits are obtained directly from the card $p$ and are described below:

$$LSC = np + 3\sqrt{np(1 - p)};$$

$$LC = np;$$

$$LIC = np - 3\sqrt{np(1 - p)}.$$

Note that the control limits of the np graph are the control limits of the p graph multiplied by the sample size “n”.

Example 5.2.1

We will illustrate the application of the letter $np$ with the data from Example 5.1.1.

$$LSC = np + 3\sqrt{np(1 - p)} = 50 \ast 0,2313 + 3\sqrt{(50 \ast 0,2313) \ast (0,7687)} = 20,51$$

$$LC = np = 11,57$$

$$LIC = np - 3\sqrt{np(1 - p)} = 50 \ast 0,2313 - 3\sqrt{(50 \ast 0,2313) \ast (0,7687)} = 2,62$$

Below are the results obtained by Software Action for this example.

Center line Lower Limit Upper Limit
11.5666667 2.6213774 20.5119559

Table 2.5.7: NP Chart for scrap

Figura 2.5.5

Figure 2.5.5: np graph.

To understand how to perform this function of Software Action, you can refer to the user manual.

2.5.3 Graphic $c$ - number of defects per sample

Depending on the type of product, it is more natural to consider the number of defects per sample unit and not the number of defective items. Each unit can consist of several items, that is, it can be defined as a subgroup of items. The essential thing is that in the different sampling units there is the same chance of defects occurring.

The graph $c$ is used considering the number of defects per subgroups, when all these subgroups are the same size, that is, they have the same number of items.

The application of the graph $c$, usually, assumes the Poisson distribution for the sample, thus, it is appropriate when the sample has a similar mean and variance.

Two situations where the graph $c$ is typically applicable:

  1. When defects are distributed in a more or less continuous flow of a product where the average number of defects could be defined;
  2. When defects of different types and origins can be found in the sampling unit.

The control limits are:

$$LSC = \overline{c} + 3\sqrt{\overline{c}}$$

$$LC = \overline{c}$$

$$LIC = \overline{c} - 3\sqrt{\overline{c}}$$

in which $\overline{c} = \dfrac{(c_1 + c_2 + \ldots + c_k)}{k}$, given that $c_1, c_2, \ldots, c_k$ are the number of defects in each of the k subgroups.

Example 5.3.1

Table 2.5.8 presents the number of nonconformities observed in 26 successive samples of 100 printed circuits. Note that for convenience, the number of possible non-conformities was limited to 100, this way we have 26 samples with 516 non-conformities.

Sample Nonconformities Fraction of defectives
1 21 0,21
2 24 0,24
3 16 0,16
4 12 0,12
5 15 0,15
6 5 0,05
7 28 0,28
8 20 0,2
9 31 0,31
10 25 0,25
11 20 0,2
12 24 0,24
13 16 0,16
14 19 0,19
15 10 0,1
16 17 0,17
17 13 0,13
18 22 0,22
19 18 0,18
20 39 0,39
21 30 0,3
22 24 0,24
23 16 0,16
24 19 0,19
25 17 0,17
26 15 0,15

Table 2.5.8: Printed circuit data.

$$\overline{c} = \dfrac{516}{26} = 19,85$$

Therefore, the control limits are given as follows

$$LSC = \overline{c} + 3\sqrt{\overline{c}} = 19,85 + 3\sqrt{19,85} = 33,216$$

$$LC = \overline{c} = 19,85$$

$$LIC = \overline{c} - 3\sqrt{\overline{c}} = 19,85 - 3\sqrt{19,85} = 6,48$$

Below are the results obtained by Software Action for this example.

Center line Lower Limit Upper Limit
19.8461538 6.4814472 33.2108605

Table 2.5.9: Chart C For scrap

Figura 2.5.6

Figure 2.5.6: Control chart.

After evaluating the control chart (Figure 2.5.6), the engineer responsible for the sector’s quality control found that there were two points out of control. It was then verified that the machine was out of calibration, it was then proposed that observations 6 and 20 be removed from the data set and the control limits revised.

$$\overline{c} = \dfrac{472}{24} = 19,67$$

This way we have the control limits:

$$LSC = \overline{c} + 3\sqrt{\overline{c}} = 19,67 + 3\sqrt{19,67} = 32,97$$

$$LC = \overline{c} = 19,67$$

$$LIC = \overline{c} - 3\sqrt{\overline{c}} = 19,67 - 3\sqrt{19,67} = 6,36$$

Therefore, the control chart with the adjusted control limits is given in Figure 2.5.7.

Below are the results obtained by Software Action.

Center line Lower Limit Upper Limit
19.6666667 6.362532 32.9708014

Table 2.5.10: Chart C For scrap (without points 6 and 20)

Figura 2.5.7

Figure 2.5.7: Control chart (without points 6 and 20)

Removing observations 6 and 20 we can observe that the data are within the control limits.

To understand how to perform this function of Software Action, you can refer to the user manual.

2.5.4 Graphic $u$ - defect rate per unit

Often the number of units that make up the subgroups is variable. In these cases we are interested in controlling the defect rate per unit and the graph to be used will be the Graph $u$.

The value of the variable $u$ in a subgroup that contains $n_i$ sampling units where they are found $c$ defects, is given by

$$u = \dfrac{c}{n_i}$$

For the graphics $u$ The control limits are:

$$LSC = \overline{u} + 3\sqrt{\dfrac{\overline{u}}{n_i}}$$

$$LC = \overline{u}$$

$$LIC = \overline{u} - 3\sqrt{\dfrac{\overline{u}}{n_i}}$$

in which $\overline{u} = \dfrac{(c_1 + c_2 + \ldots + c_k)}{(n_1 + n_2 + \ldots + n_k)},$ being that $c_1, c_2, \ldots, c_k$ represent the number of defects and $n_1, n_2, \ldots, n_k$ represent the sizes of the k subgroups.

In Example 5.4.1, we will present the procedure for calculating and interpreting a case where the samples have different sizes.

Example 5.4.1

In a textile company, dyed clothes are inspected for defects per 50 square meters. Data from the 10 inspection lots are in Table 2.5.11. We will use this data to adjust a control chart for non-conformities by units.

Lot Quantity square meters Non-conformities (c) Units inspected (n) Nonconformities per unit (u=c/n)
1 500 14 10 1,400
2 400 12 8 1,500
3 650 20 13 1,538
4 500 11 10 1,100
5 475 7 9,5 0,737
6 500 10 10 1,000
7 600 21 12 1,750
8 525 16 10,5 1,524
9 600 19 12 1,583
10 625 23 12,5 1,840
TOTAL 153 107,5

Table 2.5.11: Inspection data.

$$\overline{u} = \dfrac{153}{107,5} = 1,42$$

We notice that $ \overline{u} $ equals the ratio between the total number of non-conformities in relation to the total number of inspections per unit. Control limits will be calculated individually in relation to the sample size (see Table 2.5.12).

Control limits for sample 1 (Lot 1), considering sample size $n_i = 10$, are given by

$$LSC = \overline{u} + 3\sqrt{\dfrac{\overline{u}}{n_i}} = 1,42 + 3\sqrt{\dfrac{1,42}{10}} = 2,55$$

$$LC = \overline{u} = 1,42$$

$$LIC = \overline{u} - 3\sqrt{\dfrac{\overline{u}}{n_i}} = 1,42 - 3\sqrt{\dfrac{1,42}{10}} = 0,2895$$

The calculation of control limits is analogous for other samples.

Lot i ni LSC LIC
1 10 2,550486621 0,289513379
2 8 2,683922466 0,156077534
3 13 2,411502357 0,428497643
4 10 2,550486621 0,289513379
5 9,5 2,5798548 0,2601452
6 10 2,550486621 0,289513379
7 12 2,451988372 0,388011628
8 10,5 2,523241976 0,316758024
9 12 2,451988372 0,388011628
10 12,5 2,431137973 0,408862027

Table 2.5.12: Control limits calculated for each sample.

Below are the results obtained by Software Action for this example.

Center line Lower Limit Upper Limit Fraction of Defectives
1.4232558 0.2914739 2.5550377 1.4
1.4232558 0.1578852 2.6886264 1.5
1.4232558 0.4306174 2.4158942 1.5384615
1.4232558 0.2914739 2.5550377 1.1
1.4232558 0.2620721 2.5844395 0.7368421
1.4232558 0.2914739 2.5550377 1
1.4232558 0.390085 2.4564266 1.75
1.4232558 0.3187498 2.5277618 1.5238095
1.4232558 0.390085 2.4564266 1.5833333
1.4232558 0.4109593 2.4355523 1.84

Table 2.5.13: Proportion chart for scrap

Figura 2.5.8

Figure 2.5.8: Control chart for the example.

To understand how to perform this function of Software Action, you can refer to the user manual.

Example 5.4.2

Let us consider in the following table the number of non-conformities observed in 26 successive samples of 100 printed circuits. Note that for convenience, the number of possible non-conformities was limited to 100, this way we have 26 samples with 516 non-conformities.

Sample Nonconformities
1 21
2 24
3 16
4 12
5 15
6 5
7 28
8 20
9 31
10 25
11 20
12 24
13 16
14 19
15 10
16 17
17 13
18 22
19 18
20 39
21 30
22 24
23 16
24 19
25 17
26 15
TOTAL 516

Table 2.5.14: Printed circuit data.

$$\overline{u} = \dfrac{516}{2600} = 0,1985$$

We can notice that $ \overline{u} $ equals the ratio between the total number of non-conformities in relation to the total number of inspections per unit. In this example, the 26 samples have constant sizes and equal to 100, that is, $n_i = 100$ for everyone $i$.

Therefore, the control limits are given by

$$LSC = \overline{u} + 3\sqrt{\dfrac{\overline{u}}{n_i}} = 0,1985 + 3\sqrt{\dfrac{0,1985}{100}} = 0,33216$$

$$LC = \overline{u} = 0,1985$$

$$LIC = \overline{u} - 3\sqrt{\dfrac{\overline{u}}{n_i}} = 0,1985 - 3\sqrt{\dfrac{0,1985}{100}} = 0,0648$$

Below are the results obtained by Software Action for this example.

Center line Lower Limit Upper Limit Fraction of Defectives
0.1984615 0.0648145 0.3321086 0.21
0.1984615 0.0648145 0.3321086 0.24
0.1984615 0.0648145 0.3321086 0.16
0.1984615 0.0648145 0.3321086 0.12
0.1984615 0.0648145 0.3321086 0.15
0.1984615 0.0648145 0.3321086 0.05
0.1984615 0.0648145 0.3321086 0.28
0.1984615 0.0648145 0.3321086 0.2
0.1984615 0.0648145 0.3321086 0.31
0.1984615 0.0648145 0.3321086 0.25
0.1984615 0.0648145 0.3321086 0.2
0.1984615 0.0648145 0.3321086 0.24
0.1984615 0.0648145 0.3321086 0.16
0.1984615 0.0648145 0.3321086 0.19
0.1984615 0.0648145 0.3321086 0.1
0.1984615 0.0648145 0.3321086 0.17
0.1984615 0.0648145 0.3321086 0.13
0.1984615 0.0648145 0.3321086 0.22
0.1984615 0.0648145 0.3321086 0.18
0.1984615 0.0648145 0.3321086 0.39
0.1984615 0.0648145 0.3321086 0.3
0.1984615 0.0648145 0.3321086 0.24
0.1984615 0.0648145 0.3321086 0.16
0.1984615 0.0648145 0.3321086 0.19
0.1984615 0.0648145 0.3321086 0.17
0.1984615 0.0648145 0.3321086 0.15

Table 2.5.15: Proportion chart for scrap

Figura2.5.9

Figure 2.5.9: Control chart for the example.

We can observe that two points more than 3 standard deviations from the center line were detected, indicating a possible special cause of variation.

To understand how to perform this function of Software Action, you can refer to the user manual.

2.5.5 Graphic $Czip$

The control chart $Czip$ is an alternative to the graphic $c$ and is indicated when the counting data has an excess of zeros. The classic Poisson distribution does not predict excess zeros in the counts, and the application of the graph $c$ in these cases it can lead to incorrect interpretations, as the assumption of variance equal to the mean (Poisson characteristic) is violated.

This situation is common in several industrial contexts, such as:

  1. High quality processes (many periods without defects);
  2. Monitoring of rare failures;
  3. Particle control in clean environments;
  4. Inspection data where defective events are infrequent.

The ZIP (Zero Inflated Poisson) model is an extension of the Poisson distribution and corrects the problem of excess zeros by adding a new parameter π. Therefore, this new model assumes two parameters:

  • π: is the probability of inflation, in other words, the proportion of extra zeros in the model;

  • λ: is the average defect occurrence rate, that is, the expected number of defects considering the situations in which the process is subject to the occurrence of defects.

The parameters π and λ can be estimated using the maximum likelihood method. Finally, the probability density function of the Zero-Inflated Poisson distribution is given by: $$P(Y = y) = \begin{cases} \pi + (1-\pi)e^{-\lambda}, \qquad y=0 \
\
\dfrac{(1-\pi)(e^{-\lambda} \lambda^y)}{y!}, \quad y = 1,2,… \end{cases}$$ Once the parameters have been estimated, the control chart $Czip$ is constructed in a similar way to the graph $c$ traditional, but with adjustments in the mean and variance of the process. Limits can be calculated in two ways:

i. Without considering zero inflation:

$$LSC = \hat{\lambda} + 3 \sqrt{\hat{\lambda}}$$ $$LC = \hat{\lambda}$$ $$LIC = \hat{\lambda} - 3 \sqrt{\hat{\lambda}}$$

ii. Considering zero inflation:

$$LSC = (1-\hat{\pi})\hat{\lambda} + 3 \sqrt{(1-\hat{\pi})\hat{\lambda}(1+\hat{\pi}\hat{\lambda})}$$ $$LC = (1-\hat{\pi})\hat{\lambda}$$ $$LIC = (1-\hat{\pi})\hat{\lambda} - 3 \sqrt{(1-\hat{\pi})\hat{\lambda}(1+\hat{\pi}\hat{\lambda})}$$

Example 5.5.1

Let us consider in the following table the number of nonconformities observed in 30 samples of size 1. Note that there is an inflation of zeros in the data.

Bacteria Sample size
0 1
1 1
0 1
0 1
7 1
0 1
0 1
2 1
3 1
0 1
0 1
0 1
0 1
0 1
1 1
3 1
0 1
4 1
0 1
1 1
0 1
0 1
5 1
0 1
0 1
0 1
0 1
0 1
2 1
0 1

Table 2.5.15: Bacteria data.

With $\hat{\lambda} = 2,706$ and $\hat{\pi} = 0,643$:

$$LSC = (1-\hat{\pi})\hat{\lambda} + 3 \sqrt{(1-\hat{\pi})\hat{\lambda}(1+\hat{\pi}\hat{\lambda})} = (0,9667) + 3 \sqrt{0,9667(1+0,643 \times 2,706)} = 5,85$$ $$LC = (1-\hat{\pi})\hat{\lambda} = (1-0,643)2,706 = 0,9667$$ $$LIC = (1-\hat{\pi})\hat{\lambda} - 3 \sqrt{(1-\hat{\pi})\hat{\lambda}(1+\hat{\pi}\hat{\lambda})} = (0,9667) - 3 \sqrt{0,9667(1+0,643 \times 2,706)} = -3,92$$

Since this is counting data, if the lower control limit presents a negative value, it is set to zero.

Figura2.5.10

Figure 2.5.10: Control chart $czip$.

2.5.6 Graphic $g$

The graph $g$ refers to the control chart for the total time to first count in the sample. It can be used in processes where defects appear in “conglomerates” (clusters). This graph assumes the geometric distribution for the sample. Thus, the probability model is based on: $$p(x) = p(1-p)^{x-a},$$ where a is the minimum possible number of events (e.g.: $a=0$). To estimate $p$, the estimator is based on the average of all defects, obtained by the maximum likelihood method: $$\hat{p} = \frac{1}{\bar{\bar{x}} - a + 1}$$

Being $t_1,t_2,\dots, t_m$ with $m$ samples, the time to first count per sample, each of size $n$. The average defect time per sample is $\bar{t}$, so the average of all defects is $\bar{\bar{x}} = \frac{\bar{t}}{n}$. And, with the estimator $\hat{p}$, we have: $$\frac{\bar{t}}{n} = \frac{1-\hat{p}}{\hat{p}} + a$$

The variance of the geometric distribution then: $$\frac{1-\hat{p}}{\hat{p}^2} = \left( \frac{\bar{t}}{n} - a \right) \left( \frac{\bar{t}}{n} -a+1 \right)$$

Therefore, the control limits are given by: $$LSC = \bar{t} + 3 \sqrt{ n \left( \frac{\bar{t}}{n} - a \right) \left( \frac{\bar{t}}{n} -a+1 \right)}$$ $$LC = \bar{t}$$ $$LIC = \bar{t} - 3 \sqrt{ n \left( \frac{\bar{t}}{n} - a \right) \left( \frac{\bar{t}}{n} -a+1 \right)}$$

Adopt $a=0$ as it is the parameterization of the geometric distribution with support starting at zero.

Example 5.6.1

Let us consider in the following table the number of days until the occurrence of a non-conformity in 17 samples of size 1.

days Sample size
15 1
64 1
21 1
33 1
39 1
3 1
99 1
66 1
43 1
0 1
114 1
11 1
5 1
51 1
19 1
1 1
5 1

Table 2.5.16: Data on days until failure.

$$LSC = \bar{t} + 3 \sqrt{ n \left( \frac{\bar{t}}{n} - a \right) \left( \frac{\bar{t}}{n} -a+1 \right)} = 34,647 + 3 \sqrt{ 1 \left( \frac{34,647}{1} - 0 \right) \left( \frac{34,647}{1} -0+1 \right)} = 140,078$$ $$LC = \bar{t} = 34,647$$ $$LIC = 34,647 - 3 \sqrt{\left( \frac{34,647}{1}\right) \left( \frac{34,647}{1}+1 \right)} = -72,78$$

Since this is time counting data, if the lower control limit presents a negative value, it is set to zero.

Figura2.5.11

Figure 2.5.11: Control chart $g$

2.5.7 Graphic $h$

The graph $h$ monitors the time to the first count in the sample, assuming geometric or negative binomial distribution for the sample. It can be used in cases where the interest is the time average rate instead of the total. Just like in the graph $g$, the estimator of $p$ remains $\hat{p} = \frac{1}{\bar{\bar{x}} - a + 1}$. However, the statistic tracked here is $\bar{x} = \frac{T}{n}$, where $T$ is the total number of defects in the size sample $n$. The variance in this case is given by:

$$\frac{1-\hat{p}}{n\hat{p}^2} = \frac{1}{n} \left( \frac{\bar{t}}{n} - a \right) \left( \frac{\bar{t}}{n} -a+1 \right)$$ Therefore, the control limits are given by: $$LSC = \frac{\bar{t}}{n} + \frac{3}{\sqrt{n}} \sqrt{ n \left( \frac{\bar{t}}{n} - a \right) \left( \frac{\bar{t}}{n} -a+1 \right)}$$ $$LC = \frac{\bar{t}}{n}$$ $$LIC = \frac{\bar{t}}{n} - \frac{3}{\sqrt{n}} \sqrt{ n \left( \frac{\bar{t}}{n} - a \right) \left( \frac{\bar{t}}{n} -a+1 \right)}$$

Adopt $a=0$ as it is the parameterization of the geometric distribution with support starting at zero.

Example 5.7.1

Let us consider in the following table the number of days until the occurrence of a non-conformity in 30 samples of size 5.

days Sample size
27 5
16 5
19 5
20 5
25 5
17 5
16 5
19 5
16 5
45 5
23 5
32 5
28 5
24 5
13 5
27 5
44 5
14 5
24 5
31 5
32 5
35 5
42 5
21 5
23 5
25 5
17 5
17 5
38 5
30 5

Table 2.5.16: Data on days until failure.

$$LSC = \frac{\bar{t}}{n} + \frac{3}{\sqrt{n}} \sqrt{ n \left( \frac{\bar{t}}{n} - a \right) \left( \frac{\bar{t}}{n} -a+1 \right)} = 5,067 + \frac{3}{\sqrt{5}} \sqrt{ 5 \left( 5,067 - 0 \right) \left( 5,067 -0+1 \right)} = 21,701$$ $$LC = \frac{\bar{t}}{n} = 5,067$$ $$LIC = \frac{\bar{t}}{n} - \frac{3}{\sqrt{n}} \sqrt{ n \left( \frac{\bar{t}}{n} - a \right) \left( \frac{\bar{t}}{n} -a+1 \right)} = 5,067 - \frac{3}{\sqrt{5}} \sqrt{ 5 \left( 5,067 - 0 \right) \left( 5,067 -0+1 \right)} = -11,567$$

Since this is time counting data, if the lower control limit presents a negative value, it is set to zero.

Figura2.5.12

Figure 2.5.12: Control chart $h$

2.5.8 Empirical Chart

The empirical control chart is a non-parametric alternative to classical Shewhart charts. As it is a non-parametric approach, it does not assume that the data follows a specific probability distribution, being particularly useful in situations in which normality cannot be guaranteed or when the data presents asymmetry or outliers. In this approach, control limits are derived directly from the empirical distribution of observed data. A simple method consists of using empirical quantiles, which are obtained by ordering historical data from lowest to highest value. In the classical statistical process control approach, limits are defined as three standard deviations above and below the mean, corresponding to a range of approximately 99.73$\char37$, assuming normal distribution. This interval is equivalent, in probabilistic terms, to quantiles 0.00135 and 0.99865. To adapt this concept to the empirical approach, limits can be defined directly from these quantiles, without assuming normality. Thus, for a variable x (e.g. number of defects per sample), the limits can be established as:

  • LSC (Upper Limit of Control): quantile of the desired percentage (e.g.: 0.99865)
  • LC (Central Line): median of the distribution (recommended for greater robustness)
  • LIC (Lower Control Limit): quantile of the desired percentage (e.g.: 0.00135)

Using the median as a central line is recommended as it is less sensitive to extreme values, increasing the robustness of the method.

Example 5.7.1

Let us consider in the following table the count of non-compliance in 20 samples of size 1, but no distribution was assumed for the data. For this reason, the empirical control chart will be used.

days Sample size
5 1
27 1
31 1
1 1
0 1
15 1
22 1
45 1
23 1
6 1
5 1
105 1
9 1
6 1
1 1
8 1
81 1
9 1
7 1
4 1

Table 2.5.17: Data on days until failure.

$LSC$: quantile 99.865$\char37$ $=104.3844$

$LC$: median (quantile 50$\char37$) $=8.5$

$LIC$: quantile 0.135$\char37$ $= 0.02565$

Figura2.5.13

Figure 2.5.13: Empirical control chart

2.5.9 Control chart for microbiological data

In the pharmaceutical and biotechnology scenario, quality assurance and contamination risk mitigation depend on robust monitoring and control. Among the main areas of application of this process, the following stand out:

  • cleaning validation, essential to prove the effective elimination of chemical and microbiological waste between production batches;
  • the assessment of the water system, which ensures the continuous purity of the most critical input used in manufacturing processes;
  • environmental monitoring, responsible for evaluating the microbial and particle load in classified areas

These pillars underpin Good Manufacturing Practices (GMP) ensuring that the environment, inputs and contact surfaces meet the highest standards of safety and regulatory integrity.

2.5.9.1 Microbiological Data

In the microbiological context, the purpose of validation is to monitor and limit the proliferation of microorganisms (bacteria, fungi and yeast) and the presence of bacterial endotoxins on equipment surfaces after cleaning. Unlike inert waste, biological contaminants have the ability to multiply if they encounter favorable moisture and nutrient conditions, making microbiological control a dynamic challenge.

Microbiological validation is directly linked to the storage time and conditions of the equipment. And monitoring this process consists of counting colony forming units (CFU), the presence or absence of many zero values ​​and the presence or absence of censorship. For this reason, rigorously defining acceptable limits is essential.

2.5.9.2 Definition of Alert and Action Limits

The action limit is defined as an established relevant value (e.g., microbiological or particulate levels in air) that, when exceeded, should trigger an appropriate investigation and the implementation of corrective actions based on that investigation. if exceeded, it requires immediate monitoring and corrective action.

On the other hand, the alert threshold corresponds to a value that provides an early warning of possible deviation from normal operating conditions and the validated state. This limit does not necessarily require immediate corrective action, but should trigger investigation, monitoring and monitoring of the process.

This approach is widely applied in industrial environments, especially when data is not normal, is asymmetric or contains outliers. In these cases, parametric models may not adequately represent the actual process variability.

For practical definition of these limits in empirical graphs, it is common to use:

  • Action limit: quantile 0.99865 (equivalent to approximately ±3σ in a normal distribution)
  • Alert threshold: quantile 0.975 (equivalent to approximately ±2σ)

Alternatively, other quantiles can be adopted based on process knowledge, criticality and volume of available data.

It is recommended that alert thresholds be defined based on routine historical data and trend analysis, and reviewed periodically. The action limit is represented by the control limit (upper or lower), if this limit is above the specification limit (LSE), it is truncated at the specification limit.

Furthermore, process evaluation should not be limited to out-of-bounds points. You should also consider:

  • trends;
  • repeated occurrences close to the limits;
  • non-random patterns in the data.

Advantages and Disadvantages

Advantages:

  • It does not depend on distribution assumptions;
  • Greater robustness against outliers and asymmetry;
  • Simplicity of implementation and interpretation;
  • Better adherence to real data in industrial environments.

Disadvantages:

  • Requires adequate volume of historical data to accurately estimate quantiles;
  • May produce unstable estimates at extreme quantiles when the sample is small;
  • May be less statistically efficient than parametric methods when the process distribution is known.

2.5.9.3 Control chart for microbiological data

The choice of statistical distribution is fundamental for the correct definition of control limits. In the case of microbial counting, the main control charts used are:

  • Chart $c$, associated with the Poisson distribution
  • Chart $czip$, associated with the zero-inflated Poisson distribution
  • Chart $g$, associated with geometric distribution
  • Empirical Chart, non-parametric alternative

The calculation of the alert threshold for each graph varies because they come from different distributions.

a) Graph $c$ for microbiological data

Poisson distribution microbiological data is bacterial count data per sample. This event occurs randomly at a defined average rate $\lambda$.

As the objective of microbiological control is to detect increases in contamination, the lower control limit is disregarded, as counts equal to zero are the ideal scenario. Thus, the limits for the control chart used are:

  • Upper Limit of Control (LSC) or Action Limit: $$LSC = \hat{\lambda} + 3 \sqrt{\hat{\lambda}}$$
  • Central Limit (LC): $$LC = \hat{\lambda}$$
  • Alert Limit (LA): quantile of the distribution in $97,5 \char37$

The parameter $\lambda$ is exactly the expected count: $$\overline{c} = \displaystyle \frac{\sum^k_{i=1} c_i}{k}$$

Example 5.9.1
Bacteria Sample Size
1 1
4 1
2 1
1 1
6 1
5 1
5 1
1 1
1 1
1 1
1 1
1 1
1 1
1 1
7 1
6 1
7 1
1 1
7 1
4 1
7 1

Table 2.5.18: Bacteria count.

We calculate the control limits for the count chart: $$LC = \overline{c} = \displaystyle \frac{\sum^k_{i=1} c_i}{k} = \frac{1+4+ \dots +7}{21} = 3,3333$$ $$LSC \ (\text{ou Limite de Ação}) = \overline{c} + 3 \times \sqrt{\overline{c}} = 3,3333 + 3 \times \sqrt{3,3333} = 8,8104$$

To calculate the Alert Limit, the Poisson distribution is considered with the lambda parameter $\lambda$ equal to $\overline{c}$ and the quantile is calculated: $$P(X≤x) ≥ 0.975$$ So,

$$LA = 7$$

Figura2.5.14

Figure 2.5.14: Control chart $c$ for microbiological data.

b) Graph $Czip$ for microbiological data

Microbiological data with a zero-inflated Poisson distribution are data on the count of bacteria per sample, which occurs when the count has an excess of zeros. It is a mix between the Poisson and Bernoulli distributions, making it the most appropriate to describe the results. This event occurs randomly, relying on two parameters:

  • π: the probability of inflation, in other words, the proportion of extra zeros in the model;

  • λ: the average defect occurrence rate, that is, the expected number of defects considering the situations in which the process is subject to the occurrence of defects.

As the objective of microbiological control is to detect increases in contamination, the lower control limit is disregarded, as counts equal to zero are the ideal scenario. Thus, the limits for the control chart used are:

  • Upper Control Limit (LSC) or Action Limit: $$LSC = (1-\hat{\pi})\hat{\lambda} + 3 \sqrt{(1-\hat{\pi})\hat{\lambda}(1+\hat{\pi}\hat{\lambda})}$$
  • Central Limit (LC): $$LC = (1-\hat{\pi})\hat{\lambda}$$
  • Alert Limit (LA): quantile of the distribution in $97,5 \char37$
Example 5.9.2
Bacteria Sample Size
0 1
1 1
0 1
0 1
7 1
0 1
0 1
2 1
3 1
0 1
0 1
0 1
0 1
0 1
1 1
3 1
0 1
4 1
0 1
1 1
0 1
0 1
5 1
0 1
0 1
0 1
0 1
0 1
2 1
0 1

Table 2.5.19: Bacteria count.

We have to $\hat{\lambda} = 2.7063$ and $\hat{\pi} = 0.6428$

We calculate the control limits for the count chart: $$LC = 0,9667$$ $$LSC \ (\text{ou Limite de Ação}) = (1-\hat{\pi})\hat{\lambda} + 3 \sqrt{(1-\hat{\pi})\hat{\lambda}(1-\hat{\pi}\hat{\lambda})} $$ $$ = (1-0,6428133) \times 2,706335 + 3 \sqrt{(1-0,6428133) \times 2,706335 \times (1-0,6428133 \times 2,706335)}$$ $$= 5,848788$$

To calculate the Alert Limit, the zero-inflated Poisson distribution is considered and the quantile of $p$ as follows: $$Q(p)\begin{cases} 0, \qquad \qquad \qquad \quad \text{se } p \leq \pi \
Q_{\text{Poisson}} \left( \frac{p- \hat{\pi}}{1-\hat{\pi}}, \hat{\lambda} \right), \quad \text{se } p > \pi \end{cases}$$

Thus, the Alert Threshold is the Poisson quantile with the adjusted probability $\frac{0,975 - 0,6428133}{1 - 0,6428133} = 0,93$

$$LA = 5$$

Figura2.5.15

Figure 2.5.15: Control chart $czip$ for microbiological data.

c) Graph $g$ for microbiological data

Geometric distribution microbiological data is the number of days until the first occurrence of microbial counts. Here it is desired that success occurs in as many days (repetitions) as possible.

If the probability of success for each attempt is $p$, then the probability of $n$ attempts are necessary for success to occur. $P(X = k) = (1-p)^k p$, where $k$ is the number of days and $p$ is the probability of success. The parameter $p$ is estimated as: $\hat{p} = \frac{n}{(\sum t + n)}$

As the objective of microbiological control is to detect increases in contamination, the upper control limit is disregarded, as success is desired to occur within as many days as possible. The interest is in the Lower Control Limit, as the danger is in finding contamination too quickly. Thus, the limits for the control chart used are:

  • Central Limit (LC): $$LC = \bar{t}$$
  • Lower Control Limit (LIC) or Action Limit: $$LIC = \bar{t} - 3 \sqrt{ n \left( \frac{\bar{t}}{n} - a \right) \left( \frac{\bar{t}}{n} -a+1 \right)}$$ Adopt $a=0$ as it is the parameterization of the geometric distribution with support starting at zero.
  • Alert Limit (LA): quantile of the distribution in $20 \char37$.

The alert threshold represents the minimum number of days in which the process presents only compliant observations, with a probability of $80\char37$.

Example 5.9.3
Home End days Sample Size
3-Jan 18-Jan 15 1
20-Jan 25-Mar 64 1
27-Mar 17-Apr 21 1
18-Apr 21-May 33 1
22-May 30-Jun 39 1
1-Jul 4-Jul 3 1
5-Jul 12-Oct 99 1
13-Oct 18-Dec 66 1
19-Dec 31-Jan 43 1
1-Feb 1-Feb 0 1
2-Feb 27-May 114 1
28-May 8-Jun 11 1
9-Jun 14-Jun 5 1
15-Jun 5-Aug 51 1
6-Aug 25-Aug 19 1
26-Aug 27-Aug 1 1
28-Aug 2-Sep 5 1

Table 2.5.20: Count of days.

We calculate the control limits for the graph: $$LC = \overline{t} = 34,647$$ $$LIC = \bar{t} - 3 \sqrt{ n \left( \frac{\bar{t}}{n} - a \right) \left( \frac{\bar{t}}{n} -a+1 \right)}$$ $$ = 34,647 - 3 \sqrt{ 1 \left( \frac{34,647}{1} - 0 \right) \left( \frac{34,647}{1} - 0 + 1 \right) }$$ $$= - 67,783$$ Since this is time counting data, if the lower control limit presents a negative value, it is set to zero.

To calculate the Alert Limit, the Geometric distribution is considered with the probability of success $\hat{p}$ equal to $\frac{n}{(\sum t + n)}$ and the quantile is calculated: $$P(X≤x) ≥ 0.2$$

So,

$$LA = 7$$

Figura2.5.16

Figure 2.5.16: Control chart $g$ for microbiological data.

d) Empirical Chart for microbiological data

Empirical microbiological data does not assume a specific probability distribution and is bacterial count data per sample.

As the objective of microbiological control is to detect increases in contamination, the lower control limit is disregarded, as counts equal to zero are the ideal scenario. Thus, the limits for the control chart used are:

  • LSC (Upper Limit of Control) or Action Limit: quantile of 0.99865
  • LC (Central Line): median of the distribution
  • LA (Alert Threshold): quantile of 0.975

Example 5.9.4

Count Sample size
5 1
27 1
31 1
1 1
0 1
15 1
22 1
45 1
23 1
6 1
5 1
14 1
9 1
6 1
1 1
8 1
81 1
9 1
7 1
4 1

Table 2.5.21: Bacteria count data.

$LSC$ or Action Limit: quantile $99,865\char37$ $=104,3844$

$LC$: median (quantile $50\char37$) $=8,5$

$LA$: quantile $97,5\char37$ $= 93,6$

Figura2.5.17

Figure 2.5.17: Empirical control chart for microbiological data.

↑