I don't know how to correctly phrase this question, so sorry in advance.
Let's say I have data on two populations. Population 1 represents all of an item I've manufactured, and each item has the ability to tell me if it has a defect (using attribute data, item either has a defect or does not, and each item can only present one defect). Therefore, I have a total sample size and all the defect counts of my entire population. I made a change to this item, and I would like to know if this change affects my defect rate. I did some trials with the modified item using a smaller sample size, and I have a count of all the defects that occurred in this smaller sample size.
Population 1: 100000
Defect A Count: 400, 0.4%
Defect B Count: 8, 0.008%
Defect C Count: 0, 0%
Population 2: 500
Defect A Count: 2, 0.4%
Defect B Count: 1, 0.2%
Defect C Count: 0, 0%
How do I determine if the defect rates between the two populations are similar, and with how much confidence I can say that they are similar in this scenario? For Defect A, sure, they have the same defect rate, but the defect count for Defect A in population 2 is very small, so maybe this is not statistically significant.