Menu Close

Acceptance sampling: UPSC Statistics Optional PYQ Solutions (1995–2026)

All 63 questions UPSC has asked on acceptance sampling in the Statistics Optional (Paper II, Industrial Statistics) from 1995 to 2026, solved step by step – latest first.

Try them yourself first: the same questions, without solutions, are on our Industrial Statistics topic-wise PYQs page.

How we check these solutions

These are our own solutions, prepared with AI help. UPSC does not publish official answers. Every solution is checked a second way before it goes up, and says how:

  • ✓ Checked by computer the numbers were worked out again independently in code (Python with NumPy/SciPy) and matched.
  • ✓ Derivation checked step by step for derivations and approximations, every step was checked, and the result was also tested numerically.
  • ✓ Answer checked step by step for descriptive questions, every point was checked against the standard theory.

Spotted a mistake or a neater method? Tell us in the comments below or through Report an error.

Jump to a question (year · question number):

2026 · 1b 2026 · 3a 2026 · 4a(i) 2025 · 1b 2025 · 2b(i) 2025 · 2b(ii) 2025 · 4c(ii) 2024 · 1c 2024 · 4c 2022 · 2c 2022 · 4c 2021 · 1a 2021 · 2c 2020 · 2a 2019 · 1b 2019 · 4c 2018 · 4c 2017 · 1c 2016 · 1d 2016 · 3c 2015 · 2a 2014 · 2a 2014 · 4b 2014 · 4c 2013 · 2a 2013 · 2b 2012 · 1a 2012 · 3b 2011 · 1c 2010 · 1c 2009 · 2c 2007 · 1b 2007 · 4a 2006 · 2a 2005 · 4a 2004 · 4a 2003 · 1c 2002 · 1c 2002 · 2b 2002 · 4a 2001 · 1b 2001 · 2b 2001 · 4b 2000 · 1b 2000 · 2a 2000 · 4b 1999 · 2a 1999 · 2b 1999 · 2c 1998 · 6a 1998 · 6b 1998 · 6c 1998 · 7a 1997 · 6a 1997 · 6b 1997 · 6c 1996 · 6a 1996 · 6b 1996 · 6c 1995 · 6a 1995 · 6b 1995 · 6c 1995 · 7a

Cover of the UPSC Prelims Topic-wise PYQ book with detailed explanations

From the Optional Province team

Preparing for Prelims too?

Our UPSC Prelims Topic-wise PYQ Book covers every Prelims question with detailed explanations, so you can see exactly where UPSC asks from. Now available as a hard copy and an eBook.

Buy Hard Copy on AmazonBuy eBook (PDF)

Download a free sample

Construct a single sampling plan for attributes, given the following data: A.Q.L. = 0·05 Producer’s risk = 0·05 Consumer’s risk = 0·10 LTPD = 0·20.

2026 · Paper II · Q1b · 10 marks

Solution

Requirements. The OC curve should pass (approximately) through

  • (p1,1−α)=(0.05,0.95)(p_1,1-\alpha)=(0.05,\;0.95): lots at the AQL are accepted 95% of the time;
  • (p2,β)=(0.20,0.10)(p_2,\beta)=(0.20,\;0.10): lots at the LTPD are accepted only 10% of the time.

Method (Poisson approximation, Cameron’s table). With m=npm=np, Pa=∑d=0ce−mmd/d!P_a=\sum_{d=0}^{c}e^{-m}m^d/d!. For each acceptance number cc, let m0.95m_{0.95} and m0.10m_{0.10} be the values of npnp at which Pa=0.95P_a=0.95 and Pa=0.10P_a=0.10. The plan must satisfy m0.10m0.95=p2p1=0.200.05=4.\frac{m_{0.10}}{m_{0.95}}=\frac{p_2}{p_1}=\frac{0.20}{0.05}=4 .

cc m0.95m_{0.95} m0.10m_{0.10} ratio
2 0.818 5.322 6.51
3 1.366 6.681 4.89
4 1.970 7.994 4.06
5 2.613 9.275 3.55

The ratio 4 is matched most closely by c=4c=4 (4.06).

Sample size.

  • To hold the producer’s risk: n=m0.95/p1=1.970/0.05=39.4n=m_{0.95}/p_1=1.970/0.05=39.4.
  • To hold the consumer’s risk: n=m0.10/p2=7.994/0.20=40.0n=m_{0.10}/p_2=7.994/0.20=40.0.

Both give about 40, so we take n=40,c=4.\boxed{n=40,\qquad c=4}.

Rule. From each lot, inspect a random sample of 40 items. Accept the lot if the number of defectives d≤4d\le4; reject it if d≥5d\ge5.

Check (binomial, large lots). Pa(0.05)=∑d=04(40d)(0.05)d(0.95)40−d=0.952,Pa(0.20)=0.076.P_a(0.05)=\sum_{d=0}^{4}\binom{40}{d}(0.05)^d(0.95)^{40-d}=0.952,\qquad P_a(0.20)=0.076 . So the producer’s risk is 1−0.952=0.048≤0.051-0.952=0.048\le0.05 and the consumer’s risk is 0.076≤0.100.076\le0.10. Both requirements are met.

00.050.10.20.30.400.10.250.50.750.95Lot fraction defective pPan = 40, c = 4
OC curve of n = 40, c = 4: Pa(0.05) = 0.952 and Pa(0.20) = 0.076 (binomial).

(Using exact binomial probabilities, the smallest plan meeting both risks is n=38n=38, c=4c=4; the Poisson-based plan n=40n=40, c=4c=4 is the usual textbook answer.)

✓ Checked by computer We checked in Python: Poisson ratios m₀.₁₀/m₀.₉₅ = 4.89 (c = 3), 4.06 (c = 4), 3.55 (c = 5); the plan n = 40, c = 4 gives binomial Pa(0.05) = 0.952 and Pa(0.20) = 0.076.

↑ Back to the question list

How will you draw the OC curve for a single sampling plan with sample size 5, if the acceptance number is c=2, assuming the lot size to be large? Explain.

2026 · Paper II · Q3a · 15 marks

Solution

Plan. Single sampling plan with n=5n=5, c=2c=2: inspect 5 items; accept the lot if the number of defectives d≤2d\le2, otherwise reject.

Probability of acceptance. The lot is large, so the number of defectives in the sample is binomial (type B OC curve): Pa(p)=P(d≤2)=∑d=02(5d)pd(1−p)5−d=(1−p)5+5p(1−p)4+10p2(1−p)3.P_a(p)=P(d\le2)=\sum_{d=0}^{2}\binom5d p^d(1-p)^{5-d}=(1-p)^5+5p(1-p)^4+10p^2(1-p)^3 .

Steps to draw the OC curve.

  1. Choose a set of values of the lot fraction defective pp (here 0 to 1 in steps of 0.1).
  2. For each pp compute Pa(p)P_a(p) from the formula (or from binomial tables).
  3. Plot PaP_a (y-axis) against pp (x-axis) and join the points with a smooth curve.
pp 0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1
PaP_a 1 0.991 0.942 0.837 0.683 0.500 0.317 0.163 0.058 0.009 0
00.20.40.60.8100.250.50.751Lot fraction defective pPaPa(p), n = 5, c = 2
Type B OC curve for n = 5, c = 2: Pa(p) = (1−p)⁵ + 5p(1−p)⁴ + 10p²(1−p)³. Dots are the tabulated points.

Explanation.

  • Pa=1P_a=1 at p=0p=0 (a perfect lot is always accepted) and Pa=0P_a=0 at p=1p=1.
  • The curve falls as pp increases; with n=5n=5 and c=2c=2 it is symmetric, Pa(p)+Pa(1−p)=1P_a(p)+P_a(1-p)=1, with Pa=0.5P_a=0.5 at p=0.5p=0.5.
  • Because the sample is so small, the curve is very flat: a lot with 30% defectives is still accepted 84% of the time. The plan discriminates poorly between good and bad lots. A larger nn (with cc chosen accordingly) would make the curve steeper and closer to the ideal step shape.
  • From the curve we can read the producer’s risk at any AQL (1−Pa1-P_a) and the consumer’s risk at any LTPD (PaP_a).

✓ Checked by computer We checked in Python: Pa(p) = (1−p)⁵ + 5p(1−p)⁴ + 10p²(1−p)³ at p = 0, 0.1, …, 1 (e.g. 0.9914, 0.9421, 0.8369, 0.6826, 0.5 at p = 0.1 to 0.5).

↑ Back to the question list

Discuss the theoretical basis of the sequential probability ratio test (SPRT) in acceptance sampling. Explain how acceptance and rejection numbers are chosen to satisfy α and β risks.

2026 · Paper II · Q4a(i) · 15 marks

Solution

Theoretical basis. Acceptance sampling can be seen as testing H0:p=p1(good lot, AQL)againstH1:p=p2(bad lot, LTPD),H_0:p=p_1\ (\text{good lot, AQL})\quad\text{against}\quad H_1:p=p_2\ (\text{bad lot, LTPD}), with P(reject∣p1)=αP(\text{reject}\mid p_1)=\alpha (producer’s risk) and P(accept∣p2)=βP(\text{accept}\mid p_2)=\beta (consumer’s risk). Wald’s sequential probability ratio test (SPRT) inspects items one at a time and, after each item, compares the likelihood ratio of the data so far with two constants. Among all tests with the same α\alpha and β\beta, the SPRT needs (on average) the smallest number of observations at p1p_1 and p2p_2.

Likelihood ratio. After nn items with dnd_n defectives, λn=p2dn(1−p2)n−dnp1dn(1−p1)n−dn.\lambda_n=\frac{p_2^{d_n}(1-p_2)^{n-d_n}}{p_1^{d_n}(1-p_1)^{n-d_n}} .

Decision rule. Choose constants B<1<AB<1<A:

  • if λn≤B\lambda_n\le B: accept the lot;
  • if λn≥A\lambda_n\ge A: reject the lot;
  • if B<λn<AB<\lambda_n<A: inspect another item.

Choosing AA and BB to meet α\alpha and β\beta. On rejection, λn≥A\lambda_n\ge A, i.e. P(data∣H1)≥AP(data∣H0)P(\text{data}\mid H_1)\ge A\,P(\text{data}\mid H_0). Summing over all paths that end in rejection, 1−β≥Aα⇒A≤1−βα.1-\beta\ge A\alpha\;\Rightarrow\;A\le\frac{1-\beta}{\alpha}. Similarly, on acceptance, β≤B(1−α)\beta\le B(1-\alpha), so B≥β1−αB\ge\dfrac{\beta}{1-\alpha}. Wald’s approximation (ignoring the overshoot) takes A=1−βα,B=β1−α,A=\frac{1-\beta}{\alpha},\qquad B=\frac{\beta}{1-\alpha}, which gives actual risks very close to (and at most slightly above in total) the stated ones.

Acceptance and rejection numbers. Taking logarithms, the test continues while lnB<dnlnp2p1+(n−dn)ln1−p21−p1<lnA.\ln B<d_n\ln\frac{p_2}{p_1}+(n-d_n)\ln\frac{1-p_2}{1-p_1}<\ln A . Let k=lnp2(1−p1)p1(1−p2)k=\ln\dfrac{p_2(1-p_1)}{p_1(1-p_2)}. Solving for dnd_n: −h1+sn⏟an:acceptance number<dn<h2+sn⏟rn:rejection number,\underbrace{-h_1+sn}_{a_n:\ \text{acceptance number}}<d_n<\underbrace{h_2+sn}_{r_n:\ \text{rejection number}}, h1=1kln1−αβ,h2=1kln1−βα,s=1kln1−p11−p2.h_1=\frac{1}{k}\ln\frac{1-\alpha}{\beta},\qquad h_2=\frac1k\ln\frac{1-\beta}{\alpha},\qquad s=\frac1k\ln\frac{1-p_1}{1-p_2}.

  • After nn items, the lot is accepted as soon as dn≤and_n\le a_n (rounded down) and rejected as soon as dn≥rnd_n\ge r_n (rounded up).
  • On a chart of dnd_n against nn, these are two parallel straight lines with common slope ss (which lies between p1p_1 and p2p_2), and intercepts −h1-h_1 and h2h_2. The band between them is the continuation region.
  • The OC curve passes (approximately) through (p1,1−α)(p_1,1-\alpha) and (p2,β)(p_2,\beta), as required.

✓ Derivation checked step by step Every step was checked: Wald’s SPRT for p₁ against p₂, with A ≈ (1 − β)/α and B ≈ β/(1 − α), giving the parallel acceptance and rejection lines d = −h₁ + sn and d = h₂ + sn.

↑ Back to the question list

What is meant by rectifying inspection? Explain the measures associated with rectifying inspection and derive the expressions of such measures in the case of a single sampling plan by attributes.

2025 · Paper II · Q1b · 10 marks

Solution

Rectifying inspection. Under rectifying (corrective) inspection, lots that are rejected by the sampling plan are not returned; they are screened 100%, and all defectives found are replaced by good items. Defectives found in the samples of accepted lots are also replaced. So the plan not only sorts lots but improves the outgoing quality, at the cost of extra inspection.

Measures associated with it.

  1. AOQ (average outgoing quality): the expected fraction defective in the lots after inspection, for incoming quality pp.
  2. AOQL (average outgoing quality limit): the maximum AOQ over all values of pp, the worst average quality that can go out.
  3. ATI (average total inspection): the expected number of items inspected per lot, including the screening of rejected lots. (Also the OC curve Pa(p)P_a(p) and the ASN, which for a single plan is just nn.)

Derivation for a single sampling plan (N,n,c)(N,n,c). Let the lots have fraction defective pp, and let Pa=Pa(p)=P(d≤c)P_a=P_a(p)=P(d\le c).

AOQ. Two outcomes:

  • Lot accepted (probability PaP_a): the nn sampled items have been inspected and defectives replaced; the remaining N−nN-n items are not inspected and contain on average p(N−n)p(N-n) defectives.
  • Lot rejected (probability 1−Pa1-P_a): all NN items are inspected and defectives replaced, so 0 defectives remain.

Expected number of defectives going out per lot =Pap(N−n)+(1−Pa)⋅0=P_a\,p(N-n)+(1-P_a)\cdot0. Dividing by NN, AOQ=pPa(N−n)N≈pPawhen n≪N.\boxed{\text{AOQ}=\frac{p\,P_a\,(N-n)}{N}}\;\approx\;pP_a\quad\text{when }n\ll N . (If defectives in the sample are removed but not replaced, the denominator is N−pn−p(N−n)(1−Pa)N-pn-p(N-n)(1-P_a), a small correction.)

AOQL. AOQL=max0≤p≤1AOQ(p).\text{AOQL}=\max_{0\le p\le1}\text{AOQ}(p). It is found by computing AOQ for a range of pp (or solving ddp[pPa(p)]=0\frac{d}{dp}[pP_a(p)]=0). AOQ is small for good lots (pp small) and also for very bad lots (they are rejected and screened), so it has a maximum in between. With the Poisson approximation, AOQL≈yn(1−nN)\text{AOQL}\approx\dfrac{y}{n}\left(1-\dfrac nN\right), where yy depends only on cc (e.g. y=0.3679y=0.3679 for c=0c=0, 0.84000.8400 for c=1c=1).

ATI. Accepted lots: nn items inspected; rejected lots: all NN inspected. So ATI=nPa+N(1−Pa)=n+(1−Pa)(N−n).\boxed{\text{ATI}=nP_a+N(1-P_a)=n+(1-P_a)(N-n)}. It equals nn when p=0p=0 and rises to NN as p→1p\to1.

✓ Derivation checked step by step Every step was checked: under rectifying inspection AOQ = p·Pa·(N − n)/N and ATI = n + (1 − Pa)(N − n), and AOQL is the maximum of AOQ over p.

↑ Back to the question list

State the assumptions involved under sampling inspection plans by variables and describe the operating procedure of a single sampling plan by variables under the assumption of normal distribution for a quality characteristic.

2025 · Paper II · Q2b(i) · 5 marks

Solution

Assumptions.

  1. The quality characteristic XX is measurable on a continuous scale.
  2. Its distribution within a lot is normal (or of a known form), so that the fraction defective can be computed from the mean and standard deviation.
  3. An item is defective if XX falls outside the specification limit(s) (upper UU, lower LL, or both).
  4. Items in the sample are drawn at random and independently.
  5. The standard deviation σ\sigma is either known (from past records) or estimated from the sample.
  6. A separate plan is needed for each characteristic.

Operating procedure (single specification limit; upper limit UU). The plan is given by the sample size nn and the acceptability constant kk.

  1. Draw a random sample of nn items from the lot and measure XX on each.
  2. Compute the sample mean x‾\bar x (and the sample standard deviation ss if σ\sigma is unknown).
  3. Compute the quality index QU=U−x‾σ(σ known)orQU=U−x‾s(σ unknown).Q_U=\frac{U-\bar x}{\sigma}\ (\sigma\text{ known})\qquad\text{or}\qquad Q_U=\frac{U-\bar x}{s}\ (\sigma\text{ unknown}).
  4. Accept the lot if QU≥kQ_U\ge k, i.e. x‾≤U−kσ\bar x\le U-k\sigma (or U−ksU-ks); reject it otherwise.

For a lower limit LL, use QL=(x‾−L)/σQ_L=(\bar x-L)/\sigma and accept if QL≥kQ_L\ge k. For two limits with known σ\sigma, accept if both QU≥kQ_U\ge k and QL≥kQ_L\ge k (and σ\sigma is small enough relative to U−LU-L).

nn and kk are chosen so that the OC curve passes through (p1,1−α)(p_1,1-\alpha) and (p2,β)(p_2,\beta); for known σ\sigma, n=(zα+zβzp1−zp2)2,k=zp1zβ+zp2zαzα+zβ,n=\left(\frac{z_\alpha+z_\beta}{z_{p_1}-z_{p_2}}\right)^2,\qquad k=\frac{z_{p_1}z_\beta+z_{p_2}z_\alpha}{z_\alpha+z_\beta}, where zqz_q is the upper-qq point of N(0,1)N(0,1).

✓ Answer checked step by step Every point was checked against the standard assumptions and procedure of a single sampling plan by variables (k-method, known and unknown σ).

↑ Back to the question list

Establish the relationship between the fraction defective and the acceptance probability under a single sampling plan by variables when the quality characteristic follows a normal distribution with mean μ and variance σ2, where σ2 is unknown, and when an upper specification limit is specified. Using the relationship, obtain the formula for finding the parameters of the sampling plan.

2025 · Paper II · Q2b(ii) · 10 marks

Solution

Set-up. X∼N(μ,σ2)X\sim N(\mu,\sigma^2), σ\sigma unknown; an item is defective if X>UX>U. The lot fraction defective is p=P(X>U)=1−Φ(U−μσ)⇔U−μσ=zp,p=P(X>U)=1-\Phi\!\left(\frac{U-\mu}{\sigma}\right)\quad\Longleftrightarrow\quad\frac{U-\mu}{\sigma}=z_p, where zpz_p is the upper-pp point of N(0,1)N(0,1).

Plan. Take a sample of nn; compute x‾\bar x and ss; accept the lot if x‾+ks≤U.\bar x+ks\le U .

Relationship between pp and PaP_a. For large nn, x‾\bar x and ss are independent and approximately normal with E(x‾)=μ,Var(x‾)=σ2n;E(s)≈σ,Var(s)≈σ22n.E(\bar x)=\mu,\ \operatorname{Var}(\bar x)=\frac{\sigma^2}{n};\qquad E(s)\approx\sigma,\ \operatorname{Var}(s)\approx\frac{\sigma^2}{2n}. So W=x‾+ksW=\bar x+ks is approximately normal with E(W)=μ+kσ,Var(W)=σ2(1n+k22n).E(W)=\mu+k\sigma,\qquad \operatorname{Var}(W)=\sigma^2\left(\frac1n+\frac{k^2}{2n}\right). Then Pa=P(W≤U)=Φ(U−μ−kσσ1n+k22n)=Φ(zp−k1n+k22n).P_a=P(W\le U)=\Phi\!\left(\frac{U-\mu-k\sigma}{\sigma\sqrt{\frac1n+\frac{k^2}{2n}}}\right)=\Phi\!\left(\frac{z_p-k}{\sqrt{\frac1n+\frac{k^2}{2n}}}\right). This is the OC function: for each pp (hence zpz_p) it gives PaP_a.

Finding nn and kk. Require Pa(p1)=1−αP_a(p_1)=1-\alpha and Pa(p2)=βP_a(p_2)=\beta. Writing v=1n(1+k22)v=\sqrt{\frac1n\left(1+\frac{k^2}2\right)}: zp1−kv=zα,zp2−kv=−zβ.\frac{z_{p_1}-k}{v}=z_\alpha,\qquad\frac{z_{p_2}-k}{v}=-z_\beta . Eliminating vv: zp1−kzα=k−zp2zβ⇒k=zαzp2+zβzp1zα+zβ.\frac{z_{p_1}-k}{z_\alpha}=\frac{k-z_{p_2}}{z_\beta}\;\Rightarrow\;\boxed{k=\frac{z_\alpha z_{p_2}+z_\beta z_{p_1}}{z_\alpha+z_\beta}}. Subtracting the two equations: zp1−zp2=v(zα+zβ)z_{p_1}-z_{p_2}=v(z_\alpha+z_\beta), so v=zp1−zp2zα+zβv=\dfrac{z_{p_1}-z_{p_2}}{z_\alpha+z_\beta} and n=(1+k22)(zα+zβzp1−zp2)2.\boxed{n=\left(1+\frac{k^2}{2}\right)\left(\frac{z_\alpha+z_\beta}{z_{p_1}-z_{p_2}}\right)^2}. The value of kk is the same as in the known-σ\sigma plan; the sample size is larger by the factor 1+k2/21+k^2/2, the price of not knowing σ\sigma.

Example. p1=0.01p_1=0.01, p2=0.06p_2=0.06, α=0.05\alpha=0.05, β=0.10\beta=0.10: zp1=2.326z_{p_1}=2.326, zp2=1.555z_{p_2}=1.555, zα=1.645z_\alpha=1.645, zβ=1.282z_\beta=1.282; k=1.892k=1.892, and n=(1+1.790)(3.797)2≈40n=(1+1.790)(3.797)^2\approx40 (against n≈15n\approx15 if σ\sigma were known).

✓ Derivation checked step by step Every step was checked: with σ unknown, x̄ + ks is approximately normal with variance σ²(1/n + k²/(2n)), giving Pa ≈ Φ[(z_p − k)/√(1/n + k²/(2n))] and the formulas for k and n.

↑ Back to the question list

Describe the operating procedure of unit-by-unit sequential sampling plan by attributes. What is the unique feature of a sequential sampling plan?

2025 · Paper II · Q4c(ii) · 5 marks

Solution

Operating procedure. The plan is specified by (p1,α)(p_1,\alpha) and (p2,β)(p_2,\beta), which give the acceptance and rejection lines an=−h1+sn,rn=h2+sn,a_n=-h_1+sn,\qquad r_n=h_2+sn, with k=lnp2(1−p1)p1(1−p2)k=\ln\frac{p_2(1-p_1)}{p_1(1-p_2)}, h1=1kln1−αβh_1=\frac1k\ln\frac{1-\alpha}{\beta}, h2=1kln1−βαh_2=\frac1k\ln\frac{1-\beta}{\alpha}, s=1kln1−p11−p2s=\frac1k\ln\frac{1-p_1}{1-p_2}.

  1. Draw items from the lot one at a time, at random, and inspect each.
  2. After each item, update nn (number inspected) and dnd_n (cumulative number of defectives).
  3. Compare dnd_n with the lines:
    • if dn≤and_n\le a_n: stop and accept the lot;
    • if dn≥rnd_n\ge r_n: stop and reject the lot;
    • otherwise, inspect the next item.
  4. In practice, a table of acceptance numbers (largest integer ≤an\le a_n) and rejection numbers (smallest integer ≥rn\ge r_n) is prepared for each nn, or the path of dnd_n is plotted on a chart with the two lines.
  5. Because there is no fixed upper limit, a truncation rule is usually added (e.g. stop at three times the single-sampling nn and decide by a simple rule).

