xyz Interview Question
Data ScientistsCountry: United States
Interview Type: Phone Interview
I was thinking along this lines: if you have 100 chips from both companies, 80 good and 20 bad chips will come from 1st (good ) company, and 80 bad and 20 good chips will come from 2nd (bad) company. So from 200 available chips there is 100 good and 100 bad chips. Then answer is 50 %, as probability to get good chip is (0.8 + 0.2)/2 = 0.5 or 50%
P(g) = probability of getting a good chip.
- JackBlr June 04, 2015P(G) = probability of picking good company
P(B) = probability of picking bad company
Q: P(g) = P(G) * P(g|G) + P(B) * P(g|B) = 1/2 * 0.8 + 1/2 * 0.2 = 0.5