Statistical Process Control

Statistical Process Control

Chapter 22 Statistical Process Control In God we trust. All others must bring data. W. Edwards Deming 22.1 INTRODUCTION Statistical process control ...

7MB Sizes 4 Downloads 179 Views

Chapter 22

Statistical Process Control In God we trust. All others must bring data. W. Edwards Deming

22.1 INTRODUCTION Statistical process control (SPC) has been widely used to improve productivity, reducing the waste of inputs and rework, and, consequently, diminishing costs and increasing production capability. For Montgomery (2013), SPC is a set of tools used for solving problems whose main objective is to measure, monitor, control, and improve process quality. Control charts are an important SPC tool. They are used to assess process variability throughout time and to indicate whether the process is in control or not. A process is in control when the variation in the product quality characteristics is only a result of random causes. These causes are inherent to the process (not identifiable), and they do not affect the product quality characteristics. A process is out of control when the variation in the product quality characteristics or in the level of defects is a result of special causes that can be corrected or eliminated. This process variation is an anomaly, significantly impacting product quality characteristics, which requires an immediate intervention. These special causes of variation can be a result of several factors, such as, ambient temperature, poor lighting, lack of equipment adjustments and maintenance, operators’ physical and mental fatigue, lack of training, quality of raw materials, etc. The line chart presented in Section 3.2.1 in Chapter 3 is used to show the data evolution or trend of a quantitative variable at regular intervals. This chart can be used in process control to verify the evolution of the process mean throughout time. Control charts can be divided into two major groups: control charts for variables, in which the quality characteristic is measured in a quantitative scale, and control charts for attributes, in which the quality characteristic is measured in a qualitative scale.

22.2 ESTIMATING THE PROCESS MEAN AND VARIABILITY Let X be a random variable that represents the quality characteristic, being normally distributed with a mean m and with a known standard deviation s, that is, X  N(m, s). In practice, since we usually do not know m and s, they must be estimated from samples or subgroups. Thus, we must define the sampling method and the sample size. For Gomes (2010), the samples must be drawn from homogeneous batches formed by items produced by the same machine, operator and plant. According to the author, there is no predefined rule regarding the sample size, because it will depend on the production volume, on the inspection costs, and on how important the information obtained is. The number of samples collected is represented by m, whose values usually vary between 20 and 30. Each sample contains n observations, whose values are small and are usually between 4 and 6. For a certain sample i with n elements, its sample mean (Xi ) is given by: n X

Xi ¼

Xij

j¼1

n

Data Science for Business and Decision Making. https://doi.org/10.1016/B978-0-12-811216-8.00022-7 © 2019 Elsevier Inc. All rights reserved.

(22.1)

941

942

PART

VIII Other Topics

where Xij is the j-th element of the i-th sample or subgroup. and its sample range (Ri ) is: Ri ¼ X max i  X min

(22.2)   so, Xi follows a normal distribution with a mean m and a standard deviation sX , that is, Xi  N m, sXi , such that: i   (22.3) E Xi ¼ m i

  s2 (22.4) Var Xi ¼ n s sX ¼ pffiffiffi (22.5) i n Assume that m samples are collected, each one of them containing n observations of the quality characteristic to be investigated. Therefore, the mean of the sample or subgroup means and the mean of the sample ranges are given by: m X

X̿ ¼ m X



Xi

i¼1

m

(22.6)

Ri

i¼1

m

, respectively,

(22.7)

where: Xi ¼ mean of the i-th sample or subgroup; X̿ ¼ mean of the sample means; m ¼ number of samples; n ¼ number of observations for each sample; Ri ¼ range of the i-th sample or subgroup; R ¼ mean of the sample ranges. Consequently, we can use X̿ as an estimate for m and R=d2 as an estimate for s, as we will see in the following section.

22.3

CONTROL CHARTS FOR VARIABLES

Control charts for variables, also known as Shewhart control charts, are used when the product quality characteristic is measured in continuous values, such as, temperature, length or width, weight, volume, concentration, etc. In this case, it is necessary to monitor the average value and also the variability in the quality characteristic. To control the process mean, control charts for the mean (X) are used. To monitor process variation, we have the control charts for the range (R) or the control charts for the standard deviation (S). Control charts for R are more commonly used to measure process variation (Montgomery, 2013). Control charts for variables were developed by Shewhart aiming at detecting the presence of special causes in the variation of a certain process. Thus, if the process is under statistical control, future observations can be based on previous observations. For example, the graphical representation of a series of data is temporally plotted and the points plotted are compared to the control limits calculated previously. Hence, if one of these points is outside the control limits, this may indicate that the process is not in statistical control, that is, the control parameter has changed (Pylro, 2008).

22.3.1

Control Charts for X and R

22.3.1.1 Control Charts for X Let X be a random variable that represents the quality characteristic with a normal distribution, mean m, and a known variance s2, that is, X N(m, s2). Considering m samples of size n, the mean of the sample means is given by X.̿ Therefore, we have: Z¼

X̿  m pffiffiffi  Nð0, 1Þ s= n

that is, variable Z follows a standard normal distribution.

(22.8)

Statistical Process Control Chapter

The probability of variable Z assuming values between  za/2 and za/2 is 1  a, so:   P za=2  Z  za=2 ¼ 1  a

22

943

(22.9)

or: P za=2 

X̿  m pffiffiffi  z Þ ¼ 1  a s= n a=2

Therefore, the confidence interval for m is:   s s P X̿  za=2 pffiffiffi  m  X̿ + za=2 pffiffiffi ¼ 1  a n n

(22.10)

(22.11)

In statistical process control, we usually adopt za/2 ¼ 3, so, the control limits for X can be specified as: s UCL ¼ X + 3 pffiffiffi n Cl ¼ X s LCL¼ X  3 pffiffiffi n

(22.12)

where: UCL: Upper Control Limit; CL: Center Line; LCL: Lower Control Limit. These limits are also called three sigma control limits. The terms Upper and Lower Control Limits are also known as Upper Specification Limit (USL) and Lower Specification Limit (LSL). Fig. 22.1 shows the probability distribution of the mean and the confidence interval of 99.74% used as limits in the control charts. In practice, since we do not know s, we must estimate it. According to Sharpe et al. (2015), for normally distributed data, in which we do not have any other estimate of the standard deviation, we can use the relationship between the sample range i (Ri) and its standard deviation (si), represented by the random variable W, called relative range: W¼

Ri si

(22.13)

The mean of the distribution of W is a constant called d2 that depends on the sample size and its values can be found in ^i is given by: Table O in the Appendix. By using this constant, the standard deviation estimator s ^i ¼ s

Ri d2

(22.14)

