I have the following task from a book.
In a factory components are build. Each components gets testest by a test. The sensitivity of this test is 90%, means out of all components that are broken the test identifies 90% correctly as broken. Out of all not broken components the test identifies 98% correctly as not broken. 2% of all components are broken (before they get testet.
a): If the test identifies a component as not broken, how high is the probability that this component is actually not broken?
b): If the factory produces a batch of 10000 components that all have been testet not broken, how high is the probability that at least one of those components will be actually broken even thought all tests were negative?
My Idee: a) $P(a) = 0,98 \cdot 0,98 / (0,98 \cdot 0,98+0,02*0,1) = 0.9979218$
b) P(b) = 1- bin(n = 100,k =0, p = 0.002) = 0.181433 ^, with $p = 0.02 \cdot 0.10 = 0.002$
Is this correct?