A variable sampling plan based on the coefficient of variation for lots resubmission

This study focuses on the issue of lots resubmission in inspection processes, which often arises when the initial inspection of a lot is suspected, marked as held, or not accepted. To address this problem, a novel variables sampling plan based on the coefficient of variation is proposed. The objective is to determine the sampling plan parameters that minimize the average sample number while satisfying the two-points of operating characteristic curve. Practical considerations are taken into account by providing tabulated values for the inspection sample size and acceptance criteria of the proposed plan. These tables incorporate various combinations of quality levels, considering commonly used producer's risk and consumer's risk. Furthermore, a comparative analysis between the proposed plan and a single sampling plan is conducted to highlight the advantages of the new approach. To illustrate the practical implementation of the proposed plan, an example is presented.

The acceptance sampling plan is an important tool used in quality control for the disposition of the manufactured lots or a sequence of lots, which aims to decide the acceptance or rejection of one lot instead of determining the quality of one lot 1 .The acceptance sampling plan gives the required sample size and judgment standard for lot disposition while reaching an agreement regarding the specific quality levels and risks between the producer and the purchaser.As the disposition of the lot is based upon the sampling theory, two types of errors are unavoidable, called Type-I error and Type-II error.Type-I error is the producer's risk resulting in the rejection of good lots and is denoted as α-risk.On the other hand, Type-II error is the purchaser's risk resulting in the acceptance of bad lots and also denoted as β-risk.For both the two parties, the producer wishes to lower the risk of rejecting a good lot while the purchaser desires to lower the risk of accepting a bad lot.Therefore, a well-designed sampling plan should be able to effectively reduce the gap between the required quality level and the actual quality level supplied.For this purpose, the design of an acceptance sampling plan is usually based on the two-points of the operating characteristic curve (OC curve).
Depending on the property of quality characteristics, an acceptance sampling plan can be divided into two types, attributes sampling plan and variables sampling plan.An attributes sampling plan is used for quality characteristics expressed on a "go, no-go" basis while a variable sampling plan is used for quality characteristics measured as a numerical value.Compared with the attributes sampling plan, a variable sampling plan provides a smaller sample size to attain the same protection for producer and purchaser as well as giving more information about lots.Consequently, variable sampling plan attracts more and more attention from industries today.However, the traditional variable sampling plan does not cope with the lot sentencing effectively when the proportion defective in the process is very low.To overcome the defect, many authors have proposed variable sampling plans based on process capability indices (PCIs) for lot inspection.Pearn and Wu used the one-sided process capability indices (C pu and C pl ) and C pm to design the single sampling plan, respectively 2,3 .Pearn and Wu developed a single sampling plan based on C pk 4 .Wu and Pearn proposed a single sampling plan based on C pmk 5 .Yen and Chang used L e to develop a single sampling plan 6 .By extending the research 6 , Aslam et al. developed the repetitive sampling plan based on L e 7 and proposed the two-stage sampling plan based on L e 8 .Aslam et al. designed the repetitive group sampling plan based on C pk 9 .Aslam et al. developed the multiple dependent state repetitive sampling plan with process loss function L e 10 .Yen et al. firstly proposed the exponential weighted moving average (EWMA) method to develop the sampling plan based on the process yield index S pk 11 .Wu and Liu used the yield index S pk to design the single sampling plan 12 .Aslam et al. used the multiple dependent state method to build the sampling plan based on L e which considers the qualities of the current lot and preceding lots 13 .Wu et al. also used multiple dependent state method to develop the sampling plan based on C pk 14 .Yen et al. used the one-sided process capability indices (C pu and C pl ) to develop the repetitive sampling plan 15 .More information about PCI-based sampling can be seen in three references 12,16,17 .
There are three kinds of sampling plans that may have different numbers of sampling for lot sentencing, including the single, double, and multiple sampling plans.In a single sampling plan, the information obtained from one single sample is used to make a decision of accepting or rejecting the lot.Double sampling provides an extra opportunity to make a decision of acceptance or rejection of the lot if the decision regarding the lot could not be reached based on the information from the first sample.The multiple sampling plan is just an extension of the double sampling plan.Among them, the single sampling plan is most popularly used due to its simplicity in management.In most situations, we would decide to accept or reject the lot based on the information obtained from the single sample.However, resubmitting lots may occur after examination by the producer once a lot is not accepted based on a single sample.For example, the producer may argue the results of the first sample so that the same number of units resampled may be implemented under the regulations of the contract or statues 18 .In addition, to sustain the good partnership between the vendor and buyer, the resampling is often permitted for lots non-accepted on the original inspection.As mentioned, in certain countries, tax on products is assessed based on a sample result and if the producer does not agree with the result, a second sample result will be used 18 .Govindaraju and Ganesalingam developed a method of an attributes sampling plan for resubmitted lots which examined the situation where resampling is permitted for lots not accepted on original inspection 18 .For the issue of resubmitted lots, some researchers have used quality induces to develop the resubmitted sampling plans for lot sentencing [19][20][21][22][23][24][25] .
In specific cases, we may be more concerned with the stability of products so that the existing resubmitted sampling plans cannot be applied adequately.Take the tensile strength of steel, for example, the stability of tensile strength may be more important than the average tensile strength for enterprises who construct the buildings since the superstructure would be propped up well if the tensile strength of steel used is consistent.In addition, there are some situations in which the targeted quality characteristics have different units of measurement, which lead to the difficulty of comparison for such quality characteristics.For addressing such a situation, researchers used the relatively dimensionless measure CV, defined as the ratio of the standard deviation to the mean, to compare the different magnitudes of data sets.During recent years, the CV has attracted many researchers to engage in research on quality control [26][27][28][29][30][31][32] .By exploring the literature and best of the authors' knowledge, the resubmitted sampling plans based on a CV are not proposed yet.Therefore, we attempt to develop a variables sampling plan based on a CV when resampling is permitted for lots non-accepted on the original inspection.The rest of the paper is organized as follows: a resubmitted sampling plan based on the CV is provided in "A sampling plan based on the CV for resubmitted lots" section.In "Determination of plan parameters" section the determination of the plan parameters is described.Discussion and analysis are made in "Discussion and analysis" section.In "An application example in industry" section, a practical example is presented to illustrate the proposed methodology.Finally, conclusions and recommendations are given in the last section.

