Adobe Interview Question






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

Consider an experiment with two outcomes - T and F. The probability of T occurring is p. The probability of F occurring is them (1-p).

Assume there were n instances of the same experiment. r resulted in T, the rest in F. The number of possible selections is = nCr. Add to that the probability of the events, you get nCr (p^r)(1-p)^(n-r).

The formula hence describes the probability of an event occurring exactly r times in a set of n experiments. In statistical terms, it describes the probability of a data point occurring exactly r times in a sample set of n terms.

- Easy July 13, 2011 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

I told the same solution but he was not satisfied. Can anybody else tell some other solution to prove it.

- Anonymous July 15, 2011 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

Just think of it this way:

If the probability for n and r is Prob(n,r) then:

Prob(n,r) = p * Prob(n-1,r-1) + (1-p) * Prob(n-1,r)

Which means that, if you order the events, the probability that (n,r) happens is the same as when the last event yields true (p probability) AND (n-1,r-1) happens with the first n-1 events OR the last event yields false (1-p) AND (n-1,r) happens.

You can now plug in the binomial formula to this recurrence equation to show that it satisfies it.

Another way would be to prove it by induction using the above technique, which is pretty much equivalent.

- memo July 16, 2011 | 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