Next Article in Journal
A Probe into a (2 + 1)-Dimensional Combined Cosmological Model in f(R, T) Gravity
Next Article in Special Issue
Amoud Class for Hazard-Based and Odds-Based Regression Models: Application to Oncology Studies
Previous Article in Journal
A Fractional-Order SIR-C Cyber Rumor Propagation Prediction Model with a Clarification Mechanism
Previous Article in Special Issue
Testing Multivariate Normality Based on t-Representative Points
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Enhanced Lot Acceptance Testing Based on Defect Counts and Posterior Odds Ratios

by
Arturo J. Fernández
Departamento de Matemáticas, Estadística e Investigación Operativa and Instituto de Matemáticas y Aplicaciones (IMAULL), Universidad de La Laguna (ULL), 38071 Tenerife, Canary Islands, Spain
Axioms 2022, 11(11), 604; https://doi.org/10.3390/axioms11110604
Submission received: 21 September 2022 / Revised: 26 October 2022 / Accepted: 27 October 2022 / Published: 29 October 2022
(This article belongs to the Special Issue Computational Statistics & Data Analysis)

Abstract

:
Optimal defects-per-unit test plans based on posterior odds ratios are developed for the disposition of product lots. The number of nonconformities per unit is modeled by the Conway–Maxwell–Poisson distribution rather than the typical Poisson model. In essence, a submitted batch is conforming if its posterior acceptability is sufficiently large. First, a useful approximation of the optimal test plan is derived in closed form using the asymptotic normality of the log ratio. A mixed-integer nonlinear programming problem is then solved via Monte Carlo simulation to find the smallest number of inspected items per lot and the maximum tolerable posterior odds ratio. The methodology is applied to the manufacturing of paper and glass. The suggested sampling plan for lot sentencing provides the specified protections to both manufacturers and customers and minimizes the needed sample size. In terms of inspection effort and accuracy, the proposed approach is virtually an advantageous extension of the classical frequentist perspective. In many practical cases, it yields more precise assessments of the current consumer and producer risks, as well as more realistic decision rules.

1. Introduction

Sampling inspection plans for lot acceptance are often designed in industry to suitably discriminate between satisfactory and unsatisfactory batches. In essence, the construction of the best decision rule for lot disposition can be stated as a constrained optimization problem. Generally, proper acceptance test plans must provide the desired protections to both customers and manufacturers, and the required number of items to be sampled should be as small as possible. Many test plans are available in the literature for sentencing lots of incoming or outgoing goods. Papers [1,2,3,4,5,6,7,8,9,10,11,12,13,14] are just a sample of recent references.
The number of minor defects (or nonconformities) per unit is sometimes the quality characteristic of interest; for example, when the inspected units are metal, linoleum, glass, paper or plastic. In such cases, the Poisson model is commonly used for analyzing the observed sample. For instance, Fernández [15] adopted Poisson models to describe the number of blemishes per sheet in inspecting paper. In these situations, the Poisson parameter, λ , is precisely the defect rate per sampled unit. Moreover, the number of events in a specific time period is often modeled by a Poisson distribution. In particular, many studies assume that the stochastic demands follow that distribution; see, e.g., [16,17,18,19,20].
The mean and variance of a Poisson distributed variable are both equal to λ , which could be too restrictive in practice. Evidently, the Poisson distribution is not suitable for fitting dispersed data. Due to this reason, Fernández [21] considers the Conway–Maxwell–Poisson (CMP) distribution with centering parameter λ and dispersion parameter d for modeling the defect count data. The CMP law with parameter ( λ , d ) is a generalization of the Poisson distribution, where d can reflect under- ( d > 1 ) , equi- ( d = 1 ) and over-dispersion ( 0 d < 1 ) . Conway and Maxwell [22] introduced this distribution for modeling queuing systems with state-dependent service rates. Samuel et al. [23] studied some statistical and probabilistic properties of the CMP law. An extensive survey of procedures and applications of this model in a wide diversity of areas, including numerous references, can be found in Sellers et al. [24]. Other interesting papers are Francis et al. [25], Zhu [26] and Santarelli et al. [27].
In many practical situations, the combination of available empirical information with a previous objective and subjective knowledge appreciably improves the efficiency of the inferential methods; see, e.g., [28,29,30,31,32,33,34,35,36,37,38]. The presence of prior information is common in most manufacturing processes. In such cases, the incorporation of earlier inspection results and subjective expert opinions is frequently advantageous in acceptance sampling. Fernández [21] studied the construction of acceptance test plans for CMP models using exclusively sample information. In contrast, this paper deals with the determination of optimal lot inspection schemes based on dispersed defect count data and prior knowledge. A constrained minimization problem is solved via Monte Carlo simulation to determine the optimal inspection scheme. The proposed sampling plan provides the demanded protections to both consumers and producers and minimizes the needed sample size. Essentially, a submitted lot is accepted whenever its posterior lot acceptability is large enough. The suggested Bayesian approach is an appealing alternative to the typical frequency-based perspective in terms of accuracy and inspection effort. Controlling the Bayesian risks allows the practitioners to ensure that the rejected and accepted lots are, in fact, rejectable and acceptable at the required confidence levels.
The rest of this paper is structured as follows. Section 2 presents the posterior odds ratio criterion for lot sentencing based on dispersed defect count data and prior information. The design of sampling plans with controlled Bayesian consumer and producer risks and minimum sample size is developed in Section 3. A mixed-integer nonlinear programming problem is formulated in order to find the best inspection scheme. Then, explicit approximations of the Bayesian risks and the optimal plan are deduced in Section 4 by using the asymptotic normality of the test statistic. Next, Section 5 introduces a Monte Carlo simulation approach to calculate the optimal scheme, which is applied in Section 6 to the manufacturing of paper and glass. Finally, Section 7 offers some concluding remarks.

2. Posterior Odds Ratio Testing

