LTPDvar-package {LTPDvar} | R Documentation |
LTPD and AOQL single sampling plans for inspection by variables
Description
Calculation and evaluation of rectifying LTPD and AOQL plans for sampling inspection by variables which minimize the mean inspection cost per lot of process average quality
Introduction
Assume that measurements of a single
quality characteristic are independent, identically distributed
normal random variables with parameters
and
.
For the quality characteristic
either an upper specification
limit
is given (the item is defective (non-conforming) if its measurement exceeds
), or
a lower specification limit
is given (the item is defective if its
measurement is smaller than
). It is further assumed that
the unknown parameter
is estimated using the sample standard
deviation
.
The inspection procedure is as follows:
Draw a random sample of items and compute
and
.
Accept the lot if
or
The operating characteristic (see OC
) is
where
is probability density function of non-central
distribution with
degrees of freedom and noncentrality parameter
.
If case that we do not use exact formula for OC
and we use the normal distribution
as an approximation of the non-central distribution instead, we have
where
The function is a standard normal distribution function
and
is a quantile of order
.
The task to be solved is determination of the sample size and the critical
value
.
LTPD plans for acceptance sampling inspection by variables
In case of acceptance sampling by attributes (each inspected item is classified as either good or defective), there exist a procedure (Dodge and Romig, 1998) for finding sampling plans which minimize the mean number of items inspected per lot of process average quality
under the condition which protects the consumer against the
acceptance of a bad lot – the probability
of accepting a submitted lot of tolerance quality (consumer's
risk) shall be 0.10,
(LTPD single sampling plans), where the given parameters are ,
,
.
is the number of items in the lot,
is the process average fraction defective,
is the lot tolerance fraction defective (
is the lot tolerance per cent defective – denoted LTPD),
is the number of items in the sample
,
is the acceptance number (the lot is rejected when the number
of defective items in the sample is greater than
),
is the operating characteristic
(the probability of accepting a submitted lot
with fraction defective
).
LTPD plans for inspection by variables and attributes have been introduced in (Klufa, 1994). Under the same protection of consumer, LTPD plan for inspection by variables and attributes is in many situations more economical with respect to inspection cost than the corresponding Dodge-Romig LTPD attribute sampling plan.
For LTPD plans for inspection by variables and attributes (all items from
the sample are inspected by variables, but the remainder
of rejected lots is inspected only by attributes), new parameter is introduced, as
the cost of inspection of one item by
variables divided by the cost of inspection of one item by attributes (usually is
). Then the mean inspection cost per lot of process average quality is
, where
is the cost of inspection of one item by attributes and
(see Ims
). So we search for the acceptance plan minimizing
the mean inspection cost per lot of process average quality (or equivalently minimizing
)
under the condition
.
Then may be expressed as a function of one variable
where is the producer's risk
(the probability of rejecting a lot of process average quality).
Function planLTPD
searches for the sample size minimizing
and gives plan with resulting
and corresponding
as output. In
planLTPD
if method="napprox"
, approximate OC
is used and the solution is obtained using procedure described in (Klufa, 1994). If method="exact"
(default), the optimization procedure searches for in interval with centre at
resulting from
planLTPD(..., method = "napprox")
.
AOQL plans for acceptance sampling inspection by variables
Under the assumption that each inspected item is classified as either good or defective
(acceptance sampling by attributes) Dodge and Romig (1998) introduced sampling plans
which minimize the mean number of items inspected per lot of process average quality, assuming that the remainder of rejected lots is inspected
under the condition
where is the average outgoing quality limit (the given parameter) and AOQ is the average outgoing quality, i. e. the mean fraction defective after inspection (assuming that each defective item found is replaced by good one) when the fraction defective before inspection was
.
Sampling plans for inspection by variables, which in comparison with sampling plans for inspection by attributes in many situations bring considerable savings in inspection cost, were then introduced in (Klufa, 1997).
Function
planAOQL
searches for plan minimizing under the condition that
AOQ
does not exceed the given value . In
planAOQL
if method="napprox"
, approximate OC
is used and the solution is obtained using procedure described in (Klufa, 1997). If method="exact"
(default), the optimization procedure searches for in interval with centre at
resulting from
planAOQL(..., method = "napprox")
.
Rectifying LTPD and AOQL plans minimizing
based on EWMA statistics
Another option is to use a procedure based on EWMA statistic. The procedure is as follows: draw a random sample of items from the lot and compute the sample mean
and the statistic
at time
as
, where
is a smoothing constant (usually between 0 and 1). Accept the lot if
or
The operating characteristic is (see e.g. (Aslam et al., 2015))
where
where the function
is a standard normal distribution function and
is a quantile of order
(the unique root of the equation
.
Similarly for the unknown
case, when the sample standard deviation is used in place of
- the operating characteristic is then (see e.g. Aslam et al., 2015)
where .
Author(s)
Nikola Kasprikova
Maintainer: Nikola Kasprikova <data@tulipany.cz>
References
Aslam, M., Azam, M., and Jun, C.: A new lot inspection procedure based on exponentially weighted moving average. International Journal of Systems Science 46, 1392 - 1400, 2015.
Dodge, H. F. - Romig, H. G.: Sampling Inspection Tables: Single and Double Sampling. John Wiley, 1998.
Klufa, J.: Acceptance Sampling by Variables when the Remainder of Rejected Lots is Inspected. Statistical Papers, Vol.35, 337 - 349, 1994.
Klufa, J.: Exact calculation of the Dodge-Romig LTPD single sampling plans for inspection by variables. Statistical Papers, Vol. 51(2), 297-305, 2010.
Klufa J,: Dodge-Romig AOQL single sampling plans for inspection by variables. Statistical Papers 38: 111 - 119, 1997.
See Also
planLTPD
, planAOQL
, OC
, AOQ
, Ims
Examples
# calculation of LTPD plan
zz=planLTPD(N=1000,pt=0.1,pbar=0.001);zz
plot(zz);
# create another plan
zz2=new("ACSPlan", n=16, k=2.71)
plot(zz2,xl=0.001, xu=0.15, xlabm="fraction non-conforming",
ylabm="probability of acceptance",typem="l",typeOC="exact")
plot(new("ACSPlan", n=20, k=2.58555),typeOC="ewmaSK",lam=0.95)
# calculation of AOQL plan
planAOQL(N=1000,pbar=0.005,pL=0.01, method="napprox", cm=1.5)