Coefficient of variation
The coefficient of variation is a dimensionless number, which considers the spread of data relative to the central location.It is usually used to measure the consistency of data sets with different units or widely different means.Due to the properties of this index, it has been widely applied in many practical applications of quality control, such as reliability, control chart, acceptance sampling plan, and so on.CV is the ratio of the standard deviation to the mean, defined as where µ is the mean, and σ is the standard deviation.In reality, the parameter CV is almost unknown so we have to use the sample statistic to estimate it.In order to estimate the CV, we consider the following natural estimator where X is the sample mean, and S is the sample standard deviation.Given the assumption that the data follows the normal distribution with mean µ and standard deviation σ , Iglewicz et al. showed that the statistic √ n/ ∧ CV is distributed as a non-central t distribution with n-1 degrees of freedom and a non-central parameter √ n/CV , denoted as t n−1,

The proposed methodology
Govindaraju and Ganesalingam 18 first developed an attribute sampling plan for resubmitted lots, which permits the resampling to be executed for lots not accepted on the original inspection.Referring to this methodology, we propose a resubmitted sampling plan based on CV, whose operation procedure is stated as follows: Step 1: Take a random sample of size n from the lot and compute the estimated value of CV, where k is the acceptance value under-sampling inspection.Otherwise, resubmit the lot and go to Step 1. www.nature.com/scientificreports/ Step 3: On non-acceptance in Step 2, apply the plan m times and reject the lot if it is not accepted on (m − 1) st resubmission.
As 18 stated, the eventual acceptance probability of resubmitted sampling plan can be expressed as where P a (p) is the probability of accepting a lot with proportion defective p for a single inspection.Also, the ASN with proportion defective p is written as Referring to Eq. ( 1)-( 2), the eventual acceptance probability and ASN of the resubmitted sampling plan based on a CV can be written respectively as and where P a (CV ) is the probability of accepting a lot with a coefficient of variation CV for a single inspection, which can be expressed as Commonly, an acceptance sampling plan is designed based on the principle of two points on the OC curve.By minimizing the ASN while satisfying the two designated points ( CV AQL ,1 − α ) and ( CV LTPD ,β ), the resubmitted sampling plan based on a CV can be built as Subject to where CV AQL and CV LTPD are acceptable quality level and lot tolerance percent defective for CV respectively, and α and β are the producer's risk and buyer's risk respectively.