A random variable X is said to follow the CMP probability model with parameter ( λ , d ) Θ , which is denoted by X C M P ( λ , d ) , if its probability mass function is given by
f ( x ; λ , d ) = Pr ( X = x λ , d ) = λ x / ( x ! ) d Z ( λ , d ) , x N * ,
where N * denotes the set of nonnegative integers,
Z ( λ , d ) = i = 0 λ i ( i ! ) d ,
and Θ = 0 , × 0 , ( 0 , 1 ) × 0 is the parameter space.
Clearly, the i-th moment of the random variable X C M P ( λ , d ) is given by
E [ X i λ , d ] = x = 0 x i λ x ( x ! ) d Z ( λ , d ) , i N ,
where N represents the set of natural numbers. Hence, the mean and variance of X can be expressed as
μ = E [ X λ , d ] and σ 2 = V [ X λ , d ] = E [ X 2 λ , d ] { E [ X λ , d ] } 2 .
Consider that in a certain production process, the number X of minor defects or nonconformities detected in a given item follows the C M P ( λ , d ) distribution and also that a large batch of products has been submitted to determine its acceptability. In addition, the experimental information is contained in a simple random sample X = ( X 1 , , X n ) of size n from the variable X C M P ( λ , d ) , where X i represents the number of imperfections observed in the i-th inspected item from the lot for i = 1 , , n .
The manufacturer assumes that the C M P ( λ 0 , d 0 ) distribution is an acceptable model for X , whereas the customer supposes that the C M P ( λ 1 , d 1 ) distribution is rejectable, where E [ X λ 0 , d 0 ] is less than E [ X λ 1 , d 1 ] . In other words, the manufacturer considers that the null hypothesis H 0 : ( λ , d ) = ( λ 0 , d 0 ) is admissible, while the customer specifies the alternative hypothesis H 1 : ( λ , d ) = ( λ 1 , d 1 ) . In short, ( λ 0 , d 0 ) is the acceptable parameter and ( λ 1 , d 1 ) is the unacceptable one.
In Bayesian hypothesis testing, the null hypothesis H 0 is accepted whenever its posterior probability Pr ( H 0 X ) is large enough. Obviously, it is needed to estimate prior probabilities for H 0 and H 1 before applying Bayes’ theorem. Suppose that p 0 = Pr ( H 0 ) is a numerical value in the interval ( 0 , 1 ) representing the decision-maker’s prior level of credibility in the acceptability of the submitted batch based on available expert opinions and previous data. Hence, Pr ( H 1 ) = 1 p 0 and r = ( 1 p 0 ) / p 0 is the prior odds ratio in favor of H 1 versus H 0 .
The submitted lot would be accepted by the Bayesian test whenever the posterior odds ratio of H 1 against H 0 given X , which is defined as Pr ( H 1 X ) / Pr ( H 0 X ) , is small enough. In our situation, the posterior odds ratio R n R n ( X ) based on the available data X is given by
R n = r i = 1 n f ( X i ; λ 1 , d 1 ) f ( X i ; λ 0 , d 0 ) = r ( λ 1 / λ 0 ) U n exp { ( d 0 d 1 ) V n } { Z ( λ 1 , d 1 ) / Z ( λ 0 , d 0 ) } n ,
where U n = i = 1 n X i and V n = i = 1 n log ( X i ! ) . Since the log ratio is given by
log ( R n ) = T n + log ( r ) + n log { Z ( λ 0 , d 0 ) / Z ( λ 1 , d 1 ) } ,
where T n = U n log ( λ 1 / λ 0 ) + ( d 0 d 1 ) V n , it is clear that the posterior odds ratio test would accept H 0 if and only if the test statistic T n is at most the so-called acceptance constant c , i.e., the batch is accepted whenever T n c . The test statistic T n is based on the sufficient statistic ( U n , V n ) , which captures all relevant information in the data.
The acceptance sampling plan ( n , c ) based on the posterior odds ratio criterion can be summarized as follows: Step 1: At random, select n items from the submitted batch. Step 2: Count the number of minor defects in n items, X 1 , , X n , and calculate U n = i = 1 n X i and V n = i = 1 n log ( X i ! ) . Step 3: Compute the value of the test statistic T n = U n log ( λ 1 / λ 0 ) + ( d 0 d 1 ) V n . Step 4: Accept the batch if T n c , and reject it otherwise.
Assuming that Y = X log ( λ 1 / λ 0 ) + ( d 0 d 1 ) log ( X ) with X C M P ( λ , d ) , it is derived from the central limit theorem that ( T n n q ) / ( s n ) converges in law to a standard normal random variable Z N ( 0 , 1 ) as n , where q = E [ Y λ , d ] and s 2 = V [ Y λ , d ] are the mean and variance of Y , respectively. Consequently, the test statistic T n is approximately normally N ( n q , n s 2 ) distributed when n is large enough.
It should be noted that the posterior lot acceptability Pr ( H 0 X ) , which represents the conditional degree of belief in H 0 given the observed sample X , and the posterior odds ratio R n may be revised in light of additional subjective and objective information.

3. Design of Lot Acceptance Sampling Plans