Unique feature. The number of items inspected is not fixed in advance; it is a random variable that depends on the results. The decision is made as soon as the evidence is sufficient. Very good lots are accepted quickly and very bad lots are rejected quickly; only lots of intermediate quality need many items. For given α\alpha, β\beta, p1p_1, p2p_2, the SPRT has the smallest average sample number of all sampling plans (typically 30–50% less than an equivalent single sampling plan).

✓ Answer checked step by step Every point was checked against the standard item-by-item sequential plan (Wald’s SPRT lines) and its distinctive feature.

↑ Back to the question list

Explain the following terms as used in sampling inspection plans: (i) Producer’s risk (ii) Average Outgoing Quality Limit.

2024 · Paper II · Q1c · 10 marks

Solution

(i) Producer’s risk (α\alpha). It is the probability that a good lot (one with fraction defective at the acceptable quality level, p1p_1 = AQL) is rejected by the sampling plan: α=P(reject a lot∣p=p1)=1−Pa(p1).\alpha=P(\text{reject a lot}\mid p=p_1)=1-P_a(p_1).

  • It is the Type I error of the plan, regarded as testing H0H_0: the lot is of acceptable quality.
  • It is borne by the producer, whose satisfactory lots are returned or screened. Plans are usually designed with α=0.05\alpha=0.05.
  • Example: for n=100n=100, c=2c=2 and AQL 1%, α=1−P(d≤2∣p=0.01)=0.079\alpha=1-P(d\le2\mid p=0.01)=0.079.

(ii) Average Outgoing Quality Limit (AOQL). Under rectifying inspection (rejected lots are screened 100% and defectives replaced), the average outgoing quality for incoming quality pp is AOQ(p)=pPa(p)(N−n)N≈pPa(p).\text{AOQ}(p)=\frac{p\,P_a(p)(N-n)}{N}\approx pP_a(p). AOQ is small when pp is small (few defectives come in) and also when pp is large (most lots are rejected and screened). In between it reaches a maximum. This maximum value, AOQL=maxpAOQ(p),\text{AOQL}=\max_p\text{AOQ}(p), is the worst average quality that will be passed on to the consumer in the long run, whatever the quality of incoming lots.

  • It guarantees the consumer that, on average, outgoing quality will be no worse than the AOQL.
  • Dodge–Romig AOQL tables give plans that achieve a stated AOQL with minimum average total inspection.
  • Example: for n=89n=89, c=2c=2, N=1000N=1000, AOQ at p=0.01p=0.01 is about 0.0086; the AOQL of this plan is about 0.014, reached near p=0.025p=0.025.

✓ Answer checked step by step Every point was checked against the standard definitions: producer’s risk α = 1 − Pa(AQL) and AOQL = max AOQ(p) = max p·Pa(p)(N − n)/N.

↑ Back to the question list

(i) Explain the terms ‘chance causes’ and ‘assignable causes’ of variation in quality control. Also provide some principal advantages of statistical quality control. (ii) Describe the procedure of obtaining OC curve for single sampling plan.

2024 · Paper II · Q4c · 20 marks

Solution

(This question is also listed under 1.1 Control charts. The worked solution is repeated here so that this page is complete.)

(i) Chance and assignable causes.

  • Chance (common, random) causes are the many small, unavoidable sources of variation that are part of the process: slight differences in raw material, vibration, temperature, the operator’s natural variation. Each has a tiny effect; together they give a stable pattern of variation, usually close to normal. They cannot be removed economically without changing the process itself. A process with only chance causes is in statistical control.
  • Assignable (special) causes are larger, identifiable sources: a worn tool, a wrong machine setting, a defective batch of material, an untrained operator. They produce variation outside the stable pattern, and they can be found and removed. Control charts are designed to separate these from chance causes.

Principal advantages of SQC.

  1. Better and more uniform quality, with fewer defectives and less rework and scrap.
  2. Lower inspection cost: sampling replaces 100% inspection.
  3. Early detection of trouble, before many defectives are made.
  4. A basis for judging process capability against specifications.
  5. Better relations with customers, who get product of known quality.
  6. It helps in setting realistic specifications and in deciding when to adjust the process, avoiding over-adjustment.
  7. It builds quality awareness among workers and management.

(ii) OC curve of a single sampling plan (N,n,c)(N,n,c). The plan: take a random sample of nn items from a lot of size NN; accept the lot if the number of defectives d≤cd\le c, else reject.

The OC curve plots Pa(p)P_a(p), the probability of accepting a lot, against the lot fraction defective pp.

Procedure.

  1. Choose a set of values of pp: 0, 0.01, 0.02, … up to where PaP_a is near 0.
  2. For each pp, compute
    • Hypergeometric (exact, finite lot): Pa(p)=∑d=0c(Npd)(N−Npn−d)(Nn)P_a(p)=\sum_{d=0}^{c}\dfrac{\binom{Np}{d}\binom{N-Np}{n-d}}{\binom Nn} (type A curve).
    • Binomial (large lot, n/N<0.1n/N<0.1; type B curve): Pa(p)=∑d=0c(nd)pd(1−p)n−dP_a(p)=\sum_{d=0}^{c}\binom nd p^d(1-p)^{n-d}.
    • Poisson (nn large, pp small): Pa(p)=∑d=0ce−np(np)dd!P_a(p)=\sum_{d=0}^{c}\dfrac{e^{-np}(np)^d}{d!}, using Poisson tables or Thorndike charts.
  3. Plot PaP_a against pp and join the points.

Reading the curve.

  • At the AQL p1p_1, 1−Pa(p1)=α1-P_a(p_1)=\alpha is the producer’s risk.
  • At the LTPD p2p_2, Pa(p2)=βP_a(p_2)=\beta is the consumer’s risk.
  • The steeper the curve, the better the plan discriminates between good and bad lots. The ideal curve is a step at the borderline quality.

For example, for n=50n=50, c=1c=1 (Poisson): Pa(0.01)=e−0.5(1.5)=0.910P_a(0.01)=e^{-0.5}(1.5)=0.910; Pa(0.05)=e−2.5(3.5)=0.287P_a(0.05)=e^{-2.5}(3.5)=0.287.

✓ Answer checked step by step Every point was checked against the standard theory of chance and assignable causes, and the OC function of a single sampling plan, Pa(p) = Σ C(n,d) pᵈ(1−p)ⁿ⁻ᵈ for d ≤ c.

↑ Back to the question list

A company uses the following acceptance-sampling procedure–A sample equal to 10% of the lot is taken. If 2% or less of the items in the sample are defective, the lot is accepted, otherwise it is rejected. If the submitted lot varies in size from 5000 units to 10000 units, what can you say about the protection by this plan? If 0.05 is the LTPD, does this scheme offer reasonable protection to the consumer?

2022 · Paper II · Q2c · 20 marks

Solution

The plan. Sample n=0.1Nn=0.1N items and accept if the number of defectives d≤0.02nd\le0.02n:

  • N=5000N=5000: n=500n=500, c=10c=10;
  • N=10000N=10000: n=1000n=1000, c=20c=20. So the “plan” is really a different plan for each lot size, and its OC curve changes with NN.

OC values (binomial; lots are large relative to the samples):

pp 0.01 0.015 0.02 0.025 0.03 0.04 0.05
N=5000N=5000: PaP_a 0.987 0.864 0.583 0.294 0.115 0.010 0.0005
N=10000N=10000: PaP_a 0.999 0.919 0.559 0.182 0.033 0.0003 0.0000
00.010.020.030.040.050.0600.250.50.751Lot fraction defective pPaN = 5000 (n 500, c 10)N = 10000 (n 1000, c 20)
OC curves of the “10% sample, accept if ≤ 2% defective” plan for the smallest and largest lots. The protection changes with lot size; at the LTPD 0.05 both accept with probability below 0.001.

What this says about the protection.

  1. Protection is not constant. The two OC curves cross near p=0.02p=0.02. Larger lots are judged by a larger sample, so their OC curve is steeper: good lots (p<2%p<2\%) are accepted more often, bad lots (p>2%p>2\%) less often. A lot with 2.5% defectives is accepted 29% of the time if it has 5000 items, but only 18% if it has 10000. The same quality is treated differently depending only on the size of the lot, which is unfair to producer and consumer alike.
  2. The percentage rule gives no fixed risks. A sound plan should be chosen from the OC curve (fixed nn and cc for stated risks), not as a fixed percentage of the lot. The protection depends mainly on the absolute sample size nn, hardly on n/Nn/N.
  3. Inspection cost. Samples of 500–1000 are very large; a much smaller plan could give the same protection at the LTPD.

Protection at the LTPD 0.05. Pa(0.05)P_a(0.05) is 0.0005 for N=5000N=5000 and practically zero for N=10000N=10000. So the consumer’s risk is negligible: the scheme gives the consumer more than adequate protection; lots with 5% defectives will almost never be accepted. In fact, the plan protects the consumer well even at 3–4% defective. The cost is a heavy sampling burden, and lots near 2% defective (which may be acceptable) have a high chance of rejection. For example, a single plan with n≈130n\approx130, c≈3c\approx3 gives a consumer’s risk of about 0.1 at p=0.05p=0.05.

✓ Checked by computer We checked in Python: N = 5000 gives (n, c) = (500, 10), N = 10000 gives (1000, 20); Pa at p = 0.02 is 0.583 and 0.559, at p = 0.015 it is 0.864 and 0.919; at the LTPD 0.05, Pa = 0.0005 and practically 0.

↑ Back to the question list

What are sequential sampling plans? Suggest a sequential sampling plan for which p1=0.01,α=0.05,p2=0.06 and β=0.10.

2022 · Paper II · Q4c · 15 marks

Solution

Sequential sampling plans. In a sequential plan, items (or small groups) are drawn one after another, and after each inspection one of three decisions is taken: accept the lot, reject it, or continue sampling. The number inspected is not fixed in advance. Wald’s sequential probability ratio test gives the plan whose OC curve passes through (p1,1−α)(p_1,1-\alpha) and (p2,β)(p_2,\beta) with the smallest average sample number.

Plan for p1=0.01p_1=0.01, α=0.05\alpha=0.05, p2=0.06p_2=0.06, β=0.10\beta=0.10. k=lnp2(1−p1)p1(1−p2)=ln0.06×0.990.01×0.94=ln6.319=1.8436,k=\ln\frac{p_2(1-p_1)}{p_1(1-p_2)}=\ln\frac{0.06\times0.99}{0.01\times0.94}=\ln6.319=1.8436, h1=1kln1−αβ=ln9.51.8436=2.25131.8436=1.2211,h_1=\frac1k\ln\frac{1-\alpha}{\beta}=\frac{\ln9.5}{1.8436}=\frac{2.2513}{1.8436}=1.2211, h2=1kln1−βα=ln181.8436=2.89041.8436=1.5678,h_2=\frac1k\ln\frac{1-\beta}{\alpha}=\frac{\ln18}{1.8436}=\frac{2.8904}{1.8436}=1.5678, s=1kln1−p11−p2=ln(0.99/0.94)1.8436=0.051821.8436=0.0281.s=\frac1k\ln\frac{1-p_1}{1-p_2}=\frac{\ln(0.99/0.94)}{1.8436}=\frac{0.05182}{1.8436}=0.0281 .

Acceptance and rejection lines (dnd_n = defectives in the first nn items): accept if dn≤−1.221+0.0281n,reject if dn≥1.568+0.0281n.\text{accept if }d_n\le-1.221+0.0281\,n,\qquad\text{reject if }d_n\ge1.568+0.0281\,n .

0255075100125150-10123456Items inspected nDefectives foundcontinueacceptance linerejection line
Item-by-item SPRT for p₁ = 0.01, p₂ = 0.06, α = 0.05, β = 0.10: accept when d ≤ −1.221 + 0.0281n, reject when d ≥ 1.568 + 0.0281n.

In practice.

  • Rejection: 2 defectives reject the lot if they occur within the first 15 items (1.568+0.0281n≤21.568+0.0281n\le2 for n≤15n\le15); 3 defectives within the first 50; 4 within the first 86; and so on.
  • Acceptance: the lot can first be accepted, with no defectives, after n=44n=44 items (0.0281n≥1.2210.0281n\ge1.221); with 1 defective after 80 items; with 2 after 115; and so on.

Average sample number (Wald’s approximation): about 60 items at p=0.01p=0.01, 40 at p=0.06p=0.06, and a maximum of about 70 near p=s=0.028p=s=0.028. The smallest single sampling plan with the same risks is n=110n=110, c=3c=3, so the sequential plan saves roughly 35–65% of the inspection on average.

✓ Checked by computer We checked in Python: k = 1.8436, h₁ = 1.2211, h₂ = 1.5678, s = 0.02811; ASN ≈ 60 at p₁, 40 at p₂, about 70 at p = s.

↑ Back to the question list

Explain Single Sampling Plan with the help of an example. Also, write the importance of an Operating Characteristics Curve in a sampling plan.

2021 · Paper II · Q1a · 10 marks

Solution

Single sampling plan. A single sampling plan is defined by three numbers (N,n,c)(N,n,c):

  • NN: lot size;
  • nn: sample size;
  • cc: acceptance number.

Procedure. Draw a random sample of nn items from the lot and inspect them. Let dd be the number of defectives.

  • If d≤cd\le c: accept the lot.
  • If d>cd>c: reject the lot (return it to the supplier, or screen it 100% under rectifying inspection). Only one sample is taken, and the decision is always made on it.

Example. A firm receives lots of N=2000N=2000 bearings. It uses the plan n=50n=50, c=1c=1: from each lot, 50 bearings are tested; if 0 or 1 is faulty, the lot is accepted; if 2 or more are faulty, it is rejected.

  • For a lot with 1% defectives: Pa=(0.99)50+50(0.01)(0.99)49=0.911P_a=(0.99)^{50}+50(0.01)(0.99)^{49}=0.911.
  • For a lot with 5% defectives: Pa=(0.95)50+50(0.05)(0.95)49=0.279P_a=(0.95)^{50}+50(0.05)(0.95)^{49}=0.279.

Importance of the OC curve. The OC curve plots the probability of acceptance Pa(p)P_a(p) against the lot fraction defective pp.

  1. Shows the protection given by a plan: how often lots of any quality will be accepted.
  2. Gives the risks: the producer’s risk α=1−Pa(AQL)\alpha=1-P_a(\text{AQL}) and the consumer’s risk β=Pa(LTPD)\beta=P_a(\text{LTPD}).
  3. Measures discrimination: the steeper the curve, the better the plan separates good lots from bad. The ideal curve is a vertical step at the borderline quality.
  4. Design of plans: nn and cc are chosen so that the curve passes through the two agreed points (p1,1−α)(p_1,1-\alpha) and (p2,β)(p_2,\beta).
  5. Comparison of plans: two plans with the same OC curve give the same protection, so we choose the one with the smaller ASN or ATI.
  6. It also shows the effect of changing nn or cc: increasing nn (with c/nc/n fixed) makes the curve steeper; increasing cc (with nn fixed) moves it to the right.

✓ Answer checked step by step Every point was checked against the standard single sampling procedure, a worked example, and the uses of the OC curve.

↑ Back to the question list

Explain the concepts of producer’s and consumer’s risks. It has been decided to sample 100 items at random from each large batch. We reject the batch if more than 2 defectives are found. If the acceptable quality level is 1% and the unacceptable quality level is 5%, then find the producer’s and consumer’s risks.

2021 · Paper II · Q2c · 20 marks

Solution

Producer’s risk. The probability that a lot of acceptable quality (at the AQL, p1p_1) is rejected: α=1−Pa(p1).\alpha=1-P_a(p_1). The producer suffers this risk: good lots are returned or screened.

Consumer’s risk. The probability that a lot of unacceptable quality (at the LTPD or rejectable quality level, p2p_2) is accepted: β=Pa(p2).\beta=P_a(p_2). The consumer suffers this risk: bad lots are passed on.

The plan. n=100n=100, c=2c=2 (reject if more than 2 defectives), large batches, so d∼Binomial(100,p)d\sim\text{Binomial}(100,p).

Producer’s risk (p1=0.01p_1=0.01): Pa(0.01)=∑d=02(100d)(0.01)d(0.99)100−d=0.3660+0.3697+0.1849=0.9206,P_a(0.01)=\sum_{d=0}^{2}\binom{100}{d}(0.01)^d(0.99)^{100-d}=0.3660+0.3697+0.1849=0.9206, α=1−0.9206=0.0794.\alpha=1-0.9206=\mathbf{0.0794}.

Consumer’s risk (p2=0.05p_2=0.05): β=Pa(0.05)=(0.95)100+100(0.05)(0.95)99+4950(0.05)2(0.95)98=0.0059+0.0312+0.0812=0.1183.\beta=P_a(0.05)=(0.95)^{100}+100(0.05)(0.95)^{99}+4950(0.05)^2(0.95)^{98}=0.0059+0.0312+0.0812=\mathbf{0.1183}.

(With the Poisson approximation, m=npm=np: α=1−e−1(1+1+12)=0.0803\alpha=1-e^{-1}(1+1+\tfrac12)=0.0803 and β=e−5(1+5+12.5)=0.1247\beta=e^{-5}(1+5+12.5)=0.1247.)

So about 8% of acceptable batches will be rejected, and about 12% of batches at the unacceptable level will be accepted.

✓ Checked by computer We checked in Python (binomial): producer’s risk = 1 − P(d ≤ 2 | 0.01) = 0.0794, consumer’s risk = P(d ≤ 2 | 0.05) = 0.1183; Poisson gives 0.0803 and 0.1247.

↑ Back to the question list

What are sampling plans? Define consumer’s risk, producer’s risk and OC curve. In a double sampling plan with N=1000, n1=50, c1=3, n2=100 and c2=7, explain how you would draw your conclusion.

2020 · Paper II · Q2a · 15 marks

Solution

Sampling plans. A sampling (inspection) plan is a rule that states how many items to inspect from a lot and how to decide, from the results, whether to accept or reject the lot. Examples: single, double, multiple and sequential plans, by attributes or by variables.

Consumer’s risk (β\beta): the probability that a lot of unacceptable quality (at the LTPD p2p_2) is accepted, β=Pa(p2)\beta=P_a(p_2).

Producer’s risk (α\alpha): the probability that a lot of acceptable quality (at the AQL p1p_1) is rejected, α=1−Pa(p1)\alpha=1-P_a(p_1).

OC curve: the graph of the probability of acceptance Pa(p)P_a(p) against the lot fraction defective pp. It shows the protection the plan gives against lots of every quality.

The double sampling plan N=1000N=1000, n1=50n_1=50, c1=3c_1=3, n2=100n_2=100, c2=7c_2=7.

  1. Take a first random sample of n1=50n_1=50 items; let d1d_1 be the number of defectives.
    • If d1≤c1=3d_1\le c_1=3: accept the lot.
    • If d1>c2=7d_1>c_2=7 (8 or more): reject the lot.
    • If 4≤d1≤74\le d_1\le7: take a second sample.
  2. Second sample of n2=100n_2=100 items, with d2d_2 defectives.
    • If d1+d2≤c2=7d_1+d_2\le c_2=7: accept the lot.
    • If d1+d2>7d_1+d_2>7: reject the lot.
  3. Under rectifying inspection, a rejected lot is inspected 100% (all 1000 items) and its defectives replaced.

Illustration. If the first sample shows 2 defectives, we accept at once. If it shows 5, we take 100 more: with 2 or fewer in the second sample (total ≤7\le7) we accept; with 3 or more we reject. If the first sample shows 9, we reject at once.

Performance (binomial):

pp 0.02 0.05 0.08 0.10
PaP_a 0.997 0.804 0.435 0.252
ASN 52 74 103 113

For good lots the decision is usually made on the first 50 items; only doubtful lots need the second sample.

✓ Checked by computer We checked in Python: for this double plan, Pa = 0.997, 0.804, 0.435, 0.252 at p = 0.02, 0.05, 0.08, 0.10, with ASN 52 to 113.

↑ Back to the question list

Explain double sampling plan briefly. Write the formulae for obtaining ASN and ATI for double sampling plan.

2019 · Paper II · Q1b · 10 marks

Solution

Double sampling plan. It is defined by (N;n1,c1;n2,c2)(N;\;n_1,c_1;\;n_2,c_2), with c1<c2c_1<c_2.

  1. Inspect a first sample of n1n_1 items; d1d_1 defectives.
    • d1≤c1d_1\le c_1: accept the lot.
    • d1>c2d_1>c_2: reject the lot.
    • c1<d1≤c2c_1<d_1\le c_2: take a second sample of n2n_2.
  2. Second sample: d2d_2 defectives.
    • d1+d2≤c2d_1+d_2\le c_2: accept; otherwise reject. The idea is to give a lot a “second chance”: clearly good or clearly bad lots are decided on a small first sample, and doubtful lots are judged on the larger combined sample.

ASN. A second sample is taken with probability PII=P(c1<d1≤c2)P_{II}=P(c_1<d_1\le c_2). So ASN=n1+n2PII=n1+n2∑d1=c1+1c2P(d1).\text{ASN}=n_1+n_2P_{II}=n_1+n_2\sum_{d_1=c_1+1}^{c_2}P(d_1). (With curtailed inspection, the expected number is smaller.)

ATI (rectifying inspection). Let Pa1=P(d1≤c1),Pa2=∑d1=c1+1c2P(d1)P(d2≤c2−d1),Pa=Pa1+Pa2.P_{a1}=P(d_1\le c_1),\qquad P_{a2}=\sum_{d_1=c_1+1}^{c_2}P(d_1)\,P(d_2\le c_2-d_1),\qquad P_a=P_{a1}+P_{a2}.

  • Accepted on the first sample: n1n_1 items inspected.
  • Accepted on the second sample: n1+n2n_1+n_2 inspected.
  • Rejected (at either stage): the whole lot NN is screened.

ATI=n1Pa1+(n1+n2)Pa2+N(1−Pa).\text{ATI}=n_1P_{a1}+(n_1+n_2)P_{a2}+N(1-P_a). Here P(d)P(d) is binomial (nd)pd(1−p)n−d\binom{n}{d}p^d(1-p)^{n-d} for large lots (Poisson e−np(np)d/d!e^{-np}(np)^d/d! for small pp, hypergeometric for small lots).

✓ Derivation checked step by step Every step was checked: ASN = n₁ + n₂·P(c₁ < d₁ ≤ c₂) and ATI = n₁P_a1 + (n₁ + n₂)P_a2 + N(1 − P_a).

↑ Back to the question list

Draw OC curve and ASN curve for the following two sampling inspection plans. Assume large lot sizes and take values of p as 0≤p≤1 with increment of 0.2:

Sampling Plan No. Sampling No. Sample Size Combined Sample Size Acceptance No. Rejection No.
1 1st 5 5 1 2
2 1st 3 3 0 2
2 2nd 6 9 1 2

Solution

Plan 1 (single): n=5n=5, accept if d≤1d\le1, reject if d≥2d\ge2. Pa(p)=(1−p)5+5p(1−p)4,ASN=5.P_a(p)=(1-p)^5+5p(1-p)^4,\qquad \text{ASN}=5 .

