American Journal of Mathematics and Statistics

p-ISSN: 2162-948X    e-ISSN: 2162-8475

2014;  4(4): 195-203

doi:10.5923/j.ajms.20140404.04

Statistical Project of Control Chart with Variable Sample Size and Interval

R. C. Leoni1, N. A. S. Sampaio2, R. C. M. Tavora2, J. W. J. Silva2, 3, R. B. Ribeiro3

1Universidade Estadual Paulista, UNESP, Guaratinguetá, SP, Brazil

2Associação Educacional Dom Bosco, AEDB, Resende, RJ, Brazil

3Faculdades Integradas Teresa D’Ávila, FATEA, Lorena, SP, Brazil

Correspondence to: J. W. J. Silva, Associação Educacional Dom Bosco, AEDB, Resende, RJ, Brazil.

Email:

Copyright © 2014 Scientific & Academic Publishing. All Rights Reserved.

Abstract

Control charts with adaptive schemes are tools used to monitor processes and to signal the presence of special causes. However, the use of adaptive schemes is not common yet because they are topics rarely covered in textbooks and are not available in traditional software used for statistical analysis. This work aims to present how to plan and estimate the optimal parameters of an adaptive chart for monitoring the mean of a process using sample size and variable interval ((X_bar-VSSI). The X_bar-VSSI chart was chosen because it is a scheme with great potential for practical application, for the chart only requires knowledge of the sample size and the time between sample selections after established the optimal parameters for the chart. Markov chains were used to evaluate the chart performance based on the average time between the instant when the process changes and the moment when the chart signals the condition out of control. It is presented two functions written in R language to assist the user in planning a statistical project based on the X_bar-VSSI adaptive scheme.

Keywords: Statistical process control, Adaptive charts, Markov chains, R language

Cite this paper: R. C. Leoni, N. A. S. Sampaio, R. C. M. Tavora, J. W. J. Silva, R. B. Ribeiro, Statistical Project of Control Chart with Variable Sample Size and Interval, American Journal of Mathematics and Statistics, Vol. 4 No. 4, 2014, pp. 195-203. doi: 10.5923/j.ajms.20140404.04.

1. Introduction

Control charts are used to monitor the production process in order to signal deviations from the target value of a quality characteristic that one wants to monitor. Detection of small or moderate deviations by traditional charts proposed by Shewhart [1] is slow, that is why several charts have been proposed. Some authors introduced the adaptive control charts which are called this way because they do not present all their fixed parameters. Construction of this kind of chart provides that at least one of its parameters may vary and it can be: the control limits, the sample size and the time interval in which a sample is collected. For instance, consider the chart of adaptive control in which vary the sample size and the time interval in which a sample is collected. In this scheme, according to information obtained by the most recent sample, one can modify the size and collect interval of next sample.
Designing a control chart to use in practice, involves elaboration of a sampling plan by means of specification of sample size and time interval between removal of samples, and calculation of control limits. The mechanism which involves determination of limits distance of chart control at centerline is closely related to statistical testing of hypothesis. Extending the control limits decreases the risk of monitored statistics to be located beyond the control limits, with the adjusted process (error type I). However, extending the boundaries increases the risk of monitored statistic being located within the control limits when the process is out of adjustment, known as error type II [2]. In adaptive control charts, it is common to use Markov chains to evaluate the performance of chart according to the set of chosen parameters [3, 4, 5]. In order to assess the statistical properties, it is used the subjacent idea of dividing the variation interval of monitored statistic on a finite set of status. The transient statuses of the chain are located in the control region of chart and the absorbing status in the region established as out of control.
The adaptive charts are not available in traditional statistical softwares, despite showing better performance than the charts with fixed parameters. Determination of adaptive parameters is not a trivial task, therefore, this paper proposes the use of a free software to plan and estimate the optimal parameters of an adaptive chart for with variable sample size and interval (). The average number of samples until the moment in which the chart indicates the out of control condition (ARL) and the average time between the instant at which the process is changed and the time when the chart indicates the out of control condition (ATS) are performance measures used as reference to parameters choice.
The chart was chosen because it is a scheme with great potential for practical application, for the chart requires only knowledge of sample size and the time among samples selection after established the optimal parameters. The statistical properties of control chart are optimized considering the approach presented by Zimmer [4], ie, a Markov chain is used to establish the parameters keeping statistical risks type I and type II under control. The rest of the paper is organized as follows: section 2 presents the c control chart. In section 3, it is described the procedure to evaluate the performance of a chart using Markov chains.

2. The Control Chart

Reynolds [6] was the first to consider the adaptive design of control chart by varying the time interval in which a sample is collected. Then there appeared a large number of papers for the purpose of varying the other control chart parameters, being proven that this technique generally increases the chart power in detection of special causes just modifying the quality characteristic average (variable) that is desired to monitor [7-10]. The control chart is adaptive with respect to the sample size and time interval at which a sample is collected. This chart was used by Prabhu [11, 12], Costa [3] and Park [9] to monitor a process statistics.
In a control chart with sample size and interval variables (see Figure 1), the sample size and the time interval in which a sample is collected can vary according to the information provided by the most recent sample collected. In this chart type, random samples of different sizes are collected at variable intervals of length according to the function:
(1)
where i = 1,2, ..., is the sample number; is the size of the ith sample; is the time performed to remove the ith sample; k and w are limits that define control regions; is control statistics calculated by:
(2)
Where is the sample mean of the ith subgroup; and are the mean and standard deviation of the process when in control.
The choice between the pairs depends on the position of the last point marked on the chart. For a chart , one can divide the control region in three mutually exclusive and exhaustive regions, as follows (see Figure 1):
Figure 1. The control chart
• Region within the alarm limits: .
• Region between the limits for alarm and control: .
• Region outside the control limits: .
If the statistic falls within the region , the control (or inspection) is relaxed using the pair , otherwise if the current point lies within the region, the control will be tighter by using the pair .

3. The Performance of the Control Chart

The statistical performance of a control chart can be evaluated by calculating the ARL and ATS statistics. Depending on the process operation conditions, one has the ARL when the process is in control (ARL0), that is, the expected number of samples between two successive false alarms and the ARL for process out of control (ARLδ), which represents the expected number of samples between the occurrence of special cause which alters the monitored parameter and signal triggered by the chart. Similarly, one has the ATS when the process is in control (ATS0), representing the average time between two successive false alarms and ATS for process out of control (ATSδ), representing the expected time between the occurrence of special cause and the signal triggered by the chart.
It is possible to calculate the ARL and ATS statistics using Markov chains. One observes the expected number of transitions before the monitored statistic lies in the absorbing state of the chain. The Markov chain proposed in Zimmer [4] was used in this study to assess the ARL in control and out of control, ARL0 and ARLδ, respectively. Each transition probability is calculated as the probability of the statistic falls within one of the regions of the control range (, or ). In this chain, there are two transient states and one absorbing state that corresponds to the process out of control.
The state transition matrix of chain that represents the operation of process in control, , can be divided into four sub-matrices:
(3)
Where is the transition matrix between transient states; is the transition matrix from transient states to the absorbing state; 0 is the matrix that states the impossibility of going from an absorbing state to a transient state, and I is the identity matrix.
In a Markov chain, the element (i, j) of the matrix represents the average number of visits to the j transient state before reaching the absorbing state, given that the process started at the i state. Each control transition probability is calculated as the probability of a point of monitored statistic falls within one of the regions of the control range. Therefore, the average number of samples between two successive false alarms is calculated by:
(4)
where is a vector with initial probabilities; I is the identity matrix; is a unit vector and is a transition matrix obtained by:
(5)
Where denotes the standard normal cumulative function; K and w are the limits that define the region of the chart control.
The average time that the chart can produce a false alarm is:
(6)
where {h} is a vector with the sampling intervals.
The transition matrix of the process running out of control is given by:
(7)
In order to calculate the performance measures and it is used:
(8)
And
(9)
being the transition matrix given by:
(10)
where:
;
.
The vector with initial probabilities is defined according to the initial conditions of operation in the process:
(11)
In this paper, it is considered the condition known as Steady-State, ie, it is assumed that the process starts in control and at some future instant, it occurs a special issue that causes a shift at the target value of monitored statistic.
Planning a control chart can be formalized as an optimization problem in which the decision variables are the parameters of the chart. Figure 2 illustrates the objective function and constraints that define the best set of parameters of the chart.
Figure 2. Objective function and constraints for the parameters of the control chart
In Figure 2, and are the sample sizes; and are the time intervals between samples collection; w and k are control limits of the chart; is the displacement degree of occurred in the average of the process; is the mean time between two successive false alarms; is the expected value of the collected sample size with the process in control; is the expected time to collect a sample with the process in control and is the quantity of parts (a piece, a component, etc.) which can be inspected per time unit considered in .
In order to illustrate that the optimization problem is reduced to find the pair (n1,n2) that minimizes the objective function, consider without generality loss that the time unit (for example: 1 hour, 0.5 hour and etc.) and ARL0 = 370.4. Thus, AT S0 = ARL0 = 370.4 and k = 3.
The expected value of the sample size with the process in control, , is given by:
(12)
A pair of samples is selected; since , and k are known, w can be inferred directly from the expression (12).
The shortest range of optimal sampling () is given by:
(13)
where is the amount of parts (a piece, a component, etc.) which can be inspected per unit of considered time . For example, if given that hour, it is assumed that it is possible to inspect 60 parts every hour. For more details, see Celano [13, 14].
Once defined h0, h1, w and k, h2 is obtained by means of the expected time to collect a sample:
(14)
The optimization problem is finally reduced to finding the pair which minimizes the objective function. The next section presents an application example of how to plan an optimal statistical project that shows which values for the pair should be used. For this, it has been used the R software [15] to obtain the optimal parameters of a chart.

4. Example

In this section, it is proposed two functions (see Appendix) developed for use in R environment that evaluate the performance of the control chart and solve the optimization problem shown in Figure 2. The R is a free software that allows the user to add functionality, making it flexible to generate statistical analyzes and receive contributions of many researchers through specific packages which are freely available in a central repository called CRAN (Comprehensive R Archive Network). The R can be obtained directly on the Internet at: http://www.r-project.org.
The first function, called VSSI, evaluates the performance of the control chart calculating the when supplied by the user: n1, n2, n0,delta (), h0 andr_insp.
The second function, VSSI.optimum, solves the optimization problem shown in Figure 2. Here it is necessary to provide: n0,delta (), h0,r_insp and a value for nmax which is referred to the largest size of admissible sample to collect.
In order to illustrate the use of functions, consider the example presented in Costa [16]. A packaging line has an average value of milk 1000 ml and standard deviation estimated to be 4.32 ml. Monitoring is performed in the process average by inspecting samples of size n0 = 5 at each time unit. Suppose that this unit is equal to h0=1 hour. In this example, the parameters planned for the control chart are fixed, ie, the sample size, the sampling interval and limits do not change after estimated. To use the control chart in the example shown it is necessary to calculate the control limits (w and k) and the sampling scheme and . Choosing , keeping ; ; ARL0 = 370.3983; ho = 1 hour (60 min.) and r_insp = 60, the VSSI function provides the parameters shown in Figure 3.
In this example, means that the process average went from (in control) to (out of control).
Consider the case in which . Figure 4 illustrates the results obtained with the VSSI function. It is observed that the ATS is lower ( ), because, when major shifts in the process mean occur, the performance of the chart is better.
However, anoptimal scheme to monitor this process is what performs best, ie the lowest . By means of the VSSI.optimum function, one can obtain the parameters that minimize the . Figure 5 shows the best schemes for the cases shown in Figures 3 and 4.
In this case, the user who wants to control the average value of a process considering the possibility of a displacement presented here, just build the control chart with the parameters shown in Figure 5. Additional charts can be constructed easily by modifying the input values of VSSI and VSSI.optimum functions.
Figure 3. Parameters obtained with the function VSSI (n1=2, n2=8, n0_FSR=5, delta=1, ARL0=370.3983, h0=60, r_insp=60). Note h0 should be put in minutes
Figure 4. Parameters obtained with the function VSSI (n1=2, n2=8, n0_FSR=5, delta=2, ARL0=370.3983, h0=60, r_insp=60)
Figure 5. Parameters obtained with the function VSSI. otimum (n0_FSR, delta, ARL0, h0, r_insp, nmax)

5. Conclusions

It was presented in this paper the way how one evaluates the effectiveness of the control chart of by means of Markov chains and mainly how to obtain the parameters that minimize the ATS. For this, two functions written in the language for R environmental were created with the purpose of solving the optimization problem that involves minimizing the ATS and presentation of the best parameters to be used in creation and use of the control chart. Adaptive schemes are more efficient than the known schemes of control charts with fixed parameters. However, the use of adaptive schemes for control charts is not common in practice, since the traditional statistical software present no routines for these types of charts. Thus, with the programs presented here, the user has a tool in which it is able to plan the use of control chart to monitor the average value of a desired quality characteristic.
It is suggested that future works present, with the support of the R software, how to plan statistical projects for control charts with adaptive schemes for other statistics such as standard deviation and sampling amplitude.

Appendix - Source Code to Evaluate the Performance and Choosing an Optimal Statistical Project for the Control Chart - VSSI in the R Environment

It is presented below two functions called VSSI and VSSI.optimum. To use them, just copy them into the R environment and follow the application example.

References

[1]  W. A. Shewhart, Economic control of quality of manufactured product, 1st Ed., NewYork: D. Van Nostrand Company, 1931.
[2]  R. C. Leoni, A. F. B. Costa, O ambiente R como proposta de apoio ao ensino no monitoramento de processos, Pesquisa Operacional para o Desenvolvimento, 4(1), 83-96(2012).
[3]  A. F. B. Costa, charts with variable sample size and sampling intervals, Journal of Quality Technology, 29, 197-204(1997).
[4]  L. S. Zimmer, D.C. Montgomery, G.C. Runger, Guidelines for the application of adaptive control charting schemes, International Journal of Production Research, 38(9), 1977-1992, (2000).
[5]  A. Faraz, E. Saniga, A unification and some corrections to Markov chain approaches to develop variable ratio sampling scheme control charts, Statistical Papers, 52(4), 799-811, (2011).
[6]  M. R. Jr. Reynolds, J.C. Arnold, J. A. Nachlas, charts with variable sampling intervals, Technometrics, 30, 181-192, (1988).
[7]  D. S. Bai, K. T. Lee, An economic design of variable sampling interval control chart, International journal of production economics, 54, 57- 64, (1998).
[8]  C. Park, M. R. Jr. Reynolds, Economic design of a variable sample size X chart, Communications in statistics – simulation and computation, 23, 467- 483, (1994).
[9]  C. Park, M. R. Jr. Reynolds, Economic design of a variable sampling rate chart, Journal of Quality Technology, 31, 427-443, (1999).
[10]  M. S. Magalhães, E. K. Epprecht, A. F. B. Costa, Economic design of a Vp chart, International Journal of Production Economics, 74, 191-200, (2001).
[11]  S. S. Prabhu, D. C. Montgomery, G. C. Runger, A combined adaptive sample size and sampling interval control scheme, Journal of Quality Technology, 26, 164-176, (1994).
[12]  S. S. Prabhu, D. C. Montgomery, G. C. Runger, Economic-statistical design of an adaptive chart, International Journal of Production Economics, 49, 1-15, (1997).
[13]  G. Celano, Robust design of adaptive control charts for manual manufacturing/inspection workstations, Journal of Applied Statistics, 36(2), 181-203,(2009).
[14]  G. Celano, On the constrained economic design of control charts: a literature review, Prod. vol. 21 no.2 São Paulo Apr./June 2011 Epub Mar 04, 223-234, (2011).
[15]  R Development Core Team (2011), R: A language and environment for statistical computing, R Foundation for Statistical Computing, Vienna, Austria. ISBN 3-900051-07-0, URL http://www.R-project.org/.
[16]  A. F. B. Costa, E. K. Epprecht, L. C. R. Carpinetti, Controle Estatístico de Qualidade, São Paulo, Atlas, (2008).
[17]  A. F. B. Costa, charts with variable sample size, Journal of Quality Technology, 26, 155-163, (1994).
[18]  A. F. B. Costa, charts with variable parameters, Journal of Quality Technology, 31, 408-416, (1999).