FIG. 22.1 Probability distribution of the mean and confidence intervals. (Source: http://www.portalaction.com. br/probabilidades/62-distribuicao-normal.)

944

PART

VIII Other Topics

Considering m samples of size n, the mean of the sample ranges is given by R (Expression 22.7), and the sample standard deviation estimator can be written as: ^¼ s

R d2

(22.15)

Thus, the control limits for X (Expression 22.12) start to be: UCL ¼ X + 3

R pffiffiffi d2 n

CL ¼ X

(22.16)

R LCL ¼ X  3 pffiffiffi d2 n

The term d 3pffiffin can be substituted for A2, which is a constant that depends only on the sample size (n) and its values can be 2

found in Table O in the Appendix. UCL ¼ X + A2 R CL ¼ X LCL ¼ X  A2 R

(22.17)

22.3.1.2 Control Charts for R According to Sharpe et al. (2015) and Montgomery (2013), the procedure for R control charts is very similar to the X charts. The difference is that, in this case, we need to estimate the standard deviation for the range (sR). The parameters of the R chart with the 3 sigma control limits are given by: UCL ¼ R + 3sR CL ¼ R LCL ¼ R  3sR

(22.18)

In practice, since we do not know sR, we must estimate it. Assuming that the quality characteristic is normally distributed, ^R can be calculated from the distribution of the relative range W ¼ R/s. The standard deviation of W, known as d3, is a s constant that depends on the sample size (n). Given that: R ¼ Ws the standard deviation of the range (sR) is given by: sR ¼ d3 s

(22.19)

Since s is unknown, we can use Expression (22.15) to estimate it, so: ^ R ¼ d3 s

R d2

(22.20)

Thus, the control limits for R (Expression 22.18) start to be: UCL ¼ R + 3d3 CL ¼ R

R d2

(22.21)

R LCL ¼ R  3d3 d2

Defining that: d d D3 ¼ 1  3 d3 and D4 ¼ 1 + 3 d3 , Expression (22.21) is reduced to: 2

2

UCL ¼ D4 R CL ¼ R LCL ¼ D3 R The values of constants D3 and D4 can be found in Table O in the Appendix for several values of n.

(22.22)

Statistical Process Control Chapter

22

945

Example 22.1 The manufacturing process of a bookshelf is carried out by cutting steel sheets to produce the shelves, supports, and legs. The quality characteristic to be evaluated is the thickness of the steel sheet to make the shelves, measured in mm. Hence, 25 samples were used, each one of them with 5 observations, as shown in Table 22.E.1. The time interval between the samples or subgroups is 1 hour. Check and see if the process is in control by using the X and R charts. Solution To specify the control limits, initially, we have to calculate each sample’s mean and range (X i and Ri). After that, we have to calculate the mean of the sample means and the mean of the sample ranges: 25 X

X̿ ¼

Xi

i¼1

25

¼

363:54 ¼ 14:54 25

TABLE 22.E.1 Measurements of the Steel Sheet Thickness in mm Measurements Sample

m1

m2

m3

m4

m5

1

14.25

14.37

14.78

13.98

14.12

2

13.87

14.12

14.76

14.44

13.85

3

13.54

14.12

14.87

15.12

14.17

4

15.07

14.51

14.87

15.22

14.24

5

13.48

14.32

14.65

13.67

13.94

6

13.88

13.96

13.75

14.47

14.83

7

14.22

14.36

15.12

15.36

14.78

8

14.25

14.98

14.55

15.37

15.12

9

14.74

13.87

13.85

14.31

14.55

10

14.77

14.65

14.89

15.47

15.07

11

15.12

15.17

14.85

14.35

15.02

12

13.48

13.74

14.38

14.27

13.99

13

13.78

14.12

14.57

14.67

13.58

14

14.57

15.12

15.37

15.11

14.73

15

14.76

14.55

15.34

15.44

15.21

16

14.76

14.22

14.30

14.97

15.32

17

15.10

14.85

14.62

14.50

15.35

18

14.68

14.27

14.87

15.31

15.46

19

14.36

14.64

13.87

13.65

14.12

20

13.87

13.98

14.65

14.59

14.25

21

14.71

14.35

14.67

15.33

15.12

22

13.47

13.81

14.26

14.54

14.37

23

14.38

14.97

15.27

15.09

15.07

24

14.17

14.67

14.32

13.42

13.69

25

15.24

15.04

14.87

14.65

14.88

946

PART

VIII Other Topics

25 X

Ri

24:68 ¼ ¼ 0:99 25 25 These calculations are shown in detail in Table 22.E.2. From Table O in the Appendix, we can determine the values of constants A2 ¼ 0.577, D3 ¼ 0 and D4 ¼ 2.114 of the control limits for X and R, considering n ¼ 5. Hence, the control limits for X by using Expression (22.17) can be written as: R¼

i¼1

UCL ¼ X̿ + A2 R ¼ 14:5417 + 0:557  0:9872 ¼ 15:1111 CL ¼ X̿ ¼ 14:5417 LCL ¼ X̿  A2 R ¼ 14:5417  0:557  0:9872 ¼ 13:9722

TABLE 22.E.2 Calculating X̿ and R Measurements Sample

m1

m2

m3

m4

m5

Xi

Ri

1

14.25

14.37

14.78

13.98

14.12

14.30

0.80

2

13.87

14.12

14.76

14.44

13.85

14.21

0.91

3

13.54

14.12

14.87

15.12

14.17

14.36

1.58

4

15.07

14.51

14.87

15.22

14.24

14.78

0.98

5

13.48

14.32

14.65

13.67

13.94

14.01

1.17

6

13.88

13.96

13.75

14.47

14.83

14.18

1.08

7

14.22

14.36

15.12

15.36

14.78

14.77

1.14

8

14.25

14.98

14.55

15.37

15.12

14.85

1.12

9

14.74

13.87

13.85

14.31

14.55

14.26

0.89

10

14.77

14.65

14.89

15.47

15.07

14.97

0.82

11

15.12

15.17

14.85

14.35

15.02

14.90

0.82

12

13.48

13.74

14.38

14.27

13.99

13.97

0.90

13

13.78

14.12

14.57

14.67

13.58

14.14

1.09

14

14.57

15.12

15.37

15.11

14.73

14.98

0.80

15

14.76

14.55

15.34

15.44

15.21

15.06

0.89

16

14.76

14.22

14.30

14.97

15.32

14.71

1.10

17

15.10

14.85

14.62

14.50

15.35

14.88

0.85

18

14.68

14.27

14.87

15.31

15.46

14.92

1.19

19

14.36

14.64

13.87

13.65

14.12

14.13

0.99

20

13.87

13.98

14.65

14.59

14.25

14.27

0.78

21

14.71

14.35

14.67

15.33

15.12

14.84

0.98

22

13.47

13.81

14.26

14.54

14.37

14.09

1.07

23

14.38

14.97

15.27

15.09

15.07

14.96

0.89

24

14.17

14.67

14.32

13.42

13.69

14.05

1.25

25

15.24

15.04

14.87

14.65

14.88

14.94

0.59

Sum

363.54

24.68

Mean

14.54

0.99

Statistical Process Control Chapter

22

947

On the other hand, the control limits for R by using Expression (22.22) are: UCL ¼ D4 R ¼ 2:114  0:9872 ¼ 2:0874 CL ¼ R ¼ 0:9872 LCL ¼ D3 R ¼ 0:0000 The control charts for X and R will be generated by using Stata and SPSS software, as shown in Figs. 22.2, 22.3, 22.8, and 22.9.

FIG. 22.2 X control charts on Stata for the process in Example 22.1.

FIG. 22.3 R control charts on Stata for the process in Example 22.1.

948

PART

VIII Other Topics

The R charts (Figs. 22.3 and 22.9) indicate that the process variation is in control. The same is not true in relation to the process mean. We can observe, from the X control charts (Figs. 22.2 and 22.8), that there is one sample outside the control limits, providing strong evidence that the process mean changed due to the presence of special causes. The presence of special causes can also be verified if the sequence of points in the chart is nonrandom (a trend, changes in the mean, seven consecutive points above or below the center line, or seven ascending or descending consecutive points). Before investigating a special cause, it would be interesting to verify if there were any problems in the measuring system or an error when plotting the point. If these errors are not found, the company must revise its process and eliminate the special causes, making the process stable. Solution by Using Stata Software The data in Example 22.1 are available in the file Example_22.1.dta. To construct the X chart on Stata, we have to use the following command: xchart varlist [if] [in] [, xchart_options]

The variables in this example were called m1, m2, m3, m4, and m5. If we only type the command xchart followed by the name of the variables, a scatter plot will be constructed. To connect the points in the chart, it is necessary to include the option connect(l), which will generate the following command: xchart m1-m5, connect(l)

The same logic applies to the R chart starting from the command rchart: rchart varlist [if] [in] [, rchart_options]

Therefore, we must type the following command: rchart m1-m5, connect(l)

Conversely, the X and R charts can be obtained jointly by using Stata software, through the command shewhart: shewhart m1-m5, connect(l)

Figs. 22.2 and 22.3 show the control charts for X and R, respectively, which were obtained on Stata.

FIG. 22.4 Compilation of the data from Example 22.1 on SPSS.

Statistical Process Control Chapter

22

949

FIG. 22.5 Procedure for constructing the control charts on SPSS.

Solution by Using SPSS Software The data in Example 22.1 are available in the file Example_22.1.sav. The first column represents the sample or subgroup under analysis. The observations that correspond to each sample are listed sequentially in the second column, a variable called Thickness, as shown in Fig. 22.4. So, we must click on Analyze ! Quality Control ! Control Charts..., select, in Variables Charts, the option X-bar, R, s, define the variables we are interested in, and click, in Charts, on the options X-bar using range and Display R chart, as shown in Figs. 22.5, 22.6 and 22.7. Figs. 22.8 and 22.9 show the control charts for X and R, respectively, which were obtained from SPSS software.

22.3.2

Control Charts for X and S

Even though the X and R control charts are commonly used, depending on the case, it could be more interesting to use the standard deviation chart (S) to monitor the process’s dispersion. One advantage of the R chart is its simplicity and how easy it is to apply it. On the other hand, the S chart is more precise, since it considers all the data in each sample and not only the maximum and minimum values as the R chart. Therefore, the standard deviation is a more efficient measure of variation than the range, mainly for large samples (n > 10). Constructing the X and S control charts is similar to the X and R charts, the only difference lies in the equations used to calculate the control limits.

950

PART

VIII Other Topics

FIG. 22.6 Selecting the option Variables Charts on SPSS.

For a certain sample i with n elements, its sample standard deviation (Si) is given by: vffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffi uX n  2 u u Xi  X t Si ¼ i¼1 n1 Assuming that m samples were collected, each one of them containing n observations of the quality characteristic, the mean of the sample or subgroup means and the mean of the sample standard deviations are given by: m X

X̿ ¼

Xi

i¼1

m m X Si



i¼1

m

, respectively

Statistical Process Control Chapter

FIG. 22.7 Defining the variables and selecting the X and R control charts on SPSS.

Control chart: Thickness Thickness UCL = 15.1111 Average = 14.5417 LCL = 13.9722

15.25

15.00

Mean

14.75

14.50

14.25

14.00

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25

Sigma level: 3 FIG. 22.8 X control chart on SPSS for the process in Example 22.1.

22

951

952

PART

VIII Other Topics

Control chart: Thickness Thickness UCL = 2.0874 Average = .9872 LCL = .0000

2.5

Range

2.0

1.5

1.0

0.5

0.0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25

Sigma level: 3 FIG. 22.9 R control chart on SPSS for the process in Example 22.1.

The control limits for the mean (X) are calculated as: UCL ¼ X + A3 S CL ¼ X LCL ¼ X  A3 S

(22.23)

Constant A3 can be found in Table O in the Appendix for several different values of n. And the control limits for the standard deviation (S) are given by: UCL ¼ B4 S CL ¼ S LCL ¼ B3 S

(22.24)

Constants B3 and B4 can also be found in Table O in the Appendix for several different values of n. Example 22.2 The production of strawberry seedlings is widespread in many Brazilian regions with temperate and subtropical climate. They can be used for in natura consumption or in manufacturing processes. The variable being analyzed is the crown diameter (mm). Hence, 20 samples were used, each one of them with 4 observations, as shown in Table 22.E.3. The time interval between the samples or subgroups is 30 minutes. Check and see if the process is in control by using the X and S charts. Solution To specify the control limits, initially, we have to calculate each sample’s mean and standard deviation (X i and Si). After that, we have to calculate the mean of the sample means and the mean of the sample standard deviations: 20 X

X̿ ¼

Xi

i¼1

20

¼

117:15 ¼ 8:86 20

Statistical Process Control Chapter

22

953

TABLE 22.E.3 Measurements of the Crown Diameter and mm Measurements Sample

m1

m2

m3

m4

1

8.62

8.12

8.44

8.33

2

8.10

8.27

8.65

8.48

3

8.64

8.59

8.87

8.96

4

9.01

8.87

9.22

9.15

5

9.14

9.08

8.87

8.74

6

9.24

9.41

9.37

9.52

7

9.05

9.12

8.87

8.69

8

8.56

8.74

8.45

8.72

9

8.45

8.14

8.24

8.53

10

8.48

8.97

8.64

8.45

11

8.89

8.69

9.03

9.15

12

9.24

9.34

9.09

9.41

13

9.25

9.42

9.36

9.65

14

8.75

9.21

8.83

8.42

15

8.47

8.68

8.49

8.68

16

9.01

9.24

9.36

9.48

17

9.22

8.76

8.94

8.86

18

9.14

9.54

9.36

9.51

19

8.50

8.97

8.65

8.72

20

8.27

8.34

8.47

8.41

20 X



Si

i¼1

20

¼

3:64 ¼ 0:18 20

These calculations are shown in detail in Table 22.E.4. From Table O in the Appendix, we can determine the values of constants A3 ¼ 1.628, B3 ¼ 0, and B4 ¼ 2.266 of the control limits for X and S, considering n ¼ 4.

TABLE 22.E.4 Calculating X̿ and S Measurements Sample

m1

m2

m3

m4

Xi

Si

1

8.62

8.12

8.44

8.33

8.38

0.21

2

8.10

8.27

8.65

8.48

8.38

0.24

3

8.64

8.59

8.87

8.96

8.77

0.18

4

9.01

8.87

9.22

9.15

9.06

0.16

5

9.14

9.08

8.87

8.74

8.96

0.19 Continued

954

PART

VIII Other Topics

TABLE 22.E.4 Calculating X ̿ and S —cont’d Measurements Sample

m1

m2

m3

m4

Xi

Si

6

9.24

9.41

9.37

9.52

9.39

0.12

7

9.05

9.12

8.87

8.69

8.93

0.19

8

8.56

8.74

8.45

8.72

8.62

0.14

9

8.45

8.14

8.24

8.53

8.34

0.18

10

8.48

8.97

8.64

8.45

8.64

0.24

11

8.89

8.69

9.03

9.15

8.94

0.20

12

9.24

9.34

9.09

9.41

9.27

0.14

13

9.25

9.42

9.36

9.65

9.42

0.17

14

8.75

9.21

8.83

8.42

8.80

0.32

15

8.47

8.68

8.49

8.68

8.58

0.12

16

9.01

9.24

9.36

9.48

9.27

0.20

17

9.22

8.76

8.94

8.86

8.95

0.20

18

9.14

9.54

9.36

9.51

9.39

0.18

19

8.5

8.97

8.65

8.72

8.71

0.20

20

8.27

8.34

8.47

8.41

8.37

0.09

Sum

177.15

3.64

Mean

8.86

0.18

Therefore, the control limits for X by using Expression (22.23) can be written as: UCL ¼ X̿ + A3 S ¼ 8:8574 + 1:628  0:1822 ¼ 9:1539 CL ¼ X̿ ¼ 8:8574 LCL ¼ X̿  A3 S ¼ 8:8574  1:628  0:1822 ¼ 8:5608 On the other hand, the control limits for S by using Expression (22.24) are: UCL ¼ B4 S ¼ 2:266  0:1822 ¼ 0:4128 CL ¼ S ¼ 0:1822 LCL ¼ B3 S ¼ 0 X and S control charts will be generated by using SPSS and are not available on Stata. Solution by Using SPSS Software The data in Example 22.2 are available in the file Example_22.2.sav and can be seen in Fig. 22.10. Similar to Example 22.1, we must click on Analyze ! Quality Control ! Control Charts..., select, in Variables Charts, the option X-bar, R, s and define the variables we are interested in. However, in Charts, we must select the options X-bar using standard deviation and Display s chart, as shown in Fig. 22.11.

Statistical Process Control Chapter

22

955

FIG. 22.10 Compilation of the data in Example 22.2 on SPSS.

FIG. 22.11 Defining the variables and selecting the X and S control charts on SPSS.

956

PART

VIII Other Topics

Control chart: Diameter Diameter UCL = 9.1539 Average = 8.8574 LCL = 8.5608

9.6

9.4

Mean

9.2

9.0

8.8

8.6

8.4

8.2 1

2

3

4

5

6

7

8

9 10 11 12 13 14 15 16 17 18 19 20

Sigma level: 3 FIG. 22.12 X control chart on SPSS for the process in Example 22.2.

Figs. 22.12 and 22.13 show the control charts for X and S, respectively, which were obtained from SPSS software. Control chart: Diameter Diameter UCL = .4128 Average = .1822 LCL = .0000

0.5

Standard Deviation

0.4

0.3

0.2

0.1

0.0 1

2

3

4

5

6

7

8

9 10 11 12 13 14 15 16 17 18 19 20

Sigma level: 3 FIG. 22.13 S control chart on SPSS for the process in Example 22.2.

Statistical Process Control Chapter

22

957

The S charts indicate that the process variation is in control. The same is not true in relation to the process mean. From the X control charts, we can see that there are several samples outside the control limits, which suggests that the process is not in statistical control, that is, the process mean has changed.

22.4 CONTROL CHARTS FOR ATTRIBUTES The Shewhart charts presented in the previous section are used to monitor process quality characteristics represented by quantitative variables. However, in several different cases, process quality is represented by a qualitative variable, usually with two categories (a binary variable): conforming and nonconforming items.

22.4.1 P Chart (Defective Fraction) In many cases, the quality characteristic to be monitored is the proportion of defective items (p). If this proportion has increased, we must investigate the special causes for this variation and adjust the process. The proportions control chart is called p chart. Consider the random variable D that represents the number of defective units in n observations. The proportion of defective items is given by p ¼ D/n. As studied in Section 6.6.3 in Chapter 6, D follows a binomial distribution with parameters n and p, that is, D  b(n, p). The mean and the variance of D are given by: EðDÞ ¼ n  p

(22.25)

Var ðDÞ ¼ n  p  ð1  pÞ

(22.26)

As the sample size increases, the binomial probability distribution becomes more similar to a normal distribution. The notation p^ represents an estimate of the real value of p. Thus, the probability distribution of p^ is normal with the mean and variance defined by: Eðp^Þ ¼ p Var ðp^Þ ¼

(22.27) p  ð 1  pÞ n

When the proportion of nonconforming items (p) is known, 3s control limits for p are established: rffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffi p  ð1  pÞ UCL ¼ p + 3 n CL ¼ p rffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffi p  ð1  pÞ LCL ¼ p  3 n

(22.28)

(22.29)

when p is unknown, its value must be estimated from the data observed, considering a period in which the process is in control. These values are used to monitor future data. Analogous to the X control charts, to calibrate the data and calculate the control limits for p, m samples are collected, each one of them containing n observations of the quality characteristic. If there are Di nonconforming units in sample i, the fraction of nonconforming items in the i-th sample is given by: p^i ¼

Di , i ¼ 1, …, m n

(22.30)

The average proportion of defective items in these m samples (p) is given by: m X



i¼1

m

m X

p^i ¼

Di

i¼1

mn

(22.31)

958

PART

VIII Other Topics

The p statistic is an estimate of p, so, the control limits of 22.29 become: rffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffi p  ð 1  pÞ UCL ¼ p + 3 n CL ¼ p (22.32) rffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffi p  ð 1  pÞ LCL ¼ p  3 n In some cases, depending on the values of p and n, the lower control limit can be negative (LCL < 0). In these cases, we have to use LCL ¼ 0 and assume that the control charts only have upper limits (Montgomery, 2013). Example 22.3 Steel sheets with higher mechanical resistance are being used to manufacture several car parts, such as, wheels, bumpers, and other body parts. In a certain process, we tried to verify if the steel sheets produced met the quality characteristics required. In order to do that, 25 samples were collected, each one of them with 60 observations, and the number of defective steel sheets for each sample was verified, as shown in Table 22.E.5. The time interval between the samples or subgroups is 2 hours. Check and see if the process is in statistical control.

TABLE 22.E.5 Data on the Number of Defective Steel Sheets in Example 22.3 Sample Number

Number of Steel Sheets

Number of Defective Items

Proportion of Defective Items

1

60

6

0.100

2

60

7

0.117

3

60

5

0.083

4

60

3

0.050

5

60

7

0.117

6

60

8

0.133

7

60

6

0.100

8

60

5

0.083

9

60

5

0.083

10

60

10

0.167

11

60

8

0.133

12

60

7

0.117

13

60

9

0.150

14

60

11

0.183

15

60

9

0.150

16

60

4

0.067

17

60

8

0.133

18

60

6

0.100

19

60

7

0.117

20

60

8

0.133

21

60

8

0.133

22

60

11

0.183

23

60

10

0.167

24

60

4

0.067

25

60

6

0.100

Total

1,500

178

Statistical Process Control Chapter

22

959

Solution We have m ¼ 25 samples and n ¼ 60 observations for each sample. The proportion of defective sheets for each sample is presented in Table 22.E.5. Therefore, the average proportion of defective steel sheets for these 25 samples (p) is calculated as: p¼

0:100 + 0:117 + … + 0:100 ¼ 0:1187 25

or: m X

Di

178 ¼ ¼ 0:1187 mn 25  60 By applying Expression (22.32) of the control limits to p, we have: rffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffi 0:1187  ð0:8813Þ UCL ¼ 0:1187 + 3 ¼ 0:2439 60 CL ¼ 0:1187 rffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffi ! 0:1187  ð0:8813Þ , 0 ¼0 LCL ¼ max 0:118733  3 60 p¼

i¼1

Solution by Using Stata Software To construct the p chart on Stata, we have to use the following command: pchart reject_var unit_var ssize_var [, pchart_options]

The data in Example 22.3 are available in the file Example_22.3.dta. The first variable, called sample, represents each one of the 25 samples being analyzed. The second column refers to the variable rejects, which computes the total number of defective parts for each sample. Finally, the variable ssize represents the number of steel sheets in each sample that, in this case, is 60. Hence, the command to be typed to construct the p chart on Stata is: pchart rejects sample ssize

Fig. 22.14 shows the p chart obtained on Stata. Solution by Using SPSS Software The data in Example 22.3 are available in the file Example_22.3.sav. The first column represents the sample or subgroup under analysis. The total number of defective parts for each sample is listed in sequence order in the second column, called rejects, as shown in Fig. 22.15. The third column, called ssize, is optional, since in the cases in which the sample sizes are constant, its respective value can be defined on the SPSS screen, as shown in Fig. 22.18.

FIG. 22.14 p Chart on Stata for the process in Example 22.3.

960

PART

VIII Other Topics

FIG. 22.15 Compilation of the data in Example 22.3 on SPSS.

So, we must click on Analyze ! Quality Control ! Control Charts..., define the option p, np in Attribute Charts and the option Cases are subgroups in Data Organization, select the variables of interest, and click on p (Proportion nonconforming) in Chart, as shown in Figs. 22.16, 22.17, and 22.18. Also in Fig. 22.18, in Sample Size, we must select the option Constant and define the value 60. Another alternative is to select the option Variable and insert the variable ssize, as shown in Fig. 22.19. By clicking on OK, we obtain the p chart on SPSS, as shown in Fig. 22.20. We can verify through Fig. 22.20 that the process is in statistical control, since there are no points outside the control limits.

22.4.2

np Chart (Number of Defective Products)

Instead of using the proportion of defective items, the control chart can be based on the number of defective products (D ¼ np), being called np control chart (np chart). Different from the p chart, this chart requires that the samples have the same size. Thus, the interpretation of the np chart is simpler when compared to the p chart. When p is known, the control limits for np can be specified as: pffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffi UCL ¼ np + 3 npð1  pÞ (22.33) CL ¼ np pffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffi LCL ¼ np  3 npð1  pÞ Otherwise, we use p as an estimate of p: pffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffi UCL ¼ np + 3 npð1  pÞ CL ¼ npp pffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffi LCL ¼ np  3 npð1  pÞ

(22.34)

Analogous to the p chart, the lower control limit for the np chart can also be negative. In these cases, we have to use LCL ¼ 0.

Statistical Process Control Chapter

22

961

FIG. 22.16 Procedure for constructing the p chart on SPSS.

FIG. 22.17 Selecting the option p, np in Attribute Charts on SPSS.

962

PART

VIII Other Topics

FIG. 22.18 Defining the variables and selecting the p control chart on SPSS.

FIG. 22.19 Selecting the variable ssize in Sample Size.

Statistical Process Control Chapter

22

963

Control chart: rejects rejects UCL = .24 Center = .12 LCL = .00

0.25

Proportion nonconforming

0.20

0.15

0.10

0.05

0.00 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25

Sigma level: 3 FIG. 22.20 p Control chart on SPSS for the process in Example 22.3.

Example 22.4 From the data in Example 22.3, construct the np chart and check if the process is in control. Solution We have n ¼ 60 and p ¼ 0:1187, as calculated in the previous example. By applying Expression (22.34) of the control limits to np, we have: pffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffi UCL ¼ 60  0:1187 + 3 60  0:1187ð0:8813Þ ¼ 14:6350 CL ¼ 60  0:1187 ¼ 7:1200  pffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffi  LCL ¼ max 60  0:1187  3 60  0:1187ð0:8813Þ, 0 ¼ 0 Stata does not offer the np chart. Therefore, Example 22.4 will only be solved on SPSS. Solution by Using SPSS Open the file Example_22.3.sav. Constructing the np chart follows the same logic as the p chart. Once again, click on Analyze ! Quality Control ! Control Charts..., define the option p, np in Attribute Charts and the option Cases are subgroups in Data Organization. Once again, select the variables of interest, the sample size and, this time, click on the option np (Number of nonconforming) in Chart, as shown in Fig. 22.21. By clicking on OK, we obtain the np chart on SPSS, as shown in Fig. 22.22. Through Fig. 22.22, we can confirm that the process is in statistical control, since there are no points outside the control limits.

22.4.3 C Chart (Total Number of Defects per Unit) In many situations, in addition to classifying the product as conforming or nonconforming, we are also interested in counting the number of defects per unit inspected. Thus, while the p chart controls the number of defective units, the c chart assesses the number of defects per unit inspected. As examples of application, we can mention the number of stains

964

PART

VIII Other Topics

FIG. 22.21 Constructing the np chart on SPSS. Control chart: rejects rejects UCL = 14.64 Center = 7.12 LCL = .00

Number nonconforming

15

10

5

0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25

Sigma level: 3

FIG. 22.22 Result of the np chart on SPSS.

Statistical Process Control Chapter

22

965

on a piece of clothing, the number of scratches on a piece of glass, the number of defects per steel sheet, etc. This chart requires that the samples observed have a constant size. As presented in Section 5.3.7 in Chapter 5, consider a random variable X that represents the number of defects (k) in a certain unit of time, area, etc. Random variable X follows the Poisson distribution with parameter l 0, called X Poisson(l), and its probability function is given by: Pð X ¼ k Þ ¼

el lk , k ¼ 0,1, 2, … k!

(22.35)

In the Poisson distribution, the mean and the variance of X are represented by parameter l, that is, E(X) ¼ Var(X) ¼ l. Therefore, the c chart with 3s control limits can be specified as: pffiffiffi UCL ¼ l + 3 l (22.36) CL ¼ l pffiffiffi LCL ¼ l  3 l If the standard deviation is unknown, we have to use l as an estimate of l, which represents the average number of defects observed in the m samples in the units inspected. Each sample consists of n inspection units and li represents the number of defects in the i-th sample, such that: l¼ And the control limits of 22.36 are rewritten as:

m 1X l m i¼1 i

(22.37)

pffiffiffi UCL ¼ l + 3 l CL ¼ l pffiffiffi LCL ¼ l  3 l

(22.38)

If the lower control limit is negative, we use LCL ¼ ¼ 0. Example 22.5 An electrical appliance company wants to control the quantity of small, nonapparent defects in a certain coffee maker. For a sample with 30 coffee makers, the number of defects per coffee maker was computed, as shown in Table 22.E.6. Construct the c chart for these data.

TABLE 22.E.6 Number of Defects per Coffee Maker Coffee Maker Number

Defects per Coffee Maker

Coffee Maker Number

Defects per Coffee Maker

1

2

16

0

2

0

17

6

3

5

18

2

4

6

19

4

5

7

20

8

6

3

21

3

7

0

22

4

8

1

23

9

9

4

24

11

10

2

25

4

11

5

26

6

12

7

27

5 Continued

966

PART

VIII Other Topics

TABLE 22.E.6 Number of Defects per Coffee Maker—cont’d Coffee Maker Number

Defects per Coffee Maker

Coffee Maker Number

Defects per Coffee Maker

13

8

28

3

14

6

29

1

15

4

30

3

Solution For this example, each sample consists of a single inspection unit (n ¼ 1). The average number of defects observed in the 30 samples is given by: 129 ¼ 4:3 30 The control limits for l from Expression (22.38) can be specified as: pffiffiffiffiffiffiffi UCL ¼ 4:3 + 3 4:3 ¼ 10:5209 l¼

CL ¼ 4:3

 pffiffiffiffiffiffiffi  LCL ¼ max 4:3  3 4:3, 0 ¼ 0

Solution by Using Stata Software To construct the c chart on Stata, we have to use the following command: cchart defect_var unit_var [, cchart_options]

The data in Example 22.5 are available in the file Example_22.5.dta. The first variable, called sample, represents each one of the 30 samples being analyzed. The second column refers to the variable defects, which computes the total number of defects per coffee maker. Hence, the command to be typed to construct the c chart on Stata is: cchart defects sample

Fig. 22.23 shows the c chart obtained on Stata.

FIG. 22.23 C Chart on Stata for the process in Example 22.5.

Statistical Process Control Chapter

22

967

FIG. 22.24 Selecting the c chart on SPSS.

Solution by Using SPSS Open the file Example_22.5.sav. Constructing the c chart follows the same logic as the p and np charts. Once again, click on Analyze ! Quality Control ! Control Charts...; however, this time, define the option c, u in Attribute Charts and the option Cases are subgroups in Data Organization, as shown in Fig. 22.24. Once again, select the variables of interest, the sample size and click on the option c (Number of nonconformities) in Chart, as shown in Fig. 22.25. By clicking on OK, we obtain the c chart on SPSS, as shown in Fig. 22.26. Through Fig. 22.25, we can see that it is not necessary to select the variable sample in Subgroups Labeled by, since the sample size is constant and was specified as 30 in Sample Size. Fig. 22.26 shows that there is one point above the upper control limit, indicating that the process is not in statistical control.

22.4.4 U Chart (Average Number of Defects per Unit) This chart is an alternative to the c chart when the samples do not have the same size. It can also be used when the sample is made up of only one unit; however, it has several components that must be inspected as, for example, an engine. When the inspection of the product uses 100% of its production, the sample size per period usually varies, making it difficult to interpret the c chart. In this case, the u chart is an alternative. To construct the u chart, we have to select m samples. Consider li the number of defects and ni the number of units inspected in the i-th sample. For each sample i, the number of defects per unit inspected is given by: ui ¼

li ni

(22.39)

968

PART

VIII Other Topics

FIG. 22.25 Constructing the c chart on SPSS.

Control chart: defects defects UCL = 10.52 Center = 4.30 LCL = .00

12

Nonconformities

10

8

6

4

2

0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30

Sigma level: 3 FIG. 22.26 Result of the c chart on SPSS for the data in Example 22.5.

Statistical Process Control Chapter

22

969

The average number of defects per unit inspected is given by: m X li i¼1

u¼X m

(22.40) ni

i¼1

In the case of samples with constant sizes, the average number of defects per unit could also be calculated as The parameters of the u control charts can be specified as: rffiffiffiffi u UCL ¼ u + 3 ni CL ¼ u rffiffiffiffi u LCL ¼ u  3 ni

Pm

i¼1 ui =m.

(22.41)

If the lower control limit is negative, we have to use LCL ¼ 0. Example 22.6 A toy company wishes to control the number of small defects in 100% of a type of scooter it produces. Each day, they select the amount of scooters produced and compute the number of defects per sample, as shown in Table 22.E.7. Construct the u control chart to monitor the process.

TABLE 22.E.7 Number of Defects per Scooter Sample i

Sample Size (ni)

Defects per Sample (li)

ui 5 li/ni

1

200

240

1.20

2

250

300

1.20

3

200

220

1.10

4

250

260

1.04

5

300

360

1.20

6

300

360

1.20

7

200

270

1.35

8

250

300

1.20

9

300

300

1.00

10

300

330

1.10

11

250

280

1.12

12

200

260

1.30

13

250

320

1.28

14

300

342

1.14

15

300

310

1.03

16

250

310

1.24

17

250

370

1.48

18

300

460

1.53

19

250

270

1.08

20

200

290

1.45

Sum

5100

6152

970

PART

VIII Other Topics

Solution By using Expression (22.40), the average number of defects per scooter is: u¼

6152 ¼ 1:206 5100

Since the samples are not the same size, the control limits must be calculated for each sample by using Expression (22.41), as shown in Table 22.E.8.

TABLE 22.E.8 Calculating the Control Limits for Example 22.6 qffiffiffi u ni

qffiffiffi LCL 5 u  3 nu

Sample i

Sample Size (ni)

UCL 5 u + 3

1

200

1.439

0.973

2

250

1.415

0.998

3

200

1.439

0.973

4

250

1.415

0.998

5

300

1.397

1.016

6

300

1.397

1.016

7

200

1.439

0.973

8

250

1.415

0.998

9

300

1.397

1.016

10

300

1.397

1.016

11

250

1.415

0.998

12

200

1.439

0.973

13

250

1.415

0.998

14

300

1.397

1.016

15

300

1.397

1.016

16

250

1.415

0.998

17

250

1.415

0.998

18

300

1.397

1.016

19

250

1.415

0.998

20

200

1.439

0.973

i

The u chart will be generated by using SPSS and it is not available on Stata. Solution on SPSS Open the file Example_22.6.sav. Constructing the u chart follows the same logic as the c chart. Once again, click on Analyze ! Quality Control ! Control Charts..., choose the option c, u in Attribute Charts one more time, and the option Cases are subgroups in Data Organization, as shown in Fig. 22.24. Select the variables of interest and click on the option u (Nonconformities per unit) in Chart, as shown in Fig. 22.27. Notice that, different from the c chart, we must select the option Variable in Sample Size and insert the variable sample_size. By clicking on OK, we obtain the u chart on SPSS, as shown in Fig. 22.28. Fig. 22.28 suggests that the number of defects per scooter in sample 9 is below the lower control limit, while in samples 17, 18, and 20, the numbers are above the upper limits, indicating that the process is not in statistical control.

Statistical Process Control Chapter

22

971

FIG. 22.27 Constructing the u chart on SPSS.

Control chart: defects defects UCL Center = 1.21 LCL

1.6

Fraction of nonconformities

1.5

1.4

1.3

1.2

1.1

1.0

0.9 1

FIG. 22.28

2

3

4

5

6

7

8

9 10 11 12 13 14 15 16 17 18 19 20

Sigma level: 3 Result of the u chart on SPSS for the data in Example 22.6.

972

PART

22.5

VIII Other Topics

PROCESS CAPABILITY

The control charts described in Sections 22.3 and 22.4 are used to verify process adjustment and stability, indicating the presence or absence of special causes. This section discusses the capability of a process to produce conforming items, according to the specifications of the project. The capability of a process can be defined as its inherent capacity to produce identical items, for a long period of time and under certain conditions. Based on Montgomery (2013) and Gonc¸alez and Werner (2009), to measure process capability, we will study the main indexes: Cp, Cpk, Cpm, and Cpmk. These indexes compare the output of the real process to the specification limits for the quality characteristic analyzed, demonstrating if the process is manufacturing products within the specification range. To use these indexes, it is necessary for the process to be in statistical control.

22.5.1

Cp Index

The Cp index relates the allowed variability in the process (specified in the project) to the natural variability of the process, and it is calculated as: Cp ¼

UCL  LCL 6s

(22.42)

where: UCL: Upper Control Limit; LCL: Lower Control Limit; s: process standard deviation. In practice, the standard deviation of a process s is almost always unknown, so, it must be estimated. For a random sample of the process X1, X2, …, Xn, s can be estimated from the standard deviation of the sample (S). Conversely, when the control charts for variables are used in capability studies, s can be estimated from R=d2 or S. The values of d2 can be found in Table O in the Appendix. One of the limitations of the Cp index is that it only considers the process variability, ignoring its centralization (mean), which can result in incorrect conclusions as regards the process capability, since the process is not always centered on the mean. As a general rule, the larger the Cp index, the lower the probability that the quality characteristic will be outside the specifications, reducing the probability of having defective products, as long as the mean is centered on the nominal value of the specification. According to Montgomery (2013), the evaluation of the Cp index can be interpreted as:

22.5.2

Cpk Index

While the Cp index compares the total variation allowed by the specification to the total variation of the process, without any measurement regarding the process mean, the Cpk index calculates the distance of the process mean (m) from each one of the specification limits and chooses the smallest. If the process mean coincides with the nominal value of the specification, we have Cp ¼ Cpk. The calculation of Cpk is given by:   UCL  m m  LCL , (22.43) Cpk ¼ min 3s 3s where: UCL: Upper Control Limit; LCL: Lower Control Limit; m: process mean; s: process standard deviation. In practice, the process mean m and the standard deviation s are almost always unknown, so, they must be estimated. For a random sample of the process X1, X2, …, Xn, m and s can be estimated from X and S, respectively. Conversely, when the control charts for variables are used, m can be estimated from X̿ and s from R=d2 or S. Interpreting the Cpk index can be done in a similar way as the Cp index, as presented in Table 22.1.

Statistical Process Control Chapter

22

973

TABLE 22.1 Interpreting the Cp Index According to the Reference Intervals Value of Cp

Nonconforming Items

Interpretation

Cp < 1

Above 2700

Incapable process

1  Cp  1.33

From 64 to 2700

Acceptable process

Cp > 1.33

Below 64

Capable process

Source: Gonc¸alez, P.U., Werner, L., 2009. Comparac¸a˜o dos ´ındices de capacidade do processo para distribuic¸o˜es na˜o normais. Gesta˜o Produc¸a˜o 16 (1), 121–132.

Usually, if Cp ¼ Cpk, the process is centered on the specifications means, and when Cpk < Cp, the process is not centered on the mean (Montgomery, 2013).

22.5.3 Cpm and Cpmk Indexes Cpm and Cpmk are alternatives to Cp and Cpk, respectively, because, besides the variability allowed in the process, they consider the distance of the process mean from the nominal value of the specification. Cpm can be calculated as: Cpm ¼

UCL  LCL UCL  LCL ¼ qffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffi 6τ 6 s2 + ðm  T Þ 2

(22.44)

where: UCL: Upper Control Limit; LCL: Lower Control Limit; m: process mean; s: process standard deviation; T: nominal value of the specification. Analogous to the Cp index, an increase in the process variability increases the denominator of the Cpm index and, consequently, decreases its value. In addition to this, the larger the distance of the process mean from the nominal value of the specification, the smaller the Cpm will be. While Cpm considers in its numerator only the variability allowed to the process, Cpmk considers the smallest distance between the process mean and the specification limits, analogous to indexes Cp and Cpk, respectively. The calculation of Cpmk is given by: 9 8 > >

= < UCL  m m  LCL UCL  m m  LCL (22.45) , ¼ min qffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffi , qffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffi Cpmk ¼ min > 3τ 3τ ; :3 s2 + ðm  T Þ2 3 s2 + ðm  T Þ2 > where: UCL: Upper Control Limit; LCL: Lower Control Limit; m: process mean; s: process standard deviation; T: nominal value of the specification. Indexes Cpm and Cpmk coincide with indexes Cp and Cpk, respectively, when m ¼ T, and diminish as m gets farther away from T. Analogously, for a random sample of the process X1, X2, …, Xn, the mean m and the standard deviation s of indexes Cpm and Cpmk can be estimated from X and S, respectively. When the control charts for variables are used, m can be estimated from X̿ and s from R=d2 or S.

974

PART

VIII Other Topics

Example 22.7 For the data in Example 22.1, determine the percentage of nonconforming items, calculate indexes Cp, Cpk, Cpm, and Cpmk, and interpret the results for the following specification limits and nominal values: a) LCL ¼ 13 mm, UCL ¼ 16 mm and T ¼ 14.5. b) LCL ¼ 12 mm, UCL ¼ 15 mm and T ¼ 13.5. Solution To construct the X and R control charts in Example 22.1, the mean of the sample means and the mean of the sample ranges were calculated: X̿ ¼ 14:5417 R ¼ 0:9872 Thus, to calculate the indexes, we will use X̿ and R=d2 as estimators of m and s, respectively. Through Table O in the Appendix, we obtain the value of constant d2 ¼ 2.326 for n ¼ 5. a) LCL ¼ 13 mm, UCL ¼ 16 mm and T ¼ 14.5. Based on the data found in Table 22.E.1, we can see that there are no items outside the specifications limits. Indexes Cp, Cpk, Cpm, and Cpmk can be calculated as: UCL  LCL 16  13 3 ¼ ¼  ¼ 1:178 6s 6  0:9872=2:326 6 R=d2     UCL  m m  LCL 16  14:54 14:54  13 Cpk ¼ min , ¼ min , ¼ 1:145 3s 3s 3  0:9872=2:326 3  0:9872=2:326 Cp ¼

