Specifically, sampling plans exist precisely because testing everything is expensive, and they define the statistical relationship between sample size and lot-wide inference.
Acceptance Sampling by Attributes defines the number of samples you need from a lot to claim a specified quality level at a specified risk — it is in ANSI standard Z1.4.
Under AQL sampling plans, testing two vials from a fifty-vial lot gives you an operating characteristic curve that tells you what risks you are accepting.
Sampling plans for pharmaceutical manufacturing are defined in ISO 2859 and ANSI Z1.4, and they are based on statistical sampling theory.
One qualification: testing more vials gives better confidence, but at some point the cost outweighs the benefit.
Assume segregation is possible, and design your sampling to catch it if it exists.
edited 22 Mar 2025 by marta_okonkwo — clarified the distinction between purity and content
8Note that the label instructions differ between agents on precisely this point. – Dr_Otto_Lindqvist 10 months ago add a comment