Plan 2 (double): first sample n1=3n_1=3: accept if d1=0d_1=0, reject if d1≥2d_1\ge2, else (d1=1d_1=1) take a second sample of n2=6n_2=6; on the combined 9 items accept if d1+d2≤1d_1+d_2\le1 (i.e. d2=0d_2=0), reject if ≥2\ge2. Pa(p)=(1−p)3+3p(1−p)2⋅(1−p)6,ASN=3+6⋅P(d1=1)=3+18p(1−p)2.P_a(p)=(1-p)^3+3p(1-p)^2\cdot(1-p)^6,\qquad \text{ASN}=3+6\cdot P(d_1=1)=3+18p(1-p)^2 .

Values.

pp 0 0.2 0.4 0.6 0.8 1.0
Plan 1 PaP_a 1 0.737 0.337 0.087 0.007 0
Plan 2 PaP_a 1 0.613 0.236 0.065 0.008 0
Plan 1 ASN 5 5 5 5 5 5
Plan 2 ASN 3 5.30 5.59 4.73 3.58 3

Sample calculations at p=0.2p=0.2:

  • Plan 1: (0.8)5+5(0.2)(0.8)4=0.3277+0.4096=0.7373(0.8)^5+5(0.2)(0.8)^4=0.3277+0.4096=0.7373.
  • Plan 2: (0.8)3+3(0.2)(0.8)2(0.8)6=0.512+0.384×0.2621=0.6127(0.8)^3+3(0.2)(0.8)^2(0.8)^6=0.512+0.384\times0.2621=0.6127; ASN =3+18(0.2)(0.64)=5.304=3+18(0.2)(0.64)=5.304.
00.20.40.60.8100.250.50.751pPaPlan 1 (single)Plan 2 (double)00.20.40.60.8101234567pASNPlan 1Plan 2
Top: OC curves. Bottom: ASN curves; Plan 1 always inspects 5, Plan 2 inspects 3 + 6·P(d₁ = 1), which is less than 5 for p below about 0.16 and above about 0.55.

Comments. Plan 2 is the stricter plan (its OC curve lies below Plan 1’s for pp up to about 0.7). Its ASN is lower than 5 for very good or very bad lots (below about p=0.16p=0.16 and above p=0.55p=0.55), and at most 5.67 (at p=1/3p=1/3).

✓ Checked by computer We checked in Python: Plan 1 Pa = 1, 0.737, 0.337, 0.087, 0.007, 0; Plan 2 Pa = 1, 0.613, 0.236, 0.065, 0.008, 0, with ASN 3, 5.30, 5.59, 4.73, 3.58, 3 at p = 0, 0.2, …, 1.

2019 · Paper II · Q4c · 15 marks

↑ Back to the question list

In a single sampling plan (1000, 89, 2), compute the probability of acceptance of the lot if the lot fraction defective is 0.01. Also compute Average Outgoing Quality (AOQ) of the lot.

2018 · Paper II · Q4c · 15 marks

Solution

Plan. N=1000N=1000, n=89n=89, c=2c=2; lot fraction defective p=0.01p=0.01 (10 defectives in the lot).

Probability of acceptance. The sample is under 10% of the lot, so we use the binomial distribution: Pa=∑d=02(89d)(0.01)d(0.99)89−d=0.4088+0.3675+0.1634=0.9397.P_a=\sum_{d=0}^{2}\binom{89}{d}(0.01)^d(0.99)^{89-d}=0.4088+0.3675+0.1634=0.9397 . (Poisson approximation with m=np=0.89m=np=0.89: Pa=e−0.89(1+0.89+0.396)=0.9388P_a=e^{-0.89}(1+0.89+0.396)=0.9388. The exact hypergeometric value, with 10 defectives in 1000, is 0.9484.)

So about 94% of lots with 1% defectives will be accepted.

Average outgoing quality (rejected lots screened 100%, defectives replaced): AOQ=pPa(N−n)N=0.01×0.9397×9111000=0.00856,\text{AOQ}=\frac{p\,P_a\,(N-n)}{N}=\frac{0.01\times0.9397\times911}{1000}=0.00856, i.e. about 0.86% defective in the outgoing product (against 1% coming in).

The average total inspection at this quality is ATI=n+(1−Pa)(N−n)=89+0.0603×911=144\text{ATI}=n+(1-P_a)(N-n)=89+0.0603\times911=144 items per lot.

✓ Checked by computer We checked in Python: Pa = P(d ≤ 2 | n = 89, p = 0.01) = 0.9397 (binomial; Poisson 0.9388, hypergeometric 0.9484), AOQ = 0.01 × 0.9397 × 911/1000 = 0.00856.

↑ Back to the question list

For a single sampling plan, (N,n,c)=(50,15,1), compute the probability of acceptance of lots of 50 articles with 2% defective.

2017 · Paper II · Q1c · 10 marks

Solution

Plan. N=50N=50, n=15n=15, c=1c=1.

Lot quality. 2% of 50 articles is exactly D=1D=1 defective article.

Probability of acceptance. The lot is small and the sample is large relative to it (n/N=0.3n/N=0.3), so we must use the hypergeometric distribution. The number of defectives in the sample, dd, can be only 0 or 1: P(d=0)=(10)(4915)(5015)=3550=0.70,P(d=1)=(11)(4914)(5015)=1550=0.30.P(d=0)=\frac{\binom{1}{0}\binom{49}{15}}{\binom{50}{15}}=\frac{35}{50}=0.70,\qquad P(d=1)=\frac{\binom11\binom{49}{14}}{\binom{50}{15}}=\frac{15}{50}=0.30 . Since c=1c=1, the lot is accepted in both cases: Pa=P(d≤1)=0.70+0.30=𝟏.P_a=P(d\le1)=0.70+0.30=\mathbf{1}.

Every such lot is accepted: with only one defective in the lot, the sample can never contain more than one.

(Had we used the binomial approximation with p=0.02p=0.02, we would get Pa=(0.98)15+15(0.02)(0.98)14=0.965P_a=(0.98)^{15}+15(0.02)(0.98)^{14}=0.965, which is wrong here because the lot is small and sampling is without replacement.)

✓ Checked by computer We checked in Python: a lot of 50 with 2% defective contains exactly 1 defective, so the sample can contain at most 1 and Pa = 1 (hypergeometric); the binomial approximation would wrongly give 0.965.

↑ Back to the question list

What are Average Sample Number (ASN) and Average Total Inspection (ATI)? Explain the method of their calculation for a single sampling plan.

2016 · Paper II · Q1d · 10 marks

Solution

Average Sample Number (ASN). The ASN is the expected number of items inspected per lot in order to reach a decision (accept or reject), as a function of the lot quality pp. It measures the sampling cost of a plan. For double, multiple and sequential plans it depends on pp, since the number of samples needed varies.

Average Total Inspection (ATI). Under rectifying inspection, rejected lots are screened 100%. The ATI is the expected total number of items inspected per lot, including the sample and the screening of rejected lots, as a function of pp. It measures the total inspection workload.

Calculation for a single sampling plan (N,n,c)(N,n,c).

ASN. Exactly nn items are always inspected before a decision is made, whatever the result. So ASN=n(constant, for all p).\text{ASN}=n\quad\text{(constant, for all }p). (With curtailed inspection, stopping as soon as c+1c+1 defectives are found, the expected number is less than nn.)

ATI. Let Pa=P(d≤c)=∑d=0c(nd)pd(1−p)n−dP_a=P(d\le c)=\sum_{d=0}^{c}\binom nd p^d(1-p)^{n-d} (binomial; Poisson or hypergeometric as appropriate).

  • If the lot is accepted (probability PaP_a): nn items are inspected.
  • If the lot is rejected (probability 1−Pa1-P_a): all NN items are inspected. ATI=nPa+N(1−Pa)=n+(1−Pa)(N−n).\text{ATI}=nP_a+N(1-P_a)=n+(1-P_a)(N-n).

Steps to compute an ATI curve: choose values of pp; find Pa(p)P_a(p) from tables; compute n+(1−Pa)(N−n)n+(1-P_a)(N-n); plot against pp. It rises from nn at p=0p=0 to NN as p→1p\to1.

Example. N=1000N=1000, n=89n=89, c=2c=2, p=0.01p=0.01: Pa=0.940P_a=0.940, so ASN =89=89 and ATI =89+0.060(911)=144=89+0.060(911)=144.

✓ Answer checked step by step Every point was checked: for a single plan, ASN = n and ATI = n + (1 − Pa)(N − n).

↑ Back to the question list

Describe the single and double sampling plans used in acceptance sampling. Define the operating characteristic function of a sampling plan.

2016 · Paper II · Q3c · 15 marks

Solution

Single sampling plan (N,n,c)(N,n,c). From a lot of NN items, a random sample of nn is inspected. If the number of defectives d≤cd\le c (the acceptance number), the lot is accepted; if d>cd>c, it is rejected. The decision is always made on one sample.

  • Simple to design, explain and administer.
  • The sample size is fixed, which makes inspection planning easy.

Double sampling plan (N;n1,c1;n2,c2)(N;n_1,c_1;n_2,c_2).

  1. Inspect a first sample of n1n_1 items, with d1d_1 defectives.
    • d1≤c1d_1\le c_1: accept.
    • d1>c2d_1>c_2: reject.
    • c1<d1≤c2c_1<d_1\le c_2: take a second sample of n2n_2.
  2. If d1+d2≤c2d_1+d_2\le c_2: accept; otherwise reject.
  • Good and very bad lots are usually decided on the smaller first sample, so the average amount of inspection is less than that of a single plan with the same OC curve.
  • The plan has a psychological appeal: a lot gets a “second chance”.
  • It is more complex to administer, and the inspection load varies.

Operating characteristic (OC) function. For a sampling plan, the OC function is L(p)=Pa(p)=P(the lot is accepted∣lot fraction defective p),L(p)=P_a(p)=P(\text{the lot is accepted}\mid\text{lot fraction defective }p), regarded as a function of pp. Its graph is the OC curve.

  • Single plan: L(p)=∑d=0c(nd)pd(1−p)n−dL(p)=\sum_{d=0}^{c}\binom nd p^d(1-p)^{n-d} (type B; hypergeometric for type A).
  • Double plan: L(p)=P(d1≤c1)+∑d1=c1+1c2P(d1)P(d2≤c2−d1)L(p)=P(d_1\le c_1)+\sum_{d_1=c_1+1}^{c_2}P(d_1)P(d_2\le c_2-d_1). The OC function gives the producer’s risk 1−L(p1)1-L(p_1) and the consumer’s risk L(p2)L(p_2), and shows how well the plan discriminates between good and bad lots.

✓ Answer checked step by step Every point was checked against the standard single and double sampling procedures and the definition of the OC function.

↑ Back to the question list

State the single sampling plan for attributes. Explain Dodge-Romig system of determination of plan parameters for (i) LTPD plans and (ii) AOQL plans.

2015 · Paper II · Q2a · 15 marks

Solution

Single sampling plan for attributes. For a lot of NN items, inspect a random sample of nn; if the number of defectives d≤cd\le c, accept the lot; otherwise reject it. Under rectifying inspection, rejected lots are screened 100% and defectives replaced.

Dodge–Romig system. Dodge and Romig (Bell Telephone Laboratories) designed tables of single and double sampling plans for rectifying inspection. Their principle: among all plans that give the required consumer protection, choose the one that minimises the average total inspection (ATI) at the producer’s process average p‾\bar p. Entry to the tables is by lot size NN, process average p‾\bar p, and either LTPD or AOQL.

