Compute probabilities for chatbot response quality
MetaData Scientist · OnsiteLast updated
This question evaluates a candidate's grasp of basic probability concepts, including independence, joint event probabilities, and i.i.d. assumptions. It is commonly asked to test probabilistic reasoning about repeated trials within the Statistics & Math domain and is primarily a conceptual understanding problem with a simple practical application.
Context
A chatbot response is considered good if it is both:
- Helpful, and
- Honest.
You are told:
- (P(\text{Helpful}) = 0.8)
- (P(\text{Honest}) = 0.9)
Assume (unless you explicitly state otherwise) that helpfulness and honesty are independent for a given response, and that responses across turns are i.i.d.
Questions
- What is (P(\text{Good})) for a single response?
- What is the probability of getting two good responses in a row?
- Given the first three responses are good, what is the probability that the 4th response is good?
Solution walkthrough is for members
Get the full walkthrough with reference code and complexity analysis, plus Kitty Coach at 300 messages a day. Hints, the code runner and community answers stay free.