Expected Mutual Connections Between Two Members in a Random Network
Last updated: November 29, 2026
Quick Overview
In a network of N members where each pair is connected independently with probability p, find the expected number of mutual connections between two given members and the chance they have at least one. Then explain what real LinkedIn mutual counts imply about this model.
0
0
0 solved
In a network of N members where each pair is connected independently with probability p, find the expected number of mutual connections between two given members and the chance they have at least one. Then explain what real LinkedIn mutual counts imply about this model.
Mutual connections are a core signal in People You May Know, and LinkedIn data scientists are expected to reason about graph statistics from first principles. The interviewer checks linearity of expectation, a Poisson approximation and whether you can explain why real social graphs break the model.
What the Interviewer Expects
- Uses indicator variables and linearity of expectation to get $(N-2)p^2$
- Plugs in realistic numbers for degree and N
- Uses a Binomial or Poisson model for the count and P(at least one)
- Computes expected triangles or clustering under the model
- Explains clustering and communities in real graphs and the implication for PYMK
Key Topics to Cover
How to Approach This
- Define your hypotheses (H0 and H1) clearly before performing any test.
- Calculate required sample size BEFORE running an experiment, using power analysis.
- Remember the Central Limit Theorem: sample means become approximately normal with large n.
- Watch for Simpson's paradox. Always segment data by key dimensions.
- Distinguish between statistical significance and practical significance.
Possible Follow-up Questions
- How does the answer change if both members are known to have degree d?
- What is the variance of the mutual count, and is the Poisson approximation good?
- Given k mutual connections, how likely is it that the two know each other?
- How would you estimate the clustering coefficient of the real graph from a sample?
Sharpen Your Skills on Codemia
Practice similar problems with our interactive workspace, get AI feedback, and track your progress.
Browse Statistics QuestionsSample Answer
Clarify
This is the Erdos-Renyi model . For members and , a mutual connection is any third member connected to both. Use and average degree 500, so $p = 500/(N-1) \approx 5 \tim...
Approach
Define an indicator for each of the other members, equal to 1 if links to both and . Edges are independent, so , and the total is Binomial$(...