Sampling inspection schemes for lot acceptance purposes are usually designed in industrial quality control to minimize the needed sample size for lot judgment while ensuring that the so-called producer and consumer risks are sufficiently small; say, at most, α and β , respectively, where 0 < α , β < 0.5 . An agreement between the manufacturer and the customer is commonly assumed on the choices of the prior probabilities of the hypotheses, H 0 and H 1 , the acceptable and unacceptable CMP parameters, λ 0 , d 0 and λ 1 , d 1 , and the maximum allowable Bayesian producer and consumer risks, α and β , respectively.
Essentially, the Bayesian consumer risk is the probability that an accepted batch has an unacceptable quality level, whereas the Bayesian producer risk is the probability that a rejected batch has an acceptable quality level. These risks provide the assurance that practitioners typically require. The manufacturer wants a small maximum probability α that H 0 is true when the lot is rejected, while the consumer desires a small maximum probability β that H 0 is false when the batch is accepted.
In our situation, the Bayesian producer and consumer risks associated with the inspection scheme n , c can be expressed as
Pr ( H 0 T n > c ) and Pr ( H 1 T n c ) ,
respectively. Based on Bayes’ theorem, the Bayesian producer risk is defined as
Pr ( H 0 T n > c ) = p 0 Pr ( T n > c λ 0 , d 0 ) Pr ( T n > c ) ,
where
Pr ( T n > c ) = p 0 Pr ( T n > c λ 0 , d 0 ) + ( 1 p 0 ) Pr ( T n > c λ 1 , d 1 ) ,
whereas the Bayesian consumer risk is given by
Pr ( H 1 T n c ) = ( 1 p 0 ) Pr ( T n c λ 1 , d 1 ) 1 Pr ( T n > c ) .
Equivalently, in terms of the prior odds ratio r , the Bayesian risks can be expressed as
Pr ( H 0 T n > c ) = 1 + r Pr ( T n > c λ 1 , d 1 ) Pr ( T n > c λ 0 , d 0 ) 1
and
Pr ( H 1 T n c ) = 1 + Pr ( T n c λ 0 , d 0 ) r Pr ( T n c λ 1 , d 1 ) 1 .
A suitable Bayesian inspection scheme ( n , c ) must satisfy the requirements
Pr ( H 0 T n > c ) α and Pr ( H 1 T n c ) β .
It is assumed that α < p 0 and β < 1 p 0 because it is natural to consider that Pr ( H 0 T n > c ) < Pr ( H 0 ) and Pr ( H 1 T n c ) < Pr ( H 1 ) . That is, biased tests are not admissible. The optimal inspection scheme ( n * , c * ) would then be the test plan with a minimal sample size that simultaneously satisfies the conditions (1). The constrained minimization problem to determine the required number of items to test, n * , and the optimal acceptance constant, c * , is a mixed-integer nonlinear programming problem, which can be stated as
Minimize n Subject to Pr ( H 0 T n > c ) α , Pr ( H 1 T n c ) β , n N , c R ,
where R = ( , + ) is the set of real numbers. More compactly, the optimization problem (2) may be formulated as
min n N : ( n , c ) Ω ,
where
Ω = n , c N × R : Pr ( H 0 T n > c ) α , Pr ( H 1 T n c ) β
denotes the feasible region.
Since Pr ( H 0 T n > c ) is non-increasing in c and Pr ( H 1 T n c ) is non-decreasing in c , it is deduced that the required sample size is
n * = min { n N : A α ; n 0 < A β ; n 1 } ,
where
A α ; n 0 = inf c R : Pr ( H 0 T n > c ) α
and
A β ; n 1 = sup c R : Pr ( H 1 T n c ) β .
It should be noted that the optimal sample size, n * , is finite because, as n ,
A α ; n 0 A β ; n 1 E [ Y λ 0 , d 0 ] E [ Y λ 1 , d 1 ] ,
which is less than 1 . That is, A α ; n 0 is less than A β ; n 1 if n is sufficiently large. In addition, any value in the nonempty interval ( A α ; n * 0 , A β ; n * 1 ) is a feasible value of the acceptance constant. The midpoint of the above interval is a neutral choice for c * . It is assumed in the present paper that
c * = ( A α ; n * 0 + A β ; n * 1 ) / 2
is the optimal acceptance constant. Generally, A α ; n 0 and A β ; n 1 cannot be explicitly expressed. Nevertheless, accurate estimates can be computed by Monte Carlo simulation.

4. Explicit Approximate Risks and Plans

Closed-form approximations of the Bayesian risks and the optimal inspection scheme can be deduced by using the asymptotic normality of T n under the null and alternative hypotheses. For later use, Φ [ · ] denotes the standard normal cumulative distribution function and z p = Φ 1 [ p ] for 0 < p < 1 .
Assuming that n is large enough, it follows that the distribution of the test statistic T n is approximately N ( n q i , n s i 2 ) when X C M P ( λ i , d i ) , where q i = E [ Y λ i , d i ] and s i 2 = V [ Y λ i , d i ] , i = 0 , 1 . In such a case, an approximation of the Bayesian producer risk Pr ( H 0 T n > c ) is given by
p 0 p 0 Φ [ ( c n q 0 ) / ( s 0 n ) ] 1 p 0 Φ [ ( c n q 0 ) / ( s 0 n ) ] ( 1 p 0 ) Φ [ ( c n q 1 ) / ( s 1 n ) ] .
Similarly, the Bayesian consumer risk Pr ( H 1 T n c ) is approximately
( 1 p 0 ) Φ [ ( c n q 1 ) / ( s 1 n ) ] p 0 Φ [ ( c n q 0 ) / ( s 0 n ) ] + ( 1 p 0 ) Φ [ ( c n q 1 ) / ( s 1 n ) ] .
Equating the above approximate risks to α and β , respectively, it is derived that
1 Φ c n q 0 s 0 n = γ and Φ c n q 1 s 1 n = δ ,
where
γ = α ( 1 p 0 β ) p 0 ( 1 α β ) and δ = β ( p 0 α ) ( 1 p 0 ) ( 1 α β ) .
Consequently, it is derived from (3) that
c n q 0 s 0 n = z 1 γ and c n q 1 s 1 n = z δ ,
which imply that ( q 0 q 1 ) n = z γ s 0 + z δ s 1 . It is then deduced that
n a = z γ s 0 + z δ s 1 q 0 q 1 2
is an approximation of the smallest sample size n * , where · stands for the least integer upper bound. Moreover,
c 0 = n a q 0 z γ s 0 n a and c 1 = n a q 1 + z δ s 1 n a .
are approximate estimates of the optimal acceptance constant. A balanced estimation of c * would be c a = ( c 0 + c 1 ) / 2 , which is given by
c a = n a ( q 0 + q 1 ) / 2 n a ( z γ s 0 z δ s 1 ) / 2 .
In general, the acceptance plan ( n a , c a ) is often a satisfactory approximation of the best scheme ( n * , c * ) if n * is sufficiently large. Evidently, the approximation is not excellent when n * is small. Anyway, ( n a , c a ) is always a convenient initial point in order to find ( n * , c * ) via iterative procedures.

