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.

LinkedIn
Statistics & Math
Data Scientist
LinkedIn
November 29, 2026
Data Scientist
Onsite
Statistics & Math
Hard

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
linearity of expectation
Erdos-Renyi graphs
Poisson approximation
clustering coefficient
triangles
PYMK
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
  • 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 Questions
Sample Answer
Clarify

This is the Erdos-Renyi model G(N,p)G(N, p). For members AA and BB, a mutual connection is any third member CC connected to both. Use N=106N = 10^6 and average degree 500, so $p = 500/(N-1) \approx 5 \tim...

Approach

Define an indicator XCX_C for each of the N−2N - 2 other members, equal to 1 if CC links to both AA and BB. Edges are independent, so P(XC=1)=p2P(X_C = 1) = p^2, and the total M=∑CXCM = \sum_C X_C is Binomial$(...


Submit Your Answer
Markdown supported