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.
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 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 syringes is inspected per batch.
- Acceptance Criterion: The entire lot is accepted if the number of defective syringes .
- Rejection Criterion: The entire lot is rejected and scrapped if .
Two quality benchmarks are evaluated:
- Acceptable Quality Level (AQL): A high-quality lot has a true defect rate of (). The manufacturer expects these lots to pass.
- Lot Tolerance Percent Defective (LTPD): A dangerous, defective lot has a true defect rate of (). 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 volunteer patients, gold-standard laboratory biopsies confirmed that patients had the condition () and patients were healthy ().
The trial yielded the following raw counts:
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 follows a normal distribution:
- Customer Tolerance Specification: The force must be between and . Syringes outside this range cause patient discomfort.
- Safety Failure Specification: Plungers requiring leak medicine prematurely, and those requiring jam during injection.
Dossier Item 4: Marketing Graphic Advertisement
MedTech published a marketing flyer comparing their syringe needle pain rate () against a competitor's needle (). The published bar chart displays:
- Competitor Needle bar height:
- MedTech Needle bar height: The graphic uses a truncated vertical axis starting at .
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 .
- Compute the probability of accepting a high-quality lot (). Determine the Producer's Risk ().
- Compute the probability of accepting a dangerous lot (). Determine the Consumer's Risk ().
- 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 () would drop drastically if deployed in a general population where prevalence is only .
- Task 3 (Tolerance Limits via Empirical Rule):
- Sketch the normal distribution curve for actuation force with benchmarks from to .
- Calculate the percentage of syringes that meet the Customer Tolerance Specification ().
- Calculate the expected number of Safety Jam/Leak Failures in a monthly production run of 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 be the number of defective syringes in a sample of . Under the BINS criteria, . The lot is accepted if or :
Step 2: High-Quality Lot ()
Here :
Summing both probabilities:
- Producer's Risk (): The probability of mistakenly rejecting a good lot:
Approximately out of every high-quality batches will be needlessly scrapped.
Step 3: Defective Lot ()
Here :
Summing both probabilities:
- Consumer's Risk (): The probability of mistakenly accepting a dangerous lot:
Auditor's Finding: A consumer risk of is dangerously high for a medical product. Nearly in defective batches will reach hospitals! The sample size must be increased.
Phase 2: Diagnostic Trial Sensitivity & Predictive Value Audit
Using Table 2 from Dossier Item 2:
Step 1: Sensitivity (True Positive Rate)
Measures the test's ability to correctly identify patients with the disease:
Step 2: Specificity (True Negative Rate)
Measures the test's ability to correctly identify healthy patients:
Step 3: Positive Predictive Value (PPV)
Given that a patient tested positive, what is the probability they are truly diseased?
Step 4: Negative Predictive Value (NPV)
Given that a patient tested negative, what is the probability they are truly disease-free?
Step 5: Prevalence Impact Analysis on Paper
In the clinical trial, prevalence was artificially high: . If deployed in the general population where true prevalence is only ():
- In citizens, are diseased and are healthy.
- True Positives: .
- False Positives: .
- New PPV:
Auditor's Conclusion: In a low-prevalence population, over of positive results will be false alarms! A confirmatory secondary test is mandatory.
Phase 3: Actuation Force & Tolerance Limits via Empirical Rule
Given: .
Step 1: Benchmark Grid
Step 2: Customer Tolerance Compliance
The specification matches precisely. By the Empirical Rule:
Exactly of manufactured syringes provide comfortable actuation for arthritic patients, while require customer-handling adjustments.
Step 3: Safety Jam/Leak Failures
Catastrophic failure occurs when force is or . This corresponds to the region beyond standard deviations (). By the Empirical Rule:
In a monthly production volume of syringes:
Phase 4: Regulatory Graphic Integrity Audit
Step 1: Actual Percentage Difference
- Competitor rate:
- MedTech rate:
The true clinical reduction in pain rate is .
Step 2: Visual Graphic Bar Difference
Because the vertical axis starts at :
- Competitor displayed bar height:
- MedTech displayed bar height:
Step 3: Lie Factor
Auditor's Regulatory Ruling: The marketing brochure violates advertising standards with a Lie Factor of (substantially above the threshold). The graphic visually suggests that the MedTech needle reduces pain by (one-quarter of the competitor's bar), when the real medical reduction is only . The manufacturer must recall the brochure and publish a chart with a zero-origin axis.
Auditor's Final Certification Report
Test yourself
In a Lot Acceptance Sampling Plan with , if a lot is accepted whenever defects are found, what constitutes the Consumer's Risk?
- The probability of rejecting a high-quality lot
- The probability of accepting a low-quality, defective lot
- The cost of inspecting 20 syringes
- The probability that exactly 1 defect is found
A medical test with specificity is given to a population where a disease has extremely low prevalence (). What typically happens to the Positive Predictive Value (PPV)?
- It rises to near
- It remains equal to the sensitivity
- It plummets because false positives from the huge healthy majority outnumber true positives
- It is unaffected by population prevalence
A graphic designer displays a data decrease from to (a decrease) by drawing bars of heights and (a visual drop). What is the Lie Factor?