5. Computation of Optimal Inspection Schemes

Monte Carlo methods are widely used in optimization, especially when it is difficult or impossible to apply other approaches. Essentially, their key idea is using randomness to solve complex deterministic problems.
In our situation, it is needed to use Monte Carlo simulation to find the best inspection scheme because the Bayesian risks cannot be assessed in closed forms. The global solution of the minimization program (2) can be practically determined by using repeated random sampling.
Assume that ( T n ; 1 i , , T n ; m i ) is a simple random sample of a large size m of the test statistic T n when X C M P ( λ i , d i ) for i = 0 , 1 . Suppose also that F n i ( · ) represents the empirical cumulative distribution function of T n based on the corresponding sample for i = 0 , 1 . That is,
F n i ( t ) = 1 m j = 1 m I ( T n ; j i t )
for t R and i = 0 , 1 , where I ( · ) denotes the indicator function.
Strongly consistent estimations of the Bayesian producer and consumer risks associated with the sampling plan ( n , c ) are then given by
Pr ^ ( H 0 T n > c ) = p 0 { 1 F n 0 ( c ) } 1 p 0 F n 0 ( c ) ( 1 p 0 ) F n 1 ( c )
and
Pr ^ ( H 1 T n c ) = ( 1 p 0 ) F n 1 ( c ) p 0 F n 0 ( c ) + ( 1 p 0 ) F n 1 ( c ) .
An accurate approximation of the best inspection scheme can be obtained by simulation. If m is large enough, the optimal sample size would be precisely
n * = min n N : A ^ α ; n 0 < A ^ β ; n 1 ,
where
A ^ α ; n 0 = inf c R : Pr ^ ( H 0 T n > c ) α
and
A ^ β ; n 1 = sup c R : Pr ^ ( H 1 T n c ) β
are the natural sample estimates of A α ; n 0 and A β ; n 1 , respectively. In terms of the prior odds ratio r , the estimations A ^ α ; n 0 and A ^ β ; n 1 can alternatively be expressed as
A ^ α ; n 0 = inf c R : 1 F n 0 ( c ) 1 F n 1 ( c ) α r 1 α
and
A ^ β ; n 1 = sup c R : F n 1 ( c ) F n 0 ( c ) β ( 1 β ) r .
Computationally, it is convenient to use starting values for n * and c * . The approximate plan ( n a , c a ) can serve as the initial point in the iterative process to find the best scheme ( n * , c * ) , which is of vital importance to decrease calculation costs. The size m of the simulated samples is assumed here to be 10 6 with the intention of obtaining accurate results.

6. Illustrative Examples