(i) LTPD plans (lot-by-lot protection).

  • Requirement: a lot with quality at the LTPD ptp_t should have only a 10% chance of acceptance: Pa(pt)=∑d=0c(Nptd)(N−Nptn−d)(Nn)=0.10(consumer’s risk Pc=0.10).P_a(p_t)=\sum_{d=0}^{c}\frac{\binom{Np_t}{d}\binom{N-Np_t}{n-d}}{\binom Nn}=0.10\quad(\text{consumer's risk }P_c=0.10).
  • Minimise the ATI at the process average: ATI(p‾)=n+[1−Pa(p‾)](N−n).\text{ATI}(\bar p)=n+\left[1-P_a(\bar p)\right](N-n).
  • Procedure: for each c=0,1,2,…c=0,1,2,\dots, find the nn that satisfies the LTPD condition; compute ATI(p‾)\text{ATI}(\bar p); choose the (n,c)(n,c) with the smallest ATI.
  • The tables (for LTPD 0.5% to 10%) give nn, cc and the resulting AOQL. Used when each lot must be protected individually (e.g. lots go to different users).

(ii) AOQL plans (average protection).

  • Requirement: the maximum average outgoing quality must not exceed the stated AOQL: maxppPa(p)(1−nN)≤AOQL.\max_p\ p\,P_a(p)\left(1-\frac nN\right)\le\text{AOQL}. With the Poisson approximation, AOQL=ycn(1−nN)\text{AOQL}=\dfrac{y_c}{n}\left(1-\dfrac nN\right), where yc=maxxxP(d≤c∣x)y_c=\max_x xP(d\le c\mid x) depends only on cc (e.g. y0=0.368y_0=0.368, y1=0.840y_1=0.840, y2=1.371y_2=1.371).
  • Minimise the ATI at the process average p‾\bar p, as before.
  • Procedure: for each cc, find nn from the AOQL condition; compute ATI(p‾)\text{ATI}(\bar p); choose the plan with the minimum.
  • The tables (for AOQL 0.1% to 10%) give nn, cc and the resulting LTPD. Used when the long-run average quality of the product is what matters (continuous supply to one user).

Use. Both tables require an estimate of the process average p‾\bar p (from past inspection). If p‾\bar p exceeds the table’s range, sampling is uneconomic and 100% inspection is recommended.

✓ Answer checked step by step Every point was checked against Dodge–Romig LTPD and AOQL plans: both minimise ATI at the process average, one subject to Pa(p_t) = 0.10 and the other to max AOQ = AOQL.

↑ Back to the question list

Explain the concept of sequential sampling plan for attributes and obtain the average sampling number function of a sequential sampling plan for testing the hypothesis H0:β=β0 against the alternative hypothesis H1:β=β1 in sampling from a population with density function f(x,β).

2014 · Paper II · Q2a · 15 marks

Solution

Sequential sampling plan for attributes. Items are inspected one by one. After each item, the cumulative number of defectives dnd_n is compared with two numbers that increase with nn: if dn≤and_n\le a_n the lot is accepted, if dn≥rnd_n\ge r_n it is rejected, and otherwise the next item is inspected. The lines an=−h1+sna_n=-h_1+sn, rn=h2+snr_n=h_2+sn come from Wald’s sequential probability ratio test (SPRT) of H0:p=p1H_0:p=p_1 against H1:p=p2H_1:p=p_2. The sample size is a random variable, and the plan reaches a decision with the smallest expected number of items.

General SPRT. (We write the parameter as θ\theta, to avoid confusion with the consumer’s risk β\beta; the question’s β0,β1\beta_0,\beta_1 are our θ0,θ1\theta_0,\theta_1.) To test H0:θ=θ0H_0:\theta=\theta_0 against H1:θ=θ1H_1:\theta=\theta_1 with observations x1,x2,…x_1,x_2,\dots from f(x,θ)f(x,\theta), let zi=lnf(xi,θ1)f(xi,θ0),Zn=∑i=1nzi.z_i=\ln\frac{f(x_i,\theta_1)}{f(x_i,\theta_0)},\qquad Z_n=\sum_{i=1}^n z_i . Continue while lnB<Zn<lnA\ln B<Z_n<\ln A; accept H0H_0 when Zn≤lnBZ_n\le\ln B and reject when Zn≥lnAZ_n\ge\ln A, with A=1−βαA=\frac{1-\beta}{\alpha}, B=β1−αB=\frac{\beta}{1-\alpha}.

ASN function. Let NN be the (random) number of observations at which the test stops. The ziz_i are i.i.d. with mean Eθ(z)E_\theta(z) when θ\theta is the true value.

Wald’s identity. Since NN is a stopping time, ZN=∑i=1NziZ_N=\sum_{i=1}^{N}z_i satisfies Eθ(ZN)=Eθ(N)Eθ(z).E_\theta(Z_N)=E_\theta(N)\,E_\theta(z).

Value of Eθ(ZN)E_\theta(Z_N). At termination, ZNZ_N is (approximately, ignoring the overshoot) either lnB\ln B (accept H0H_0) or lnA\ln A (reject H0H_0). Let L(θ)L(\theta) = OC function = Pθ(accept H0)P_\theta(\text{accept }H_0). Then Eθ(ZN)≈L(θ)lnB+[1−L(θ)]lnA.E_\theta(Z_N)\approx L(\theta)\ln B+\left[1-L(\theta)\right]\ln A .

ASN. Hence Eθ(N)≈L(θ)lnB+[1−L(θ)]lnAEθ(z),Eθ(z)≠0.\boxed{E_\theta(N)\approx\frac{L(\theta)\ln B+\left[1-L(\theta)\right]\ln A}{E_\theta(z)}},\qquad E_\theta(z)\ne0 .

  • At θ0\theta_0: L=1−αL=1-\alpha, so Eθ0(N)=(1−α)lnB+αlnAEθ0(z)E_{\theta_0}(N)=\dfrac{(1-\alpha)\ln B+\alpha\ln A}{E_{\theta_0}(z)}.
  • At θ1\theta_1: L=βL=\beta, so Eθ1(N)=βlnB+(1−β)lnAEθ1(z)E_{\theta_1}(N)=\dfrac{\beta\ln B+(1-\beta)\ln A}{E_{\theta_1}(z)}.
  • At the value θ*\theta^* where Eθ(z)=0E_\theta(z)=0, a second-order version of Wald’s identity, E(ZN2)=E(N)E(z2)E(Z_N^2)=E(N)E(z^2), gives Eθ*(N)≈−lnAlnBEθ*(z2)E_{\theta^*}(N)\approx\dfrac{-\ln A\ln B}{E_{\theta^*}(z^2)}.

For attributes (xi=1x_i=1 if defective, f(x,p)=px(1−p)1−xf(x,p)=p^x(1-p)^{1-x}): Ep(z)=plnp2p1+(1−p)ln1−p21−p1=k(p−s),E_p(z)=p\ln\frac{p_2}{p_1}+(1-p)\ln\frac{1-p_2}{1-p_1}=k(p-s), with k=lnp2(1−p1)p1(1−p2)k=\ln\frac{p_2(1-p_1)}{p_1(1-p_2)} and ss the slope of the lines. With lnA=kh2\ln A=kh_2 and lnB=−kh1\ln B=-kh_1: ASN(p)=(1−L(p))h2−L(p)h1p−s.\text{ASN}(p)=\frac{(1-L(p))h_2-L(p)h_1}{p-s}.

✓ Derivation checked step by step Every step was checked: Wald’s identity E(Z_N) = E(N)E(z), with Z_N ≈ ln A on rejection and ln B on acceptance, gives E(N) ≈ [L(θ) ln B + (1 − L(θ)) ln A]/E_θ(z).

↑ Back to the question list

Explain the terms (i) Acceptance quality level (ii) LTPD (iii) Consumers’ risk (iv) Producers’ risk (v) OC curve.

2014 · Paper II · Q4b · 10 marks

Solution

(i) Acceptable (acceptance) quality level (AQL), p1p_1. The maximum percentage (or fraction) defective that, for sampling purposes, is considered satisfactory as a process average. Lots at the AQL should be accepted with a high probability, usually 1−α=0.951-\alpha=0.95. It reflects the quality the producer can reasonably maintain.

(ii) Lot tolerance percent defective (LTPD), p2p_2 (also called the rejectable or limiting quality level). The fraction defective that the consumer regards as unacceptable in an individual lot. Lots at the LTPD should be accepted with a low probability, usually β=0.10\beta=0.10.

(iii) Consumer’s risk, β\beta. The probability that a lot of quality as bad as the LTPD is accepted: β=Pa(p2).\beta=P_a(p_2). It is the risk to the consumer of receiving bad lots (Type II error).

(iv) Producer’s risk, α\alpha. The probability that a lot of quality as good as the AQL is rejected: α=1−Pa(p1).\alpha=1-P_a(p_1). It is the risk to the producer of having good lots rejected (Type I error).

(v) OC curve. The graph of the probability of acceptance Pa(p)P_a(p) of a sampling plan against the lot fraction defective pp. For a single plan (n,c)(n,c), Pa(p)=∑d=0c(nd)pd(1−p)n−dP_a(p)=\sum_{d=0}^{c}\binom nd p^d(1-p)^{n-d}. It shows how the plan treats lots of every quality. A plan is usually designed so that its OC curve passes through the two points (AQL,1−α)(\text{AQL},1-\alpha) and (LTPD,β)(\text{LTPD},\beta). The steeper the curve between these points, the better the plan discriminates.

✓ Answer checked step by step Every point was checked against the standard definitions of AQL, LTPD, consumer’s and producer’s risk and the OC curve.

↑ Back to the question list

Suppose that the purchaser and the ender agree that a defective rate of 10% in a lot is satisfactory. For the sampling plan (N=20, n=5, c=1), determine the probability that a lot with this per cent (i.e. 10%) defective, will be accepted. Also determine the said probability if the sampling plan happens to be N=100, n=5, c=1. Which of these two sampling plans seems better and why?

2014 · Paper II · Q4c · 20 marks

Solution

Note on the question. “Ender” should read “vendor”.

Plan 1: N=20N=20, n=5n=5, c=1c=1. A 10% defective lot has D=2D=2 defectives. The number of defectives in the sample is hypergeometric: P(d=0)=(185)(205)=856815504=0.5526,P(d=1)=(21)(184)(205)=2×306015504=0.3947,P(d=0)=\frac{\binom{18}{5}}{\binom{20}{5}}=\frac{8568}{15504}=0.5526,\qquad P(d=1)=\frac{\binom21\binom{18}{4}}{\binom{20}{5}}=\frac{2\times3060}{15504}=0.3947, Pa=0.5526+0.3947=0.9474.P_a=0.5526+0.3947=\mathbf{0.9474}.

Plan 2: N=100N=100, n=5n=5, c=1c=1. Now D=10D=10: P(d=0)=(905)(1005)=0.5838,P(d=1)=(101)(904)(1005)=0.3394,P(d=0)=\frac{\binom{90}{5}}{\binom{100}{5}}=0.5838,\qquad P(d=1)=\frac{\binom{10}{1}\binom{90}{4}}{\binom{100}{5}}=0.3394, Pa=0.5838+0.3394=0.9231.P_a=0.5838+0.3394=\mathbf{0.9231}. (For a very large lot, the binomial gives 0.95+5(0.1)(0.9)4=0.91850.9^5+5(0.1)(0.9)^4=0.9185.)

Which plan is better? Compare the OC curves at other qualities:

Lot % defective 10% 15% 20% 25%
Plan 1 (N=20N=20) 0.947 0.860 0.751 0.634
Plan 2 (N=100N=100) 0.923 0.839 0.740 0.633
  • At the agreed satisfactory quality (10%), Plan 1 accepts more often (producer’s risk 5.3% against 7.7%).
  • At poorer qualities, the two plans accept almost equally often, so the consumer is about equally protected.
  • So Plan 1 discriminates slightly better: its OC curve is a little steeper. This is because the sample is 25% of the lot in Plan 1 but only 5% in Plan 2; sampling a larger fraction of a small lot (without replacement) gives a little more information.

In practice, however, both plans are poor: with only 5 items, lots with 25% defectives are still accepted about 63% of the time. A larger sample is needed for real protection. The comparison also shows that the protection depends mainly on nn and cc, and only slightly on NN.

✓ Checked by computer We checked in Python (hypergeometric): Pa = 0.9474 for N = 20 (D = 2) and 0.9231 for N = 100 (D = 10); at 20% and 25% defective the two plans give 0.751/0.740 and 0.634/0.633.

↑ Back to the question list

Explain Double sampling Plan and develop expression required for drawing OC curve in Double sampling Plan.

2013 · Paper II · Q2a · 15 marks

Solution

Double sampling plan (N;n1,c1;n2,c2)(N;\;n_1,c_1;\;n_2,c_2), c1<c2c_1<c_2.

  1. Inspect a first random sample of n1n_1 items; d1d_1 defectives.
    • If d1≤c1d_1\le c_1: accept the lot.
    • If d1>c2d_1>c_2: reject the lot.
    • If c1<d1≤c2c_1<d_1\le c_2: inspect a second sample of n2n_2 items.
  2. If d1+d2≤c2d_1+d_2\le c_2: accept; otherwise reject.

OC function. Let pp be the lot fraction defective. The lot can be accepted in two mutually exclusive ways.

(a) On the first sample: Pa1=P(d1≤c1)=∑d1=0c1P(d1).P_{a1}=P(d_1\le c_1)=\sum_{d_1=0}^{c_1}P(d_1).

(b) On the second sample: d1=jd_1=j with c1<j≤c2c_1<j\le c_2, and then d2≤c2−jd_2\le c_2-j. The two samples are independent (for large lots), so Pa2=∑j=c1+1c2P(d1=j)P(d2≤c2−j).P_{a2}=\sum_{j=c_1+1}^{c_2}P(d_1=j)\,P(d_2\le c_2-j).

Hence Pa(p)=∑j=0c1P(d1=j)+∑j=c1+1c2P(d1=j)∑i=0c2−jP(d2=i).\boxed{P_a(p)=\sum_{j=0}^{c_1}P(d_1=j)+\sum_{j=c_1+1}^{c_2}P(d_1=j)\sum_{i=0}^{c_2-j}P(d_2=i)}.

Distributions to use.

  • Large lots (type B curve): P(d1=j)=(n1j)pj(1−p)n1−jP(d_1=j)=\binom{n_1}{j}p^j(1-p)^{n_1-j}, P(d2=i)=(n2i)pi(1−p)n2−iP(d_2=i)=\binom{n_2}{i}p^i(1-p)^{n_2-i}.
  • Poisson approximation: P(d1=j)=e−n1p(n1p)j/j!P(d_1=j)=e^{-n_1p}(n_1p)^j/j!, P(d2=i)=e−n2p(n2p)i/i!P(d_2=i)=e^{-n_2p}(n_2p)^i/i!, with cumulative Poisson tables.
  • Finite lots (type A): d1d_1 is hypergeometric from (N,Np)(N,Np); given d1=jd_1=j, d2d_2 is hypergeometric from the remaining N−n1N-n_1 items with Np−jNp-j defectives.

Drawing the OC curve. Compute PaP_a for a set of values of pp (from 0 up to where PaP_a is near 0), plot against pp and join. It is often helpful to plot Pa1P_{a1} too, which shows how much acceptance happens on the first sample.

Example. n1=50n_1=50, c1=3c_1=3, n2=100n_2=100, c2=7c_2=7, p=0.05p=0.05: Pa1=0.760P_{a1}=0.760, Pa2=0.044P_{a2}=0.044, Pa=0.804P_a=0.804.

✓ Derivation checked step by step Every step was checked: Pa(p) = P(d₁ ≤ c₁) + Σ P(d₁ = j)·P(d₂ ≤ c₂ − j) over c₁ < j ≤ c₂, under binomial, Poisson and hypergeometric models.

↑ Back to the question list

Explain the procedure for drawing the 5-points A S N curve for the sequential sampling plan.

2013 · Paper II · Q2b · 15 marks

Solution

The sequential plan. For p1p_1, α\alpha, p2p_2, β\beta, the item-by-item plan accepts when dn≤−h1+snd_n\le-h_1+sn and rejects when dn≥h2+snd_n\ge h_2+sn, with k=lnp2(1−p1)p1(1−p2),h1=1kln1−αβ,h2=1kln1−βα,s=1kln1−p11−p2.k=\ln\frac{p_2(1-p_1)}{p_1(1-p_2)},\quad h_1=\frac1k\ln\frac{1-\alpha}\beta,\quad h_2=\frac1k\ln\frac{1-\beta}\alpha,\quad s=\frac1k\ln\frac{1-p_1}{1-p_2}.

General ASN formula (Wald, ignoring overshoot): ASN(p)=[1−L(p)]h2−L(p)h1p−s,\text{ASN}(p)=\frac{\left[1-L(p)\right]h_2-L(p)\,h_1}{p-s}, where L(p)L(p) is the OC function. We compute it at five convenient points, where L(p)L(p) is known without further calculation.

The five points.

Point pp L(p)L(p) ASN
1 00 1 h1s\dfrac{h_1}{s}
2 p1p_1 1−α1-\alpha (1−α)h1−αh2s−p1\dfrac{(1-\alpha)h_1-\alpha h_2}{s-p_1}
3 ss h2h1+h2\dfrac{h_2}{h_1+h_2} h1h2s(1−s)\dfrac{h_1h_2}{s(1-s)}
4 p2p_2 β\beta (1−β)h2−βh1p2−s\dfrac{(1-\beta)h_2-\beta h_1}{p_2-s}
5 11 0 h21−s\dfrac{h_2}{1-s}
  • At p=0p=0: no defectives ever appear, so the lot is accepted when sn≥h1sn\ge h_1, after h1/sh_1/s items.
  • At p=1p=1: every item is defective, so rejection comes when n≥h2+snn\ge h_2+sn, after h2/(1−s)h_2/(1-s) items.
  • At p=sp=s, E(z)=0E(z)=0 and the formula is 0/00/0; the limit (from E(ZN2)=E(N)E(z2)E(Z_N^2)=E(N)E(z^2)) gives h1h2/[s(1−s)]h_1h_2/[s(1-s)]. This is close to the maximum of the ASN curve.

Procedure.

  1. Compute kk, h1h_1, h2h_2 and ss from p1,α,p2,βp_1,\alpha,p_2,\beta.
  2. Compute the ASN at the five points from the table.
  3. Plot ASN against pp and draw a smooth curve through the five points. The curve rises from h1/sh_1/s at p=0p=0 to a maximum near p=sp=s, and falls to h2/(1−s)h_2/(1-s) at p=1p=1.

Example. p1=0.01p_1=0.01, α=0.05\alpha=0.05, p2=0.06p_2=0.06, β=0.10\beta=0.10: h1=1.221h_1=1.221, h2=1.568h_2=1.568, s=0.0281s=0.0281. The five ASN values are 43.4, 59.7, 70.1, 40.4 and 1.6.

✓ Derivation checked step by step Every step was checked: ASN(p) = [(1 − L)h₂ − L h₁]/(p − s), giving h₁/s, [(1−α)h₁ − αh₂]/(s − p₁), h₁h₂/[s(1 − s)], [(1−β)h₂ − βh₁]/(p₂ − s) and h₂/(1 − s).

↑ Back to the question list

Describe single and double sampling plans used in acceptance sampling. Define the operating characteristic function of a sampling plan.

2012 · Paper II · Q1a · 12 marks

Solution

Single sampling plan (N,n,c)(N,n,c). Inspect a random sample of nn items from the lot. Accept the lot if the number of defectives dd is at most the acceptance number cc; otherwise reject it. One sample always decides.

Double sampling plan (N;n1,c1;n2,c2)(N;\;n_1,c_1;\;n_2,c_2).

  1. Inspect a first sample of n1n_1 items, finding d1d_1 defectives. Accept if d1≤c1d_1\le c_1; reject if d1>c2d_1>c_2; otherwise draw a second sample.
  2. Inspect n2n_2 more items, finding d2d_2 defectives. Accept if d1+d2≤c2d_1+d_2\le c_2; otherwise reject. Clearly good and clearly bad lots are settled on the first (smaller) sample; doubtful lots get a second look. For the same protection, the average amount of inspection is usually smaller than for a single plan, but the administration is more complicated.
Single Double
Samples 1 1 or 2
Number inspected Fixed, nn Variable; ASN =n1+n2P(c1<d1≤c2)=n_1+n_2P(c_1<d_1\le c_2)
Average inspection for same OC Larger Smaller
Administration Simple More complex
Psychology One chance “Second chance” for the lot

Operating characteristic function. For a given plan, the OC function is the probability of accepting a lot as a function of its fraction defective: L(p)=P(accept∣p).L(p)=P(\text{accept}\mid p).

  • Single plan: L(p)=∑d=0c(nd)pd(1−p)n−dL(p)=\sum_{d=0}^{c}\binom nd p^d(1-p)^{n-d}.
  • Double plan: L(p)=P(d1≤c1)+∑j=c1+1c2P(d1=j)P(d2≤c2−j)L(p)=P(d_1\le c_1)+\sum_{j=c_1+1}^{c_2}P(d_1=j)P(d_2\le c_2-j). Its graph, the OC curve, shows the protection given by the plan; at the AQL it gives 1−α1-\alpha, at the LTPD it gives β\beta.

✓ Answer checked step by step Every point was checked against the standard single and double sampling procedures and the definition of the OC function.

↑ Back to the question list

Consider an acceptance sampling plan where 50 items sampled from a huge lot will be examined and the lot will be accepted it at most two of the sampled items are found defective – otherwise the lot will be rejected. Evaluate the acceptance probability as a function of the proportion of defectives in the lot and sketch the Operating Characteristic (OC) curve. (Only a rough sketch is required and no graph paper is necessary)

2012 · Paper II · Q3b · 30 marks

Solution

Acceptance probability. The lot is huge, so the number of defectives dd in the sample of 50 is binomial (50,p)(50,p). The lot is accepted if d≤2d\le2: Pa(p)=∑d=02(50d)pd(1−p)50−d=(1−p)50+50p(1−p)49+1225p2(1−p)48.P_a(p)=\sum_{d=0}^{2}\binom{50}{d}p^d(1-p)^{50-d}=(1-p)^{50}+50p(1-p)^{49}+1225p^2(1-p)^{48}. For small pp, the Poisson approximation with m=50pm=50p is convenient: Pa≈e−50p(1+50p+1250p2)P_a\approx e^{-50p}\left(1+50p+1250p^2\right).

Values.

pp 0 0.01 0.02 0.03 0.04 0.05 0.06 0.08 0.10 0.15 0.20
PaP_a 1 0.986 0.922 0.811 0.677 0.541 0.416 0.226 0.112 0.014 0.001

OC curve (sketch).

00.050.10.150.20.2500.250.50.751Lot fraction defective pPan = 50, c = 2
OC curve, n = 50, c = 2: Pa = 0.92 at p = 0.02, 0.54 at p = 0.05, 0.11 at p = 0.10.

Features.

  • Pa=1P_a=1 at p=0p=0; the curve stays high (above 0.9) up to about 2% defective.
  • It falls steeply between 3% and 8%: Pa=0.5P_a=0.5 at about p=0.053p=0.053.
  • Beyond about 15% defective, lots are almost never accepted.
  • So the plan gives good protection against lots with more than about 8–10% defectives (consumer’s risk about 0.1 at p=0.10p=0.10), while accepting lots with 1–2% defectives most of the time.

✓ Checked by computer We checked in Python: Pa(p) = (1−p)⁵⁰ + 50p(1−p)⁴⁹ + 1225p²(1−p)⁴⁸, e.g. 0.986, 0.922, 0.811, 0.677, 0.541, 0.416, 0.226, 0.112, 0.014 at p = 0.01 to 0.15.

↑ Back to the question list

State the procedure for double sampling attributes plan for lot disposition. Also derive its OC and ASN functions.

2011 · Paper II · Q1c · 12 marks

Solution

Procedure (double sampling by attributes, for lot disposition). The plan is (N;n1,c1;n2,c2)(N;\;n_1,c_1;\;n_2,c_2) with c1<c2c_1<c_2.

  1. Draw a random sample of n1n_1 from the lot and count defectives d1d_1.
  2. If d1≤c1d_1\le c_1: accept the lot. If d1>c2d_1>c_2: reject it.
  3. If c1<d1≤c2c_1<d_1\le c_2: draw a second sample of n2n_2 from the rest of the lot and count d2d_2.
  4. If d1+d2≤c2d_1+d_2\le c_2: accept; else reject.
  5. (Rectifying inspection: rejected lots are screened 100% and defectives replaced.)

OC function. Let P(d1=j)P(d_1=j) and P(d2=i)P(d_2=i) be the (binomial, Poisson or hypergeometric) probabilities for lot quality pp.

  • Acceptance on the first sample: Pa1=∑j=0c1P(d1=j)P_{a1}=\sum_{j=0}^{c_1}P(d_1=j).
  • Acceptance on the second sample: Pa2=∑j=c1+1c2P(d1=j)∑i=0c2−jP(d2=i)P_{a2}=\sum_{j=c_1+1}^{c_2}P(d_1=j)\sum_{i=0}^{c_2-j}P(d_2=i). L(p)=Pa1+Pa2.L(p)=P_{a1}+P_{a2}.

ASN function. The second sample is needed only if c1<d1≤c2c_1<d_1\le c_2, which has probability PII=∑j=c1+1c2P(d1=j).P_{II}=\sum_{j=c_1+1}^{c_2}P(d_1=j). So the expected number of items inspected (complete inspection of both samples) is ASN(p)=n1(1−PII)+(n1+n2)PII=n1+n2PII.\text{ASN}(p)=n_1(1-P_{II})+(n_1+n_2)P_{II}=n_1+n_2P_{II}.

With curtailed inspection of the second sample (stop as soon as the total exceeds c2c_2): if d1=jd_1=j, the second sample is stopped once c2−j+1c_2-j+1 defectives are found. Then ASN=n1+∑j=c1+1c2P(d1=j)[n2PL(n2,c2−j)+c2−j+1p(1−PL(n2+1,c2−j+1))],\text{ASN}=n_1+\sum_{j=c_1+1}^{c_2}P(d_1=j)\left[n_2P_{L}(n_2,c_2-j)+\frac{c_2-j+1}{p}\left(1-P_{L}(n_2+1,c_2-j+1)\right)\right], where PL(m,r)P_L(m,r) is the probability of at most rr defectives in mm items. (The second term uses the identity E[T;T≤m]=rpP(at least r+1 defectives in m+1)E[T;T\le m]=\frac rp P(\text{at least }r+1\text{ defectives in }m+1) for the trial TT at which the rr-th defective appears.) This is smaller than n1+n2PIIn_1+n_2P_{II} for poor lots.

✓ Derivation checked step by step Every step was checked: OC = P(d₁ ≤ c₁) + Σ P(d₁ = j)P(d₂ ≤ c₂ − j) and ASN = n₁ + n₂P(c₁ < d₁ ≤ c₂), with the curtailed-inspection refinement.

↑ Back to the question list

What is rectifying inspection plan? Obtain the expressions for AOQ and ATI, with reference to a single sampling plan for attributes.

2010 · Paper II · Q1c · 12 marks

Solution

Rectifying inspection plan. A sampling plan in which lots rejected by the plan are not returned to the supplier but are inspected 100%, and every defective found (in the sample, and in rejected lots) is replaced by a good item. The plan therefore improves the quality of the product that goes out. It is used when the producer itself inspects before despatch, or when the consumer must use every lot.

Single sampling plan (N,n,c)(N,n,c). Let lots have fraction defective pp, and Pa=P(d≤c)=∑d=0c(nd)pd(1−p)n−d.P_a=P(d\le c)=\sum_{d=0}^{c}\binom nd p^d(1-p)^{n-d}.

AOQ (average outgoing quality).

  • With probability PaP_a the lot is accepted. The nn inspected items are now free of defectives; the other N−nN-n items carry on average p(N−n)p(N-n) defectives into the outgoing lot.
  • With probability 1−Pa1-P_a the lot is rejected and screened; it goes out with no defectives. Expected defectives per outgoing lot=Pap(N−n),\text{Expected defectives per outgoing lot}=P_a\,p\,(N-n), AOQ=pPa(N−n)N≈pPa(n≪N).\boxed{\text{AOQ}=\frac{p\,P_a\,(N-n)}{N}}\approx p\,P_a\quad(n\ll N). The maximum of AOQ over pp is the AOQL.

ATI (average total inspection).

  • Lot accepted: nn items inspected.
  • Lot rejected: all NN items inspected. ATI=nPa+N(1−Pa)=n+(1−Pa)(N−n).\boxed{\text{ATI}=n\,P_a+N(1-P_a)=n+(1-P_a)(N-n)}.

Example. N=1000N=1000, n=89n=89, c=2c=2, p=0.01p=0.01: Pa=0.940P_a=0.940, AOQ =0.0086=0.0086, ATI =144=144.

✓ Derivation checked step by step Every step was checked: AOQ = p·Pa(N − n)/N and ATI = n + (1 − Pa)(N − n) for a single sampling plan with rectifying inspection.

↑ Back to the question list

What do you mean by acceptance sampling plans? Between a single sampling plan with n=20, c=2 and a double sampling plan with n1=10, c1=0, n2=10, c2=2, can it be said that the second inspection scheme is more economical than the first? Give reasons justifying your answer.

2009 · Paper II · Q2c · 20 marks

Solution

Acceptance sampling plans. Rules for deciding, from the inspection of a sample, whether to accept or reject a lot. They control the risks of rejecting good lots (producer’s risk) and accepting bad lots (consumer’s risk), and are used where 100% inspection is too costly, too slow or destructive.

The two plans.

  • Single: n=20n=20, c=2c=2: accept if d≤2d\le2.
  • Double: n1=10n_1=10, c1=0c_1=0; n2=10n_2=10, c2=2c_2=2. Accept if d1=0d_1=0; reject if d1≥3d_1\ge3; if d1=1d_1=1 or 2, take 10 more and accept if d1+d2≤2d_1+d_2\le2.

To compare their economy fairly, we must check that they give about the same protection (OC curve), and then compare the average amount of inspection (ASN).

Comparison (binomial):

pp 0.01 0.02 0.05 0.10 0.15 0.20 0.30
Single PaP_a 0.999 0.993 0.925 0.677 0.405 0.206 0.035
Double PaP_a 0.999 0.994 0.931 0.701 0.440 0.241 0.053
Double ASN 11.0 11.8 13.9 15.8 16.2 15.7 13.5
Single ASN 20 20 20 20 20 20 20

For the double plan: Pa=(1−p)10+∑j=12P(d1=j)P(d2≤2−j)P_a=(1-p)^{10}+\sum_{j=1}^{2}P(d_1=j)P(d_2\le2-j), and ASN=10+10P(d1=1 or 2)\text{ASN}=10+10P(d_1=1\text{ or }2).

00.10.20.30.400.250.50.751pPasingle (20, 2)double00.10.20.30.405101520pASNsingledouble
Top: the two OC curves are almost the same. Bottom: the double plan needs on average 10 to 16 items, against 20 for the single plan.

Conclusion. Yes, the double sampling scheme is more economical.

  1. The OC curves are almost the same (the double plan is very slightly more lenient towards poor lots), so the two plans give practically the same protection to producer and consumer.
  2. The double plan inspects on average only 11–16 items per lot, against 20 for the single plan, a saving of 20–45%. For good lots (small pp) most decisions are made on the first 10 items.
  3. The saving would be larger still with curtailed inspection of the second sample. The single plan is simpler to administer, and its inspection load is constant, but in terms of inspection cost for the same protection the double plan is better.

✓ Checked by computer We checked in Python: the two OC curves nearly coincide (Pa 0.925 vs 0.931 at p = 0.05, 0.677 vs 0.701 at 0.10), and the double plan’s ASN is 11 to 16 against 20.

↑ Back to the question list

Cover of the UPSC Mains Topic-wise and Year-wise PYQs book (2013–2026)

From the Optional Province team

Strengthen your GS papers

Our UPSC Mains Topic-wise & Year-wise PYQ Book (2013–2026) maps every GS question to the syllabus, so you know what UPSC asks and how often. Now available as a hard copy and an eBook.

Buy Hard Copy on AmazonBuy eBook (PDF)

Download a free sample

Explain the construction and use of sequential sampling plans for attributes.

2007 · Paper II · Q1b · 12 marks

Solution

Construction. The plan is to have an OC curve passing through (p1,1−α)(p_1,1-\alpha) and (p2,β)(p_2,\beta).

  1. Likelihood ratio. After inspecting nn items one at a time and finding dnd_n defectives, λn=p2dn(1−p2)n−dnp1dn(1−p1)n−dn.\lambda_n=\frac{p_2^{d_n}(1-p_2)^{n-d_n}}{p_1^{d_n}(1-p_1)^{n-d_n}} .
  2. Wald’s limits. Continue while B<λn<AB<\lambda_n<A, with A=(1−β)/αA=(1-\beta)/\alpha and B=β/(1−α)B=\beta/(1-\alpha).
  3. Lines. Taking logs and solving for dnd_n: accept if dn≤−h1+sn,reject if dn≥h2+sn,\text{accept if }d_n\le-h_1+sn,\qquad\text{reject if }d_n\ge h_2+sn, k=lnp2(1−p1)p1(1−p2),h1=ln1−αβk,h2=ln1−βαk,s=ln1−p11−p2k.k=\ln\frac{p_2(1-p_1)}{p_1(1-p_2)},\quad h_1=\frac{\ln\frac{1-\alpha}{\beta}}{k},\quad h_2=\frac{\ln\frac{1-\beta}{\alpha}}{k},\quad s=\frac{\ln\frac{1-p_1}{1-p_2}}{k}.
  4. Table or chart. Prepare a table of acceptance numbers an=⌊−h1+sn⌋a_n=\lfloor-h_1+sn\rfloor and rejection numbers rn=⌈h2+sn⌉r_n=\lceil h_2+sn\rceil for n=1,2,…n=1,2,\dots, or draw the two parallel lines on a chart of cumulative defectives against items inspected.
  5. Truncation. Fix a maximum number of items (often about three times the equivalent single-sampling nn) at which a decision is forced.

Use.

  1. Inspect items one at a time (or in small groups for group-sequential plans), recording dnd_n, or plotting the path on the chart.
  2. As soon as the path touches or crosses the lower (acceptance) line, accept the lot; if it touches the upper (rejection) line, reject it.
  3. Otherwise continue to the next item.

Properties and use in practice.

  • The OC curve is approximately L(p)=Ah−1Ah−BhL(p)=\dfrac{A^h-1}{A^h-B^h}, where p=1−(1−p21−p1)h(p2p1)h−(1−p21−p1)hp=\dfrac{1-\left(\frac{1-p_2}{1-p_1}\right)^h}{\left(\frac{p_2}{p_1}\right)^h-\left(\frac{1-p_2}{1-p_1}\right)^h}, with parameter hh.
  • The ASN is the smallest of all plans with the same OC points, typically 30–50% below a single plan.
  • It is especially useful when inspection is costly or destructive (e.g. testing of explosives or expensive components), and when items come off the line one at a time.
  • Drawbacks: the number inspected is uncertain, which makes planning of inspection staff harder; record keeping is heavier; and occasionally a very long run is needed (hence truncation).

✓ Answer checked step by step Every point was checked against Wald’s SPRT construction of sequential attribute plans and their use.

↑ Back to the question list

Distinguish between multiple and sequential sampling plans. Derive the OC function and ASN of a double sampling plan under corrective sampling scheme.

2007 · Paper II · Q4a · 15 marks

Solution

Multiple vs sequential sampling plans.

Multiple sampling Sequential sampling
Unit of sampling Groups of fixed size nn Usually one item at a time (or small groups)
Number of stages Fixed maximum (e.g. 7 in MIL-STD-105) No fixed maximum (unless truncated)
Acceptance/rejection numbers Given for each stage in a table Given by two straight lines −h1+sn-h_1+sn, h2+snh_2+sn
Basis Designed from tables (Dodge–Romig, MIL-STD) Wald’s SPRT
Decision forced At the last stage Only by truncation
ASN Smaller than single/double Smallest for the specified risks
Administration Moderately complex More complex; uncertain workload

A multiple plan can be regarded as a truncated, group-sequential plan.

Double sampling plan under a corrective (rectifying) scheme. Plan (N;n1,c1;n2,c2)(N;n_1,c_1;n_2,c_2); rejected lots are screened 100% and defectives replaced. Let pp be the lot fraction defective.

OC function. The lot is accepted either on the first sample (d1≤c1d_1\le c_1) or on the combined sample (c1<d1=j≤c2c_1<d_1=j\le c_2 and d2≤c2−jd_2\le c_2-j): L(p)=∑j=0c1P(d1=j)+∑j=c1+1c2P(d1=j)∑i=0c2−jP(d2=i),L(p)=\sum_{j=0}^{c_1}P(d_1=j)+\sum_{j=c_1+1}^{c_2}P(d_1=j)\sum_{i=0}^{c_2-j}P(d_2=i), with P(d1=j)=(n1j)pj(1−p)n1−jP(d_1=j)=\binom{n_1}{j}p^j(1-p)^{n_1-j} and P(d2=i)=(n2i)pi(1−p)n2−iP(d_2=i)=\binom{n_2}{i}p^i(1-p)^{n_2-i} for large lots. (The corrective scheme does not change the OC function; it changes the outgoing quality and the total inspection.)

ASN. A second sample is taken only when c1<d1≤c2c_1<d_1\le c_2: ASN=n1+n2∑j=c1+1c2P(d1=j).\text{ASN}=n_1+n_2\sum_{j=c_1+1}^{c_2}P(d_1=j).

Under the corrective scheme we also have the outgoing quality and total inspection: AOQ=p[Pa1(N−n1)+Pa2(N−n1−n2)]N,ATI=n1Pa1+(n1+n2)Pa2+N(1−L(p)),\text{AOQ}=\frac{p\left[P_{a1}(N-n_1)+P_{a2}(N-n_1-n_2)\right]}{N},\qquad \text{ATI}=n_1P_{a1}+(n_1+n_2)P_{a2}+N(1-L(p)), where Pa1P_{a1} and Pa2P_{a2} are the probabilities of acceptance on the first and second samples.

✓ Derivation checked step by step Every step was checked: the multiple vs sequential distinction, and the double-plan OC = P(d₁ ≤ c₁) + ΣP(d₁ = j)P(d₂ ≤ c₂ − j) and ASN = n₁ + n₂P(c₁ < d₁ ≤ c₂) under rectifying inspection.

↑ Back to the question list

Describe a double sampling plan for attributes. Derive the expressions for OC, ASN & ATI of this plan.

2006 · Paper II · Q2a · 20 marks

Solution

The plan. A double sampling plan for attributes is (N;n1,c1;n2,c2)(N;\;n_1,c_1;\;n_2,c_2), c1<c2c_1<c_2.

  1. Take a first sample of n1n_1 items; d1d_1 defectives.
    • Accept if d1≤c1d_1\le c_1; reject if d1>c2d_1>c_2.
    • If c1<d1≤c2c_1<d_1\le c_2, take a second sample.
  2. Second sample of n2n_2; d2d_2 defectives. Accept if d1+d2≤c2d_1+d_2\le c_2; reject otherwise.
  3. Rejected lots are screened 100% (rectifying inspection) when ATI is of interest.

Let the lot fraction defective be pp; for large lots, d1∼Bin(n1,p)d_1\sim\text{Bin}(n_1,p) and d2∼Bin(n2,p)d_2\sim\text{Bin}(n_2,p), independent. Write bm(j)=(mj)pj(1−p)m−jb_m(j)=\binom mj p^j(1-p)^{m-j} and Bm(r)=∑i=0rbm(i)B_m(r)=\sum_{i=0}^{r}b_m(i).

OC function. Pa1=Bn1(c1),Pa2=∑j=c1+1c2bn1(j)Bn2(c2−j),P_{a1}=B_{n_1}(c_1),\qquad P_{a2}=\sum_{j=c_1+1}^{c_2}b_{n_1}(j)\,B_{n_2}(c_2-j), Pa(p)=Pa1+Pa2.\boxed{P_a(p)=P_{a1}+P_{a2}}.

ASN. The probability that a second sample is needed is PII=∑j=c1+1c2bn1(j)=Bn1(c2)−Bn1(c1)P_{II}=\sum_{j=c_1+1}^{c_2}b_{n_1}(j)=B_{n_1}(c_2)-B_{n_1}(c_1). So ASN=n1+n2PII.\boxed{\text{ASN}=n_1+n_2P_{II}}.

ATI. Count the items inspected in each case:

  • accepted on the first sample (prob. Pa1P_{a1}): n1n_1;
  • accepted on the second (prob. Pa2P_{a2}): n1+n2n_1+n_2;
  • rejected at either stage (prob. 1−Pa1-P_a): NN. ATI=n1Pa1+(n1+n2)Pa2+N(1−Pa).\boxed{\text{ATI}=n_1P_{a1}+(n_1+n_2)P_{a2}+N(1-P_a)}.

Example. N=1000N=1000, (50,3;100,7)(50,3;100,7), p=0.05p=0.05: Pa1=0.760P_{a1}=0.760, Pa2=0.044P_{a2}=0.044, Pa=0.804P_a=0.804, ASN =74=74, ATI =50(0.760)+150(0.044)+1000(0.196)=241=50(0.760)+150(0.044)+1000(0.196)=241.

✓ Derivation checked step by step Every step was checked: OC = P_a1 + P_a2, ASN = n₁ + n₂P(c₁ < d₁ ≤ c₂), ATI = n₁P_a1 + (n₁ + n₂)P_a2 + N(1 − P_a).

↑ Back to the question list

Explain the construction and use of sampling plans for stipulated producer’s and consumer’s risks. How do we choose the best sampling plan?

2005 · Paper II · Q4a · 15 marks

Solution

Plans for stipulated risks. The producer and consumer agree on

  • the AQL p1p_1 with producer’s risk α\alpha (usually 0.05), and
  • the LTPD p2p_2 with consumer’s risk β\beta (usually 0.10). The plan must have an OC curve passing (approximately) through (p1,1−α)(p_1,1-\alpha) and (p2,β)(p_2,\beta): ∑d=0c(nd)p1d(1−p1)n−d≥1−α,∑d=0c(nd)p2d(1−p2)n−d≤β.\sum_{d=0}^{c}\binom nd p_1^d(1-p_1)^{n-d}\ge1-\alpha,\qquad\sum_{d=0}^{c}\binom nd p_2^d(1-p_2)^{n-d}\le\beta .

Construction (single sampling, Poisson approximation).

  1. Compute the operating ratio R=p2/p1R=p_2/p_1.
  2. From Cameron’s table (or Poisson tables) find, for c=0,1,2,…c=0,1,2,\dots, the values m1−αm_{1-\alpha} and mβm_\beta of npnp at which P(Poisson≤c)=1−αP(\text{Poisson}\le c)=1-\alpha and =β=\beta.
  3. Choose the smallest cc for which mβ/m1−α≤Rm_\beta/m_{1-\alpha}\le R.
  4. Take n=m1−α/p1n=m_{1-\alpha}/p_1 (to hold α\alpha exactly) or n=mβ/p2n=m_\beta/p_2 (to hold β\beta exactly), or a value in between.
  5. Check the actual risks with binomial (or hypergeometric) probabilities and adjust nn if needed. For double, multiple and sequential plans, similar tables (e.g. Grubbs’s tables for double plans, Wald’s formulas for sequential) are used.

Use. Each lot is sampled according to the plan and accepted or rejected by its rule. The OC curve, AOQ and ATI curves describe its behaviour.

Example. p1=0.05p_1=0.05, α=0.05\alpha=0.05, p2=0.20p_2=0.20, β=0.10\beta=0.10: R=4R=4; c=4c=4 gives ratio 4.06; n=40n=40.

Choosing the best plan. Many plans (single, double, sequential, and several (n,c)(n,c) pairs) meet the stipulated risks. Among them we choose by:

  1. Average sample number (ASN): for the same OC curve, prefer the plan with the smallest expected inspection. Sequential < multiple < double < single, typically.
  2. Average total inspection (ATI): under rectifying inspection, choose the plan with minimum ATI at the process average p‾\bar p (the Dodge–Romig criterion).
  3. AOQL: if outgoing quality matters, the plan with the smallest AOQL for the same cost.
  4. Discrimination: the steepest OC curve between p1p_1 and p2p_2.
  5. Administrative simplicity and cost: single plans are easiest; sequential plans need trained inspectors and give an uncertain workload. Destructive or costly tests favour sequential plans.
  6. Psychological factors: double plans appeal because lots get a “second chance”. The best plan balances inspection cost, the costs of wrong decisions, and ease of operation.

✓ Answer checked step by step Every point was checked against the standard design of a plan through (p₁, 1 − α) and (p₂, β) (Cameron’s ratio method) and the criteria for choosing among plans.

↑ Back to the question list

What do you understand by sampling inspection plan for variables? Explain how it differences from the sampling inspection plan for attributes. State the use of Dodge-Romig tables.

2004 · Paper II · Q4a · 15 marks

Solution

Sampling inspection plans for variables. In a variables plan, the quality characteristic is measured on each sampled item (e.g. length, strength), rather than just classified as good or bad. The lot is accepted or rejected from the sample mean and standard deviation, assuming a known distribution (usually normal).

  • Rule (upper limit UU): compute x‾\bar x (and ss if σ\sigma is unknown); accept if U−x‾σ≥k\dfrac{U-\bar x}{\sigma}\ge k (or U−x‾s≥k\dfrac{U-\bar x}{s}\ge k).
  • nn and kk are chosen so that the OC curve passes through (p1,1−α)(p_1,1-\alpha) and (p2,β)(p_2,\beta); e.g. with σ\sigma known, n=(zα+zβzp1−zp2)2n=\left(\frac{z_\alpha+z_\beta}{z_{p_1}-z_{p_2}}\right)^2, k=zαzp2+zβzp1zα+zβk=\frac{z_\alpha z_{p_2}+z_\beta z_{p_1}}{z_\alpha+z_\beta}.
  • Standard tables: MIL-STD-414, IS 2500 (Part 2).

Difference from attributes plans.

Attributes plan Variables plan
Data Each item: defective or not; count dd Measurement xx on each item
Decision rule d≤cd\le c (U−x‾)/σ≥k(U-\bar x)/\sigma\ge k
Distribution assumed None beyond random sampling Normal (or known form)
Sample size for same protection Larger Smaller (often 30–70% less)
Characteristics covered Many at once by one plan One plan per characteristic
Cost per item Low (go/no-go gauges) Higher (measurement, computation)
Information Only whether out of spec How far from spec; useful for process improvement
Robustness High Sensitive to non-normality

Use of Dodge–Romig tables. The Dodge–Romig tables give single and double sampling plans by attributes for rectifying inspection, which minimise the average total inspection (ATI) at the process average, subject to:

    1. a stated LTPD with consumer’s risk 0.10 (lot-by-lot protection), or
    1. a stated AOQL (average protection). To use them: estimate the process average p‾\bar p from past data; enter the table for the chosen LTPD or AOQL with the lot size NN and p‾\bar p; read off nn and cc (or n1,c1,n2,c2n_1,c_1,n_2,c_2), together with the corresponding AOQL or LTPD. They are widely used for incoming and final inspection where rejected lots are screened.

✓ Answer checked step by step Every point was checked against the standard comparison of variables and attributes sampling plans and the use of Dodge–Romig tables.

↑ Back to the question list

Derive the OC function of a single sampling inspection plan. Define AQL and LTPD corresponding to a lot. Explain how to choose a plan with specified values of AQL and LWD.

2003 · Paper II · Q1c · 12 marks

Solution

Note on the question. “LWD” is read as LTPD (lot tolerance percent defective), the second point used with the AQL to choose a plan.

OC function of a single sampling plan (N,n,c)(N,n,c). A lot of size NN contains D=NpD=Np defectives. A random sample of nn is drawn without replacement; dd is the number of defectives in it. The lot is accepted if d≤cd\le c.

Exact (type A, finite lot): dd is hypergeometric: P(d=x)=(Dx)(N−Dn−x)(Nn),L(p)=Pa(p)=∑x=0c(Npx)(N−Npn−x)(Nn).P(d=x)=\frac{\binom{D}{x}\binom{N-D}{n-x}}{\binom Nn},\qquad L(p)=P_a(p)=\sum_{x=0}^{c}\frac{\binom{Np}{x}\binom{N-Np}{n-x}}{\binom Nn}.

Large lots (type B): as N→∞N\to\infty with D/N=pD/N=p fixed, the hypergeometric tends to the binomial: L(p)=∑x=0c(nx)px(1−p)n−x.L(p)=\sum_{x=0}^{c}\binom nx p^x(1-p)^{n-x}.

Small pp, large nn: Poisson approximation with m=npm=np: L(p)=∑x=0ce−np(np)xx!.L(p)=\sum_{x=0}^{c}\frac{e^{-np}(np)^x}{x!}.

AQL. The acceptable quality level p1p_1 is the maximum fraction defective that is considered satisfactory as a process average; lots at this quality should be accepted with high probability 1−α1-\alpha (usually 0.95).

LTPD. The lot tolerance percent defective p2p_2 is the fraction defective regarded as bad; lots at this quality should be accepted with low probability β\beta (usually 0.10).

Choosing a plan with specified AQL and LTPD. We need (n,c)(n,c) such that L(p1)=1−α,L(p2)=β.L(p_1)=1-\alpha,\qquad L(p_2)=\beta .

  1. With the Poisson approximation, these say P(Poisson(np1)≤c)=1−αP(\text{Poisson}(np_1)\le c)=1-\alpha and P(Poisson(np2)≤c)=βP(\text{Poisson}(np_2)\le c)=\beta. Let m1(c)m_1(c) and m2(c)m_2(c) be the corresponding values of npnp; then m2(c)m1(c)=p2p1.\frac{m_2(c)}{m_1(c)}=\frac{p_2}{p_1}.
  2. Using Cameron’s table of m2/m1m_2/m_1 for c=0,1,2,…c=0,1,2,\dots, pick the cc whose ratio is closest to (and not above) p2/p1p_2/p_1.
  3. Take n=m1(c)/p1n=m_1(c)/p_1 or n=m2(c)/p2n=m_2(c)/p_2 (or a compromise), depending on which risk should be held exactly.
  4. Verify with binomial or hypergeometric probabilities. Example: p1=0.05p_1=0.05, p2=0.20p_2=0.20, α=0.05\alpha=0.05, β=0.10\beta=0.10 gives c=4c=4, n=40n=40.

✓ Derivation checked step by step Every step was checked: the hypergeometric and binomial OC functions of a single plan, and the choice of (n, c) through (AQL, 1 − α) and (LTPD, β).

↑ Back to the question list

Explain the concepts of (i) producers risk, (ii) consumer’s risk. (iii) average outgoing quality limit (AOQL) and (iv) average total inspection (ATI). Give significance of AOQL and ATI in acceptance sampling plans.

2002 · Paper II · Q1c · 12 marks

Solution

(i) Producer’s risk (α\alpha). The probability that a lot of acceptable quality (fraction defective equal to the AQL, p1p_1) is rejected by the plan: α=1−Pa(p1)\alpha=1-P_a(p_1). The producer bears it, since good lots are sent back or screened. Usually fixed at 0.05.

(ii) Consumer’s risk (β\beta). The probability that a lot of unacceptable quality (fraction defective equal to the LTPD, p2p_2) is accepted: β=Pa(p2)\beta=P_a(p_2). The consumer bears it, since bad lots get through. Usually fixed at 0.10.

(iii) Average outgoing quality limit (AOQL). Under rectifying inspection (rejected lots screened 100%, defectives replaced), the average outgoing quality is AOQ(p)=pPa(p)(N−n)N.\text{AOQ}(p)=\frac{p\,P_a(p)(N-n)}{N}. As pp increases from 0, AOQ first increases (more defectives come in) and then decreases (more lots are rejected and cleaned). Its maximum value is the AOQL: the worst long-run average quality that can go out, whatever the incoming quality.

(iv) Average total inspection (ATI). The expected number of items inspected per lot under rectifying inspection, including 100% screening of rejected lots: ATI=n+(1−Pa)(N−n)(single plan).\text{ATI}=n+(1-P_a)(N-n)\quad\text{(single plan)}.

Significance of AOQL.

  • It gives the consumer a guarantee on average quality: whatever the producer’s process average, the outgoing product will on average contain no more than AOQL defectives.
  • It is the basis of Dodge–Romig AOQL plans, used when continuous supply to one user matters more than lot-by-lot protection.
  • It allows plans to be compared on the protection they provide to the user of the product.

Significance of ATI.

  • It measures the inspection workload and hence the cost of a rectifying plan.
  • Among plans giving the required protection (LTPD or AOQL), the one with the minimum ATI at the process average is the most economical; this is the Dodge–Romig criterion.
  • The ATI curve shows how inspection costs rise as the producer’s quality worsens, which gives the producer an incentive to improve.

✓ Answer checked step by step Every point was checked against the standard definitions: α = 1 − Pa(p₁), β = Pa(p₂), AOQ = p·Pa(N − n)/N with its maximum the AOQL, and ATI = n + (1 − Pa)(N − n).

↑ Back to the question list

Derive single sampling inspection plan for variables when the upper specification limit is specified and the operating characteristic curve passes through two fixed points: (AQL, 1−α) and (LTPD, β). You may assume that the lot quality characteristic is normally distributed and the standard deviation is known.

2002 · Paper II · Q2b · 20 marks

Solution

Set-up. The quality characteristic X∼N(μ,σ2)X\sim N(\mu,\sigma^2) with σ\sigma known. An item is defective if X>UX>U (upper specification limit). The lot fraction defective is p=P(X>U)=1−Φ(U−μσ),soU−μσ=zp,p=P(X>U)=1-\Phi\!\left(\frac{U-\mu}{\sigma}\right),\qquad\text{so}\qquad\frac{U-\mu}{\sigma}=z_p, where zpz_p is the upper pp-point of N(0,1)N(0,1) (1−Φ(zp)=p1-\Phi(z_p)=p). A larger pp means a larger μ\mu.

Plan (n,k)(n,k). Take a random sample of nn items, compute x‾\bar x; accept the lot if x‾+kσ≤U⇔U−x‾σ≥k.\bar x+k\sigma\le U\quad\Longleftrightarrow\quad\frac{U-\bar x}{\sigma}\ge k .

OC function. Since x‾∼N(μ,σ2/n)\bar x\sim N(\mu,\sigma^2/n), Pa(p)=P(x‾≤U−kσ)=Φ(U−kσ−μσ/n)=Φ(n(zp−k)).P_a(p)=P(\bar x\le U-k\sigma)=\Phi\!\left(\frac{U-k\sigma-\mu}{\sigma/\sqrt n}\right)=\Phi\!\left(\sqrt n\,(z_p-k)\right).

Conditions. The OC curve is to pass through (p1,1−α)(p_1,1-\alpha) (AQL) and (p2,β)(p_2,\beta) (LTPD), p1<p2p_1<p_2: Φ(n(zp1−k))=1−α⇒n(zp1−k)=zα,(1)\Phi\!\left(\sqrt n(z_{p_1}-k)\right)=1-\alpha\;\Rightarrow\;\sqrt n(z_{p_1}-k)=z_\alpha,\qquad(1) Φ(n(zp2−k))=β⇒n(zp2−k)=−zβ.(2)\Phi\!\left(\sqrt n(z_{p_2}-k)\right)=\beta\;\Rightarrow\;\sqrt n(z_{p_2}-k)=-z_\beta.\qquad(2)

Solving. Subtract (2) from (1): n(zp1−zp2)=zα+zβ⇒n=(zα+zβzp1−zp2)2.\sqrt n\,(z_{p_1}-z_{p_2})=z_\alpha+z_\beta\;\Rightarrow\;\boxed{n=\left(\frac{z_\alpha+z_\beta}{z_{p_1}-z_{p_2}}\right)^2}. From (1) and (2): k=zp1−zαnk=z_{p_1}-\dfrac{z_\alpha}{\sqrt n} and k=zp2+zβnk=z_{p_2}+\dfrac{z_\beta}{\sqrt n}. Eliminating n\sqrt n (multiply the first by zβz_\beta, the second by zαz_\alpha and add): k=zαzp2+zβzp1zα+zβ.\boxed{k=\frac{z_\alpha z_{p_2}+z_\beta z_{p_1}}{z_\alpha+z_\beta}}. nn is rounded up to an integer, and kk is then recomputed (e.g. from (1)) to hold one risk exactly.

Example. p1=0.01p_1=0.01, α=0.05\alpha=0.05, p2=0.06p_2=0.06, β=0.10\beta=0.10: zp1=2.326z_{p_1}=2.326, zp2=1.555z_{p_2}=1.555, zα=1.645z_\alpha=1.645, zβ=1.282z_\beta=1.282. n=(2.9270.771)2=14.4→15,k=1.645(1.555)+1.282(2.326)2.927=1.893.n=\left(\frac{2.927}{0.771}\right)^2=14.4\to15,\qquad k=\frac{1.645(1.555)+1.282(2.326)}{2.927}=1.893 . Accept the lot if x‾≤U−1.893σ\bar x\le U-1.893\sigma, based on 15 items. (An attributes plan with the same risks needs about 110 items.)

✓ Derivation checked step by step Every step was checked: Pa = Φ[√n(z_p − k)] for the rule x̄ + kσ ≤ U, giving n = [(z_α + z_β)/(z_{p₁} − z_{p₂})]² and k = (z_α z_{p₂} + z_β z_{p₁})/(z_α + z_β).

↑ Back to the question list

Explain the concept of sequential sampling inspection plan for attributes, In testing H0:p=p0 and H1:p=p1 (where p is proportion of defective items in a lot), determine acceptance and rejection lines.

2002 · Paper II · Q4a · 15 marks

Solution

Concept. In a sequential sampling plan for attributes, items are inspected one at a time. After each item, the evidence (the number of defectives so far, dnd_n, out of nn) is used to decide whether to accept the lot, reject it, or inspect one more item. The plan is Wald’s SPRT applied to the lot fraction defective; it reaches a decision with the smallest average number of items among all plans with the same risks. Good lots are accepted early, bad lots are rejected early.

Hypotheses. H0:p=p0H_0:p=p_0 (good quality) against H1:p=p1H_1:p=p_1 (bad quality), p0<p1p_0<p_1, with risks α=P(reject∣p0)\alpha=P(\text{reject}\mid p_0) and β=P(accept∣p1)\beta=P(\text{accept}\mid p_1).

Likelihood ratio after nn items with dnd_n defectives: λn=(p1p0)dn(1−p11−p0)n−dn.\lambda_n=\left(\frac{p_1}{p_0}\right)^{d_n}\left(\frac{1-p_1}{1-p_0}\right)^{n-d_n}.

Rule. Continue while B<λn<AB<\lambda_n<A, with A=1−βαA=\dfrac{1-\beta}{\alpha} and B=β1−αB=\dfrac{\beta}{1-\alpha}. Taking logs: lnB<dnlnp1p0+(n−dn)ln1−p11−p0<lnA.\ln B<d_n\ln\frac{p_1}{p_0}+(n-d_n)\ln\frac{1-p_1}{1-p_0}<\ln A . Collect the terms in dnd_n: dn[lnp1p0+ln1−p01−p1]⏟=:k>0−nln1−p01−p1∈(lnB,lnA).d_n\underbrace{\left[\ln\frac{p_1}{p_0}+\ln\frac{1-p_0}{1-p_1}\right]}_{=:k>0}-n\ln\frac{1-p_0}{1-p_1}\in(\ln B,\ln A).

Acceptance line (from =lnB=\ln B): dn=−h1+sn,h1=ln1−αβk.d_n=-h_1+sn,\qquad h_1=\frac{\ln\frac{1-\alpha}{\beta}}{k}. Rejection line (from =lnA=\ln A): dn=h2+sn,h2=ln1−βαk.d_n=h_2+sn,\qquad h_2=\frac{\ln\frac{1-\beta}{\alpha}}{k}. Here k=lnp1(1−p0)p0(1−p1),s=ln1−p01−p1k.k=\ln\frac{p_1(1-p_0)}{p_0(1-p_1)},\qquad s=\frac{\ln\frac{1-p_0}{1-p_1}}{k}.

Decision. Accept the lot as soon as dn≤−h1+snd_n\le-h_1+sn; reject it as soon as dn≥h2+snd_n\ge h_2+sn; otherwise continue. The two lines are parallel with slope ss, and p0<s<p1p_0<s<p_1.

✓ Derivation checked step by step Every step was checked: the SPRT for p₀ against p₁ gives acceptance line d = −h₁ + sn and rejection line d = h₂ + sn, with the constants in terms of α, β, p₀, p₁.

↑ Back to the question list

Derive an unknown sigma variable sampling plan when there is only an upper specification limit on the quality characteristic in acceptance sampling.

2001 · Paper II · Q1b · 12 marks

Solution

Set-up. X∼N(μ,σ2)X\sim N(\mu,\sigma^2) with both μ\mu and σ\sigma unknown; there is only an upper specification limit UU, and an item is defective if X>UX>U. The lot fraction defective is p=1−Φ(U−μσ),i.e.U−μ=zpσ.p=1-\Phi\!\left(\frac{U-\mu}{\sigma}\right),\qquad\text{i.e.}\qquad U-\mu=z_p\sigma . We want a plan with Pa(p1)=1−αP_a(p_1)=1-\alpha and Pa(p2)=βP_a(p_2)=\beta.

Plan. Take nn items; compute x‾\bar x and ss. Accept the lot if U−x‾s≥k⇔x‾+ks≤U.\frac{U-\bar x}{s}\ge k\quad\Longleftrightarrow\quad\bar x+ks\le U .

OC function. For moderately large nn, x‾\bar x and ss are independent, x‾∼N(μ,σ2/n)\bar x\sim N(\mu,\sigma^2/n), and ss is approximately N(σ,σ22n)N\!\left(\sigma,\frac{\sigma^2}{2n}\right). So W=x‾+ksW=\bar x+ks is approximately normal with E(W)=μ+kσ,Var(W)=σ2n(1+k22).E(W)=\mu+k\sigma,\qquad\operatorname{Var}(W)=\frac{\sigma^2}{n}\left(1+\frac{k^2}{2}\right). Hence Pa(p)=P(W≤U)=Φ(U−μ−kσσ(1+k2/2)/n)=Φ(n(zp−k)1+k2/2).P_a(p)=P(W\le U)=\Phi\!\left(\frac{U-\mu-k\sigma}{\sigma\sqrt{(1+k^2/2)/n}}\right)=\Phi\!\left(\frac{\sqrt n\,(z_p-k)}{\sqrt{1+k^2/2}}\right).

Determining nn and kk. The two conditions give n(zp1−k)1+k2/2=zα,n(zp2−k)1+k2/2=−zβ.\frac{\sqrt n(z_{p_1}-k)}{\sqrt{1+k^2/2}}=z_\alpha,\qquad\frac{\sqrt n(z_{p_2}-k)}{\sqrt{1+k^2/2}}=-z_\beta . Dividing one by the other: zp1−kk−zp2=zαzβ\dfrac{z_{p_1}-k}{k-z_{p_2}}=\dfrac{z_\alpha}{z_\beta}, so k=zαzp2+zβzp1zα+zβ\boxed{k=\frac{z_\alpha z_{p_2}+z_\beta z_{p_1}}{z_\alpha+z_\beta}} (the same as with σ\sigma known). Subtracting them: n(zp1−zp2)=(zα+zβ)1+k2/2\sqrt n\,(z_{p_1}-z_{p_2})=(z_\alpha+z_\beta)\sqrt{1+k^2/2}, so n=(1+k22)(zα+zβzp1−zp2)2.\boxed{n=\left(1+\frac{k^2}{2}\right)\left(\frac{z_\alpha+z_\beta}{z_{p_1}-z_{p_2}}\right)^2}.

Remarks.

  • The unknown-σ\sigma plan needs (1+k2/2)(1+k^2/2) times as many items as the known-σ\sigma plan (often 2–3 times), but it is still much smaller than an attributes plan with the same OC curve.
  • The exact OC function uses the non-central tt distribution, since n(U−x‾)/s\sqrt n(U-\bar x)/s is non-central tt; the formula above (Wallis’s approximation) is adequate for practical design.
  • Example: p1=0.01p_1=0.01, p2=0.06p_2=0.06, α=0.05\alpha=0.05, β=0.10\beta=0.10 gives k=1.893k=1.893 and n≈40n\approx40.

✓ Derivation checked step by step Every step was checked: the rule x̄ + ks ≤ U, the large-sample normal approximation to x̄ + ks, and the resulting k = (z_α z_{p₂} + z_β z_{p₁})/(z_α + z_β), n = (1 + k²/2)[(z_α + z_β)/(z_{p₁} − z_{p₂})]².

↑ Back to the question list

Describe the double sampling attributes plan for lot disposition. Derive its OC and ASN functions. What is curtailed inspection?

2001 · Paper II · Q2b · 20 marks

Solution

The double sampling attributes plan (N;n1,c1;n2,c2)(N;\;n_1,c_1;\;n_2,c_2), c1<c2c_1<c_2, is used to decide on a lot.

  1. Inspect a random sample of n1n_1 items; let d1d_1 be the number of defectives.
  2. If d1≤c1d_1\le c_1, accept the lot; if d1>c2d_1>c_2, reject it.
  3. If c1<d1≤c2c_1<d_1\le c_2, inspect a second random sample of n2n_2 items, with d2d_2 defectives.
  4. If d1+d2≤c2d_1+d_2\le c_2, accept the lot; otherwise reject it.

OC function. With pp the lot fraction defective and P(d1=j)P(d_1=j), P(d2=i)P(d_2=i) the binomial (or Poisson, hypergeometric) probabilities: Pa(p)=∑j=0c1P(d1=j)⏟accept at stage 1+∑j=c1+1c2P(d1=j)∑i=0c2−jP(d2=i)⏟accept at stage 2.P_a(p)=\underbrace{\sum_{j=0}^{c_1}P(d_1=j)}_{\text{accept at stage 1}}+\underbrace{\sum_{j=c_1+1}^{c_2}P(d_1=j)\sum_{i=0}^{c_2-j}P(d_2=i)}_{\text{accept at stage 2}} . The two terms are the probabilities of the two disjoint ways of accepting, and the independence of the two samples (large lot) gives the product in the second term.

ASN function. The second sample is drawn only when c1<d1≤c2c_1<d_1\le c_2: ASN(p)=n1+n2P(c1<d1≤c2)=n1+n2∑j=c1+1c2P(d1=j).\text{ASN}(p)=n_1+n_2\,P(c_1<d_1\le c_2)=n_1+n_2\sum_{j=c_1+1}^{c_2}P(d_1=j). It equals n1n_1 at p=0p=0 and at p=1p=1, and is largest for lots of intermediate quality.

Curtailed inspection. Inspection of a sample is stopped as soon as the decision is certain, rather than completing the sample. In a double plan this is usually applied to the second sample: once the cumulative number of defectives d1+d2d_1+d_2 exceeds c2c_2, the lot is rejected at once and the rest of the second sample is not inspected. (Semi-curtailed inspection stops only for rejection; fully curtailed inspection also stops for acceptance when the remaining items cannot change the outcome.) Curtailment does not change the OC curve, but it reduces the ASN, especially for poor lots; it is useful when inspection is costly. With curtailment, the expected number inspected in the second sample, when d1=jd_1=j, is E[min(n2,T)]E[\min(n_2,T)], where TT is the item at which the (c2−j+1)(c_2-j+1)-th defective appears.

✓ Derivation checked step by step Every step was checked: OC = P(d₁ ≤ c₁) + Σ P(d₁ = j)P(d₂ ≤ c₂ − j), ASN = n₁ + n₂P(c₁ < d₁ ≤ c₂), and the definition of curtailed inspection.

↑ Back to the question list

Explain the concepts of AOQ and ATI for rectifying inspection by attributes. What is AOQL?

2001 · Paper II · Q4b · 15 marks

Solution

Under rectifying inspection (also called corrective inspection), lots rejected by the sampling plan are screened 100%, and all defectives found (in the samples and in rejected lots) are replaced by good items.

AOQ (average outgoing quality). The average fraction defective in the product after inspection, when incoming lots have fraction defective pp. For a single plan (N,n,c)(N,n,c) with acceptance probability PaP_a:

  • accepted lots (prob. PaP_a) still contain the defectives of the uninspected N−nN-n items, p(N−n)p(N-n) on average;
  • rejected lots (prob. 1−Pa1-P_a) go out clean. AOQ=pPa(N−n)N≈pPa.\text{AOQ}=\frac{p\,P_a\,(N-n)}{N}\approx pP_a . AOQ is near 0 for good incoming quality (few defectives) and also for very poor quality (most lots are rejected and cleaned).

ATI (average total inspection). The average number of items inspected per lot, counting both the sample and the screening of rejected lots: ATI=nPa+N(1−Pa)=n+(1−Pa)(N−n).\text{ATI}=nP_a+N(1-P_a)=n+(1-P_a)(N-n). It increases from nn (when p=0p=0) to NN (when p=1p=1), and measures the cost of the scheme.

AOQL (average outgoing quality limit). The maximum value of the AOQ over all possible incoming qualities: AOQL=max0≤p≤1AOQ(p).\text{AOQL}=\max_{0\le p\le1}\text{AOQ}(p). It is the worst average quality that the consumer can receive in the long run, whatever the incoming quality, so it is a guarantee of average outgoing quality. Dodge–Romig AOQL tables give plans with a specified AOQL and minimum ATI.

Example. N=1000N=1000, n=89n=89, c=2c=2: AOQ at p=0.01p=0.01 is 0.0086 and ATI is 144; the AOQL is about 0.014, at p≈0.025p\approx0.025.

✓ Answer checked step by step Every point was checked: AOQ = p·Pa(N − n)/N, ATI = n + (1 − Pa)(N − n), and AOQL = max over p of AOQ.

↑ Back to the question list

Given p1, 1−α, p2 and β (usual notations), obtain the item by item sequential sampling plan for attributes.

2000 · Paper II · Q1b · 12 marks

Solution

Requirement. The plan’s OC curve should pass through (p1,1−α)(p_1,1-\alpha) and (p2,β)(p_2,\beta): lots of quality p1p_1 accepted with probability 1−α1-\alpha, lots of quality p2p_2 with probability β\beta. We use Wald’s SPRT of H0:p=p1H_0:p=p_1 against H1:p=p2H_1:p=p_2.

Likelihood ratio. After nn items with dnd_n defectives: λn=p2dn(1−p2)n−dnp1dn(1−p1)n−dn.\lambda_n=\frac{p_2^{d_n}(1-p_2)^{n-d_n}}{p_1^{d_n}(1-p_1)^{n-d_n}} .

Boundaries. Accept if λn≤B\lambda_n\le B, reject if λn≥A\lambda_n\ge A, continue otherwise, with Wald’s approximations A=1−βα,B=β1−α.A=\frac{1-\beta}{\alpha},\qquad B=\frac{\beta}{1-\alpha}.

Lines. Taking logarithms, lnλn=dnlnp2p1+(n−dn)ln1−p21−p1=dnk−nln1−p11−p2,k=lnp2(1−p1)p1(1−p2).\ln\lambda_n=d_n\ln\frac{p_2}{p_1}+(n-d_n)\ln\frac{1-p_2}{1-p_1}=d_n\,k-n\ln\frac{1-p_1}{1-p_2},\qquad k=\ln\frac{p_2(1-p_1)}{p_1(1-p_2)}.

  • lnλn≤lnB⇔dn≤−h1+sn\ln\lambda_n\le\ln B\iff d_n\le-h_1+sn;
  • lnλn≥lnA⇔dn≥h2+sn\ln\lambda_n\ge\ln A\iff d_n\ge h_2+sn; where h1=1kln1−αβ,h2=1kln1−βα,s=1kln1−p11−p2.h_1=\frac{1}{k}\ln\frac{1-\alpha}{\beta},\qquad h_2=\frac1k\ln\frac{1-\beta}{\alpha},\qquad s=\frac1k\ln\frac{1-p_1}{1-p_2}.

The item-by-item plan.

  1. Inspect items one at a time; after the nn-th, let dnd_n = cumulative defectives.
  2. Accept the lot if dn≤an=−h1+snd_n\le a_n=-h_1+sn.
  3. Reject the lot if dn≥rn=h2+snd_n\ge r_n=h_2+sn.
  4. Otherwise inspect the next item. In practice the acceptance numbers ⌊an⌋\lfloor a_n\rfloor and rejection numbers ⌈rn⌉\lceil r_n\rceil are tabulated, or the lines are drawn on a chart of dnd_n against nn.

Properties.

  • The lines are parallel, with slope ss (p1<s<p2p_1<s<p_2).
  • The earliest acceptance (with no defectives) is at n=h1/sn=h_1/s; the earliest rejection (all items defective) at n=h2/(1−s)n=h_2/(1-s).
  • OC: L(p)=Ah−1Ah−BhL(p)=\dfrac{A^h-1}{A^h-B^h}, where hh is related to pp by p=1−(1−p21−p1)h(p2p1)h−(1−p21−p1)hp=\dfrac{1-\left(\frac{1-p_2}{1-p_1}\right)^h}{\left(\frac{p_2}{p_1}\right)^h-\left(\frac{1-p_2}{1-p_1}\right)^h}; this gives L(p1)=1−αL(p_1)=1-\alpha (h=1h=1) and L(p2)=βL(p_2)=\beta (h=−1h=-1).
  • ASN: (1−L(p))h2−L(p)h1p−s\dfrac{(1-L(p))h_2-L(p)h_1}{p-s}.

Example. p1=0.01p_1=0.01, α=0.05\alpha=0.05, p2=0.06p_2=0.06, β=0.10\beta=0.10: h1=1.221h_1=1.221, h2=1.568h_2=1.568, s=0.0281s=0.0281.

✓ Derivation checked step by step Every step was checked: Wald’s SPRT for p₁ against p₂ with A = (1 − β)/α, B = β/(1 − α) gives d ≤ −h₁ + sn (accept) and d ≥ h₂ + sn (reject).

↑ Back to the question list

Explain the terms AOQ and ATI. For a double Sampling attributes plan with rectifying inspection derive the expressions for the AOQ and the ATI.

2000 · Paper II · Q2a · 20 marks

Solution

AOQ and ATI. Under rectifying inspection, rejected lots are inspected 100% and all defectives found are replaced by good items.

  • AOQ (average outgoing quality) is the expected fraction defective in the outgoing product, as a function of incoming quality pp. Its maximum over pp is the AOQL.
  • ATI (average total inspection) is the expected number of items inspected per lot, including the screening of rejected lots.

Double sampling plan (N;n1,c1;n2,c2)(N;\;n_1,c_1;\;n_2,c_2). Let Pa1=P(d1≤c1),Pa2=∑j=c1+1c2P(d1=j)P(d2≤c2−j),Pa=Pa1+Pa2.P_{a1}=P(d_1\le c_1),\qquad P_{a2}=\sum_{j=c_1+1}^{c_2}P(d_1=j)P(d_2\le c_2-j),\qquad P_a=P_{a1}+P_{a2}.

Outcomes for a lot of fraction defective pp:

Outcome Probability Items inspected Defectives left in the lot
Accepted on first sample Pa1P_{a1} n1n_1 p(N−n1)p(N-n_1) on average
Accepted on second sample Pa2P_{a2} n1+n2n_1+n_2 p(N−n1−n2)p(N-n_1-n_2) on average
Rejected (either stage) 1−Pa1-P_a NN 0

(In accepted lots, defectives found in the samples are replaced, so only the uninspected items carry defectives.)

AOQ. Expected defectives in an outgoing lot, divided by NN: AOQ=p[Pa1(N−n1)+Pa2(N−n1−n2)]N.\boxed{\text{AOQ}=\frac{p\left[P_{a1}(N-n_1)+P_{a2}(N-n_1-n_2)\right]}{N}}. If n1+n2≪Nn_1+n_2\ll N, AOQ≈pPa\text{AOQ}\approx p\,P_a.

ATI. ATI=n1Pa1+(n1+n2)Pa2+N(1−Pa).\boxed{\text{ATI}=n_1P_{a1}+(n_1+n_2)P_{a2}+N(1-P_a)}. Example. N=1000N=1000, (50,3;100,7)(50,3;\;100,7), p=0.05p=0.05: Pa1=0.760P_{a1}=0.760, Pa2=0.044P_{a2}=0.044; AOQ =0.05[0.760(950)+0.044(850)]/1000=0.0380=0.05[0.760(950)+0.044(850)]/1000=0.0380; ATI =241=241.

✓ Derivation checked step by step Every step was checked: for a double plan with rectifying inspection, AOQ = p[P_a1(N − n₁) + P_a2(N − n₁ − n₂)]/N and ATI = n₁P_a1 + (n₁ + n₂)P_a2 + N(1 − P_a).

↑ Back to the question list

Write a brief note on MIL-STD-414 tables.

2000 · Paper II · Q4b · 15 marks

Solution

MIL-STD-414 (US Department of Defense, 1957), “Sampling Procedures and Tables for Inspection by Variables for Percent Defective”, is the standard system of acceptance sampling plans by variables. It is the variables counterpart of MIL-STD-105 (attributes), and was later adopted as ANSI/ASQ Z1.9 (and is similar to IS 2500 Part 2 and ISO 3951).

Main features.

  1. AQL-based. Plans are indexed by the acceptable quality level (from 0.04% to 15%) and give high acceptance probability to lots at the AQL. The consumer is protected through the switching rules.
  2. Assumption: the quality characteristic is normally distributed, and items outside the specification limits are defective.
  3. Sample size code letters (B to Q) depend on the lot size and the inspection level (I to V; IV is normal).
  4. Three ways of measuring variability:
    • variability known (σ\sigma method);
    • variability unknown, standard deviation method (ss);
    • variability unknown, range method (average range of subgroups of 5).
  5. Two acceptance procedures (forms):
    • Form 1 (kk-method): compute QU=(U−x‾)/sQ_U=(U-\bar x)/s (or QLQ_L) and accept if Q≥kQ\ge k. For one-sided specifications only.
    • Form 2 (MM-method): use QQ to estimate the lot percent defective p̂\hat p (from tables of the beta/normal distribution), and accept if p̂≤M\hat p\le M, the maximum allowable percent defective. Used for one-sided and two-sided specifications (for two-sided, p̂=p̂U+p̂L\hat p=\hat p_U+\hat p_L).
  6. Normal, tightened and reduced inspection, with switching rules based on recent lot history, as in MIL-STD-105.
  7. OC curves are provided for each plan, so the consumer’s protection can be read off.
  8. Section D gives procedures for estimating the process average and for deciding when to tighten or reduce inspection.

Advantages. Much smaller samples than attributes plans for the same protection; information on how close the product is to the limits. Limitations: depends on normality; one plan per characteristic; more computation.

✓ Answer checked step by step Every point was checked against the content and structure of MIL-STD-414 (variables sampling by AQL, with known/unknown σ and the k- and M-methods).

↑ Back to the question list

Discuss the relative advantages of double sampling plans over single sampling plans.

1999 · Paper II · Q2a · 20 marks

Solution

Double sampling (n1,c1;n2,c2)(n_1,c_1;n_2,c_2) decides on a first, smaller sample when the evidence is clear, and draws a second sample only when the first result is doubtful. Compared with a single plan (n,c)(n,c) having (nearly) the same OC curve, it has these relative advantages:

  1. Smaller average sample size (ASN). Very good lots are accepted and very bad lots rejected on the first sample, which is usually much smaller than nn. For lots of typical quality, the average inspection is often 10–50% less. This matters when inspection is costly or destructive.
  2. Same protection. It can be designed to have practically the same OC curve as a given single plan, so producer’s and consumer’s risks are unchanged.
  3. Psychological advantage. A lot is not rejected on the evidence of one small sample when the result is borderline; the supplier gets a “second chance”. This makes the plan more acceptable to both parties.
  4. Flexibility. With four parameters, the OC curve can be shaped more closely to the requirements than with two.
  5. Lower ATI under rectifying inspection at good process averages, because fewer items are inspected per accepted lot.
  6. Curtailed inspection of the second sample further reduces the amount of inspection.

Disadvantages (for balance).

  • More complicated to design, explain and administer; inspectors need more training.
  • The amount of inspection varies from lot to lot, making it harder to plan staff and facilities.
  • For lots of intermediate quality, the total inspected (n1+n2n_1+n_2) may exceed the single plan’s nn; the ASN may exceed nn near the indifference quality.
  • Drawing the second sample may be inconvenient (lot already moved, items already packed).
  • More record-keeping is needed.

✓ Answer checked step by step Every point was checked against the standard comparison of double and single sampling plans.

↑ Back to the question list

Explain the concepts of producer’s and consumer’s risks, AOQL and LTPD.

1999 · Paper II · Q2b · 20 marks

Solution

Producer’s risk (α\alpha). The probability that a lot of acceptable quality, with fraction defective at the AQL p1p_1, will be rejected by the sampling plan: α=1−Pa(p1).\alpha=1-P_a(p_1). It is the Type I error of the plan; the producer loses because good lots are returned or screened. Plans are usually designed with α=0.05\alpha=0.05.

Consumer’s risk (β\beta). The probability that a lot of bad quality, with fraction defective at the LTPD p2p_2, will be accepted: β=Pa(p2).\beta=P_a(p_2). It is the Type II error; the consumer loses because bad lots get through. Usually β=0.10\beta=0.10.

AOQL (average outgoing quality limit). Under rectifying inspection (rejected lots screened 100% and defectives replaced), the average outgoing quality AOQ(p)=pPa(p)(N−n)/N\text{AOQ}(p)=pP_a(p)(N-n)/N depends on the incoming quality pp. It rises and then falls as pp increases. Its maximum value is the AOQL. It is an upper bound on the long-run average fraction defective that the consumer will receive, whatever the quality submitted. It provides average protection.

LTPD (lot tolerance percent defective). The fraction (or percent) defective in a lot that the consumer regards as the borderline of bad quality, and wishes to accept only rarely (with probability β\beta, usually 0.10). It gives lot-by-lot protection: any individual lot of this quality has only a 10% chance of acceptance.

Example. For the plan n=100n=100, c=2c=2: with AQL 1% and LTPD 5%, α=0.079\alpha=0.079 and β=0.118\beta=0.118.

✓ Answer checked step by step Every point was checked against the standard definitions of producer’s and consumer’s risks, AOQL and LTPD.

↑ Back to the question list

Describe the construction and use of Dodge-Romig tables.

1999 · Paper II · Q2c · 20 marks

Solution

What they are. The Dodge–Romig sampling inspection tables (H. F. Dodge and H. G. Romig, Bell Telephone Laboratories, 1929–1944) give single and double sampling plans by attributes for rectifying inspection. There are four sets: single and double plans for (a) a given LTPD and (b) a given AOQL.

Construction. Principle: among all plans that give the required protection, choose the one that minimises the average total inspection (ATI) at the producer’s process average p‾\bar p. This keeps the inspection cost lowest when the producer is turning out its usual quality.

LTPD tables (consumer’s risk 0.10):

  1. For given NN, LTPD ptp_t and p‾\bar p, and for each c=0,1,2,…c=0,1,2,\dots, find nn such that Pa(pt)=∑d=0c(Nptd)(N−Nptn−d)(Nn)=0.10.P_a(p_t)=\sum_{d=0}^{c}\frac{\binom{Np_t}{d}\binom{N-Np_t}{n-d}}{\binom Nn}=0.10 .
  2. For each such (n,c)(n,c) compute ATI(p‾)=n+[1−Pa(p‾)](N−n)\text{ATI}(\bar p)=n+\left[1-P_a(\bar p)\right](N-n).
  3. Choose the (n,c)(n,c) with the smallest ATI. The table lists nn, cc and the resulting AOQL, for LTPD from 0.5% to 10%, lot sizes in classes, and process averages in classes.

AOQL tables:

  1. For each cc, find the smallest nn such that maxppPa(p)(1−n/N)≤AOQL\max_p\,pP_a(p)(1-n/N)\le\text{AOQL}.
  2. Choose the (n,c)(n,c) with minimum ATI(p‾)\text{ATI}(\bar p). The table lists nn, cc and the resulting LTPD, for AOQL from 0.1% to 10%.

Double sampling tables are built the same way, with (n1,c1,n2,c2)(n_1,c_1,n_2,c_2) and the double-plan formulas for PaP_a and ATI.

Use.

  1. Decide which protection is wanted: LTPD (each lot must be good, e.g. lots go to different users) or AOQL (the long-run average quality must be good, e.g. continuous supply).
  2. Estimate the process average p‾\bar p from past inspection results (e.g. the first samples of the last 25 lots).
  3. Enter the appropriate table with NN and p‾\bar p (in the column for the chosen LTPD or AOQL), and read off nn and cc (or the double plan), with the associated AOQL or LTPD.
  4. Apply the plan: accept lots with d≤cd\le c; screen rejected lots 100% and replace defectives.
  5. Keep updating p‾\bar p; if it exceeds the largest class in the table (i.e. exceeds the LTPD or about the AOQL), sampling is uneconomic and 100% inspection should be used.

✓ Answer checked step by step Every point was checked against the construction (min ATI at the process average subject to LTPD or AOQL) and use of the Dodge–Romig tables.

↑ Back to the question list

Explain single and double sampling inspection plans for attributes. What are the statistical advantages of double sampling plan?

1998 · Paper II · Q6a · 15 marks

Solution

Single sampling plan (N,n,c)(N,n,c): inspect one random sample of nn items from the lot; accept if the number of defectives d≤cd\le c, otherwise reject. Its OC function is Pa(p)=∑d=0c(nd)pd(1−p)n−dP_a(p)=\sum_{d=0}^{c}\binom nd p^d(1-p)^{n-d}, and exactly nn items are inspected.

Double sampling plan (N;n1,c1;n2,c2)(N;n_1,c_1;n_2,c_2): inspect n1n_1; accept if d1≤c1d_1\le c_1, reject if d1>c2d_1>c_2; otherwise inspect n2n_2 more and accept if d1+d2≤c2d_1+d_2\le c_2, else reject. Its OC function is Pa(p)=P(d1≤c1)+∑j=c1+1c2P(d1=j)P(d2≤c2−j),P_a(p)=P(d_1\le c_1)+\sum_{j=c_1+1}^{c_2}P(d_1=j)P(d_2\le c_2-j), and its ASN is n1+n2P(c1<d1≤c2)n_1+n_2P(c_1<d_1\le c_2).

Statistical advantages of double sampling.

  1. Smaller average sample number for the same OC curve. A double plan can be matched to a single plan’s OC curve (same α\alpha, β\beta, AQL, LTPD) while inspecting fewer items on average, because clear-cut lots are decided on the small first sample. For good process averages the saving is often 25–50%.
  2. Better use of information. The decision to take more data is made only when the first sample is inconclusive, which is a step towards the optimal (sequential) procedure.
  3. Greater flexibility in shaping the OC curve, since there are four parameters instead of two.
  4. Lower ATI at good quality levels under rectifying inspection.
  5. Curtailed inspection reduces the ASN still more.
  6. Also a practical (non-statistical) advantage: lots get a “second chance”, which producers find fairer.

(The cost is more complex administration and a variable inspection load; near the indifference quality the ASN can exceed the single-plan nn.)

✓ Answer checked step by step Every point was checked against the standard single and double sampling procedures and the statistical advantages of double sampling (lower ASN for the same OC).

↑ Back to the question list

Given lot size (N), LTPD (pt), consumer’s risk (Pc) and process average (p‾) [?], derive the most economical single sampling plan for acceptance purposes.

1998 · Paper II · Q6b · 30 marks

Solution

Note on the question. “[?]” marks a missing word in the source; the question is read as: given NN, ptp_t, PcP_c and p‾\bar p, derive the most economical single sampling plan (the Dodge–Romig LTPD plan).

Aim. Find (n,c)(n,c) such that

  1. Consumer protection: a lot at the LTPD is accepted with probability exactly (at most) PcP_c: Pa(pt)=∑x=0c(Nptx)(N−Nptn−x)(Nn)=Pc;(1)P_a(p_t)=\sum_{x=0}^{c}\frac{\binom{Np_t}{x}\binom{N-Np_t}{n-x}}{\binom Nn}=P_c;\qquad(1)
  2. Economy: the average amount of inspection is least when the producer is working at its process average p‾\bar p. Under rectifying inspection, I(n,c)=ATI(p‾)=n+[1−Pa(p‾)](N−n),Pa(p‾)=∑x=0c(Np‾x)(N−Np‾n−x)(Nn).(2)I(n,c)=\text{ATI}(\bar p)=n+\left[1-P_a(\bar p)\right](N-n),\qquad P_a(\bar p)=\sum_{x=0}^{c}\frac{\binom{N\bar p}{x}\binom{N-N\bar p}{n-x}}{\binom Nn}.\qquad(2)

Derivation of the plan.

  • For each acceptance number c=0,1,2,…c=0,1,2,\dots, condition (1) determines the sample size n=ncn=n_c (the smallest nn with Pa(pt)≤PcP_a(p_t)\le P_c). As cc increases, ncn_c increases.
  • Substituting (nc,c)(n_c,c) in (2) gives Ic=ATI(p‾)I_c=\text{ATI}(\bar p).
  • Two effects pull in opposite directions: a larger cc means a larger sample ncn_c (more inspection in every lot), but a higher Pa(p‾)P_a(\bar p) (fewer good lots rejected and screened). So IcI_c first decreases and then increases with cc.
  • The most economical plan is the (nc,c)(n_c,c) that minimises IcI_c: c*=argminc{nc+[1−Pa(p‾∣nc,c)](N−nc)}.c^*=\arg\min_c\left\{n_c+\left[1-P_a(\bar p\mid n_c,c)\right](N-n_c)\right\}.

Computation with approximations. If NN is large and ptp_t small, use the Poisson approximation: nc=mc/ptn_c=m_c/p_t, where mcm_c solves ∑x=0ce−mmx/x!=Pc\sum_{x=0}^{c}e^{-m}m^x/x!=P_c (for Pc=0.10P_c=0.10: m0=2.303m_0=2.303, m1=3.890m_1=3.890, m2=5.322m_2=5.322, m3=6.681m_3=6.681, …). Then Ic=mcpt+[1−∑x=0ce−ncp‾(ncp‾)xx!](N−mcpt).I_c=\frac{m_c}{p_t}+\left[1-\sum_{x=0}^{c}e^{-n_c\bar p}\frac{(n_c\bar p)^x}{x!}\right]\left(N-\frac{m_c}{p_t}\right). Compute IcI_c for c=0,1,2,…c=0,1,2,\dots and stop when it begins to rise.

Example. N=2000N=2000, pt=0.05p_t=0.05, Pc=0.10P_c=0.10, p‾=0.01\bar p=0.01:

  • c=0c=0: n=46n=46, Pa(p‾)=e−0.46=0.631P_a(\bar p)=e^{-0.46}=0.631, I=46+0.369(1954)=767I=46+0.369(1954)=767;
  • c=1c=1: n=78n=78, Pa=e−0.78(1.78)=0.816P_a=e^{-0.78}(1.78)=0.816, I=78+0.184(1922)=432I=78+0.184(1922)=432;
  • c=2c=2: n=106n=106, Pa=0.909P_a=0.909, I=106+0.091(1894)=278I=106+0.091(1894)=278;
  • c=3c=3: n=134n=134, Pa=0.953P_a=0.953, I=134+0.047(1866)=222I=134+0.047(1866)=222;
  • c=4c=4: n=160n=160, Pa=0.976P_a=0.976, I=160+0.024(1840)=204I=160+0.024(1840)=204;
  • c=5c=5: n=186n=186, Pa=0.988P_a=0.988, I=186+0.012(1814)=208I=186+0.012(1814)=208. The minimum is at c=4c=4, n=160n=160: this is the most economical plan.

These calculations are exactly what the Dodge–Romig LTPD tables tabulate.

✓ Derivation checked step by step Every step was checked: minimise ATI(p̄) = n + 1 − Pa(p̄) over (n, c) subject to Pa(p_t) = P_c, with n_c found for each c from the LTPD condition.

↑ Back to the question list

Define AOQL and describe how to obtain the same for the double sampling plan.

1998 · Paper II · Q6c · 15 marks

Solution

AOQL. Under rectifying inspection (rejected lots screened 100%, defectives replaced), the average outgoing quality AOQ(p)\text{AOQ}(p) depends on the incoming fraction defective pp. The average outgoing quality limit is its maximum over all pp: AOQL=max0≤p≤1AOQ(p).\text{AOQL}=\max_{0\le p\le1}\text{AOQ}(p). It is the worst long-run average quality that can go out, whatever the incoming quality.

For a double sampling plan (N;n1,c1;n2,c2)(N;n_1,c_1;n_2,c_2):

  1. Acceptance probabilities at each stage, for a given pp: Pa1=P(d1≤c1),Pa2=∑j=c1+1c2P(d1=j)P(d2≤c2−j).P_{a1}=P(d_1\le c_1),\qquad P_{a2}=\sum_{j=c_1+1}^{c_2}P(d_1=j)\,P(d_2\le c_2-j).
  2. AOQ. Lots accepted on the first sample leave N−n1N-n_1 uninspected items; those accepted on the second leave N−n1−n2N-n_1-n_2; rejected lots leave none. So AOQ(p)=p[Pa1(N−n1)+Pa2(N−n1−n2)]N.\text{AOQ}(p)=\frac{p\left[P_{a1}(N-n_1)+P_{a2}(N-n_1-n_2)\right]}{N}. When the samples are small relative to NN, AOQ≈p(Pa1+Pa2)=pPa(p)\text{AOQ}\approx p(P_{a1}+P_{a2})=pP_a(p).
  3. Maximise. Compute AOQ for a range of pp (0 to a value where PaP_a is near 0), plot the AOQ curve, and read off its highest point. Analytically, set ddpAOQ=0\frac{d}{dp}\text{AOQ}=0 and solve numerically.
  4. With the Poisson approximation and NN large, AOQ is a function of x=n1px=n_1p only (for fixed n2/n1n_2/n_1), so AOQL=y/n1\text{AOQL}=y/n_1, where y=maxxxPa(x)y=\max_x x\,P_a(x); tables of yy for common double plans make this quick.

Example. N=1000N=1000, (50,3;100,7)(50,3;\;100,7): computing AOQ over pp gives a maximum of about 0.039 at p≈0.057p\approx0.057. So whatever the incoming quality, the outgoing product will average no more than about 3.9% defective.

✓ Answer checked step by step Every step was checked: AOQ(p) = p[P_a1(N − n₁) + P_a2(N − n₁ − n₂)]/N, maximised over p; for (50, 3; 100, 7) with N = 1000 the AOQL is about 0.039 at p ≈ 0.057.

↑ Back to the question list

Write a note on sequential sampling inspection plans for attributes.

1998 · Paper II · Q7a · 20 marks

Solution

Idea. A sequential sampling plan inspects items one at a time (or in small groups) and, after each item, decides to accept the lot, reject it, or continue inspecting. The number of items inspected is not fixed in advance; the decision is reached as soon as the evidence is strong enough. The theory is Wald’s sequential probability ratio test (SPRT), developed during World War II for inspection of military supplies.

Design. For quality levels p1p_1 (AQL, risk α\alpha) and p2p_2 (LTPD, risk β\beta): accept if dn≤−h1+sn,reject if dn≥h2+sn,\text{accept if }d_n\le-h_1+sn,\qquad\text{reject if }d_n\ge h_2+sn, k=lnp2(1−p1)p1(1−p2),h1=ln1−αβk,h2=ln1−βαk,s=ln1−p11−p2k.k=\ln\frac{p_2(1-p_1)}{p_1(1-p_2)},\quad h_1=\frac{\ln\frac{1-\alpha}{\beta}}{k},\quad h_2=\frac{\ln\frac{1-\beta}{\alpha}}{k},\quad s=\frac{\ln\frac{1-p_1}{1-p_2}}{k}. These are two parallel lines on a chart of cumulative defectives dnd_n against items inspected nn; the path of dnd_n is plotted and the lot is decided when the path crosses a line.

Properties.

  • OC curve: passes (approximately) through (p1,1−α)(p_1,1-\alpha) and (p2,β)(p_2,\beta); L(p)=Ah−1Ah−BhL(p)=\dfrac{A^h-1}{A^h-B^h} with A=1−βαA=\frac{1-\beta}\alpha, B=β1−αB=\frac\beta{1-\alpha}.
  • ASN: (1−L)h2−Lh1p−s\dfrac{(1-L)h_2-Lh_1}{p-s}; a five-point curve uses p=0,p1,s,p2,1p=0,p_1,s,p_2,1. It is the smallest of all plans with the same OC points, typically 30–50% below an equivalent single plan.
  • Truncation: a maximum sample size (often three times the single-plan nn) is set, with a rule for the final decision.

Merits. Least average inspection; very good for costly or destructive tests (ammunition, aircraft components); gives quick decisions on very good or very bad lots; easy graphical operation.

Limitations. The number inspected per lot is uncertain, which complicates scheduling; occasionally many items are needed for lots near p=sp=s; items must be drawn one at a time, which may be awkward; record-keeping and training are heavier. Group-sequential and multiple plans (as in MIL-STD-105) are practical compromises.

✓ Answer checked step by step Every point was checked against the standard theory of sequential sampling plans by attributes (Wald’s SPRT, lines, OC, ASN, merits and limitations).

↑ Back to the question list

Distinguish between type A and type B OC curves with reference to a single sample attribute inspection plan. How are they constructed?

1997 · Paper II · Q6a · 20 marks

Solution

Type A OC curve.

  • Gives the probability of accepting an isolated lot of finite size NN as a function of the actual fraction defective in that lot, p=D/Np=D/N.
  • Sampling is without replacement from a finite lot, so the number of defectives in the sample is hypergeometric: Pa(p)=∑d=0c(Dd)(N−Dn−d)(Nn),D=Np.P_a(p)=\sum_{d=0}^{c}\frac{\binom{D}{d}\binom{N-D}{n-d}}{\binom Nn},\qquad D=Np .
  • Defined only at the discrete values p=0,1/N,2/N,…p=0,1/N,2/N,\dots; it is a step-like set of points, joined for convenience.
  • Depends on NN as well as on nn and cc. For small lots it is steeper than the type B curve.

Type B OC curve.

  • Gives the probability of accepting a lot drawn from a process (or a very large lot) whose fraction defective is pp, as a function of the process fraction defective.
  • Each item is defective independently with probability pp, so the number of defectives in the sample is binomial: Pa(p)=∑d=0c(nd)pd(1−p)n−d;P_a(p)=\sum_{d=0}^{c}\binom nd p^d(1-p)^{n-d}; for small pp and large nn, Poisson: Pa≈∑d=0ce−np(np)d/d!P_a\approx\sum_{d=0}^{c}e^{-np}(np)^d/d!.
  • A continuous, smooth curve, depending only on nn and cc, not on NN.

Construction (both). For a set of values of pp, compute Pa(p)P_a(p) from the appropriate distribution (tables of the hypergeometric, binomial or Poisson; Thorndike chart for Poisson), plot against pp and join the points.

Relationship. When the lot is large relative to the sample (n/N<0.1n/N<0.1), the hypergeometric is close to the binomial, and the type A and B curves practically coincide. Type A is used for isolated lots; type B for a continuing series of lots from a stable process (the usual case in acceptance sampling).

Example. n=5n=5, c=1c=1, p=0.10p=0.10: type A with N=20N=20 gives 0.947; with N=100N=100, 0.923; type B gives 0.919.

✓ Answer checked step by step Every point was checked: type A curves use the hypergeometric distribution for an isolated finite lot; type B use the binomial (or Poisson) for lots from a continuing process.

↑ Back to the question list

Obtain a variable sampling plan with double specification limits and with specified values of α, β, p1 and p2 (usual notations) when the quality characteristic is normally distributed with a known standard deviation.

1997 · Paper II · Q6b · 20 marks

Solution

Set-up. X∼N(μ,σ2)X\sim N(\mu,\sigma^2), σ\sigma known; lower and upper specification limits LL and UU. The lot fraction defective is p(μ)=Φ(L−μσ)+1−Φ(U−μσ).p(\mu)=\Phi\!\left(\frac{L-\mu}{\sigma}\right)+1-\Phi\!\left(\frac{U-\mu}{\sigma}\right). It is smallest when μ\mu is at the centre (L+U)/2(L+U)/2, where pmin=2Φ(−U−L2σ)p_{\min}=2\Phi\!\left(-\frac{U-L}{2\sigma}\right).

Preliminary check. If pmin>p1p_{\min}>p_1 (the process is too variable to meet the AQL even when perfectly centred), lots are rejected without sampling: no choice of μ\mu can make them acceptable. This is a check on σ\sigma: we need U−L2σ>zp1/2\dfrac{U-L}{2\sigma}>z_{p_1/2}.

Plan. Take nn items; compute x‾\bar x. Accept if L+kσ≤x‾≤U−kσ;L+k\sigma\le\bar x\le U-k\sigma ; reject otherwise.

OC function. Since x‾∼N(μ,σ2/n)\bar x\sim N(\mu,\sigma^2/n), Pa(μ)=Φ(n(U−kσ−μ)σ)−Φ(n(L+kσ−μ)σ).P_a(\mu)=\Phi\!\left(\frac{\sqrt n\,(U-k\sigma-\mu)}{\sigma}\right)-\Phi\!\left(\frac{\sqrt n\,(L+k\sigma-\mu)}{\sigma}\right).

Determining nn and kk for given α\alpha, β\beta, p1p_1, p2p_2. When (U−L)/σ(U-L)/\sigma is reasonably large (at least about 6), a lot with a sizeable fraction defective has nearly all its defectives in one tail (the one towards which μ\mu has moved), and the other term in PaP_a is negligible. Then, for a shift towards UU, p≈1−Φ((U−μ)/σ)p\approx1-\Phi((U-\mu)/\sigma), i.e. U−μ=zpσU-\mu=z_p\sigma, and Pa≈Φ(n(zp−k)).P_a\approx\Phi\!\left(\sqrt n\,(z_p-k)\right). Requiring Pa(p1)=1−αP_a(p_1)=1-\alpha and Pa(p2)=βP_a(p_2)=\beta: n(zp1−k)=zα,n(zp2−k)=−zβ,\sqrt n(z_{p_1}-k)=z_\alpha,\qquad\sqrt n(z_{p_2}-k)=-z_\beta, n=(zα+zβzp1−zp2)2,k=zαzp2+zβzp1zα+zβ.\boxed{n=\left(\frac{z_\alpha+z_\beta}{z_{p_1}-z_{p_2}}\right)^2,\qquad k=\frac{z_\alpha z_{p_2}+z_\beta z_{p_1}}{z_\alpha+z_\beta}}. By symmetry, the same nn and kk apply to the lower limit.

Refinement when (U−L)/σ(U-L)/\sigma is small. Both tails contribute. We then choose nn and kk so that the exact PaP_a, computed for the mean μ1\mu_1 giving fraction defective p1p_1 (nearest to the centre on one side) and μ2\mu_2 giving p2p_2, satisfies the two conditions; this is solved numerically, starting from the one-sided values above. Equivalently (MIL-STD-414 MM-method), estimate p̂=p̂L+p̂U\hat p=\hat p_L+\hat p_U from x‾\bar x and accept if p̂≤M\hat p\le M.

Example. p1=0.01p_1=0.01, p2=0.06p_2=0.06, α=0.05\alpha=0.05, β=0.10\beta=0.10: n=15n=15, k=1.893k=1.893; accept if L+1.893σ≤x‾≤U−1.893σL+1.893\sigma\le\bar x\le U-1.893\sigma. (This requires (U−L)/σ>2k=3.79(U-L)/\sigma>2k=3.79, and the check pmin<0.01p_{\min}<0.01 needs (U−L)/σ>5.15(U-L)/\sigma>5.15.)

✓ Derivation checked step by step Every step was checked: for double limits with known σ, the rule L + kσ ≤ x̄ ≤ U − kσ, Pa(μ) = Φ[√n(U − kσ − μ)/σ] − Φ[√n(L + kσ − μ)/σ], and n, k from the dominant tail.

↑ Back to the question list

What is a sequential sampling plan? Also obtain the formula for the ATE for an item by item SPR plan when rejected lots are inspected one hundred percent.

1997 · Paper II · Q6c · 20 marks

Solution

Sequential sampling plan. A plan in which items are inspected one by one and, after each, a decision is made to accept, reject or continue. For an item-by-item sequential probability ratio (SPR) plan with OC points (p1,1−α)(p_1,1-\alpha) and (p2,β)(p_2,\beta): accept if dn≤−h1+sn,reject if dn≥h2+sn,\text{accept if }d_n\le-h_1+sn,\qquad\text{reject if }d_n\ge h_2+sn, with k=lnp2(1−p1)p1(1−p2)k=\ln\frac{p_2(1-p_1)}{p_1(1-p_2)}, h1=1kln1−αβh_1=\frac1k\ln\frac{1-\alpha}\beta, h2=1kln1−βαh_2=\frac1k\ln\frac{1-\beta}\alpha, s=1kln1−p11−p2s=\frac1k\ln\frac{1-p_1}{1-p_2}. The number of items inspected is a random variable; its mean is the ASN.

Note on the question. “ATE” is read as ATI (average total inspection).

ATI when rejected lots are inspected 100%. Let L(p)L(p) be the OC function and nn the (random) number inspected before a decision.

  • If the lot is accepted (probability L(p)L(p)): only the nn sampled items are inspected.
  • If the lot is rejected (probability 1−L(p)1-L(p)): the sampled items and then all remaining items are inspected, NN in all.

So ATI=E(n;accept)+N[1−L(p)].\text{ATI}=E(n\,;\,\text{accept})+N\left[1-L(p)\right]. Using the approximation E(n∣accept)≈E(n)=ASNE(n\mid\text{accept})\approx E(n)=\text{ASN} (Wald), ATI≈L(p)⋅ASN(p)+N[1−L(p)]=N−L(p)[N−ASN(p)],\boxed{\text{ATI}\approx L(p)\cdot\text{ASN}(p)+N\left[1-L(p)\right]=N-L(p)\left[N-\text{ASN}(p)\right]}, with ASN(p)=[1−L(p)]h2−L(p)h1p−s,L(p)=Ah−1Ah−Bh.\text{ASN}(p)=\frac{\left[1-L(p)\right]h_2-L(p)\,h_1}{p-s},\qquad L(p)=\frac{A^h-1}{A^h-B^h}.

Particular values.

  • p=0p=0: L=1L=1, ASN=h1/s\text{ASN}=h_1/s, so ATI=h1/s\text{ATI}=h_1/s.
  • p=p1p=p_1: ATI=N−(1−α)(N−ASNp1)\text{ATI}=N-(1-\alpha)(N-\text{ASN}_{p_1}).
  • p=p2p=p_2: ATI=N−β(N−ASNp2)\text{ATI}=N-\beta(N-\text{ASN}_{p_2}).
  • p=1p=1: L=0L=0, ATI=N\text{ATI}=N.

(A more exact version uses the conditional ASN given acceptance, E(n∣accept)E(n\mid\text{accept}), obtained from Wald’s identity applied separately to the accepting paths; the approximation above is the one normally used.)

✓ Derivation checked step by step Every step was checked: ATI = L(p)·E(n | accept) + [1 − L(p)]N ≈ N − L(p)(N − ASN), with Wald’s ASN = [(1 − L)h₂ − L h₁]/(p − s).

↑ Back to the question list

Describe the working of a double sampling plan for product control. What are the advantages of this plan as compared to a single sampling plan?

1996 · Paper II · Q6a · 20 marks

Solution

Working of a double sampling plan. The plan is specified by (N;n1,c1;n2,c2)(N;\;n_1,c_1;\;n_2,c_2), with c1<c2c_1<c_2.

  1. A random sample of n1n_1 items is taken from the lot of NN, and the number of defectives d1d_1 is counted.
  2. If d1≤c1d_1\le c_1, the lot is accepted at once. If d1>c2d_1>c_2, it is rejected at once.
  3. If c1<d1≤c2c_1<d_1\le c_2, the result is doubtful, and a second random sample of n2n_2 items is taken; d2d_2 defectives are found.
  4. If the total d1+d2≤c2d_1+d_2\le c_2, the lot is accepted; if d1+d2>c2d_1+d_2>c_2, it is rejected.
  5. Under rectifying inspection, rejected lots are inspected 100% and defectives replaced.

Example. N=1000N=1000, n1=50n_1=50, c1=3c_1=3, n2=100n_2=100, c2=7c_2=7: 0–3 defectives in the first 50 → accept; 8 or more → reject; 4–7 → inspect 100 more and accept only if the total is at most 7.

OC and ASN. Pa=P(d1≤c1)+∑j=c1+1c2P(d1=j)P(d2≤c2−j)P_a=P(d_1\le c_1)+\sum_{j=c_1+1}^{c_2}P(d_1=j)P(d_2\le c_2-j); ASN=n1+n2P(c1<d1≤c2)\text{ASN}=n_1+n_2P(c_1<d_1\le c_2).

Advantages compared with a single sampling plan.

  1. Less inspection on average. For the same OC curve, the ASN is smaller, because lots that are clearly good or clearly bad are settled on the small first sample.
  2. Same protection to producer and consumer can be obtained.
  3. Psychological appeal: no lot is rejected on the borderline evidence of one sample; it gets a second chance.
  4. Greater flexibility in designing the OC curve (four parameters).
  5. Lower average total inspection at good quality under rectifying inspection.
  6. Curtailed inspection of the second sample gives further savings.

(Its drawbacks: more complicated administration and record-keeping, a variable inspection load, and for lots of intermediate quality the total inspection may exceed that of a single plan.)

✓ Answer checked step by step Every point was checked against the standard working of a double sampling plan and its advantages over single sampling.

↑ Back to the question list

Define the concepts of AOQ and ATI in rectifying inspection. Derive expressions for these under a double sampling plan.

1996 · Paper II · Q6b · 20 marks

Solution

(This is the same question as Q45 (2000, 2a) above. The worked solution is repeated here so that each question is complete.)

AOQ and ATI. Under rectifying inspection, rejected lots are inspected 100% and all defectives found are replaced by good items.

  • AOQ (average outgoing quality) is the expected fraction defective in the outgoing product, as a function of incoming quality pp. Its maximum over pp is the AOQL.
  • ATI (average total inspection) is the expected number of items inspected per lot, including the screening of rejected lots.

Double sampling plan (N;n1,c1;n2,c2)(N;\;n_1,c_1;\;n_2,c_2). Let Pa1=P(d1≤c1),Pa2=∑j=c1+1c2P(d1=j)P(d2≤c2−j),Pa=Pa1+Pa2.P_{a1}=P(d_1\le c_1),\qquad P_{a2}=\sum_{j=c_1+1}^{c_2}P(d_1=j)P(d_2\le c_2-j),\qquad P_a=P_{a1}+P_{a2}.

Outcomes for a lot of fraction defective pp:

Outcome Probability Items inspected Defectives left in the lot
Accepted on first sample Pa1P_{a1} n1n_1 p(N−n1)p(N-n_1) on average
Accepted on second sample Pa2P_{a2} n1+n2n_1+n_2 p(N−n1−n2)p(N-n_1-n_2) on average
Rejected (either stage) 1−Pa1-P_a NN 0

(In accepted lots, defectives found in the samples are replaced, so only the uninspected items carry defectives.)

AOQ. Expected defectives in an outgoing lot, divided by NN: AOQ=p[Pa1(N−n1)+Pa2(N−n1−n2)]N.\boxed{\text{AOQ}=\frac{p\left[P_{a1}(N-n_1)+P_{a2}(N-n_1-n_2)\right]}{N}}. If n1+n2≪Nn_1+n_2\ll N, AOQ≈pPa\text{AOQ}\approx p\,P_a.

ATI. ATI=n1Pa1+(n1+n2)Pa2+N(1−Pa).\boxed{\text{ATI}=n_1P_{a1}+(n_1+n_2)P_{a2}+N(1-P_a)}. Example. N=1000N=1000, (50,3;100,7)(50,3;\;100,7), p=0.05p=0.05: Pa1=0.760P_{a1}=0.760, Pa2=0.044P_{a2}=0.044; AOQ =0.05[0.760(950)+0.044(850)]/1000=0.0380=0.05[0.760(950)+0.044(850)]/1000=0.0380; ATI =241=241.

✓ Derivation checked step by step Every step was checked: for a double plan with rectifying inspection, AOQ = p[P_a1(N − n₁) + P_a2(N − n₁ − n₂)]/N and ATI = n₁P_a1 + (n₁ + n₂)P_a2 + N(1 − P_a).

↑ Back to the question list

Devise a known sigma variables sampling plan when there is a two-sided specification on the quality characteristic.

1996 · Paper II · Q6c · 20 marks

Solution

(This is the same question as Q55 (1997, 6b) above. The worked solution is repeated here so that each question is complete.)

Set-up. X∼N(μ,σ2)X\sim N(\mu,\sigma^2), σ\sigma known; lower and upper specification limits LL and UU. The lot fraction defective is p(μ)=Φ(L−μσ)+1−Φ(U−μσ).p(\mu)=\Phi\!\left(\frac{L-\mu}{\sigma}\right)+1-\Phi\!\left(\frac{U-\mu}{\sigma}\right). It is smallest when μ\mu is at the centre (L+U)/2(L+U)/2, where pmin=2Φ(−U−L2σ)p_{\min}=2\Phi\!\left(-\frac{U-L}{2\sigma}\right).

Preliminary check. If pmin>p1p_{\min}>p_1 (the process is too variable to meet the AQL even when perfectly centred), lots are rejected without sampling: no choice of μ\mu can make them acceptable. This is a check on σ\sigma: we need U−L2σ>zp1/2\dfrac{U-L}{2\sigma}>z_{p_1/2}.

Plan. Take nn items; compute x‾\bar x. Accept if L+kσ≤x‾≤U−kσ;L+k\sigma\le\bar x\le U-k\sigma ; reject otherwise.

OC function. Since x‾∼N(μ,σ2/n)\bar x\sim N(\mu,\sigma^2/n), Pa(μ)=Φ(n(U−kσ−μ)σ)−Φ(n(L+kσ−μ)σ).P_a(\mu)=\Phi\!\left(\frac{\sqrt n\,(U-k\sigma-\mu)}{\sigma}\right)-\Phi\!\left(\frac{\sqrt n\,(L+k\sigma-\mu)}{\sigma}\right).

Determining nn and kk for given α\alpha, β\beta, p1p_1, p2p_2. When (U−L)/σ(U-L)/\sigma is reasonably large (at least about 6), a lot with a sizeable fraction defective has nearly all its defectives in one tail (the one towards which μ\mu has moved), and the other term in PaP_a is negligible. Then, for a shift towards UU, p≈1−Φ((U−μ)/σ)p\approx1-\Phi((U-\mu)/\sigma), i.e. U−μ=zpσU-\mu=z_p\sigma, and Pa≈Φ(n(zp−k)).P_a\approx\Phi\!\left(\sqrt n\,(z_p-k)\right). Requiring Pa(p1)=1−αP_a(p_1)=1-\alpha and Pa(p2)=βP_a(p_2)=\beta: n(zp1−k)=zα,n(zp2−k)=−zβ,\sqrt n(z_{p_1}-k)=z_\alpha,\qquad\sqrt n(z_{p_2}-k)=-z_\beta, n=(zα+zβzp1−zp2)2,k=zαzp2+zβzp1zα+zβ.\boxed{n=\left(\frac{z_\alpha+z_\beta}{z_{p_1}-z_{p_2}}\right)^2,\qquad k=\frac{z_\alpha z_{p_2}+z_\beta z_{p_1}}{z_\alpha+z_\beta}}. By symmetry, the same nn and kk apply to the lower limit.

Refinement when (U−L)/σ(U-L)/\sigma is small. Both tails contribute. We then choose nn and kk so that the exact PaP_a, computed for the mean μ1\mu_1 giving fraction defective p1p_1 (nearest to the centre on one side) and μ2\mu_2 giving p2p_2, satisfies the two conditions; this is solved numerically, starting from the one-sided values above. Equivalently (MIL-STD-414 MM-method), estimate p̂=p̂L+p̂U\hat p=\hat p_L+\hat p_U from x‾\bar x and accept if p̂≤M\hat p\le M.

Example. p1=0.01p_1=0.01, p2=0.06p_2=0.06, α=0.05\alpha=0.05, β=0.10\beta=0.10: n=15n=15, k=1.893k=1.893; accept if L+1.893σ≤x‾≤U−1.893σL+1.893\sigma\le\bar x\le U-1.893\sigma. (This requires (U−L)/σ>2k=3.79(U-L)/\sigma>2k=3.79, and the check pmin<0.01p_{\min}<0.01 needs (U−L)/σ>5.15(U-L)/\sigma>5.15.)

✓ Derivation checked step by step Every step was checked: for double limits with known σ, the rule L + kσ ≤ x̄ ≤ U − kσ, Pa(μ) = Φ[√n(U − kσ − μ)/σ] − Φ[√n(L + kσ − μ)/σ], and n, k from the dominant tail.

↑ Back to the question list

Explain the concepts: OC curve, AOQ and consumer’s risk.

1995 · Paper II · Q6a · 20 marks

Solution

OC curve. The operating characteristic curve of a sampling plan is the graph of the probability of accepting a lot, Pa(p)P_a(p), against the lot (or process) fraction defective pp.

  • For a single plan (n,c)(n,c) and large lots: Pa(p)=∑d=0c(nd)pd(1−p)n−dP_a(p)=\sum_{d=0}^{c}\binom nd p^d(1-p)^{n-d}.
  • It starts at 1 for p=0p=0 and falls to 0 as p→1p\to1.
  • It shows the protection given by the plan to both parties, and its steepness shows how well it discriminates between good and bad lots. The ideal OC curve is a vertical step at the borderline quality: all lots better than it accepted, all worse rejected.
  • Plans are designed so that the OC curve passes through (AQL,1−α)(\text{AQL},1-\alpha) and (LTPD,β)(\text{LTPD},\beta).

AOQ (average outgoing quality). Under rectifying inspection (rejected lots screened 100%, defectives replaced), the AOQ is the average fraction defective of the outgoing product, for incoming quality pp: AOQ(p)=pPa(p)(N−n)N≈pPa(p)(single plan).\text{AOQ}(p)=\frac{p\,P_a(p)(N-n)}{N}\approx pP_a(p)\quad\text{(single plan)}. The AOQ curve rises from 0, reaches a maximum (the AOQL), and falls again, because very poor lots are mostly rejected and cleaned. The AOQL bounds the long-run average outgoing quality.

Consumer’s risk (β\beta). The probability that a lot of quality as bad as the LTPD (p2p_2) will be accepted by the plan: β=Pa(p2).\beta=P_a(p_2). It is the risk the consumer runs of receiving a bad lot (the Type II error of the plan), and is usually fixed at 0.10. It is read directly from the OC curve at p=p2p=p_2.

Example. For n=100n=100, c=2c=2 and LTPD 5%, β=P(d≤2∣p=0.05)=0.118\beta=P(d\le2\mid p=0.05)=0.118.

✓ Answer checked step by step Every point was checked against the standard definitions of the OC curve, AOQ and consumer’s risk.

↑ Back to the question list

Derive the equations to the acceptance and rejection lines for a sequential sampling plan by attributes whose OC curve passes through the specified points (p1,1−α) and (p2,β).

1995 · Paper II · Q6b · 20 marks

Solution

(This is the same question as Q44 (2000, 1b) above. The worked solution is repeated here so that each question is complete.)

Requirement. The plan’s OC curve should pass through (p1,1−α)(p_1,1-\alpha) and (p2,β)(p_2,\beta): lots of quality p1p_1 accepted with probability 1−α1-\alpha, lots of quality p2p_2 with probability β\beta. We use Wald’s SPRT of H0:p=p1H_0:p=p_1 against H1:p=p2H_1:p=p_2.

Likelihood ratio. After nn items with dnd_n defectives: λn=p2dn(1−p2)n−dnp1dn(1−p1)n−dn.\lambda_n=\frac{p_2^{d_n}(1-p_2)^{n-d_n}}{p_1^{d_n}(1-p_1)^{n-d_n}} .

Boundaries. Accept if λn≤B\lambda_n\le B, reject if λn≥A\lambda_n\ge A, continue otherwise, with Wald’s approximations A=1−βα,B=β1−α.A=\frac{1-\beta}{\alpha},\qquad B=\frac{\beta}{1-\alpha}.

Lines. Taking logarithms, lnλn=dnlnp2p1+(n−dn)ln1−p21−p1=dnk−nln1−p11−p2,k=lnp2(1−p1)p1(1−p2).\ln\lambda_n=d_n\ln\frac{p_2}{p_1}+(n-d_n)\ln\frac{1-p_2}{1-p_1}=d_n\,k-n\ln\frac{1-p_1}{1-p_2},\qquad k=\ln\frac{p_2(1-p_1)}{p_1(1-p_2)}.

  • lnλn≤lnB⇔dn≤−h1+sn\ln\lambda_n\le\ln B\iff d_n\le-h_1+sn;
  • lnλn≥lnA⇔dn≥h2+sn\ln\lambda_n\ge\ln A\iff d_n\ge h_2+sn; where h1=1kln1−αβ,h2=1kln1−βα,s=1kln1−p11−p2.h_1=\frac{1}{k}\ln\frac{1-\alpha}{\beta},\qquad h_2=\frac1k\ln\frac{1-\beta}{\alpha},\qquad s=\frac1k\ln\frac{1-p_1}{1-p_2}.

The item-by-item plan.

  1. Inspect items one at a time; after the nn-th, let dnd_n = cumulative defectives.
  2. Accept the lot if dn≤an=−h1+snd_n\le a_n=-h_1+sn.
  3. Reject the lot if dn≥rn=h2+snd_n\ge r_n=h_2+sn.
  4. Otherwise inspect the next item. In practice the acceptance numbers ⌊an⌋\lfloor a_n\rfloor and rejection numbers ⌈rn⌉\lceil r_n\rceil are tabulated, or the lines are drawn on a chart of dnd_n against nn.

Properties.

  • The lines are parallel, with slope ss (p1<s<p2p_1<s<p_2).
  • The earliest acceptance (with no defectives) is at n=h1/sn=h_1/s; the earliest rejection (all items defective) at n=h2/(1−s)n=h_2/(1-s).
  • OC: L(p)=Ah−1Ah−BhL(p)=\dfrac{A^h-1}{A^h-B^h}, where hh is related to pp by p=1−(1−p21−p1)h(p2p1)h−(1−p21−p1)hp=\dfrac{1-\left(\frac{1-p_2}{1-p_1}\right)^h}{\left(\frac{p_2}{p_1}\right)^h-\left(\frac{1-p_2}{1-p_1}\right)^h}; this gives L(p1)=1−αL(p_1)=1-\alpha (h=1h=1) and L(p2)=βL(p_2)=\beta (h=−1h=-1).
  • ASN: (1−L(p))h2−L(p)h1p−s\dfrac{(1-L(p))h_2-L(p)h_1}{p-s}.

Example. p1=0.01p_1=0.01, α=0.05\alpha=0.05, p2=0.06p_2=0.06, β=0.10\beta=0.10: h1=1.221h_1=1.221, h2=1.568h_2=1.568, s=0.0281s=0.0281.

✓ Derivation checked step by step Every step was checked: Wald’s SPRT for p₁ against p₂ with A = (1 − β)/α, B = β/(1 − α) gives d ≤ −h₁ + sn (accept) and d ≥ h₂ + sn (reject).

↑ Back to the question list

Describe a double sampling plan fully.

1995 · Paper II · Q6c · 20 marks

Solution

Definition. A double sampling plan allows a decision on a lot after one or two samples. It is specified by

  • NN: lot size;
  • n1n_1, c1c_1: size of the first sample and acceptance number for it;
  • n2n_2, c2c_2: size of the second sample and acceptance number for the combined samples (c2>c1c_2>c_1).

Procedure.

  1. Inspect n1n_1 items; d1d_1 defectives.
  2. d1≤c1d_1\le c_1: accept the lot. d1>c2d_1>c_2: reject the lot.
  3. c1<d1≤c2c_1<d_1\le c_2: inspect n2n_2 further items; d2d_2 defectives.
  4. d1+d2≤c2d_1+d_2\le c_2: accept; otherwise reject.
  5. Under rectifying inspection, rejected lots are screened 100% and defectives replaced. (Curtailed inspection: stop the second sample as soon as d1+d2>c2d_1+d_2>c_2.)

Measures of performance (lot fraction defective pp; binomial, Poisson or hypergeometric probabilities):

  • OC function: Pa=Pa1+Pa2,Pa1=P(d1≤c1),Pa2=∑j=c1+1c2P(d1=j)P(d2≤c2−j).P_a=P_{a1}+P_{a2},\quad P_{a1}=P(d_1\le c_1),\quad P_{a2}=\sum_{j=c_1+1}^{c_2}P(d_1=j)P(d_2\le c_2-j).
  • ASN: n1+n2P(c1<d1≤c2)n_1+n_2\,P(c_1<d_1\le c_2).
  • AOQ: p[Pa1(N−n1)+Pa2(N−n1−n2)]N\dfrac{p\left[P_{a1}(N-n_1)+P_{a2}(N-n_1-n_2)\right]}{N}; its maximum is the AOQL.
  • ATI: n1Pa1+(n1+n2)Pa2+N(1−Pa)n_1P_{a1}+(n_1+n_2)P_{a2}+N(1-P_a).
  • Producer’s risk 1−Pa(p1)1-P_a(p_1) and consumer’s risk Pa(p2)P_a(p_2).

Design. Plans are chosen so that the OC curve passes through (p1,1−α)(p_1,1-\alpha) and (p2,β)(p_2,\beta), often with n2=n1n_2=n_1 or n2=2n1n_2=2n_1 (Grubbs’s tables), or to minimise ATI for a given LTPD or AOQL (Dodge–Romig tables), or from MIL-STD-105 / IS 2500.

Example. N=1000N=1000, (50,3;100,7)(50,3;\;100,7), p=0.05p=0.05: Pa=0.804P_a=0.804, ASN =74=74, AOQ =0.038=0.038, ATI =241=241.

Merits. Smaller average inspection than a single plan with the same OC; a “second chance” for lots; flexible OC shape. Demerits. More complex administration; variable inspection load; for intermediate quality, more inspection than the equivalent single plan.

✓ Answer checked step by step Every point was checked against the full description of a double sampling plan: procedure, OC, ASN, AOQ, ATI and merits.

↑ Back to the question list

Discuss the relative merits of attributes and variables sampling plans.

1995 · Paper II · Q7a · 20 marks

Solution

Attributes plans classify each sampled item as defective or not (or count defects) and decide by the number of defectives: accept if d≤cd\le c. Variables plans measure the characteristic on each sampled item and decide from x‾\bar x and ss (or σ\sigma): accept if (U−x‾)/s≥k(U-\bar x)/s\ge k.

Merits of variables plans.

  1. Smaller samples for the same protection. Measurements carry more information than a good/bad classification. For the same OC curve, a variables plan typically needs 30–70% fewer items (e.g. 15 against about 110 for AQL 1%, LTPD 6%, α=0.05\alpha=0.05, β=0.10\beta=0.10 with σ\sigma known).
  2. Very valuable for destructive or costly tests, where every item saved matters.
  3. More information about the process: how far the product is from the limits, whether the mean or the spread is at fault; useful for process improvement and for giving early warning before items actually become defective.
  4. A lot can be rejected for being close to the limit even when no defective is found in the sample.

Demerits of variables plans.

  1. Depend on the assumption of normality (or a known distribution); if it fails, the actual risks differ from the nominal ones.
  2. A separate plan for each characteristic; with many characteristics they become expensive.
  3. Measurement is slower and costlier than go/no-go gauging, and computation is needed.
  4. Harder for inspectors to understand; a lot may be rejected although no defective was found, which can cause disputes with suppliers.

Merits of attributes plans.

  1. No distributional assumption beyond random sampling; robust.
  2. One plan covers many characteristics (an item is defective if it fails any).
  3. Simple and cheap inspection with gauges or visual checks; easy to administer and explain.
  4. Well-developed tables (Dodge–Romig, MIL-STD-105, IS 2500 Part 1).

Demerits of attributes plans.

  1. Larger samples for the same protection.
  2. Less information; no indication of how close items are to the limits.

Choice. Variables plans are preferred when the characteristic is critical, measurable and approximately normal, and inspection is costly or destructive; attributes plans when many characteristics are inspected together, when only go/no-go information is available, or when simplicity matters.

✓ Answer checked step by step Every point was checked against the standard comparison of attributes and variables acceptance sampling plans.

↑ Back to the question list

More on Industrial Statistics

Questions: UPSC Civil Services (Main) Examination, Statistics Paper II, 1995–2026. Solutions: Optional Province. Found an error? Tell us.

Spotted an error? Tell us.

We classify every PYQ with care, but mistakes can slip in. If a question is in the wrong topic, has a typo, the wrong year, or is missing, let us know. We review every report and update the page.

Report an Error
Subscribe
Notify of
guest

0 Comments
Oldest
Newest Most Voted