TExcelTAD
Home › School Probability & Statistics on Paper › Mini Project: Quality Control Sampling & Clinical Trial Risk Assessment

Mini Project: Quality Control Sampling & Clinical Trial Risk Assessment

Every day, biomedical engineers, pharmaceutical scientists, and regulatory auditors use paper-and-pencil probability to make life-critical decisions:

  • How many medical devices must be sampled from an assembly line to guarantee patient safety without bankrupting the factory?
  • How can a clinical trial determine whether a new diagnostic test is truly effective or producing dangerous false alarms?
  • How can health officials detect deceptive pharmaceutical advertisements that manipulate statistical charts?

In this capstone mini-project, you will step into the role of the Chief Biostatistical Auditor for the Health Products Regulatory Authority. Your mission is to audit a commercial medical device manufacturer and its clinical trial data through four comprehensive paper auditing phases.

mermaid
flowchart TD
    A["Raw Audit Dossier<br>(Device Specs & Trial Data)"] --> B["Phase 1: Industrial Lot Acceptance Sampling"]
    B --> C["Phase 2: Diagnostic Trial Sensitivity & PPV"]
    C --> D["Phase 3: Continuous Plunger Force & Tolerance"]
    D --> E["Phase 4: Marketing Graph Audit & Lie Factor"]
    E --> F["Auditor's Final Certification Report"]

The Audit Dossier & Technical Specifications

MedTech Corporation manufactures sterile pre-filled insulin syringes. A single production batch contains N=10,000N = 10{,}000 syringes. You have received the manufacturer's inspection logs, clinical diagnostic trial records, and marketing drafts.

Dossier Item 1: Lot Acceptance Sampling Plan (LASP)

To inspect incoming lots without destroying the entire batch, the quality control protocol specifies:

  • A random sample of n=20n = 20 syringes is inspected per batch.
  • Acceptance Criterion: The entire lot is accepted if the number of defective syringes X≤1X \le 1.
  • Rejection Criterion: The entire lot is rejected and scrapped if X≥2X \ge 2.

Two quality benchmarks are evaluated:

  1. Acceptable Quality Level (AQL): A high-quality lot has a true defect rate of p=0.02p = 0.02 (2%2\%). The manufacturer expects these lots to pass.
  2. Lot Tolerance Percent Defective (LTPD): A dangerous, defective lot has a true defect rate of p=0.15p = 0.15 (15%15\%). The regulator demands these lots be rejected.

Dossier Item 2: Phase III Clinical Diagnostic Trial Data

MedTech developed a rapid antibody screening test to detect insulin resistance. In a controlled clinical trial involving N=500N = 500 volunteer patients, gold-standard laboratory biopsies confirmed that 100100 patients had the condition (D+D^+) and 400400 patients were healthy (D−D^-).

The trial yielded the following raw counts:

Clinical StatusTested Positive (T+)Tested Negative (T−)TotalCondition Present (D+)928100Condition Absent (D−)20380400Total112388500\begin{array}{|l|c|c|c|} \hline \mathbf{Clinical\ Status} & \mathbf{Tested\ Positive\ (T^+)} & \mathbf{Tested\ Negative\ (T^-)} & \mathbf{Total} \\ \hline \text{Condition Present } (D^+) & 92 & 8 & 100 \\ \text{Condition Absent } (D^-) & 20 & 380 & 400 \\ \hline \mathbf{Total} & \mathbf{112} & \mathbf{388} & \mathbf{500} \\ \hline \end{array}

Dossier Item 3: Plunger Actuation Force Measurements

For an insulin pen to be safely used by arthritic patients, the mechanical force required to press the plunger must be consistent. The actuation force XX follows a normal distribution:

X∼N(μ=25.0 N,σ2=1.52 N2)X \sim N(\mu = 25.0\text{ N}, \sigma^2 = 1.5^2\text{ N}^2)
  • Customer Tolerance Specification: The force must be between 22.0 N22.0\text{ N} and 28.0 N28.0\text{ N}. Syringes outside this range cause patient discomfort.
  • Safety Failure Specification: Plungers requiring <20.5 N< 20.5\text{ N} leak medicine prematurely, and those requiring >29.5 N> 29.5\text{ N} jam during injection.

Dossier Item 4: Marketing Graphic Advertisement

MedTech published a marketing flyer comparing their syringe needle pain rate (1.2%1.2\%) against a competitor's needle (1.8%1.8\%). The published bar chart displays:

  • Competitor Needle bar height: 0.8 cm0.8\text{ cm}
  • MedTech Needle bar height: 0.2 cm0.2\text{ cm} The graphic uses a truncated vertical axis starting at 1.0%1.0\%.

Your Paper Audit Tasks