UCL  LCL 16  13 Cpm ¼ qffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffi ¼ qffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffi ¼ 1:172 2 6 s2 + ðm  T Þ 6 ð0:9872=2:326Þ2 + ð14:54  14:5Þ2 8 > <

9 > = 16  14:54 14:54  13 qffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffi , qffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffi ¼ 1:140 Cpmk ¼ min > :3 ð0:9872=2:326Þ2 + ð14:54  14:5Þ2 3 ð0:9872=2:326Þ2 + ð14:54  14:5Þ2 > ; From the estimated mean of the process and the specification limits, we notice that the process is centered on the specifications mean. This can also be proven from the indexes calculated, since Cp ffi Cpk and Cpm ffi Cpmk. We can also see that Cp ffi Cpm and Cpk ffi Cpmk, since the process mean is much closer to the nominal value of the specification (m ffi T). Since 1  Cp  1.33, the process is classified as acceptable. The same interpretation is valid for the other indexes. b) LCL ¼ 12 mm, UCL ¼ 15 mm, and T ¼ 13.5. Based on the data found in Table 22.E.1, we can see that 22.4% of the items are outside the specifications limits (above the upper specification limit). The calculations of the indexes are: 15  12 3 ¼ ¼ 1:178 Cp ¼  6  0:9872=2:326 6 R=d2   15  14:54 14:54  12 Cpk ¼ min , ¼ 0:360 3  0:9872=2:326 3  0:9872=2:326 15  12 Cpm ¼ qffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffi ¼ 0:445 6 ð0:9872=2:326Þ2 + ð14:54  13:5Þ2 8 > <

