xyz Interview Question for Data Scientists


Country: United States
Interview Type: Phone Interview




Comment hidden because of low score. Click to expand.
3
of 3 vote

P(g) = probability of getting a good chip.

P(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

- JackBlr June 04, 2015 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

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%

- leontol May 14, 2015 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

The probability tree is a binary tree with 2 levels (not considering 0 level) and 4 branches till leaf.
The below branches of the probability tree gives the answer
Probability = pGoodCompany * 80/100 + pBadCompany * 20/100
Now pGoodCompany = pBadCompany = 1/2.
So probability is 50%

- s100banerjee May 17, 2015 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

P(Good) = P(Good|A)*P(A)+P(Good|B)*P(B)

- hncpr1992 January 28, 2017 | Flag Reply


Add a Comment
Name:

Writing Code? Surround your code with {{{ and }}} to preserve whitespace.

Books

is a comprehensive book on getting a job at a top tech company, while focuses on dev interviews and does this for PMs.

Learn More

Videos

CareerCup's interview videos give you a real-life look at technical interviews. In these unscripted videos, watch how other candidates handle tough questions and how the interviewer thinks about their performance.

Learn More

Resume Review

Most engineers make critical mistakes on their resumes -- we can fix your resume with our custom resume review service. And, we use fellow engineers as our resume reviewers, so you can be sure that we "get" what you're saying.

Learn More

Mock Interviews

Our Mock Interviews will be conducted "in character" just like a real interview, and can focus on whatever topics you want. All our interviewers have worked for Microsoft, Google or Amazon, you know you'll get a true-to-life experience.

Learn More