Both Accounts Are Workspace Accounts Given at Least One Is

Last updated: November 29, 2026

Quick Overview

A user signs in with two Google accounts, and each is independently a Workspace account with probability 1/2. Given that at least one is a Workspace account, what is the probability both are, and how does the answer change if you are told the first-added account is Workspace?

Google
Statistics & Math
Data Scientist
Google
November 29, 2026
Data Scientist
Phone Screen
Statistics & Math
Easy

0

0

0 solved


A user signs in with two Google accounts, and each is independently a Workspace account with probability 1/2. Given that at least one is a Workspace account, what is the probability both are, and how does the answer change if you are told the first-added account is Workspace?

This is the two-children puzzle in Google product clothing, used early in data science screens to check careful conditioning. The interviewer looks for explicit enumeration of the sample space and for noticing that two similar-sounding conditions give different answers.

What the Interviewer Expects
  • Enumerate the four equally likely outcomes
  • Condition on 'at least one' to get 1/3
  • Condition on a specific account to get 1/2
  • Explain why the two conditions differ
  • Mention how the information was obtained matters
Key Topics to Cover
conditional probability
sample spaces
selection effects
Bayes' theorem
How to Approach This
  1. Define your hypotheses (H0 and H1) clearly before performing any test.
  2. Calculate required sample size BEFORE running an experiment, using power analysis.
  3. Remember the Central Limit Theorem: sample means become approximately normal with large n.
  4. Watch for Simpson's paradox. Always segment data by key dimensions.
  5. Distinguish between statistical significance and practical significance.
Possible Follow-up Questions
  • What if the base rate of Workspace accounts is p instead of 1/2?
  • What if you learned it because a randomly chosen one of the two accounts was shown to be Workspace?
  • How does this relate to selection bias in logged-in user analyses?
  • What if the two accounts are positively correlated in type?
Sharpen Your Skills on Codemia

Practice similar problems with our interactive workspace, get AI feedback, and track your progress.

Browse Statistics Questions
Sample Answer
Clarify

Two accounts, each Workspace (W) or consumer (C) independently with probability 1/21/2, so the outcomes WW, WC, CW, CC are equally likely. The accounts are ordered by when they were added. We compare t...

Approach

Restrict the sample space to outcomes consistent with the information, then take the share where both are W. When the information came from a process (for example, a random account was inspected), use...


Submit Your Answer
Markdown supported