9 > = 15  14:54 14:54  12 qffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffi , qffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffi ¼ 0:136 Cpmk ¼ min > :3 ð0:9872=2:326Þ2 + ð14:54  13:5Þ2 3 ð0:9872=2:326Þ2 + ð14:54  13:5Þ2 > ; Different from the previous case, the process is not centered on the specifications mean. This can also be proven from the calculated indexes, since Cpk < Cp and Cpmk < Cpm. Since the Cp index only considers the process variability, its value did not change, leading to incorrect interpretations. We can also see that Cpm < Cp and Cpmk < Cpk, since the process mean differs from the nominal value of the specification (m 6¼ T).

Statistical Process Control Chapter

22

975

The process is classified as incapable. Solution Through SPSS Software The data are available in the file Example_22.1.sav. Initially, we must follow the same steps for constructing the X and R control charts presented in Example 22.1. Once again, click on Analyze ! Quality Control ! Control Charts..., define the option X-bar, R, s in Variables Charts and the option Cases are subgroups in Data Organization, select the variables of interest and click on the options X-bar using range and Display R chart (optional) in Charts, as shown in Figs. 22.5, 22.6, and 22.7. On Statistics..., define the specification limits: Upper, Lower and Target, select the desired Process Capability Indices (CP, CpK, and CpM). In addition,