An application to glass manufacturing presented in Fernández [39] is first considered in this section to illustrate the methodology developed for the CMP distribution. In this case, an analyst wants to find the optimal inspection scheme to accept or reject large lots of 0.64 m2 sheets of glass. The number X of blemishes per sheet of glass is the quality characteristic of interest, and the decision rule to determine the lot acceptability is based on a simple random sample from the variable X . Fernández [39] assumes that X has a Poisson model with parameter λ . However, in many cases, the defect count data are under- or over-dispersed with respect to the Poisson distribution. Due to this reason, the number of imperfections occurring on each sheet is assumed here to follow the C M P ( λ , d ) distribution.
The manufacturer deems that the C M P ( λ 0 , d 0 ) model is acceptable when the defect rate per unit is λ 0 = 0.3 and d 0 = 0.8 , whereas the customer supposes that the C M P ( λ 1 , d 1 ) distribution is rejectable if λ 1 = 0.7 and d 1 = 0.6 .  Table 1 shows the best inspection scheme, ( n * , c * ) , and the approximately optimal plan, ( n a , c a ) , for α = 0.01 ,   0.05 ,   β = 0.05 ,   0.10 and p 0 = 0.2 ,   0.5 ,   0.8 . The Bayesian producer and consumer risks (BPR and BCR) of the schemes ( n * , c * ) and ( n a , c a ) are also reported. In light of Table 1, the required sample size tends to reduce when α and/or β increase. Likewise, the reduction in sampling inspection effort is clear when Pr ( H 0 ) is high.
Assume that the maximum permissible producer and consumer risks are α = 0.05 and β = 0.10 , respectively. In the non-informative case, i.e., when p 0 = 0.5 or r = 1 , the optimal plan ( n * , c * ) is obtained to be ( 17 , 8.6809 ) . Thus, the best decision rule consists of taking 17 sheets of glass at random from the submitted lot and then accepting the whole lot if T n is at most c * = 8.6809 ; otherwise, the lot is rejected. The proposed approximate plan ( n a , c a ) is given by ( 17 , 8.2708 ) . The optimal plan and the Bayesian risks of ( n * , c * ) and ( n a , c a ) have been obtained by simulating m = 10 6 random samples of size 17 from the C M P ( λ 0 , d 0 ) and C M P ( λ 1 , d 1 ) distributions. In this balanced situation, the approximate plan ( n a , c a ) is nearly optimal because n a = n * , the BCR is lower than 10%, and the BPR is only slightly higher than 5%.
Suppose now that the producer and the consumer agreed to assign a prior probability p 0 = 0.8 to the lot acceptability, which implies that the prior odds ratio r is 1/4. Thus, there is a strong prior belief that the lot is acceptable. In this case, the approximate plan ( 8 , 5.8200 ) is quite different from the optimal scheme ( 12 , 8.5751 ) . Similarly, ( n a , c a ) is not a good approximation of the best inspection scheme when p 0 = 0.2 . Evidently, the normality of T n is not reasonable when n is small. In all events, however, n a is a useful initial estimate of n * .
According to Fernández [21], the optimal plan under the frequentist perspective is ( 17 , 8.4770 ) , which is quite similar to ( n * , c * ) when the prior odds ratio is r = 1 . In general, the Bayesian viewpoint produces a significant reduction in sample size when r is small. For example, n * is only 12 when r = 1 / 4 . However, in the non-informative case, the optimal Bayesian and frequentist test plans are often nearly equivalent.
With the aim of studying the effect of the dispersion parameter d on the optimal test plan, Table 2 presents the approximate and optimal inspection schemes, ( n a , c a ) and ( n * , c * ) , and their corresponding Bayesian risks when λ 0 = 0.3 ,   λ 1 = 0.7 ,   d 1 = d 2 = d ,   α = 0.05 and β = 0.10 for d = 0.5 ,   1.0 ,   1.5 and p 0 = 0.2 ,   0.5 ,   0.8 . In view of Table 2, it is clear that n * is a non-decreasing function of d when λ 0 = 0.3 and λ 1 = 0.7 are fixed. Therefore, the required sample size in the Poisson case is an upper bound of n * when the dispersion parameter is less than 1, and a lower bound of n * when d is greater than 1.
As graphical illustrations of the influence of r on the optimal and approximate sampling inspection schemes, Figure 1 and Figure 2 show the values of the approximate and optimal sample sizes and acceptance constants, respectively, versus r when λ 0 = 0.3 ,   λ 1 = 0.7 ,   d 0 = d 1 = 1 ,   α = 0.05 and β = 0.10 . Clearly, n a and c a are smaller than n * and c * , respectively, when r is small. Otherwise, ( n a , c a ) is a practical estimate of ( n * , c * ) .
An application to the production of paper is now discussed to exemplify the determination of optimal sampling plans based on prior odds ratio tests. The number of impurities discovered per inspection unit is typically the most important quality characteristic in paper manufacturing. In our case, a practitioner wishes to determine the best decision rule to reject or accept large lots of 0.49 m2 sheets of paper, assuming that the number X of imperfections per sheet follows a C M P ( λ , d ) distribution with mean μ .
The maximal Bayesian risks that the consumer and the producer are willing to incur in the development of a test plan for lot acceptance are 10 % and 5 % , respectively. Furthermore, the presence of sixty-five impurities is considered rejectable by the customer, whereas thirty-five blemishes per hundred sheets is deemed acceptable by the manufacturer. Thus, α = 0.05 ,   β = 0.10 , and the acceptable and rejectable means are μ 0 = 0.35 and μ 1 = 0.65 .  Table 3 reports the optimal and approximate inspection schemes, ( n * , c * ) and ( n a , c a ) , and their corresponding Bayesian risks when μ 0 = 0.35 ,   μ 1 = 0.65 ,   d 0 = d 1 = d ,   α = 0.05 and β = 0.10 for d = 0.5 ,   1.0 ,   1.5 and p 0 = 0.2 ,   0.5 ,   0.8 .
According to Table 3, if the acceptable and rejectable means, μ 0 and μ 1 , are fixed, the optimal sample size n * is reduced when the dispersion parameter d assumed by the manufacturer and customer increases. Therefore, the required sample size in the Poisson case is a lower bound of n * when the dispersion parameter is d < 1 and an upper bound of n * when d > 1 . For example, if p 0 = 0.8 , the minimal sample size n * = 35 when d = 1 is a lower/upper bound of the value of n * when the dispersion parameter d is less/greater than 1 . Clearly, the needed sample size increases when the observed random sample is over-dispersed compared to the Poisson distribution. For instance, if p 0 = 0.5 , the optimal sample size is n * = 47 when d = 1 , whereas n * = 55 if d = 0.5 .
For illustrative and comparative purposes, Figure 3 displays the optimal sample size under the frequentist perspective n f = 47 and the optimal Bayesian sample size n * as a function of the prior odds ratio when μ 0 = 0.35 , μ 1 = 0.65 , d 0 = d 1 = 1 , α = 0.05 and β = 0.10 . The corresponding acceptance constants c f = 14.5474 and c * are shown in Figure 4. In view of these figures, it is evident that the Bayesian approach greatly decreases the required sample size and acceptance constant when the prior lot acceptability, p 0 = Pr ( H 0 ) , is high; i.e., when the prior odds ratio r is low. In the non-informative case, the best frequentist and Bayesian plans are quite similar.

7. Concluding Remarks

Lot acceptance sampling is widely used in industrial quality control to develop inspection schemes for defects per unit. The CMP model is a plausible generalization of the Poisson law that adds a parameter to represent the dispersion level. Assuming the presence of prior information on the production process, this paper has determined the best test plans for lot acceptance purposes when the number of minor defects per unit has a CMP distribution.
The proposed test plan for screening lots protects the consumer and the producer at the requested confidence levels and minimizes the sampling inspection effort. Mixed-integer nonlinear programming problems were solved through Monte Carlo simulation to determine the best inspection schemes based on posterior odds ratio tests. An explicit asymptotic approximation of the best plan was used as a starting point for iteratively searching the optimal scheme, which is of exceeding importance because the calculation of the optimal plan can be very computer intensive. The presented results were applied to the production of paper and glass.
The suggested approach is practically an extension of the classical frequentist perspective because both are quite similar in the non-informative case. Nonetheless, note that a classical statistician considers a probability is a frequency, whereas a Bayesian views a probability as a degree of belief. Our setting offers some advantages to the decision-maker. In particular, the producer and the consumer may assign different probabilities to the lot acceptability, even if they have identical background knowledge. A convenient way of combining new sample evidence with prior beliefs is also provided. Bayes’ rule can be used to continually update the posterior odds ratio as new subjective or objective information is acquired. In general, the inclusion of the dispersion parameter in the underlying probability distribution leads to improved decision rules for lot disposition based on under- or over-dispersed samples. Moreover, the incorporation of prior knowledge provides more precise assessments of the actual consumer and producer risks, as well as substantial savings in sample size when the prior lot acceptability is high.