Determination of plan parameters
For practical purpose, we provide the corresponding sample size required and acceptance value for the resubmitted sampling plan, with commonly used producer's risk, buyer's risk, and quality levels of coefficient of variation.Using the above-mentioned Eqs. ( 3)-( 8), we write the SAS-Language code program to find the parameters of the proposed plan for different levels of risks and quality levels.Tables 1, 2, 3, 4 display (n, k, ASN) values for ( α,β) = (0.05, 0.1), (0.1, 0.05), (0.05, 0.05) and (0.1, 0.1), with some quality levels of L AQL CV AQL and L LTPD CV LTPD .Referring to the parameters of the proposed plan in Tables 1, 2, 3, 4, the practitioners can determine the number of production items to be sampled and the corresponding critical values.For example, if the number of resampling permitted is 1, the benchmarking quality level ( L AQL CV AQL , L LTPD CV LTPD ) is set to (0.06, 0.08) with producer's α-risk = 0.05 and buyer's β-risk = 0.10, then the corresponding sample size, critical value, and ASN for the resubmitted sampling plan are 40, 0.0649 and 68.67, respectively.This implies that the lot will be accepted if the 40 items yield measurements with ∧ CV < 0.0649 .Otherwise, resubmission is allowed once if the lot is not accepted on original inspection and the lot will be rejected if the resubmission is also not accepted.On the other hand, if we permit the number of resampling to be 2 given all other conditions are the same as the above, then the corresponding sample size and critical value for the resubmitted sampling plan are 34, 0.0619 and 83.72, respectively.This implies the consumer allows resubmissions twice in the case of non-acceptance on the submitted sample of size 34, and reject the lot if two resubmissions with the same sample size are not accepted.
From the results in Tables 1, 2, 3, 4, we can observe that for fixed m, α-risk and β-risk, the required sample size becomes smaller when the difference between the values of L AQL CV AQL and L LTPD CV LTPD becomes larger.This reason can be explained that it will be easier for us to make the correct judgment of lots because of a larger difference in agreed quality levels.Also, the required sample size would have an increasing trend while the stipulated risks become smaller.This phenomenon can be explained that if we expect that the chance of wrongly accepting bad lots or rejecting good lots is smaller, then we need to get more sample information to judge the lots.Furthermore, it can be seen that the required sample size becomes smaller and the corresponding critical

