Calculate Expected Users Linking Coinbase Wallets
CoinbaseData Scientist · Technical ScreenLast updated
Coinbase probability question covering Bernoulli indicators, expected wallet links, complement rule for at least one success, and conditional probability for two users linking wallets.
Scenario
When users sign up for Coinbase, each of the n users is independently prompted to link a crypto wallet. Each user links their wallet with probability p (and fails to link with probability 1 − p), independently of every other user.
Question
Using this model, answer the following:
- What is the expected number of users who link their wallet?
- What is the probability that at least one of the
nusers links a wallet? - For two specific users A and B, given that at least one of A or B links a wallet, what is the probability that both A and B link their wallets?
Hints
- Part 1: Use linearity of expectation with indicator variables — you do not even need independence here.
- Part 2: Use the complement rule; it is easier to compute the probability that no one links.
- Part 3: Use the definition of conditional probability,
P(A ∩ B | A ∪ B) = P(A ∩ B) / P(A ∪ B).
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.