Funding

This research was partially supported by MCIN/AEI/10.13039/501100011033 under grant PID2019-110442GB-I00.

Data Availability Statement

Data are contained within the article.

Acknowledgments

The author thanks the Editor and Reviewers for providing valuable comments and suggestions.

Conflicts of Interest

The author declares no conflict of interest.

References

  1. Baklizi, A.; El Masri, A.E.Q. Acceptance sampling based on truncated life tests in the Birnbaum Saunders model. Risk Anal. 2004, 24, 1453–1457. [Google Scholar] [CrossRef] [PubMed]
  2. Balamurali, S.; Jun, C.-H. Multiple dependent state sampling plans for lot acceptance based on measurement data. Eur. J. Oper. Res. 2007, 180, 1221–1230. [Google Scholar] [CrossRef]
  3. Tsai, T.-R.; Lu, Y.-T.; Wu, S.-J. Reliability sampling plans for Weibull distribution with limited capacity of test facility. Comput. Ind. Eng. 2008, 55, 721–728. [Google Scholar] [CrossRef]
  4. Lee, W.-C.; Wu, J.-W.; Hong, C.-W. Assessing the lifetime performance index of products with the exponential distribution under progressively type II right censored samples. J. Comput. Appl. Math. 2009, 231, 648–656. [Google Scholar] [CrossRef] [Green Version]
  5. Lu, W.; Tsai, T.-R. Interval censored sampling plans for the gamma lifetime model. Eur. J. Oper. Res. 2009, 192, 116–124. [Google Scholar] [CrossRef]
  6. Aslam, M.; Azam, M.; Jun, C.-H. A mixed repetitive sampling plan based on process capability index. Appl. Math. Model. 2013, 37, 10027–10035. [Google Scholar] [CrossRef]
  7. Fernández, A.J. Optimum attributes component test plans for k-out-of-n:F Weibull systems using prior information. Eur. J. Oper. Res. 2015, 240, 688–696. [Google Scholar] [CrossRef]
  8. Wu, C.-W.; Shu, M.-H.; Nugroho, A.A.; Kurniati, N. A flexible process-capability-qualified resubmission-allowed acceptance sampling scheme. Comput. Ind. Eng. 2015, 80, 62–71. [Google Scholar] [CrossRef]
  9. Wu, C.-W.; Lee, A.H.I.; Liu, S.-W.; Shih, M.-H. Capability-based quick switching sampling system for lot disposition. Appl. Math. Model. 2017, 52, 131–144. [Google Scholar] [CrossRef]
  10. Qin, R.; Cudney, E.A.; Hamzic, Z. An optimal plan of zero-defect single-sampling by attributes for incoming inspections in assembly lines. Eur. J. Oper. Res. 2015, 246, 907–915. [Google Scholar] [CrossRef]
  11. Lee, A.H.I.; Wu, C.-W.; Wang, Z.-H. The construction of a modified sampling scheme by variables inspection based on the one-sided capability index. Comput. Ind. Eng. 2018, 122, 87–94. [Google Scholar] [CrossRef]
  12. Roy, S. Bayesian accelerated life test plans for series systems with Weibull component lifetimes. Appl. Math. Model. 2018, 62, 383–403. [Google Scholar] [CrossRef]
  13. Algarni, A. Group Acceptance Sampling Plan Based on New Compounded Three-Parameter Weibull Model. Axioms 2022, 11, 438. [Google Scholar] [CrossRef]
  14. Alyami, S.A.; Elgarhy, M.; Elbatal, I.; Almetwally, E.M.; Alotaibi, N.; El-Saeed, A.R. Fréchet Binomial Distribution: Statistical Properties, Acceptance Sampling Plan, Statistical Inference and Applications to Lifetime Data. Axioms 2022, 11, 389. [Google Scholar] [CrossRef]
  15. Fernández, A.J. Optimal defects-per-unit acceptance sampling plans using truncated prior distributions. IEEE Trans. Reliab. 2014, 63, 634–645. [Google Scholar] [CrossRef]
  16. Anbazhagan, N.; Wang, J.; Gomathi, D. Base stock policy with retrial demands. Appl. Math. Model. 2013, 37, 4464–4473. [Google Scholar] [CrossRef]
  17. Alizadeh, M.; Eskandari, H.; Sajadifar, S.M. A modified (S-1,S) inventory system for deteriorating items with Poisson demand and non-zero lead time. Appl. Math. Model. 2014, 38, 699–711. [Google Scholar] [CrossRef]
  18. Chen, K.-S.; Yang, C.-M. Developing a performance index with a Poisson process and an exponential distribution for operations management and continuous improvement. J. Comput. Appl. Math. 2018, 343, 737–747. [Google Scholar] [CrossRef]
  19. Chuang, H.H.-C. Fixing shelf out-of-stock with signals in point-of-sale data. Eur. J. Oper. Res. 2018, 270, 862–872. [Google Scholar] [CrossRef]
  20. Wan, Q.; Liu, C.; Wu, Y.; Zhou, W. A TBE control chart-based maintenance policy for a service facility. Comput. Ind. Eng. 2018, 126, 136–148. [Google Scholar] [CrossRef]
  21. Fernández, A.J. Most powerful lot acceptance test plans from dispersed nonconformity counts. Int. J. Adv. Manuf. Technol. 2017, 90, 233–240. [Google Scholar] [CrossRef]
  22. Conway, R.W.; Maxwell, W.L. A queuing model with state dependent service rates. J. Ind. Eng. 1962, 12, 132–136. [Google Scholar]
  23. Shmueli, G.; Minka, T.; Kadane, J.B.; Borle, S.; Boatwright, P.B. A useful distribution for fitting discrete data: Revival of the Conway-Maxwell-Poisson distribution. Appl. Stat. 2005, 54, 127–142. [Google Scholar] [CrossRef]
  24. Sellers, K.F.; Borle, S.; Shmueli, G. The COM-Poisson model for count data: A survey of methods and applications. Appl. Stoch. Model. Bus. Ind. 2012, 28, 104–116. [Google Scholar] [CrossRef]
  25. Francis, R.A.; Geedipally, S.R.; Guikema, S.D.; Dhavala, S.S.; Lord, D.; LaRocca, S. Characterizing the performance of the Conway-Maxwell-Poisson generalized linear model. Risk Anal. 2012, 32, 167–183. [Google Scholar] [CrossRef] [Green Version]
  26. Zhu, F. Modeling time series of counts with COM-Poisson INGARCH models. Math. Comput. Model. 2012, 56, 191–203. [Google Scholar] [CrossRef]
  27. Santarelli, M.F.; Della Latta, D.; Scipioni, M.; Positano, V.; Landini, L. A Conway-Maxwell-Poisson (CMP) model to address data dispersion on positron emission tomography. Comput. Biol. Med. 2016, 77, 90–101. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  28. Torney, D.C. Bayesian analysis of binary sequences. J. Comput. Appl. Math. 2005, 175, 231–243. [Google Scholar] [CrossRef] [Green Version]
  29. Fernández, A.J. Bayesian estimation based on trimmed samples from Pareto populations. Comput. Stat. Data Anal. 2006, 51, 1119–1130. [Google Scholar] [CrossRef]
  30. Fernández, A.J. Weibull inference using trimmed samples and prior information. Stat. Pap. 2009, 50, 119–136. [Google Scholar] [CrossRef]
  31. Fernández, A.J. Computing tolerance limits for the lifetime of a k-out-of-n:F system based on prior information and censored data. Appl. Math. Model. 2014, 38, 548–561. [Google Scholar] [CrossRef]
  32. Yan, L.; Yang, F.; Fu, C. A Bayesian inference approach to identify a Robin coefficient in one-dimensional parabolic problems. J. Comput. Appl. Math. 2009, 231, 840–850. [Google Scholar] [CrossRef] [Green Version]
  33. Lee, W.-C.; Wu, J.-W.; Hong, M.-L.; Lin, L.-S.; Chan, R.-L. Assessing the lifetime performance index of Rayleigh products based on the Bayesian estimation under progressive type II right censored samples. J. Comput. Appl. Math. 2011, 235, 1676–1688. [Google Scholar] [CrossRef]
  34. Jaheen, Z.F.; Okasha, H.M. E-Bayesian estimation for the Burr type XII model based on type-2 censoring. Appl. Math. Model. 2011, 35, 4730–4737. [Google Scholar] [CrossRef]
  35. Asl, M.N.; Belaghi, R.A.; Bevrani, H. Classical and Bayesian inferential approaches using Lomax model under progressively type-I hybrid censoring. J. Comput. Appl. Math. 2018, 343, 397–412. [Google Scholar] [CrossRef]
  36. He, D.; Wang, Y.; Chang, G. Objective Bayesian analysis for the accelerated degradation model based on the inverse Gaussian process. Appl. Math. Model. 2018, 61, 341–350. [Google Scholar] [CrossRef]
  37. Alotaibi, R.; Nassar, M.; Ghosh, I.; Rezk, H.; Elshahhat, A. Inferences of a Mixture Bivariate Alpha Power Exponential Model with Engineering Application. Axioms 2022, 11, 459. [Google Scholar] [CrossRef]
  38. Yousef, M.M.; Hassan, A.S.; Alshanbari, H.M.; El-Bagoury, A.-A.H.; Almetwally, E.M. Bayesian and Non-Bayesian Analysis of Exponentiated Exponential Stress–Strength Model Based on Generalized Progressive Hybrid Censoring Process. Axioms 2022, 11, 455. [Google Scholar] [CrossRef]
  39. Fernández, A.J. Optimal schemes for resubmitted lot acceptance using previous defect count data. Comput. Ind. Eng. 2015, 87, 66–73. [Google Scholar] [CrossRef]