Discussion and analysis
In this section, we investigate the behaviors of the proposed plan and make a comparison with the existing CV-based sampling plans through OC curve and ASN curve.The OC curves of the proposed sampling plan for m = 2, 3, the CV-based single sampling plan 34 , two stage sampling plan 35 and repetitive group sampling plan 36 are depicted in Figs. 1 and 2, which consider the combinations of risks and quality levels for ( L AQL CV AQL ,L LTPD CV LTPD ) = (0.05, 0.06) with ( α,β) = (0.05, 0.1) and (0.1, 0.05), and ( L AQL CV AQL ,L LTPD CV LTPD ) = (0.05, 0.07) with ( α,β) = (0.05, 0.1) and (0.1, 0.05), respectively.From these graphs, we can see that the shapes of OC curves are very similar, which indicates that all sampling plans seem to have almost the same discriminatory power for lots.Nevertheless, we still can use the corresponding acceptance probabilities of one lot under various quality levels to compare the performance of these sampling plans.Tables 5, 6, 7, 8 display the corresponding acceptance probabilities of one lot under various quality levels for different CV-based sampling plans.For one lot with good quality levels (CV is below CV AQL ), the proposed plan performs the best, followed by a single sampling plan and two stage sampling plan, and the repetitive sampling plan is the least.On the other hand, for one lot with bad quality levels (CV is above CV LTPD ), two stage sampling plan performs the best, followed by a single sampling plan and the proposed plan, and the repetitive sampling plan is the least.Therefore, the proposed plan and two stage sampling plan can generally be thought of as having better performances on the discrimination of lot quality than the other two sampling plans.
In addition, the ASN curves of the proposed resubmitted sampling plan, CV-based single sampling plan 34 , two stage sampling plan 35 and repetitive group sampling plan 36 for quality levels (CV AQL , CV LTPD ) = (0.05, 0.06), and (0.05,0.07) are plotted in Figs. 3 and 4, respectively.From the appearances of ASN curves, we can observe the following results: 1.The ASN curves have the same trend for all combinations of risks and quality levels.2. The resubmitted sampling plan would need more sample size as the value of CV becomes larger while the resubmitted sampling just needs less sample size as the value of CV decreases.This phenomenon is reasonable because those lots judged as not acceptable have to be resampled even if the original inspection displayed evidence of poor quality.www.nature.com/scientificreports/ 3.For lots with good quality levels, the resubmitted sampling plan with m = 3 needs less sample size to reach lot sentencing than that of the resubmitted sampling plan with m = 2. On the other hand, for lots with bad quality levels, the resubmitted sampling plan with m = 2 needs less sample size to reach lot sentencing than that of the resubmitted sampling plan with m = 3. 4. For lots with good quality levels and bad quality levels, two stage and repetitive sampling plans just need less sample size to reach lot sentencing.Instead, when one lot with general quality level (about between CV AQL and CV LTPD ), two stage and repetitive sampling plans need a larger sample size to reach lot sentencing.

An application example in industry
To illustrate how the proposed methodology can be applied to the actual situation of lot inspection, one example of a milk bottling plant is presented.In milk bottling plants, there are several sizes of containers for the installation of milk.For the wholesalers who receive the goods shipped from the milk bottling plants, the volume of milk in containers is a critical characteristic.Owing to their long-term purchasing, they may be more concerned with the stability of volume for one batch of milk than the average volume for one batch of milk since the users who drink usually care about the consistency of products.Because of the different sizes of containers, the volumes of milk usually have a standard deviation proportional to the mean.To build the united criteria for various containers, the CV index can be regarded as a suitable tool for the evaluation of stability.More applications of sampling plans can be seen in [37][38][39][40][41] .By virtue of the extended partnership between plants and wholesalers, the wholesalers are willing to adopt the resubmitted sampling plan which permits the resampling to be executed for lots non-accepted.Suppose a particular type of container fitting milk is investigated, and the specification limits of the volume are LSL = 290 mL and USL = 310 mL.In the contract approved by the two parties, the quality level of L AQL CV AQL and L LTPD CV LTPD are set to 0.05 and 0.07 with the α = 0.05 and β = 0.10, and the times of resampling permitted is two (that is, m = 3).By looking up Table 1, we can find the parameters of the resubmitted sampling plan are (n, k) = (26, 0.0519), which implies that the lot will be accepted if 26 items yield measurements with ∧ CV < 0.0519, and the consumer will allow resubmissions twice in the case of non-acceptance on the submitted sample, and will reject the lot if two resubmissions with the same sample size is still not accepted.
Twenty-six observations are randomly taken from the lot as shown in Table 9.We depict the normal probability plot of sample data and use the p-value to test if the sample data obeys a normal distribution through  CV is larger than 0.0519, this lot is not accepted and a new sample of size 26 should be fur- ther inspected.The observed measurements of the resubmitted samples are shown in Table 10. Figure 6 depicts the normal probability plot of the new sample data.From the graph and p-value, it is concluded that the new sample data obey the normal distribution.The statistics from the resubmitted sample are Since the value of ∧ CV is less than 0.0519, this lot would be accepted.

