My problem fits well in an analogy of auto manufacturing: There are hundreds of populations (different component) with varying population sizes (say only a few hundred for the wheels for a supercar, to hundreds of thousands for the gas tank that is used in every model). We would like to classify the parts into defective or not-defective. The defect rate will be low, varying maybe from $0\%-10\%$ depending on the part.
Knowing this, how many parts should you sample before you can conclude
- $\text{x}\%$ probability that this component population is defect-free? or
- $\text{x}\%$ probability that this component's population defect rate falls within some (small) range?
What distribution should be used?