Figure 1. Optimal (solid line) and approximate (dashed line) sample sizes, n * and n a , versus the prior odds ratio when λ 0 = 0.3 ,   λ 1 = 0.7 ,   d 0 = d 1 = 1 ,   α = 0.05 and β = 0.10 .
Figure 1. Optimal (solid line) and approximate (dashed line) sample sizes, n * and n a , versus the prior odds ratio when λ 0 = 0.3 ,   λ 1 = 0.7 ,   d 0 = d 1 = 1 ,   α = 0.05 and β = 0.10 .
Axioms 11 00604 g001
Figure 2. Optimal (solid line) and approximate (dashed line) acceptance constants, c * and c a , versus the prior odds ratio when λ 0 = 0.3 , λ 1 = 0.7 , d 0 = d 1 = 1 , α = 0.05 and β = 0.10 .
Figure 2. Optimal (solid line) and approximate (dashed line) acceptance constants, c * and c a , versus the prior odds ratio when λ 0 = 0.3 , λ 1 = 0.7 , d 0 = d 1 = 1 , α = 0.05 and β = 0.10 .
Axioms 11 00604 g002
Figure 3. Optimal Bayesian (solid line) and frequentist (dashed line) sample sizes, n * and n f , versus the prior odds ratio when μ 0 = 0.35 , μ 1 = 0.65 , d 0 = d 1 = 1 , α = 0.05 and β = 0.10 .
Figure 3. Optimal Bayesian (solid line) and frequentist (dashed line) sample sizes, n * and n f , versus the prior odds ratio when μ 0 = 0.35 , μ 1 = 0.65 , d 0 = d 1 = 1 , α = 0.05 and β = 0.10 .
Axioms 11 00604 g003
Figure 4. Optimal Bayesian (solid line) and frequentist (dashed line) acceptance constants, c * and c f , versus the prior odds ratio when μ 0 = 0.35 , μ 1 = 0.65 , d 0 = d 1 = 1 , α = 0.05 and β = 0.10 .
Figure 4. Optimal Bayesian (solid line) and frequentist (dashed line) acceptance constants, c * and c f , versus the prior odds ratio when μ 0 = 0.35 , μ 1 = 0.65 , d 0 = d 1 = 1 , α = 0.05 and β = 0.10 .
Axioms 11 00604 g004
Table 1. Optimal and approximate plans, ( n * , c * ) and ( n a , c a ) , and the corresponding Bayesian risks, BPR and BCR, when ( λ 0 , d 0 ) = ( 0.3 , 0.8 ) and ( λ 1 , d 1 ) = ( 0.7 , 0.6 ) .
Table 1. Optimal and approximate plans, ( n * , c * ) and ( n a , c a ) , and the corresponding Bayesian risks, BPR and BCR, when ( λ 0 , d 0 ) = ( 0.3 , 0.8 ) and ( λ 1 , d 1 ) = ( 0.7 , 0.6 ) .
Optimal Test PlanApproximate Test Plan
α β p 0 n * c * BPRBCR n a c a BPRBCR
1%5%0.23314.5750.963%4.870%3615.2141.151%2.760%
0.53115.9560.943%4.758%3014.8551.647%3.785%
0.82415.0680.997%4.982%1911.5913.265%5.177%
10%0.22812.8520.956%9.899%3013.2021.186%6.278%
0.52513.7690.900%9.487%2211.7101.693%9.667%
0.81712.4430.839%9.475%118.16344.051%10.71%
5%5%0.2238.32664.720%4.228%289.95544.440%1.959%
0.52210.3764.909%4.864%2310.3616.117%3.521%
0.81810.7344.536%4.997%158.721910.19%4.742%
10%0.2186.84774.856%9.766%228.02554.361%5.688%
0.5178.68094.622%9.919%178.27085.212%9.157%
0.8128.57514.270%9.459%85.820011.04%10.57%
Table 2. Optimal and approximate plans, ( n * , c * ) and ( n a , c a ) , and the corresponding Bayesian risks, BPR and BCR, when λ 0 = 0.3 ,   λ 1 = 0.7 ,   α = 0.05 ,   β = 0.10 and d 0 = d 1 = d .
Table 2. Optimal and approximate plans, ( n * , c * ) and ( n a , c a ) , and the corresponding Bayesian risks, BPR and BCR, when λ 0 = 0.3 ,   λ 1 = 0.7 ,   α = 0.05 ,   β = 0.10 and d 0 = d 1 = d .
Optimal Test PlanApproximate Test Plan
d p 0 n * c * BPRBCR n a c a BPRBCR
0.50.2208.04933.987%8.566%218.06424.713%5.862%
0.5199.74394.367%8.110%178.62574.632%10.05%
0.8149.74393.886%8.359%85.95548.544%11.81%
1.00.2278.89664.716%8.739%299.46924.124%8.143%
0.52711.4393.982%9.600%2510.3204.583%10.44%
0.81910.5913.993%9.770%147.85297.929%10.89%
1.50.2339.74394.939%8.821%3510.3284.220%8.793%
0.53312.2864.296%9.908%3111.3155.144%10.11%
0.82411.4394.279%9.812%199.08819.565%9.628%
Table 3. Optimal and approximate plans, ( n * , c * ) and ( n a , c a ) , and the corresponding Bayesian risks, BPR and BCR, when μ 0 = 0.35 ,   μ 1 = 0.65 ,   α = 0.05 ,   β = 0.10 and d 0 = d 1 = d .
Table 3. Optimal and approximate plans, ( n * , c * ) and ( n a , c a ) , and the corresponding Bayesian risks, BPR and BCR, when μ 0 = 0.35 ,   μ 1 = 0.65 ,   α = 0.05 ,   β = 0.10 and d 0 = d 1 = d .
Optimal Test PlanApproximate Test Plan
d p 0 n * c * BPRBCR n a c a BPRBCR
0.50.25612.4124.857%9.455%6013.2314.273%8.455%
0.55514.5244.749%9.674%5313.8815.114%9.976%
0.84113.4684.127%9.864%3110.2488.326%10.567%
1.00.24812.6904.421%9.735%5012.9875.517%6.300%
0.54714.5474.985%9.248%4513.8945.361%9.721%
0.83513.3094.886%9.349%2810.8357.965%10.22%
1.50.24312.9564.255%9.445%4312.6774.259%9.528%
0.54315.0574.844%8.594%4014.0404.365%11.08%
0.83314.3573.670%9.623%2510.9738.547%9.896%
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

Fernández, A.J. Enhanced Lot Acceptance Testing Based on Defect Counts and Posterior Odds Ratios. Axioms 2022, 11, 604. https://doi.org/10.3390/axioms11110604

AMA Style

Fernández AJ. Enhanced Lot Acceptance Testing Based on Defect Counts and Posterior Odds Ratios. Axioms. 2022; 11(11):604. https://doi.org/10.3390/axioms11110604

Chicago/Turabian Style

Fernández, Arturo J. 2022. "Enhanced Lot Acceptance Testing Based on Defect Counts and Posterior Odds Ratios" Axioms 11, no. 11: 604. https://doi.org/10.3390/axioms11110604

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop