Robut control charts (rcc) in the rQCC package
Abstract
In this note, we provide a brief summary of variables control charts and a description of how they are constructed using the rcc function in the robust quality control chart (rQCC) R package. Using rcc function, one can construct the traditional Shewhart-type variables control charts. In addition, using various robust location and scale estimates provided by the rQCC package, one can easily obtain robust alternatives to the traditional charts.
1 Introduction
Control charts, also known as Shewhart control charts [1, 2, 3], have been widely used to monitor whether a manufacturing process is in a proper state of control or not. The traditional Shewhart-type control charts are made up of the upper control limit (UCL), the center line (CL) and the lower control limit (LCL) and they have the form of , where the American Standard is based on with a target false alarm rate of 0.027% and the British Standard is based on with a target false alarm rate of 0.020%. The UCL is given by and the LCL is .
In what follows, we provide how to construct the traditional Shewhart-type control charts and robust alternatives to them using various robust location and scale estimates provided by the rQCC package. In this note, we assume that we have samples and that each sample has the same sample size of . Let be the th sample (subgroup) from a stable manufacturing process, where and . We also assume that are independent and identically distributed as normal with mean and variance . The , and notations here follow the definitions in ASTM (STP 15-C) [4] and ASTM (STP 15-D) [5].
2 The chart
In order to construct the control limits, we consider the relation
Since and , we have
Then the control limits for the chart with the sample size are given by
where . In practice, the values of the parameters, and , are not known. Thus, with the estimates and , we have
| (1) | ||||
Thus, we need to estimate and by using each sample and then pooling these estimates. Using the th sample above, the sample mean and variance are given by
where . Then we can estimate using all the samples as below:
Note that it is easily seen that is unbiased for . However, is not unbiased for since , where
Thus, is unbiased for . Then we can easily show that is unbiased for , where
Thus, by substituting and into (1), we have the control limits
where .
It is also known that
where is the sample range from and
For more details on , one can refer to the vignette below.
> vignette("factors.cc", package="rQCC")
Then, with the th sample, is unbiased for , where
Then, with the samples, is unbiased for , where
Substituting and into (1), we have the control limits
where .
As alternatives to the above, we can use robust estimates of location and scale. For example, using the median, we can estimate
where
One can also consider estimating based on the conventional MAD (median absolute deviation) given by
where and . Here is needed to make this estimator Fisher-consistent [6] for the standard deviation under the normal distribution. For more details, see the references [7, 8]. It should be noted that the above conventional MAD estimator is Fisher-consistent but not unbiased. The “unbiased MAD” (uMAD) with a finite sample is developed by Park, Kim and Wang [8] and implemented in the rQCC package (see mad.unbiased function).
Then, with the samples, we have the robust unbiased estimate of as follows
where
The rcc function constructs the control charts based on various unbiased estimates. For example, with the median and uMAD estimates, one can obtain the control limits using the following
> rcc(data, loc="median", scale="mad")
Another way of constructing the control limits is to use the Hodges-Lehmann [9] for location and Shamos [10] for scale which are respectively given by
| and | ||||
where is needed to make Shamos estimator Fisher-consistent for the standard deviation under the normal distribution [11]. For the Hodges-Lehmann estimate, the median is obtained by three ways: (i) the pairwise averages with (denoted by HL1), (ii) the pairwise averages with (HL2), and (iii) all the pairwise averages (HL3). For more details, refer to [8]. It should be noted that the above Shamos is Fisher-consistent but not unbiased. The Hodges-Lehmann and “unbiased Shamos” are also developed by [8] and implemented in R (see HL and shamos.unbiased). For example, with the HL2 and unbiased Shamos estimates, one can obtain the control limits as below.
> rcc(data, loc="HL2", scale="shamos")
As shown above, by choosing the options for loc and scale, one can construct various control charts.
3 The chart
In order to construct the control limits, we can consider the relation
Since and , we have
The control limits for the chart are given by
where
Since is unknown in practice, we need to choose an appropriate unbiased estimate for . One can consider . Then we have
where and .
To obtain the robustness property, one can consider a robust estimate of . For example, the unbiased MAD or unbiased Shamos estimates of can be used as seen before. The limits for the chart are calculated using the rcc function with type="S" as below.
> rcc(data, scale="mad", type="S")
> rcc(data, scale="shamos", type="S")
4 The chart
We consider the relation
Since and , we have
The control limits for the chart are given by
where
Since is unknown in practice, we need to choose an appropriate unbiased estimate for . One can consider . Then we have
where and . These limits are easily calculated using the rcc function as below.
> rcc(data, scale="range", type="R")
As afore-mentioned, we can consider a robust estimate of . For example, the control limits with the unbiased Shamos are calculated as below.
> rcc(data, scale="shamos", type="R")
References
- [1] (1926) Quality control charts. Bell Systems Technical Journal, pp. 593–603. Cited by: §1.
- [2] (1927) Quality control. Bell Systems Technical Journal, pp. 722–735. Cited by: §1.
- [3] (1931) Economic control of quality of manufactured product. Van Nostrand Reinhold, Princeton, NJ. Note: Republished in 1981 by the American Society for Quality Control, Milwaukee, WI Cited by: §1.
- [4] (1951) ASTM manual on quality control of materials (STP 15-C). ASTM Special Technical Publication (STP) 15-C, American Society for Testing and Materials, Philadelphia, PA. Cited by: §1.
- [5] (1976) Manual on presentation of data and control chart analysis (STP 15-D). ASTM Special Technical Publication (STP) 15-D, 4th edition, American Society for Testing and Materials, Philadelphia, PA. Cited by: §1.
- [6] (1922) On the mathematical foundations of theoretical statistics. Philosophical Transactions of the Royal Society of London. Series A, Containing Papers of a Mathematical or Physical Character 222, pp. 309–368. Cited by: §2.
- [7] (1986) Robust statistics: the approach based on influence functions. John Wiley & Sons, New York. Cited by: §2.
- [8] (2022) Investigation of finite-sample properties of robust location and scale estimators. Communication in Statistics – Simulation and Computation 51 (5), pp. 2619–2645. Cited by: §2, §2.
- [9] (1963) Estimates of location based on rank tests. Annals of Mathematical Statistics 34, pp. 598–611. Cited by: §2.
- [10] (1976) Geometry and statistics: problems at the interface. In Algorithms and Complexity: New Directions and Recent Results, J. F. Traub (Ed.), pp. 251–280. Cited by: §2.
- [11] (2011) Large sample behaviour of some well-known robust estimators under long-range dependence. Statistics 45, pp. 59–71. Cited by: §2.