Take out your notebook, pencil, and grid paper. Complete each phase systematically before signing off on the auditor's final certification.

  • Task 1 (Lot Sampling & Operational Risks):
    • Model the inspection as a binomial random variable X∼B(n,p)X \sim B(n, p).
    • Compute the probability of accepting a high-quality lot (p=0.02p = 0.02). Determine the Producer's Risk (α=P(Reject ∣AQL)\alpha = P(\text{Reject } \mid \text{AQL})).
    • Compute the probability of accepting a dangerous lot (p=0.15p = 0.15). Determine the Consumer's Risk (β=P(Accept ∣LTPD)\beta = P(\text{Accept } \mid \text{LTPD})).
  • Task 2 (Diagnostic Efficacy & Predictive Value):
    • Compute the Sensitivity and Specificity of the rapid test.
    • Compute the Positive Predictive Value (PPV) and Negative Predictive Value (NPV).
    • Explain on paper why the PPV in this clinical trial (82.1%82.1\%) would drop drastically if deployed in a general population where prevalence is only 0.5%0.5\%.
  • Task 3 (Tolerance Limits via Empirical Rule):
    • Sketch the normal distribution curve for actuation force with benchmarks from μ−3σ\mu - 3\sigma to μ+3σ\mu + 3\sigma.
    • Calculate the percentage of syringes that meet the Customer Tolerance Specification ([22.0 N,28.0 N][22.0\text{ N}, 28.0\text{ N}]).
    • Calculate the expected number of Safety Jam/Leak Failures in a monthly production run of 100,000100{,}000 syringes.
  • Task 4 (Regulatory Graphic Integrity Audit):
    • Calculate the actual percentage difference in pain rate between the two needles.
    • Calculate the visual percentage difference depicted by the bar heights.
    • Compute the Lie Factor. State whether the advertisement complies with regulatory truth-in-advertising guidelines.

Complete Step-by-Step Paper Audit Solutions


Phase 1: Industrial Lot Acceptance Sampling Audit

Step 1: Model Definition

Let XX be the number of defective syringes in a sample of n=20n = 20. Under the BINS criteria, X∼B(20,p)X \sim B(20, p). The lot is accepted if X=0X = 0 or X=1X = 1:

P(Accept)=P(X=0)+P(X=1)=(200)p0(1−p)20+(201)p1(1−p)19P(\text{Accept}) = P(X = 0) + P(X = 1) = \binom{20}{0} p^0 (1-p)^{20} + \binom{20}{1} p^1 (1-p)^{19}

Step 2: High-Quality Lot (p=0.02p = 0.02)

Here 1−p=0.981 - p = 0.98:

P(X=0)=1×1×(0.98)20≈0.6676P(X=1)=20×0.02×(0.98)19=0.40×0.6812≈0.2725\begin{aligned} P(X = 0) &= 1 \times 1 \times (0.98)^{20} \approx 0.6676 \\ P(X = 1) &= 20 \times 0.02 \times (0.98)^{19} = 0.40 \times 0.6812 \approx 0.2725 \end{aligned}

Summing both probabilities:

P(Accept∣p=0.02)=0.6676+0.2725=0.9401 (94.01%)P(\text{Accept} \mid p = 0.02) = 0.6676 + 0.2725 = 0.9401\ (94.01\%)
  • Producer's Risk (α\alpha): The probability of mistakenly rejecting a good lot:
α=1−0.9401=0.0599≈6.0%\alpha = 1 - 0.9401 = 0.0599 \approx 6.0\%

Approximately 66 out of every 100100 high-quality batches will be needlessly scrapped.

Step 3: Defective Lot (p=0.15p = 0.15)

Here 1−p=0.851 - p = 0.85:

P(X=0)=(0.85)20≈0.0388P(X=1)=20×0.15×(0.85)19=3.0×0.0456≈0.1368\begin{aligned} P(X = 0) &= (0.85)^{20} \approx 0.0388 \\ P(X = 1) &= 20 \times 0.15 \times (0.85)^{19} = 3.0 \times 0.0456 \approx 0.1368 \end{aligned}

Summing both probabilities:

P(Accept∣p=0.15)=0.0388+0.1368=0.1756 (17.56%)P(\text{Accept} \mid p = 0.15) = 0.0388 + 0.1368 = 0.1756\ (17.56\%)
  • Consumer's Risk (β\beta): The probability of mistakenly accepting a dangerous lot:
β=17.56%\beta = 17.56\%

Auditor's Finding: A consumer risk of 17.56%17.56\% is dangerously high for a medical product. Nearly 11 in 66 defective batches will reach hospitals! The sample size nn must be increased.


Phase 2: Diagnostic Trial Sensitivity & Predictive Value Audit

Using Table 2 from Dossier Item 2:

T+T−TotalD+TP=92FN=8100D−FP=20TN=380400Total112388500\begin{array}{|l|c|c|c|} \hline & T^+ & T^- & \text{Total} \\ \hline D^+ & TP = 92 & FN = 8 & 100 \\ D^- & FP = 20 & TN = 380 & 400 \\ \hline \text{Total} & 112 & 388 & 500 \\ \hline \end{array}

Step 1: Sensitivity (True Positive Rate)

Measures the test's ability to correctly identify patients with the disease:

Sensitivity=TPTP+FN=92100=92.0%\text{Sensitivity} = \frac{TP}{TP + FN} = \frac{92}{100} = \mathbf{92.0\%}

Step 2: Specificity (True Negative Rate)

Measures the test's ability to correctly identify healthy patients:

Specificity=TNTN+FP=380400=95.0%\text{Specificity} = \frac{TN}{TN + FP} = \frac{380}{400} = \mathbf{95.0\%}

Step 3: Positive Predictive Value (PPV)

Given that a patient tested positive, what is the probability they are truly diseased?

PPV=P(D+∣T+)=TPTP+FP=92112=2328≈82.14%\text{PPV} = P(D^+ \mid T^+) = \frac{TP}{TP + FP} = \frac{92}{112} = \frac{23}{28} \approx \mathbf{82.14\%}

Step 4: Negative Predictive Value (NPV)

Given that a patient tested negative, what is the probability they are truly disease-free?

NPV=P(D−∣T−)=TNTN+FN=380388=9597≈97.94%\text{NPV} = P(D^- \mid T^-) = \frac{TN}{TN + FN} = \frac{380}{388} = \frac{95}{97} \approx \mathbf{97.94\%}

Step 5: Prevalence Impact Analysis on Paper

In the clinical trial, prevalence was artificially high: 100500=20%\frac{100}{500} = 20\%. If deployed in the general population where true prevalence is only 0.5%0.5\% (P(D)=0.005P(D) = 0.005):

  • In 10,00010{,}000 citizens, 5050 are diseased and 9,9509{,}950 are healthy.
  • True Positives: 50×0.92=4650 \times 0.92 = 46.
  • False Positives: 9,950×(1−0.95)=9,950×0.05=497.5≈4989{,}950 \times (1 - 0.95) = 9{,}950 \times 0.05 = 497.5 \approx 498.
  • New PPV:
    PPV=4646+498=46544≈8.46%\text{PPV} = \frac{46}{46 + 498} = \frac{46}{544} \approx 8.46\%

Auditor's Conclusion: In a low-prevalence population, over 91%91\% of positive results will be false alarms! A confirmatory secondary test is mandatory.


Phase 3: Actuation Force & Tolerance Limits via Empirical Rule

Given: X∼N(μ=25.0 N,σ=1.5 N)X \sim N(\mu = 25.0\text{ N}, \sigma = 1.5\text{ N}).

Step 1: Benchmark Grid

μ±1σ=25.0±1.5  ⟹  [23.5 N,26.5 N]μ±2σ=25.0±3.0  ⟹  [22.0 N,28.0 N]μ±3σ=25.0±4.5  ⟹  [20.5 N,29.5 N]\begin{aligned} \mu \pm 1\sigma &= 25.0 \pm 1.5 \implies [23.5\text{ N}, 26.5\text{ N}] \\ \mu \pm 2\sigma &= 25.0 \pm 3.0 \implies [22.0\text{ N}, 28.0\text{ N}] \\ \mu \pm 3\sigma &= 25.0 \pm 4.5 \implies [20.5\text{ N}, 29.5\text{ N}] \end{aligned}

Step 2: Customer Tolerance Compliance

The specification [22.0 N,28.0 N][22.0\text{ N}, 28.0\text{ N}] matches [μ−2σ,μ+2σ][\mu - 2\sigma, \mu + 2\sigma] precisely. By the Empirical Rule:

P(22.0≤X≤28.0)=95%P(22.0 \le X \le 28.0) = \mathbf{95\%}

Exactly 95%95\% of manufactured syringes provide comfortable actuation for arthritic patients, while 5%5\% require customer-handling adjustments.

Step 3: Safety Jam/Leak Failures

Catastrophic failure occurs when force is <20.5 N< 20.5\text{ N} or >29.5 N> 29.5\text{ N}. This corresponds to the region beyond 33 standard deviations (∣z∣>3|z| > 3). By the Empirical Rule:

P(∣X−μ∣>3σ)=100%−99.7%=0.3%=0.003P(|X - \mu| > 3\sigma) = 100\% - 99.7\% = 0.3\% = 0.003

In a monthly production volume of 100,000100{,}000 syringes:

Expected Safety Failures=0.003×100,000=300 defective syringes\text{Expected Safety Failures} = 0.003 \times 100{,}000 = \mathbf{300\text{ defective syringes}}

Phase 4: Regulatory Graphic Integrity Audit

Step 1: Actual Percentage Difference

  • Competitor rate: 1.8%1.8\%
  • MedTech rate: 1.2%1.2\%
Δdata=1.2−1.81.8×100%=−0.61.8×100%=−13×100%=−33.33%\Delta_{\text{data}} = \frac{1.2 - 1.8}{1.8} \times 100\% = \frac{-0.6}{1.8} \times 100\% = -\frac{1}{3} \times 100\% = \mathbf{-33.33\%}

The true clinical reduction in pain rate is 33.33%33.33\%.

Step 2: Visual Graphic Bar Difference

Because the vertical axis starts at y0=1.0%y_0 = 1.0\%:

  • Competitor displayed bar height: 1.8−1.0=0.8 cm1.8 - 1.0 = 0.8\text{ cm}
  • MedTech displayed bar height: 1.2−1.0=0.2 cm1.2 - 1.0 = 0.2\text{ cm}
Δgraphic=0.2−0.80.8×100%=−0.60.8×100%=−0.75×100%=−75.00%\Delta_{\text{graphic}} = \frac{0.2 - 0.8}{0.8} \times 100\% = \frac{-0.6}{0.8} \times 100\% = -0.75 \times 100\% = \mathbf{-75.00\%}

Step 3: Lie Factor

Lie Factor=ΔgraphicΔdata=−75.00%−33.33%=2.25\text{Lie Factor} = \frac{\Delta_{\text{graphic}}}{\Delta_{\text{data}}} = \frac{-75.00\%}{-33.33\%} = \mathbf{2.25}

Auditor's Regulatory Ruling: The marketing brochure violates advertising standards with a Lie Factor of 2.252.25 (substantially above the 1.051.05 threshold). The graphic visually suggests that the MedTech needle reduces pain by 75%75\% (one-quarter of the competitor's bar), when the real medical reduction is only 33.3%33.3\%. The manufacturer must recall the brochure and publish a chart with a zero-origin axis.


Auditor's Final Certification Report

Audit DomainCalculated MetricRegulatory StandardAudit FindingLot Sampling (AQL)Pass Rate 94.01%≥95%Acceptable (α≈6.0%)Lot Sampling (LTPD)Consumer Risk 17.56%≤5%FAILED: Unsafe batch acceptanceDiagnostic Sensitivity92.0%≥90%PassedDiagnostic Specificity95.0%≥90%PassedMonthly Safety Scrap300 units≤500 unitsPassed (Normal tolerance)Marketing Lie Factor2.25[0.95,1.05]FAILED: Deceptive truncated graph\begin{array}{|l|c|c|l|} \hline \mathbf{Audit\ Domain} & \mathbf{Calculated\ Metric} & \mathbf{Regulatory\ Standard} & \mathbf{Audit\ Finding} \\ \hline \text{Lot Sampling (AQL)} & \text{Pass Rate } 94.01\% & \ge 95\% & \text{Acceptable } (\alpha \approx 6.0\%) \\ \text{Lot Sampling (LTPD)} & \text{Consumer Risk } 17.56\% & \le 5\% & \mathbf{FAILED:\ Unsafe\ batch\ acceptance} \\ \text{Diagnostic Sensitivity} & 92.0\% & \ge 90\% & \text{Passed} \\ \text{Diagnostic Specificity} & 95.0\% & \ge 90\% & \text{Passed} \\ \text{Monthly Safety Scrap} & 300\text{ units} & \le 500\text{ units} & \text{Passed (Normal tolerance)} \\ \text{Marketing Lie Factor} & 2.25 & [0.95, 1.05] & \mathbf{FAILED:\ Deceptive\ truncated\ graph} \\ \hline \end{array}

Test yourself

In a Lot Acceptance Sampling Plan with n=20n = 20, if a lot is accepted whenever X≤1X \le 1 defects are found, what constitutes the Consumer's Risk?

  1. The probability of rejecting a high-quality lot
  2. The probability of accepting a low-quality, defective lot
  3. The cost of inspecting 20 syringes
  4. The probability that exactly 1 defect is found

A medical test with 95%95\% specificity is given to a population where a disease has extremely low prevalence (0.1%0.1\%). What typically happens to the Positive Predictive Value (PPV)?

  1. It rises to near 100%100\%
  2. It remains equal to the sensitivity
  3. It plummets because false positives from the huge healthy majority outnumber true positives
  4. It is unaffected by population prevalence

A graphic designer displays a data decrease from 5050 to 4040 (a −20%-20\% decrease) by drawing bars of heights 30 mm30\text{ mm} and 10 mm10\text{ mm} (a −66.67%-66.67\% visual drop). What is the Lie Factor?

  1. 1.001.00
  2. 2.002.00
  3. 3.333.33
  4. 0.300.30