← Capital One Interview Insights
Recognize this as a conditional probability problem and apply Bayes' theorem. Clearly define the events, compute the prior probabilities and the likelihood of observing three heads given each coin type, then calculate the posterior probability that the chosen coin is double-headed.
Pro tip: State your assumptions explicitly (e.g., fair coins have P(H)=0.5, double-headed have P(H)=1, flips are independent) and verify that the posterior is intuitive: three heads strongly suggests the double-headed coin, so the probability should be high.
Let D be the event that the chosen coin is double-headed, and F be the event that it is fair. Compute the prior probabilities: P(D)=2/5, P(F)=3/5.
Compute the probability of observing three heads in a row given each coin type: P(3H|D)=1^3=1, P(3H|F)=(1/2)^3=1/8.
Use Bayes' theorem to find P(D|3H) = [P(3H|D)*P(D)] / [P(3H|D)*P(D) + P(3H|F)*P(F)].
Plug in the numbers: numerator = 1*(2/5)=2/5; denominator = 2/5 + (1/8)*(3/5)=2/5+3/40=16/40+3/40=19/40. So P(D|3H) = (2/5)/(19/40) = (16/40)/(19/40)=16/19.
Conclude that the probability is approximately 0.842, meaning there is an 84.2% chance the coin is double-headed given three heads.
AI-generated suggestions, not part of the candidate's original notes. May be inaccurate — verify before relying on them.
This one took me longer than it should have.
Break down the event into mutually exclusive cases based on the color composition of the three balls. Calculate the probability for each case using combinations and sum them, ensuring the condition 'exactly two distinct colors and at least one red' is satisfied.
Pro tip: After computing the probability, verify by considering the complement or using a quick simulation to catch errors. Also, mention that this type of combinatorial probability is common in product analytics for estimating user behavior patterns.
Identify that we need exactly two distinct colors among the three balls, and at least one ball must be red. This means the color composition can be either (Red, Blue, Blue) or (Red, Green, Green) or (Red, Red, Blue) or (Red, Red, Green).
List all possible color multisets of size 3 that have exactly two distinct colors and include red. These are: 2 Red + 1 Blue, 2 Red + 1 Green, 1 Red + 2 Blue, 1 Red + 2 Green.
For each composition, calculate the number of ways to choose the balls from the urn using combinations. For example, for 2 Red + 1 Blue: C(5,2)*C(4,1).
Add the counts from all valid cases to get the total favorable outcomes. Divide by the total number of ways to draw 3 balls from 12 (C(12,3)) to get the probability.
Simplify the fraction if possible. Optionally, verify by computing the probability via an alternative method (e.g., sequential draws) or by checking that the sum of probabilities of all disjoint events equals 1.
AI-generated suggestions, not part of the candidate's original notes. May be inaccurate — verify before relying on them.