Mathwords logoMathwords

Friendship Paradox — Definition, Formula & Example

The friendship paradox is the fact that, in almost any social network, the average number of friends your friends have is greater than the average number of friends people have. It happens because popular people appear on many friend lists, so they get counted many times.

Let GG be a finite simple graph with nn vertices and at least one edge, where vertex vv has degree dvd_v. Let μ\mu be the mean degree and σ2\sigma^2 the population variance of the degrees. Average the degree of uu over every ordered pair (v,u)(v, u) in which uu is adjacent to vv. That average equals ∑dv2/∑dv\sum d_v^2 / \sum d_v, which is always at least μ\mu. Equality holds exactly when every vertex has the same degree, so the graph is regular.

Key Formula

∑vdv2∑vdv=μ+σ2μ  ≥  μ\frac{\sum_{v} d_v^{2}}{\sum_{v} d_v} = \mu + \frac{\sigma^{2}}{\mu} \;\ge\; \mu
Where:
  • dvd_v = Degree of vertex v, which is the number of friends person v has
  • μ\mu = Mean degree, equal to the sum of all degrees divided by the number of vertices
  • σ2\sigma^2 = Population variance of the degrees, which measures how unequal friend counts are

Worked Example

Problem: Five people form a friend network. Ava is friends with Ben, Cal, Dee, and Eli. Ben and Cal are also friends with each other. Compare the average number of friends a person has with the average number of friends a friend has.
Step 1: Count each person's friends. Ava has 4, Ben has 2, Cal has 2, Dee has 1, and Eli has 1. Average over the 5 people.
μ=4+2+2+1+15=105=2\mu = \frac{4+2+2+1+1}{5} = \frac{10}{5} = 2
Step 2: Now average over friends. Go through every friend list and record that friend's friend count. Each person appears on as many lists as they have friends, so a person with dd friends contributes dd a total of dd times. The formula gives the same result. The variance is σ2=265−22=1.2\sigma^2 = \tfrac{26}{5} - 2^2 = 1.2, so 2+1.22=2.62 + \tfrac{1.2}{2} = 2.6.
42+22+22+12+124+2+2+1+1=2610=2.6\frac{4^2+2^2+2^2+1^2+1^2}{4+2+2+1+1} = \frac{26}{10} = 2.6
Step 3: Check each person. Dee's and Eli's only friend is Ava, who has 4 friends. Ben's friends average 4+22=3\tfrac{4+2}{2} = 3, and Cal's friends do too. Only Ava does better than her friends, whose average is 2+2+1+14=1.5\tfrac{2+2+1+1}{4} = 1.5.
4>1,3>2,1.5<44 > 1, \qquad 3 > 2, \qquad 1.5 < 4
Answer: A person has 2 friends on average, but a friend has 2.6 friends on average. Four of the five people have fewer friends than their friends do on average.

Why It Matters

Public health researchers use the paradox to detect outbreaks early. In a 2009 flu study at Harvard, the friends that randomly chosen students named got sick roughly two weeks before the randomly chosen students did. Acquaintance immunization uses the same idea: vaccinating the friends of random people reaches well-connected people more often than vaccinating random people.

Common Mistakes

Mistake: Concluding that you are unusually unpopular, or that most people must be below average.
Correction: The paradox comes from how the average is taken, not from anything about you. Averaging over friends weights each person by their friend count, so popular people are overcounted. The gap equals σ2/μ\sigma^2/\mu, and it disappears only when everyone has the same number of friends.

Related Terms

  • Clique — Everyone has equal degree, so the paradox vanishes
  • Simpson's Paradox — Another statistical surprise caused by how averages are weighted
  • Handshaking Lemma — Sums friend counts used in the paradox
  • Average — Compares two different averages of friend counts
  • Variance — Spread in friend counts sets paradox size