FIG. 22.29 Calculation of the process capability indexes (case a) on SPSS.

FIG. 22.30 Calculation of the process capability indexes (case b) on SPSS.

976

PART

VIII Other Topics

FIG. 22.31 Process capability statistics (case a) on SPSS.

Process Statistics Capability Indices

CPa

1.178 a

CpK

1.145

CpMa,b

1.172

The normal distribution is assumed. LSL = 13 and USL = 16. a. The estimated capability sigma is based on the mean of the sample group ranges. b. The target value is 14.5.

FIG. 22.32 Process capability statistics (case b) on SPSS.

Process Statistics Capability Indices

CPa

1.178

CpKa a,b

CpM

.360 .445

The normal distribution is assumed. LSL = 12 and USL = 15. a. The estimated capability sigma is based on the mean of the sample group ranges. b. The target value is 13.5.

select the option Estimate using R-bar in Capability Sigma, as shown in Figs. 22.29 and 22.30. For case (a), the following specification limits were used: Upper (16), Lower (13), and Target (14.5), in accordance with Fig. 22.29. On the other hand, for case (b), the specification limits are: Upper (15), Lower (12), and Target (13.5), as shown in Fig. 22.30. To conclude, click on Continue and OK. Notice that SPSS does not provide the Cpkm index. The results for each case can be seen in Figs. 22.31 and 22.32. We will not present the calculation of the capability indexes on Stata for this example. Since Stata only uses the standard deviation S as an estimator of s, it does not offer the option R=d2 .

