This is a Binomial probability distribution. Let be the random variable which represents the number of faulty items in a batch of 7 items, we have:

where and the probability of a given item is faulty is given by . Now you can use the formula to calculate the probability of no faulty item found in a batch (i.e ); the probability of exactly one faulty item found in a batch (i.e ) ... etc.

Roy