I knew it was a Bayes problem the second I heard it but still fumbled the setup.
Recognize this as a Bayes' theorem problem and set up the calculation using the given base rates and likelihoods. Assume a concrete number of accounts (e.g., 10,000) to compute expected friend requests from real and fake accounts, then find the posterior probability. Clearly state the assumptions and walk through the arithmetic.
Pro tip: Always sanity-check your result: since fake accounts send 10x more requests, the probability should be higher than the base rate of 5%, but not overwhelmingly so unless the rate difference is extreme. Also, mention that in practice you'd validate these rates with A/B tests or historical data.
Let F be the event that an account is fake, R be real. Given P(F)=0.05, P(R)=0.95. Let the friend request rate for real accounts be r, so for fake accounts it's 10r.
Using the law of total probability: P(Request) = P(Request|F)P(F) + P(Request|R)P(R) = 10r * 0.05 + r * 0.95 = 0.5r + 0.95r = 1.45r.
P(F|Request) = P(Request|F)P(F) / P(Request) = (10r * 0.05) / (1.45r) = 0.5 / 1.45 ≈ 0.3448 or 34.5%.
Explain that despite only 5% of accounts being fake, they account for about 34.5% of friend requests due to their higher activity. This highlights the importance of adjusting for activity bias in product analytics.
AI-generated suggestions, not part of the candidate's original notes. May be inaccurate — verify before relying on them.