Example 22.8 Regarding Example 22.2, the process specifications are 8.82 0.66. Determine the percentage of items that do not meet the specifications of the process. Obtain and interpret the indexes Cp, Cpk, Cpm, and Cpmk. Solution Based on Table 22.E.3, we can see that 7 of the 80 observations (8.75%) are outside the specifications limits. To construct the X and S control charts in Example 22.2, the mean of the sample means and the mean of the sample standard deviation were calculated: X̿ ¼ 8:8574 S ¼ 0:1822 that will be the estimators of m and s, respectively, to calculate the indexes Cp, Cpk, Cpm, and Cpmk. We have UCL ¼ 8.82 + 0.66 ¼ 9.48 and LCL ¼ 8.82 - 0.66 ¼ 8.16. Therefore, indexes Cp, Cpk, Cpm, and Cpmk can be calculated as: UCL  LCL 9:48  8:16 ¼ ¼ 1:2077 6s 6  0:18     UCL  m m  LCL 9:48  8:86 8:86  8:16 Cpk ¼ min , ¼ min , ¼ 1:1394 3s 3s 3  0:18 3  0:18 Cp ¼

Statistical Process Control Chapter

22

977

UCL  LCL 9:48  8:16 Cpm ¼ qffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffi ¼ qffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffi ¼ 1:1831 2 6 s2 + ðm  T Þ 6 0:182 + ð8:86  8:82Þ2 8 > <