Conclusions
The CV considers the degree of a standard deviation relative to the mean, which is used as a measure of variability for circumstances when the standard deviation is proportional to the mean or measurements are made in different units.In this paper, a new sampling plan based on the coefficient of variation for the resubmitted lot is developed.For the discriminatory power of lot, the proposed plan and the existing single sampling plan based on a CV are almost the same.However, the proposed plan would need less sample size when the quality of the submitted lot is good in comparison to that of the existing single sampling plan based on a CV.Therefore, the proposed resubmitted sampling plan could be recommended for lots with higher quality levels of CV as well as dealing with the demand for resubmitted lots.It is suggested that further research can be extended for the resubmitted sampling plan with non-normal distribution consideration.

Figure 5 .
Figure 5.The normal probability plot for 26 containers fitting milk (original sample data).

Figure 6 .
Figure 6.The normal probability plot for 26 containers fitting milk (resubmitted sample data).

Table 1 .
The parameters of the proposed plan for risks, α = 0.05 and β = 0.1.

Table 2 .
The parameters of the proposed plan for risks, α = 0.1 and β = 0.05.
Vol:.(1234567890) Scientific Reports | (2023) 13:22986 | https://doi.org/10.1038/s41598-023-50498-2www.nature.com/scientificreports/Minitab software, which is shown in Fig. 5.The StDev, N and AD of the upper right side in the Figure represent the standard deviation, number of observations and Anderson-Darling statistic, respectively.From the graph and p-value, we can conclude that the sample data follows the normal distribution.Based on these observations, we can obtain X = 306.9677,SA = 17.03986, and

Table 3 .
The parameters of the proposed plan for risks, α = 0.05 and β = 0.05.

Table 4 .
36e parameters of the proposed plan for risks, α = 0.1 and β = 0.1.The OC curves for three plans with L AQL CV AQL = 0.05 and L LTPD CV LTPD = 0.06 .Note m = 2, m = 3 means the proposed method.Single means single sampling plan based on CV (proposed by Tong and Chen34).Two stage means two stage sampling plan based on CV (proposed by Yan et al.35).Repetitive means repetitive group sampling plan based on CV (proposed by Yan et al.36).

Table 5 .
36e corresponding acceptance probabilities of lot under various quality levels for (CV AQL , CV LTPD ) = (0.05, 0.06) with ( α,β) = (0.05, 0.1).Significance values are in bold.m = 2, m = 3 means the proposed method.Single means single sampling plan based on CV (proposed by Tong and Chen 34 ).Two stage means two stage sampling plan based on CV (proposed by Yan et al.35).Repetitive means repetitive group sampling plan based on CV (proposed by Yan et al.36).

Table 6 .
36e corresponding acceptance probabilities of lot under various quality levels for (CV AQL , CV LTPD ) = (0.05, 0.06) with ( α,β) = (0.1, 0.05).Significance values are in bold.m = 2, m = 3 means the proposed method.Single means single sampling plan based on CV (proposed by Tong and Chen 34 ).Two stage means two stage sampling plan based on CV (proposed by Yan et al.35).Repetitive means repetitive group sampling plan based on CV (proposed by Yan et al.36).

Table 7 .
36e corresponding acceptance probabilities of lot under various quality levels for (CV AQL , CV LTPD ) = (0.05, 0.07) with ( α,β) = (0.05, 0.1).Significance values are in bold.m = 2, m = 3 means the proposed method.Single means single sampling plan based on CV (proposed by Tong and Chen 34 ).Two stage means two stage sampling plan based on CV (proposed by Yan et al.35).Repetitive means repetitive group sampling plan based on CV (proposed by Yan et al.36).

Table 8 .
36e corresponding acceptance probabilities of lot under various quality levels for (CV AQL , CV LTPD ) = (0.05, 0.07) with ( α,β) = (0.1, 0.05).Significance values are in bold.m = 2, m = 3 means the proposed method.Single means single sampling plan based on CV (proposed by Tong and Chen 34 ).Two stage means two stage sampling plan based on CV (proposed by Yan et al.35).Repetitive means repetitive group sampling plan based on CV (proposed by Yan et al.36).

Table 9 .
The volume of 26 containers fitting milk (original sample data).

Table 10 .
The volume of 26 containers fitting milk (resubmitted sample data).