Mais conteúdo relacionado Semelhante a Building a model for expected cost function to obtain double (20) Mais de IAEME Publication (20) Building a model for expected cost function to obtain double1. International Journal of Advanced Research in Engineering and Technology (IJARET), ISSN 0976 –
6480(Print), ISSN 0976 – 6499(Online) Volume 4, Issue 2, March – April (2013), © IAEME
282
BUILDING A MODEL FOR EXPECTED COST FUNCTION TO
OBTAIN DOUBLE BAYESIAN SAMPLING INSPECTION
1
Dr. Dhwyia Salman Hassan, 2
Nashaat Jaisam Al-Anber, 3
Dr.Suaad Khalaf Salman
1
Department of Statistics, College of Economic and Administration, University of Baghdad,
Baghdad
2
Department of Information Technology, Technical College of Management-Baghdad,
Foundation of Technical Education, Iraq
3
Department of Mathematics, College of Education for Pure Science, University of Karbala,
Iraq
ABSTRACT
This paper deals with building a model for total expected quality control cost for
double Bayesian sampling inspection plan, which consist of drawing a sample (݊ଵ) from a lot
(ܰ), then checking the number of defective (ݔଵ) in (݊ଵ), if (ݔଵ ܽଵ), were (ܽଵ) is acceptance
number, then accept and stop, if (ݔଵ ݎଵ), were (ݎଵ) is rejection number, then take a decision
to reject and stop sampling, if (ܽଵ ൏ ݔଵ ൏ ݎଵ), draw a second sample (݊ଶ) and check the
number of defective (ݔଶ) in (݊ଶ), if (ݔଵ ݔଶሻ ܽଶ, accept and stop, if (ݔଵ ݔଶሻ ݎଶ reject
and stop. The model derived assuming that the sampling process is Binomial with (݊, ) and
( ) is random variable, varied from lot to lot and have prior distribution ݂ሺሻ, here it is
found Beta prior with parameters (ܵ, ܶ).The model is applied on the set of real data obtained
from some industrial companies in Iraq, were the percentage of defective of (140) lots are
studied and tested, ݂ሺሻ is found Beta prior (ܵ, ܶ). These parameters are estimated by
moment estimator. After checking the distribution ݂ሺሻ and all the parameters of quality
control model, we work first on obtaining single Bayesian sampling inspection plan (݊ଵ, ܿଵ)
from minimizing the standard regret function (ܴଵ), then we find the parameters of double
Bayesian sampling inspection plan from minimizing (ܴଶ), for various values of process
average of quality (,) with different lot size N.
Keywords: Bayesian sampling Inspection, prior distribution, average of quality, standard
regret function for single sampling plan. standard regret function for double Bayesian
sampling plan.
INTERNATIONAL JOURNAL OF ADVANCED RESEARCH IN
ENGINEERING AND TECHNOLOGY (IJARET)
ISSN 0976 - 6480 (Print)
ISSN 0976 - 6499 (Online)
Volume 4, Issue 2 March – April 2013, pp. 282-294
© IAEME: www.iaeme.com/ijaret.asp
Journal Impact Factor (2013): 5.8376 (Calculated by GISI)
www.jifactor.com
IJARET
© I A E M E
2. International Journal of Advanced Research in Engineering and Technology (IJARET), ISSN 0976 –
6480(Print), ISSN 0976 – 6499(Online) Volume 4, Issue 2, March – April (2013), © IAEME
283
1- AIM OF RESEARCH
The aim of this research is to build a model for total cost of double Bayesian sampling
plans, then determine the parameters of this double Bayesian sampling plans
(݊ଵ, ܽଵ, ݎଵ, ݊ଶ, ܽଶ, ݎଶ) from minimizing the total expected cost function.
2- NOTATIONS
Here we introduce all necessary notations:
݊ଵ : First sample size drawn from lot N.
ݔଵ : Number of defective units in sample (݊ଵ).
ܽଵ : Number of accepted defective units in (݊ଵ).
ݎଵ : Number of rejected units in (݊ଵ).
݊ଶ : Size of second sample taken from (ܰ െ ݊ଵ).
ݔଶ : Number of defective units in (݊ଶ).
ܺ : Number of defective units in lot (N).
ܽଶ : Number of accepted defectives in (݊ଶ).
ݎଶ : Number of rejected units second sample (݊ଶ).
ܲ : Percentage of defectives in production.
: percentage of defectives in sample.
ܲ
ሺଵሻ
ሺሻ : Probability of accepting the product with quality () according to the decision from
first sample (݊ଵ).
ܲ
ሺଵሻ
ሺሻ : Probability of rejecting the product with quality () due to the decision of rejecting
from first sample (݊ଵ).
ܲ
ሺଶሻ
ሺሻ : Probability of accepting the product with quality () according to the decision from
second sample (݊ଶ).
ܲ
ሺଶሻ
ሺሻ : Probability of rejecting the product with quality () due to the decision of rejecting
from first sample (݊ଶ).
ܲ௦
ሺଶሻ
ሺሻ : Probability of continue sampling after the first sample is chosen and the value of
(ܽଵ ൏ ݔଵ ൏ ݎଵ), so we cannot take a decision to accept or reject according to first sample.
݇ݏሺሻ: Average inspection cost from first sample, where;
ܧሺ݊ଵܵଵ ݔଵܵଶሻ ൌ ݊ଵሺܵଵ ܵଶሻ ൌ ݊ଵ݇ݏሺሻ
ܵଵ : Cost of inspecting item from first sample.
ܵଶ : Cost of repairing or replacement of item in sample (݊ଵ).
ܴଵ : Cost of sampling and testing unit in rejected quantity (ܰ െ ݊).
ܴଶ : Cost of repairing or replacement unit in rejected quantity (ܰ െ ݊).
ܣଵ : Cost of accepting good units which not represents penalty cost.
ܣଶ : Cost of accepting defective units.
3. INTRODUCTION
In rectifying inspection plans, each item produced by a process is inspected according
to some plan and then according to the number of defectives units in the sample, the lot is
either accepted or the lot is rejected. Gunether [1977] explained how to obtain the parameters
(݊, ܿ) for single sampling plan for ordinary sampling and for Bayesian sampling, using the
model of expected total quality control cost depends on cost of inspection and sampling and
3. International Journal of Advanced Research in Engineering and Technology (IJARET), ISSN 0976 –
6480(Print), ISSN 0976 – 6499(Online) Volume 4, Issue 2, March – April (2013), © IAEME
284
cost due to wrong decision, which is accepting bad lot and rejecting good one. Another
researchers gives model for obtaining parameters of single sampling inspection plan (݊, ܿ)
under truncated time to failure, see Epstein, B. [1962]. Goode and Kao [1960]. Gupta, S. S.
[1962] who designed sampling inspection plans for normal and lognormal distribution
according to pre – determined level of percentage of defectives. Also Gupta and Kunda
[1999] discuss the properties of generalized exponential distributions and how to use it is
constructing Bayesian sampling. Baklizi, A. [2003] introduced how to obtain acceptance
sampling plans based on truncated life tests in the Pareto distribution of second kind. The
research in this subject were developed when Balakrishnan, N. [2007] designed a group of
inspection sampling for generalized Birnbaum – Saundres distribution. In [2012], Dhwyia S.
Hassun, et, built a model for total expected quality control cost, and compared it with the
model of Schmidt – Taylor [1973]. Also Hald, A. [1968] gives a model for Bayesian single
sampling attribute plans for continuous prior distribution. The parameters of single sampling
inspection plans (݊, ܿ) are obtained from minimizing total expected quality control cost.
Now, in this paper we introduce ( a mixed – Binomial) quality control expected cost
function, to obtain the parameters of double Bayesian sampling inspection plans, from
minimizing total expected regret function, according to conditions of producers and
consumers risk.
Building Model of Total Expected Cost Function
The model comprises:
a- ݇ݏሺሻ: Average inspection cost from first sample;
݇ݏሺሻ ൌ ܧሺ݊ଵܵଵ ݔଵܵଶሻ
ൌ ݊ଵሺܵଵ ܵଶሻ
ൌ ݊ଵ݇ݏሺሻ …………………………………………….. (1)
݇ݏሾሺݔଵሻሿ : Average cost of inspecting units of second sample, under sampling distribution
ሾሺݔଵሻሿ for number of defectives units in first sample (݊ଵ).
݇ݏሾሺݔଵሻሿ ൌ ܧሺ݊ଶܵଵ ݔଶܵଶ|ݔଵሻ
ൌ ݊ଶ൫ܵଵ ܵଶሺݔଵሻ൯
ൌ ݊ଶ݇ݏሾሺݔଵሻሿ ……………………………………………… (2)
And;
ሺݔଵሻ ൌ ݎሺݔଵ, ݔଶ ݔଷ ൌ ݕሻ
௬
ൌ ݃భ
ሺݔଵሻ …………………………………………….. (3)
or;
ሺݔଵሻ ൌ ݃భ,మ
ሺݔଵ, ݔଶሻ
௫మ
ൌ ݃భ
ሺݔଵሻ …………………………………………………. (4)
If we assume that [ݔଷ ൌ ሺܺ െ ݔଵ െ ݔଶ], then the joint probability distribution of (ݔଵ, ݔଶ, ݔଷ )
is;
ሺݔଵ, ݔଶ, ݔଷሻ ൌ ሺݔଵ, ݔଶ|ݔሻሺݔሻ ………………………………………………. (5)
ሺݔଵ, ݔଶሻ ൌ ∑ ሺݔଵ, ݔଶ, ݔଷሻ௫య
………………………………………………...(6)
And;
ሺ ݔଶ|ݔଵሻ ൌ ݃మ
ሺ ݔଶ|݊ଵ, ݔଵሻ ……………………………………………….. (7)
The average inspection cost for second sample is equal to:
4. International Journal of Advanced Research in Engineering and Technology (IJARET), ISSN 0976 –
6480(Print), ISSN 0976 – 6499(Online) Volume 4, Issue 2, March – April (2013), © IAEME
285
ܧሺ݊ଶܵଵ ݔଶܵଶ|ݔଵሻ
ൌ ݊ଶ൫ܵଵ ܵଶሺݔଵሻ൯
ൌ ݊ଶ݇ݏሾሺݔଵሻሿ ………………………………………………. (8)
In case of accepting produced lot from first sample, the average cost is;
ܧሼሺܰ െ ݊ଵሻܣଵ ሺܺ െ ݔଵሻܣଶ|ݔଵሽ
ൌ ሺܰ െ ݊ଵሻܣଵ ܧሺݔଶ|ݔଵሻܣଶ
ൌ ሺܰ െ ݊ଵሻሼܣଵ ܣଶሺݔଵሻሽ
ൌ ሺܰ െ ݊ଵሻ݇ܽሾሺݔଵሻሿ
The average of acceptance cost for second sample is;
ܧሼሺܰ െ ݊ଵ െ ݊ଶሻܣଵ ሺܺ െ ݔଵ െ ݔଶሻܣଶ|ݔଵ, ݔଶሽ
ሺܰ െ ݊ଵ െ ݊ଶሻ݇ܽሾሺݔଵ, ݔଶሻሿ …………………………………. (9)
After explaining all notations, we can show that the lot size N, in case of double sampling
can divide into;
ܰ ൌ ݊ଵ ሺܰ െ ݊ଵሻቀ
ሺଵሻ
ሺଵሻ
ቁ ݊ଶௌ
ሺଵሻ
ሺܰ െ ݊ଵ െ ݊ଶሻቀ
ሺଶሻ
ሺଶሻ
ቁ … (10)
Assume (݇݉), is the smallest average cost, happened according to results of decisions of
accepting and rejecting, where acceptance happened at ( ,)ݎ (i.e ,ݎ break even quality
level) and rejection when ( ,)ݎ () is random variable have [݂ሺሻ] then (݇݉) is equal to;
݇݉ ൌ ሺܣଵ ܣଶሻ݂ሺሻ݀
ሺܴଵ ܴଶሻ݂ሺሻ݀
ଵ
………………..... (11)
Now the construction of total expected quality control cost [݇ଶሺሻ] is given by;
݇ଶሺሻ ൌ ݊ଵ݇ݏሺሻ ሺܰ െ ݊ଵሻቄ݇ܽሺሻ
ሺଵሻ
ሺሻ ݇ݎሺሻ
ሺଵሻ
ሺሻቅ
݊ଶ݇ݏሺሻௌ
ሺଶሻ
ሺሻ ሺܰ െ ݊ଵ െ ݊ଶሻቄ݇ܽሺሻ
ሺଶሻ
ሺሻ ݇ݎሺሻ
ሺଶሻ
ሺሻቅ ……….…(12)
When ሺሻ is random variable have [݂ሺሻ], then the average cost is;
݇ଶ ൌ ݇ଶሺሻ݂ሺሻ݀
݇ଶ ൌ ݊ଵ݇ܵ ሺܰ െ ݊ଵሻ ቐ ݃ሺݔଵሻ݇ܽሾሺݔଵሻሿ
భ
௫భୀ
ቑ ݃ሺݔଵሻ݇ݎሾሺݔଵሻሿ
భ
௫భୀభ
∑ ݃ሺݔଵሻൣ݊ଶ݇ݏሾሺݔଵሻሿ൧
భିଵ
௫భୀభାଵ
ሺܰ െ ݊ଵ െ ݊ଶሻ ቐ ݃ሺݔଶ|ݔଵሻሾ݇ܽሼሺݔଵ, ݔଶሻሽሿ
మି௫భ
௫మୀ
ቑ
∑ ݃ሺݔଶ|ݔଵሻ
ሺଶሻ
ሺሻሾ݇ݎሼሺݔଵ, ݔଶሻሽሿ
మ
௫మୀమି௫భାଵ ………………………..(13)
Multiplying equation (10) by (݇݉) where ሾܰ݇݉ ൌ ݇݉ሿ and apply
[ሺ݇2 െ ݇݉ሻ|ሺܣଶ െ ܴଶሻ], we have obtained the equation of standard cost function (ܴଶ).
ܴଶ ൌ ݊ଵ݀ݏ ሺܰ െ ݊ଵሻ ቊන ሺݎ െ ሻ
ሺଵሻ
ሺሻ݂ሺሻ݀
ቋ
ቊන ሺ െ ݎሻ
ሺଵሻ
ሺሻ݂ሺሻ݀
ଵ
ቋ
݊ଶ ቄ ሺݎ െ ሻௌ
ሺଵሻ
ሺሻ݂ሺሻ݀ ߜሺሻௌ
ሺଵሻ
ሺሻ݂ሺሻ݀
ଵ
ቅ
ሺܰ െ ݊ଵ െ ݊ଶሻ ቊන ሺݎ െ ሻ
ሺଶሻ
ሺሻ݂ሺሻ݀ න ሺ െ ݎሻ
ሺଶሻ
ሺሻ݂ሺሻ݀
ଵ
ቋ
… (14)
5. International Journal of Advanced Research in Engineering and Technology (IJARET), ISSN 0976 –
6480(Print), ISSN 0976 – 6499(Online) Volume 4, Issue 2, March – April (2013), © IAEME
286
ݎ ൌ break even quality level;
ݎ ൌ
మିோమ
భିோభ
Equation (14), now transformed to standard cost function in terms of conditional distribution
of percentage of defectives, which is [݂ሺ|ሺܽଵ ൏ ݔଵ ൏ ݎଵሻ] especially these parts obtained
from second sampling, where;
݂ሺ|ሺܽଵ ൏ ݔଵ ൏ ݎଵሻ ൌ
ሺభழ௫భழభ|ሻሺሻ
∑ ௪ሺ௫భ,భሻ
ೝభషభ
ೌభశభ
ൌ
ቄೌ
ሺమሻ
ሺሻାೝ
ሺమሻ
ሺሻቅሺሻ
ቄೌ
ሺమሻ
ሺሻାೝ
ሺమሻ
ሺሻቅሺሻௗ
భ
బ
……… (15)
This because when [ܽଵ ൏ ݔଵ ൏ ݎଵ] a second sample (݊ଶ) is drawn, and according to this
sample either we accept or reject.
The final formula for standard regret function (ܴଶ) used to obtain the parameters of second
sampling plan is;
ܴଶ
כ
ൌ ܴଵ
כሺܽଵ, ݊ଵ, ܰሻ െ ሺܰ െ ݊ଵሻ ݃ሺݔଵሻ݀ݎሺݔଵሻ
భିଵ
௫భୀభାଵ
∑ ݃ሺݔଵሻܴଵሺܽଶ െ ݔଵ, ݊ଶ, ܰ െ ݊ଵ|ݔଵ ሻభିଵ
௫భୀభାଵ ……………………………….… (16)
Where;
݀ݎሺݔଵሻ ൌ න ሺݎ െ ሻ݂ሺݔ|ଵሻ݀
ܴଵ
כሺܽଵ, ݊ଵ, ܰሻ ൌ
ሺே,,ሻ ି ே
௦ ି
………………………………… (17)
Where;
ܭሺܰ, ݊, ܿሻ ൌ ݊݇ݏ ቂሺܣଶ െ ܴଶሻ
ௌ
ௌା்
ܨଵሺܿ, ܵ 1, ሻቃ
ሾሺܣଵ െ ܴଵሻܨሺܿ, ܵ, ሻሿ ቂሺܴଵ ܴଶሻ
ௌ
ௌା்
ቃ
݇ݏ ൌ ܵଵ ܵଶ
݇ݏ ൌ ܵଵ ܵଶ ቀ
ௌ
ௌା்
ቁ , ൌ
்
ା்
݇ሺܰ, ݊, ܿሻ ൌ ݊݇ݏ ሺܰ െ ݊ሻሾሺܣଶ െ ܴଶሻܨଵሺܿ, ܵ 1, ሻሿ
ሾሺܣଵ െ ܴଵሻܨሺܿ, ܵ, ሻሿ ሺܰ െ ݊ሻሺܣଵ ܴଶሻ ሺܰ െ ݊ሻሺܴଵ െ ܣଵሻ
Which can be simplified to;
݇ሺܰ, ݊, ܿሻ ൌ ݊ሺ݇ݏ െ ݇݉ሻ ሺܰ െ ݊ሻሾሺܣଶ െ ܴଶሻܨଵሺܿ, ܵ 1, ሻሿ
ሾሺܴଵ െ ܣଵሻሾ1 െ ܨሺܿ, ܵ, ሻሿሿ ܰ݇݉ ……………... (18)
Therefore the equation of standard expected cost (Regret function ܴଵ) is;
ܴଵሺܰ, ݊, ܿሻ ൌ
ሺே,,ሻ ି ே
௦ ି
Which is the first part of equation (ܴଶ
כ
) defined in equation (16), so first of all and
after determining the parameters of single Bayesian sampling plan [given in table (1)] we
work on minimizing (16) to find the parameters of double Bayesian sampling inspection plan
given in table (4).
Equation (16) shows that the average of standard cost function for double sampling
plan, is represented by standard cost function for single sampling plan and also standard
conditional cost function weighted by the probability distribution of number of defective
units [݃ሺݔଵሻ], from first sample, it is obtained from;
ሺݔଵሻ ൌ ݃భ
ሺݔଵሻ ൌ ݃భ,మ
ሺݔଵ, ݔଶሻ
௫మ
6. International Journal of Advanced Research in Engineering and Technology (IJARET), ISSN 0976 –
6480(Print), ISSN 0976 – 6499(Online) Volume 4, Issue 2, March – April (2013), © IAEME
287
To satisfy the aim of research which is to find the parameters ሺܽଵ, ݎଵ, ܽଶሻ from
minimizing (ܴଶ), we apply difference equation since the distribution of number of defectives
in production is of discrete type, and also we consider;
∆ ܴଶ ൌ
∆ మ
మିோమ
The differences equations according to ሺݎଵ, ܽଵ, ܽଶሻ, required to rewrite (݇ଶ) as in equation
(19) follows;
Since;
݇ଶ ൌ
݇ଵሺܽଵ, ݊ଵ, ܰሻሺܣଶܴଶሻ ∑ ݃ሺݔଵሻ൛݊ଶߜሾሺݔଵሻሿ ሺܰ െ ݊ଵ െ
భିଵ
௫భୀభାଵ
݊ଶሻ ∑ ݃ሺݔଶ|ݔଵሻሾሺݔଵ, ݔଶሻ െ ݎሿ
మି௫భ
௫మୀ ൟ …………………………………….. … (19)
Then using;
∆ ܴଶ ൌ
∆ మ
మିோమ
ൌ ݃ሺݔଵሻ ቐ݊ଶߜሾሺݔଵሻሿ ሺܰ െ ݊ଵ െ ݊ଶሻ ݃ሺݔଶ|ݔଵሻሾሺݔଵ, ݔଶሻ െ ݎሿ
మି௫భ
௫మୀ
ቑ
భିଵ
௫భୀభାଵ
െ ݃ሺݔଵሻ ቐ݊ଶߜሾሺݔଵሻሿ ሺܰ െ ݊ଵ െ ݊ଶሻ ݃ሺݔଶ|ݔଵሻሾሺݔଵ, ݔଶሻ െ ݎሿ
మି௫భ
௫మୀ
ቑ
భିଵ
௫భୀభାଵ
… (20)
We can find [ ∆భ
ܴଶሺݎଵሻ] as;
∆
భ
ܴଶሺݎଵሻ ൌ ݃భ
ሺݎଵሻቐ݊ଶߜቂభ
ሺభሻ
ቃ ሺܰ െ ݊ଵ െ ݊ଶሻ ݃మ
ሺݔଶ|ݔଵሻቂభାమ
ሺభ, ௫మሻ
െ ݎቃ
మିభ
௫మୀ
ቑ
… (21)
And also;
∆
భ
ܴଶሺܽଵሻ ൌ ݃ሺݔଵሻ ቐ݊ଶߜሾሺݔଵሻሿ ሺܰ െ ݊ଵ݊ଶሻ ݃ሺݔଶ|ݔଵሻሾሺݔଵ, ݔଶሻ െ ݎሿ
మି௫భ
௫మୀ
ቑ
భିଵ
௫భୀభାଶ
െ ݃ሺݔଵሻ ቐ݊ଶߜሾሺݔଵሻሿ ሺܰ െ ݊ଵ െ ݊ଶሻ ݃ሺݔଶ|ݔଵሻሾሺݔଵ, ݔଶሻ െ ݎሿ
మି௫భ
௫మୀ
ቑ
భିଵ
௫భୀభାଵ
… (22)
And also the difference of [ܴଶሺܽଵሻ] with respect to ሺܽଵሻ;
∆భ
ܴଶሺܽଵሻ ൌ ݃భ
ሺܽଵ 1ሻ ቄ݊ଶሺܣଶ െ ܵଵሻቂభ
ሺభାଵሻ
ቃ െ ሺܵଵ െ ܣଵሻ|ሺܣଶ െ ܴଶሻ ݃భ
ሺܽଵ
1ሻሺܰ െ ݊ଵ െ ݊ଶሻ ∑ ݃మ
ሺݔଶ|ܽଵ 1ሻቂభାమ
ሺభାଵା ௫మሻ
െ ݎቃ
మ
௫మୀమିభ
ቅ …………. … (23)
From ∆మ
ܴଶሺܽଶሻ we can find the value of parameter (ܽଶ) for given (݊ଵ, ݊ଶ ) which satisfy
the inequality (24) follows.
̂భାమ
ሺܽොଶሻ ݎ ̂భାమ
ሺܽොଶ 1ሻ …………………………………….. (24)
Then;
̂ݎଵ ൌ ܽොଶ 1 ݄݊݁ݓ ݇ݏ ൌ ݇ݎ
̂ݎଵ ܽොଶ 1 ݂ݎ ݇ݏ ݇ݎ
7. International Journal of Advanced Research in Engineering and Technology (IJARET), ISSN 0976 –
6480(Print), ISSN 0976 – 6499(Online) Volume 4, Issue 2, March – April (2013), © IAEME
288
And when [ܽଶ ൌ ܽଵ], the second term of ∆భ
ܴଶሺܽଵሻ is positive, so we assume that
[ܽଵ ൌ ܽଵ
כ
] is the value at which the first term of ∆మ
ܴଶሺܽଶሻ is positive therefore
∆ ܴଶሺܽଵ
כሻ 0 and when ݇ݏ ൌ ݇ݎ ฺ ሺ̂ݎଵ ൌ ܽොଶ 1ሻ, and we see that the average cost of
inspection equal to average cost of reject, therefore we need only to find the parameters
(ܽଵ, ܽଶ ) and from ∆భ
ܴଶሺܽଵሻ we obtain భ
ሺܽොଵ 1ሻ ݎ subject to ݎଵ ݊ଵ 1.
After completing model for double Bayesian sampling inspection plan, this model is
applied to distribution of Beta – Binomial.
From ∆మ
ܴଶሺܽଶሻ we can find (ܽଶ) that satisfy the inequality (24).
భାమ
ሺܽොଶሻ ݎ భାమ
ሺܽොଶ 1ሻ ………………………………………. (25)
When (ܽଵ ൌ ܽଶ), the second term of ∆భ
ܴଶሺܽଵሻ is positive, so we assume that (ܽଵ ൌ ܽଵ
כ
) is
the value of which the first term of ∆మ
ܴଶሺܽଶሻ is positive therefore ∆ ܴଶሺܽଵ
כ
ሻ 0.
When;
݇ݏ ൌ ݇ݎ
Then;
∆ ܴଶሺݎଵሻ 0 ฺ ̂ݎଵ ൌ ܽොଶ 1
And for ݇ݏ ݇ݎ ฺ ̂ݎଵ ܽොଶ 1
And when ݇ݏ ൌ ݇,ݎ we saw that average cost of inspection equal average cost of reject,
therefore we need only to find the parameters (ܽଵ, ܽଶ), and from equation ∆భ
ܴଶሺܽଵሻ, we
obtain భ
ሺܽොଵ 1ሻ ݎ subject to (ݎଵ ݊ଵ 1).
4 - APPLICATION OF PROPOSED MODEL
After the total cost function are built, it is necessary to apply this model for sampling
distribution to show how the parameters of double sampling plans are obtained, to take a
decision for accept or reject, assume (ݔଵ, ݔଶ, ݔଷ ) are three independent random variables
follow Binomial distribution as:
ݔଵ~ܾሺ݊ଵ, ሻ
ݔଶ~ܾሺ݊ଶ, ሻ
ݔଷ~ܾሺ݊ଷ, ሻ
And () is random variable varied from lot to lot, and it's prior distribution [݂ሺሻ] is
assumed here ܽݐ݁ܤ ሺ,ݏ ݐሻ, (Beta prior), so the joint probability distribution of (ݔଵ, ݔଶ, ݔଷ ) is;
ሺݔଵ, ݔଶ, ݔଷ ሻ ൌ න ܥ௫భ
భ
ଵ
௫భݍభ ି ௫భܥ௫మ
మ
௫మݍమ ି ௫మܥ௫య
య
௫యݍయ ି ௫య
1
ܽݐ݁ܤ ሺ,ݏ ݐሻ
ௌିଵ
ݍ௧ି ଵ
݀
ൌ
ೣభ
భೣమ
మೣయ
య
௧ ሺ௦,௧ሻ
௫భା௫మା௫యାௌିଵଵ
ݍభ ାమ ାయ ି ௫భି௫మି௫యା௧ିଵ
݀
ൌ
ೣభ
భೣమ
మೣయ
య
௧ ሺ௦,௧ሻ
ܽݐ݁ܤ ሺݔଵ ݔଶ ݔଷ ܵ, ݊ଵ ݊ଶ ݊ଷ െ ݔଵ െ ݔଶ െ ݔଷ ݐሻ …. (26)
Also we can find the posterior distribution ݂ሺݔ|ଵሻ and ݂ሺݔ|ଵ, ݔଶሻ ൌ ݂ሺݔ|ଵ ݔଶሻ, and;
ሺݔଶ|ݔଵሻ ൌ ܾሺݔଶ, ݊ଶ, ሻ݂ሺݔ|ଵሻ ݀
ଵ
Since;
݂ሺݔ|ଵሻ ൌ
݆ݐ݊݅ ሺ, ݔଵሻ
݃ሺݔଵሻ
݃ሺݔଵሻ ൌ න ܥ௫భ
భ
ଵ
௫భݍభ ି ௫భ
1
ܽݐ݁ܤ ሺ,ݏ ݐሻ
ௌିଵ
ݍ௧ି ଵ
݀
8. International Journal of Advanced Research in Engineering and Technology (IJARET), ISSN 0976 –
6480(Print), ISSN 0976 – 6499(Online) Volume 4, Issue 2, March – April (2013), © IAEME
289
݃ሺݔଵሻ ൌ
ܥ௫భ
భ
ܽݐ݁ܤ ሺ,ݏ ݐሻ
ܽݐ݁ܤ ሺݔଵ ܵ, ݊ଵ െ ݔଵ ݐሻ
And from equation below which is Beta distribution;
݂ሺݔ|ଵሻ ൌ
ሺ,௫భ ሻ
ሺ௫భሻ
The conditional distribution of () given (ݔଵ) is;
݂ሺݔ|ଵሻ ൌ
ଵ
௧ሺ௫భାௌ,భ ି ௫భା௧ሻ
௫భାௌିଵ
ݍభ ି ௫భା௧ିଵ
…………………….. (27)
And;
ܧሺݔ|ଵሻ ൌ
ݔଵ ܵ
݊ଵ ܵ ݐ
Also we can find ݎሺݔଶ|ݔଵሻ;
ݎሺݔଶ|ݔଵሻ ൌ ܾሺݔଶ, ݊ଶ, ሻ
ଵ
݂ሺݔ|ଵሻ݀ ………………………………….. (28)
ൌ
ଵ
ܥ௫మ
మଵ
௫మݍమ ି ௫మ௫భାௌିଵ
ݍభ ି ௫భା௧ିଵ
݀
ݎሺݔଶ|ݔଵሻ ൌ
ଵ
ܥ௫మ
మ
ܽݐ݁ܤ ሺݔଵ ݔଶ ܵ, ݊ଵ ݊ଶ െ ݔଵ െ ݔଶ ݐሻ
ݎሺݔଶ|ݔଵሻ ൌ
ௌା௫భ
ௌା௫భା௫మ
ೣమ
మೄశೣభ
భశశೄషభ
ೄశೣభశೣమ
భశమశశೄషభ ………………………………………. (29)
Which is [݃ሺݔଶ|ݔଵሻ]
Assume ݔଷ ൌ ܺ െ ݔଵ െ ݔଶ
ݔଷ~ ݈ܽ݅݉݊݅ܤ ሺ݊ଷ, ሻ
Then the conditional distribution of (ݔଷ) given (ݔଵ, ݔଶ) is;
ݎሺݔଷ|ݔଵ, ݔଶሻ ൌ ܾሺݔଷ, ݊ଷ, ሻ
ଵ
݂ሺݔ|ଵ ݔଶሻ݀ ……………………….. (30)
To solve equation (30), we need to find ݂ሺݔ|ଵ ݔଶሻ;
Let ݕ ൌ ݔଵ ݔଶ
ݔଵ~ ܾሺ݊ଵ, ሻ
ݔଶ~ ܾሺ݊ଶ, ሻ
And are independent, then;
ݕ ൌ ݔଵ ݔଶ ~ ܤሺ݊ଵ ݊ଶ, ሻ
݃ሺ, ݕሻ ൌ ܥ௬
భାమ
௬
ݍభାమି௬
1
ܤሺܵ, ݐሻ
ௌିଵ
ݍ௧ିଵ
݃ሺ|ݕሻ ൌ
1
ܤሺܵ, ݐሻ
න ܥ௬
భାమ
௬ାௌିଵ
ݍభାమି௬ା௧ିଵ
݀
ଵ
݃ሺ|ݕሻ ൌ
1
ܤሺܵ, ݐሻ
ܥ௬
భାమ
ܽݐ݁ܤ ሺݕ ܵ, ݊ଵ ݊ଶ െ ݕ ݐሻ
݂ሺݕ| ൌ ݔଵ ݔଶሻ ൌ
݆ݐ݊݅
݈݉ܽܽ݊݅݃ݎ
ൌ
భ
ಳሺೄ,ሻ
భశమశೄషభభశమషశషభ
భ
ಳሺೄ,ሻ
భశమ௧ ሺ௬ାௌ,భାమି௬ା௧ሻ
ൌ
ଵ
௧ ሺ௬ାௌ,భାమି௬ା௧ሻ
௬ାௌିଵ
ݍభାమି௬ା௧ିଵ
0 1 …………. (31)
Then ݂ሺݕ| ൌ ݔଵ ݔଶሻ is distributed as Beta distribution with parameters (ݕ ܵ, ݊ଵ
݊ଶ െ ݕ .)ݐ This distribution is necessary to find the distribution of number of defectives
ሺݔଷ) after drawing the first and second sample, i.e to find the distribution of ሺݔଷ|ݔଵ, ݔଶሻ.
9. International Journal of Advanced Research in Engineering and Technology (IJARET), ISSN 0976 –
6480(Print), ISSN 0976 – 6499(Online) Volume 4, Issue 2, March – April (2013), © IAEME
290
ሺݔଷ|ݔଵ, ݔଶሻ ൌ න ܾሺݔଷ, ݊ଷ, ሻ݂ሺݔ|ଵ ݔଶ ൌ ݕሻ݀
ଵ
ൌ න ܥ௫య
య
ଵ
௫యݍయି ௫య
1
ܽݐ݁ܤሺݕ ܵ, ݊ଵ ݊ଶ ݐ െ ݕሻ
௬ାௌିଵ
ݍభାమା௧ି௬ିଵ
݀
ൌ
ܥ௫య
య
ܽݐ݁ܤሺݕ ܵ, ݊ଵ ݊ଶ െ ݕ ݐሻ
න ௫యା௬ାௌିଵ
ଵ
ݍభାమାయି௫యା௧ି௬ିଵ
݀
ൌ
ܥ௫య
య
ܽݐ݁ܤሺݕ ܵ, ݊ଵ ݊ଶ െ ݕ ݐሻ
ܽݐ݁ܤ ሺݔଷ ݕ ܵ, ݊ଵ ݊ଶ ݊ଷ െ ݔଷ ݐ െ ݕሻ
ൌ
ܥ௫య
య
Γሺݔଷ ݕ ܵሻ Γ ሺ݊ଵ ݊ଶ ݊ଷ െ ݔଷ െ ݕ ݐሻ
Γ ሺݕ ܵሻΓ ሺ݊ଵ ݊ଶ ݐ െ ݕሻ
Γ ሺ݊ଵ ݊ଶ ݐ ܵሻ
Γ ሺܵ ݐ ݊ଵ ݊ଶ ݊ଷሻ
ൌ
ೣయ
యሺభାమା௧ାୗିଵሻ!
ሺ௬ାௌିଵሻ!ሺభାమା௧ି୷ିଵሻ!
ൈ
ሺ௫యା௬ାௌିଵሻ!ሺభାమାయି௫యି௬ା௧ିଵሻ!
ሺௌା௧ାభାమାయିଵሻ!
ൌ
ೣయ
యశೄ
భశమశశೄషభ
ሺ௫యାௌା௬ሻ
ೣయశೄశ
భశమశయశశೄషభ
ሺ௬ାௌሻ
Which is mixed hypergeometric distribution.We can obtain the conditional mean of ሺݔଷሻ
given ሺݔଵ, ݔଶሻ;
ܧሺݔଷ|ݔଵ, ݔଶሻ ൌ ݊ଷభାమ
ሺ௫భ,௫మሻ
Where,
ሺݔଵ, ݔଶሻ ൌ భାమ
ሺ௫భା௫మሻ
5- CASE STUDY
The following data represents the percentage of defectives of (140) lots from some
industrial companies in Iraq, these percentages are grouped in frequency table as follows;
Table (1): The frequency table for percentage of defectives of 140 lots
Percentage of
defectives
Observed
frequency ሺ݂ሻ
Class mark
݂
ଶ
݂
0.0 - 6 0.01 0.06 0.0116
0.02 - 13 0.03 0.39 0.0117
0.04 - 17 0.05 0.85 0.0425
0.06 - 24 0.07 1.68 0.1176
0.08 - 18 0.09 1.62 0.1456
0.10 - 16 0.11 1.76 0.1936
0.12 - 15 0.13 1.95 0.2535
0.14 - 10 0.15 1.50 0.2250
0.16 - 9 0.17 1.53 0.2601
0.18 - 7 0.19 0.33 0.2527
0.20 - 3 0.21 0.63 0.1323
0.22 – 0.24 2 0.23 0.46 0.1058
Total 140 13.699 1.7413
10. International Journal of Advanced Research in Engineering and Technology (IJARET), ISSN 0976 –
6480(Print), ISSN 0976 – 6499(Online) Volume 4, Issue 2, March – April (2013), © IAEME
291
Then we draw the histogram and frequency curve, the curve indicate it is Beta distribution
with parameters (S, T), which are estimated by moments method using the equations;
ܵመ ൌ ݔሾ ݔݔ െ ܵ
ଶ
ሿหܵ
ଶ
ܶ ൌ ݔሾ ݔݔ െ ܵ
ଶ
ሿหܵ
ଶ
Where;
ݔ ൌ
∑
∑
ൌ 0.09785
ܵ
ଶ
ൌ
∑
మ
∑
െ
ଶ
ൌ 0.00286
Then;
ܵመ ൌ 2.9 ؆ 3 ܶ ൌ 26.9 ؆ 27
Then the distribution of (ሻ is tested using ( ߯ଶ
) test, where the cumulative probabilities
are computed from;
ܨሺሻ ൌ
ଵ
ሺௌ,ఛሻ
ݑௌିଵ
ሺ1 െ ݑሻ்ିଵ
݀ݑ
ൌ ܧሺܵ, ܵ ܶ െ 1, ሻ ൌ ݎሺݔ ܵሻ ൌ ∑ ܥ௫
ௌା்ିଵௌା்ିଵ
௫ୀௌ ௫
ݍௌା்ି௫ିଵ
Where;
ܵመ ൌ 3 , ܶ ൌ 27
The hypothesis tested is;
ܪ: ~ ܽݐ݁ܤ ሺܵ, ܶሻ
ܪଵ: ܽݐ݁ܤ ሺܵ, ܶሻ
Using Chi – square test, which depend on the following formula;
߯ଶ
ൌ
ሺܱ െ ܧሻଶ
ܧ
ୀଵ
The following table represents the necessary computations for goodness of fit.
Table (2): The necessary computations for goodness of fit
Proportion of
defectives
Observed
frequency (ܱሻ
ݎሺଵ ൏ ൏ ଶሻ
ܧ
ሺܱ െ ܧሻଶ
ܧ
0.0 - 6 0.0231 3.234 2.3657
0.02 - 13 0.0974 13.636 0.0296
0.04 - 17 0.1662 23.268 1.6384
0.06 - 24 0.1612 22.568 0.0908
0.08 - 18 0.1500 21.00 0.4285
0.10 - 16 0.1252 17.528 0.1332
0.12 - 15 0.0827 11.578 1.0114
0.14 - 10 0.0715 10.01 0.00001
0.16 - 9 0.0435 6.09 1.2904
0.18 - 7 0.0373 5.222 0.0605
0.20 - 3 0.0252 3.528 0.0790
0.22 – 0.24 2 0.0167 2.338 0.0488
Total 140 1 140 7.1931
11. International Journal of Advanced Research in Engineering and Technology (IJARET), ISSN 0976 –
6480(Print), ISSN 0976 – 6499(Online) Volume 4, Issue 2, March – April (2013), © IAEME
292
Comparing [ ߯
ଶ
ൌ 7.1931ሿ with ሾ߯௧ሺ.ହ,଼ሻ
ଶ
ൌ 15.507ሿ, we find that, ߯
ଶ
൏ ߯௧
ଶ
, we
accept the hypothesis that, ~ ܽݐ݁ܤ distribution with parameters ሺS,Tሻ. Then the prior
distribution of percentage of defective is Beta with ܵመ ൌ 3 , ܶ ൌ 27.
After we know that the prior distribution of percentage of defective ሾ݂ሺሻሿ is Beta –
prior with the estimated parameters ሺܵመ, ܶ ሻ we also obtain the parameters of quality
control cost for each produced units, which are;
ܣଵ ൌ 0, ܴଵ ൌ 10.000 ܦܫ
ܵଵ ൌ 10,000 ܦܫ
ܴଶ ൌ 28,000 ܦܫ
ܵଶ ൌ 28,000 ܦܫ
ܣଶ ൌ 153.000 ܦܫ
ݎ ൌ
ோభିభ
మିோమ
ൌ 0.08, which is the break even quality control point.
According to the above parameters we find the parameters of single Bayesian sampling
inspection plan from;
݊ଵ
כ
ൌ ߣଵ√ܰ ߣଶ
ܥଵ
כ
ൌ ݊ଵ
כ
ݎ ܤଵ
ܤଵ ൌ ܶݎ െ ܵመݎݍ െ
ଵ
ଶ
ൌ
ൌ 1.2
ݎ ൌ 0.08
And;
ߣଵ
ଶ
ൌ
ೝ
ೄ ೝ
ሺమିோమሻ
ଶሺௌ,்ሻሺ௦ିሻ
݇ݏ ൌ ܵଵ ܵଶ
݇݉ ൌ ݇ݎ െ ሺܣଶ െ ܴଶሻ ሺݎ െ ሻ݂ሺሻ݀
ߣଶ is a constant obtained according to the prior distribution of percentage of defective
as;
ߣଶ ൌ ሾ3ሺܵ ܶሻଶ
െ 11ሺܵ ܶሻ െ 2 െ ሺ3ܵ െ 1ሻܵ|ݎ െ ሺ3ܶ െ 1ሻܶ|ݎݍ െ 1| ݎݍݎሿ 12⁄
And
݇݉ ൌ ݇ݎ െ ሺܣଶ െ ܴଶሻ ሺݎ െ ሻ݂ሺሻ݀
Since ܵመ ൌ 3 , ܶ ൌ 27
ߣଵ ൌ 4.663, ߣଶ ൌ െ27, ܰ ൌ 200
The parameters of single Bayesian sampling inspection plan are;
݊כ
ൌ ߣଵ√ܰ ߣଶ ൌ 39
ܥכ
ൌ ݊כ
ݎ ܤଵ ൌ 2
parameters of single Bayesian sampling plan is; ሺ݊כ
ൌ 39, ܥכ
ൌ 2 ሻ, for different
values of ሾ ൌ 0.07ሺ0.05ሻ0.09ሿ for ሺܰ ൌ 200, 225, 250,275,300ሻ, the following table
summarize single sampling plans.
12. International Journal of Advanced Research in Engineering and Technology (IJARET), ISSN 0976 –
6480(Print), ISSN 0976 – 6499(Online) Volume 4, Issue 2, March – April (2013), © IAEME
293
Table (3): Single Bayesian sampling inspection plans
P 0.07 0.075 0.08 0.085 0.09
N ݊ଵ ܿଵ ܴଵ ݊ଵ ܿଵ ܴଵ ݊ଵ ܿଵ ܴଵ ݊ଵ ܿଵ ܴଵ ݊ଵ ܿଵ ܴଵ
150 10 0 71.6 15 0 80.16 23 1 102.4 17 0 70.9 20 1 72.1
175 13 0 81.8 19 1 94.37 27 1 116.0 22 1 87.9 23 1 88.9
200 17 0 95.4 23 1 107.9 30 2 126.2 27 1 104.9 27 1 105.7
225 20 0 105.65 26 1 118.2 35 2 143.2 32 2 120.3 35 2 122.3
250 23 1 115.82 29 1 128.4 38 2 153.6 36 2 135.6 38 3 137.1
275 26 1 126.02 32 2 138.6 41 3 163. 6 40 2 149. 2 41 3 150.2
300 29 1 135.22 35 2 148.8 45 3 177.2 43 2 159.4 45 3 161.4
After we find the single Bayesian sampling inspection plans, from minimizing (ܴଵ), then
minimizing (ܴଶሻ gives the double Bayesian sampling inspection plans, which works on
minimizing total expected quality control cost, derived in equation (10) and then transformed
to standard cost function (ܴ2) in equation (14).
Table (4): Double Bayesian sampling inspection plans
P 0.07 0.075 0.08 0.085 0.09
N ݊ଶ ܽଶ ܴଶ ܴଵ⁄ ݊ଶ ܽଶ ܴଶ ܴଵ⁄ ݊ଶ ܽଶ ܴଶ ܴଵ⁄ ݊ଶ ܽଶ ܴଶ ܴଵ⁄ ݊ଶ ܽଶ ܴଶ ܴଵ⁄
150 7 1 1.00 17 1 0.996 20 2 1.008 18 2 0.996 20 2 0.94
175 13 2 0.9 21 2 0.986 25 2 1.06 21 2 0.986 22 2 0.96
200 16 1 0.88 23 2 0.97 28 2 0.99 26 2 0.977 25 3 0.97
225 19 2 0.85 25 2 0.85 32 2 0.97 30 3 0.967 30 3 0.99
250 20 2 0.80 29 2 0.83 36 2 0.88 32 3 0.933 39 3 1.04
275 23 1 0.75 31 3 0.79 40 3 0.86 36 3 0.942 40 3 1.65
300 30 1 0.74 36 3 0.75 42 3 0.85 38 4 0.931 45 4 1.85
From the data we find the mean of percentage of defective is ൌ 0.09785, ݎ ൌ
0.08, ܰ ൌ 200. The single Bayesian sampling inspection plan is found ሺ݊ଵ
כ
ൌ 39, ܥଵ
כ
ൌ 2ሻ,
which defined as drawing at random from lot (ܰ ൌ 200ሻ, a sample of size ሺ݊ଵ
כ
ൌ 39ሻ, and
testing it's units, if the number of defective is found (ܥଵ
כ
ൌ 2ሻ, then accept from first sample
(ݔଵ 2ሻ but if ሺݔଵ 2) then reject from first sample and also stop, but according to the
model, we find the single Bayesian sampling inspection plans (݊ଵ, ܥଵ, ܴଵሻ as tabulated in
table (5), then the second Bayesian sampling inspection plans are found and put in table (4).
CONCLUSION
1- Finding plan which minimize the linear combination of two expected cost function
for first sampling and second sampling required a procedure carried out by means of
difference equation, since the cost function is of discrete type, and the minimization is done
in two stages to find (ܴଵሻ and ሺܴଶ).
2- We try also to find a family of optimum plans through maximizing the OC curve, but it
depend on probability of sampling under double sampling plans, and do not consider the
parameters of cost function.
3- The model was built under Beta – Binomial distribution since the distribution of process is
Binomial (݊, ሻ, and ሺ) is random variable have [݂ሺሻሿ, and it found to be Beta (ܵ, ܶ).
4- The parameters of [݂ሺሻ], (ܵ, ܶሻ are estimated by moments method and it can be estimated
also by any other statistical method.
13. International Journal of Advanced Research in Engineering and Technology (IJARET), ISSN 0976 –
6480(Print), ISSN 0976 – 6499(Online) Volume 4, Issue 2, March – April (2013), © IAEME
294
5- The decision to accept or reject obtained from second sample is more effective than the
decision just obtained from first sampling especially for expensive units.
6- The producer risk for the studied company was (ܤ ൌ 0.10), but it is found greater than this
number, because of bad station of production in Iraq, but in spite of this the company work to
satisfy the required quality control level.
7- The percentage of defectives in 140 lot are varied from to lot, so the distribution of these
percentage is considered, and it is found to be Beta prior with estimated parameters (ܵመ, ܶ),
therefore the model is build for Bayesian sampling plan.
REFERENCES
[1] Baklizi, A. (2003), "Acceptance sampling plans based on truncated life tests in the Pareto
distribution of second kind", Advances and Applications in Statistics, Vol. 3, 33- 48.
[2] Balakrishnan, N., Leiva, V. and Lopez, J. (2007), " acceptance sampling plans from
truncated life test based on generalized Birnbaum – Saunders distribution", Communications
in Statistics – Simulation and Computation, Vol. 36, 643 – 656.
[3] Epstein, B. (1954), "Truncated life test in the exponential case", Annals of mathematical
Statistics, Vol. 25, 555 – 564.
[4] Goode, H. P. and Kao, J.H.K. (1961), "Sampling plans based on the Weibull distribution",
Proceeding of the seventh national symposium on reliability and quality control,
Philadelphia, 24 – 40.
[5] Guenther, W.C. (1977), "Sampling inspection in statistical quality control", Charles Grifin
and company LTD.
[6] Gupta, S. S. and Groll, P. A. (1961), "Gamma distribution in acceptance sampling based
on life tests", Journal of the American statistical Association, Vol. 56, 942 – 970.
[7] Gupta, S. S. (1962), "life test plans for normal and log – normal distributions",
Technometrics, Vol. 4, 151 – 160.
[8] Hald, A. (1962), "some limit theorems for the Dodge – Romige LTPD single sampling
inspection plans", Technometrics, Vol. 4, 497 – 513.
[9]Hald, A. (1968), "Bayesian single sampling attribute plans for continuous prior
distributions", Technometrics, Vol. 10, 667 – 683.
[10] Nilesh Parihar and Dr. V. S. Chouhan, “Extraction of Qrs Complexes using Automated
Bayesian Regularization Neural Network”, International Journal of Advanced Research in
Engineering & Technology (IJARET), Volume 3, Issue 2, 2012, pp. 37 - 42, ISSN Print:
0976-6480, ISSN Online: 0976-6499.