9 8 9 > > > = < = UCL  m m  LCL 9:48  8:86 8:86  8:16 qffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffi , qffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffi ¼ min qffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffi , qffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffi ¼ 1:1161 Cpmk ¼ min > > :3 s2 + ðm  T Þ2 3 s2 + ðm  T Þ2 > ; :3 0:182 + ð8:86  8:82Þ2 3 0:182 + ð8:86  8:82Þ2 > ; Indexes Cp and Cpk, in addition to indexes Cpm and Cpmk, are relatively near, indicating that the process mean is relatively close to the center of the specification limits. We can also see that Cp ffi Cpm and Cpk ffi Cpmk, since the process mean is much closer to the specification target value (m ffi T). Since 1  Cp  1.33, the process is classified as acceptable. The same interpretation is valid for the other indexes. Example 22.8 will be solved on Stata, since it uses the standard deviation S as an estimator of s to calculate the capability indexes. However, it only provides the calculation of indexes Cp and Cpk. Even though SPSS also offers the estimation option using the S, its results are different when compared to the indexes above and to the results obtained on Stata. Solution by Using Stata Software To calculate indexes Cp and Cpk on Stata, we have to use the following command: pciest mean sd, f(#) s(#)

where mean and sd are the estimates of m and s, respectively. On the other hand, f(#) and s(#) correspond to the lower and upper specification limits, respectively. It is not necessary to open the file Example_22.2.dta to execute the command; however, we need to specify the function values. The command to be typed is, therefore: pciest 8.857375 0.182157, f(8.16) s(9.48)

whose results can be seen in Fig. 22.33.

LSL

=

8.1600

USL

=

9.4800

Cp

=

1.2077

Cpk

=

1.1394

(LSL_USL)/2

=

8.8200

(USL–LSL)/6

=

0.2200

Mean

=

8.8574

Std Dev

=

0.1822

p

=

0.0004

Yield (%)

=

99.9620

FIG. 22.33 Results of indexes Cp and Cpk in Example 22.8 on Stata.

22.6 FINAL REMARKS Statistical Process Control (SPC) is made up of a set of tools whose main objective is to measure, monitor, control, and improve process quality. Control charts are an important SPC tool that monitor process variability throughout time. Control charts can be divided into two major groups: control charts for variables, in which the quality characteristic is measured in a quantitative scale, and control charts for attributes, in which the quality characteristic is measured in a qualitative scale. Choosing the control chart must consider the size of the observations, how often the observations are collected, and the types of data collected in the process. Despite the most common applications of control charts being in factories, more specifically in the control of processes, control charts are also being applied to monitor several businesses, including the control of sales forecasts, risks, financial planning, etc. (Carvalho, 2012).

978

22.7

PART

VIII Other Topics

EXERCISES

1) When producing ethanol from sugarcane, the quality characteristic to be evaluated is the percentage of sucrose in the sugarcane juice, whose specification limits vary between 15 and 18%. Hence, 20 samples were collected, each one of them with 4 observations, as shown in Table 22.2. The data are also available in the files Sucrose.sav and Sucrose.dta. The time interval between the samples is 45 minutes. We would like you to: a) Determine the control limits for the mean and for the range, and check if the process is in control. b) Calculate indexes Cp, Cpk, Cpm, and Cpkm and interpret the results. TABLE 22.2 Measurements of Sucrose in the Samples (%) Measurements Sample

m1

m2

m3

m4

1

16.25

16.96

15.27

15.36

2

15.22

15.68

14.78

15.43

3

16.32

16.20

16.88

16.74

4

15.54

16.31

16.87

16.12

5

16.57

16.93

17.14

17.50

6

17.66

17.87

17.98

18.11

7

17.14

17.64

17.85

17.02

8

16.32

16.64

15.11

15.54

9

15.22

16.24

16.54

15.67

10

16.01

16.47

16.69

17.22

11

17.25

17.44

17.69

17.98

12

15.24

15.98

16.51

17.12

13

15.69

16.87

16.51

15.02

14

15.39

14.88

15.94

16.12

15

15.27

15.69

16.33

15.87

16

16.88

17.17

17.68

18.12

17

17.25

17.09

17.36

16.47

18

16.85

17.31

17.26

17.84

19

17.12

17.39

17.83

16.14

20

15.19

15.24

15.87

16.68

2) Once again consider the data from the previous exercise. We would like you to: a) Determine the control limits for the mean and for the standard deviation, and check if the process is in control. b) Recalculate indexes Cp and Cpk using S as an estimator of s, and interpret the results. 3) When producing beer, we use cereal grains and yeast as raw materials. The quality characteristic analyzed is the width of the yeast whose specification limits vary between 5 and 7 mm. Table 22.3 shows the data from 20 samples, each one of them with 4 observations. The data are also available in the files Yeast.sav and Yeast.dta. We would like you to: a) Determine the control limits by using the X and R charts, and interpret the results. b) Calculate indexes Cp, Cpk, Cpm, and Cpkm and interpret the results.

Statistical Process Control Chapter

22

979

TABLE 22.3 Width of the Yeast in mm Measurements Sample

m1

m2

m3

m4

1

5.12

5.64

5.87

6.11

2

6.44

6.98

7.14

6.24

3

6.51

6.87

6.10

5.87

4

5.54

5.68

5.98

5.14

5

5.14

5.87

5.66

6.24

6

6.32

6.57

6.98

6.17

7

5.54

5.14

5.98

4.98

8

5.12

5.67

5.99

6.20

9

6.13

6.88

6.94

7.01

10

5.56

6.12

5.66

6.25

11

6.59

5.25

5.75

6.44

12

5.88

5.74

5.96

6.34

13

6.14

6.87

6.93

5.87

14

5.50

5.64

5.78

6.50

15

5.66

5.98

6.24

6.32

16

6.54

6.98

7.13

5.89

17

5.21

5.11

5.66

5.74

18

5.74

5.89

5.66

6.31

19

5.89

5.99

6.47

6.25

20

6.11

6.28

6.55

6.87

4) Once again consider the data from the previous exercise. We would like you to: a) Determine the control limits by using the X and S charts, and interpret the results. b) Recalculate indexes Cp and Cpk using S as an estimator of s, and interpret the results. 5) The data shown in Table 22.4 refer to the number of defective products in each one of the 25 samples collected, size 50. The time interval between the samples is 2 hours. Calculate the control limits and check if the process is in statistical control. TABLE 22.4 Number of Defective Products in Each Sample Sample Number

Number of Defective Items

1

4

2

6

3

3

4

7

5

3

6

2

7

1

8

4

9

5 Continued

980

PART

VIII Other Topics

TABLE 22.4 Number of Defective Products in Each Sample—cont’d Sample Number

Number of Defective Items

10

3

11

2

12

6

13

2

14

4

15

2

16

3

17

4

18

6

19

5

20

3

21

2

22

1

23

1

24

2

25

4

6) From the data in the previous example, construct the np chart and check if the process is in control. 7) A toy company wishes to control the number of small defects in a certain type of bicycle. For a sample with 40 bicycles, the number of defects per bicycle was computed, as shown in Table 22.5. Construct the most suitable control chart and check if the process is in control.

TABLE 22.5 Number of Defects per Bicycle Bicycle

Defects per Bicycle

Bicycle

Defects per Bicycle

1

8

21

6

2

6

22

7

3

4

23

6

4

5

24

5

5

7

25

8

6

0

26

7

7

6

27

4

8

4

28

3

9

7

29

6

10

5

30

9

11

9

31

2

12

0

32

0

13

7

33

1

14

5

34

7

Statistical Process Control Chapter

22

981

TABLE 22.5 Number of Defects per Bicycle—cont’d Bicycle

Defects per Bicycle

Bicycle

Defects per Bicycle

15

6

35

5

16

3

36

4

17

8

37

6

18

5

38

8

19

6

39

3

20

5

40

4

8) An electrical appliance company wants to control the quantity of small defects in all of its production of a certain vacuum cleaner. Every hour, the amount of vacuum cleaners produced is selected and the number of defects per sample is computed, as shown in Table 22.6. Construct the most suitable control chart and check if the process is in control. TABLE 22.6 Number of Defects per Vacuum Cleaner Sample i

Sample Size

Defects per Sample

1

30

35

2

24

31

3

37

40

4

22

19

5

27

32

6

26

15

7

30

42

8

21

27

9

25

48

10

36

42

11

41

54

12

38

39

13

47

62

14

36

27

15

29

25

16

34

39

17

40

43

18

40

49

19

37

38

20

36

39

21

34

41

22

33

43

23

51

50

24

44

49