The friendship paradox is a cute rule of thumb. Unlike other rules of thumb, it actually has some mathematical justification behind it.

The paradox states that on average, your friends have more friends than you do. At first glance, this may seem strange, because it can’t be true for everybody. Someone has to be more popular than everybody else. And that’s true - somebody has to be on top. That’s why the statement says on average. A small fraction of people are more popular than their friends, and a large fraction are less popular than their friends.

To justify why this could be true, let’s model friendship as an undirected graph. In this graph, people are vertices, and an edge connects two people if they’re friends with one another.

Friendship Graph

Now let’s introduce some notation. is the set of all vertices, is the number of vertices, is a single vertex, and is the degree of vertex . The average number of friends a person has is

Alright. But what’s the average number of friends that someone’s friends have? To count this, let’s imagine that every person creates lists, one for each of their friends. Every list is titled with that friend’s name. Say their friend is named , for sake of example. On that list, writes down all of ’s friends.

Friendship Graph With Lists

The average number of friends that ’s friends have is the average length of the lists that created, not counting the title. The average number of friends that someone’s friends have is the average length of all these lists.

Each creates lists, giving a total of lists. There are lists titled , because we get one such list whenever a friend of creates lists. Each of those lists has names on it. Thus, each person contributes to the total length.

Overall, this gives

Now, apply the Cauchy-Schwarz inequality. This inequality states that for any two vectors and , their dot product is at most the product of their norms. We’ll use the version where we square both sides.

Let be the vector of all ones, and be the vector of degrees . Since there are vertices, we get

which rearranges to

The left hand side is the average number of friends, and the right hand side is the average number of friends of friends. That concludes the proof.

At a high level, the friendship paradox happens because the popularity of popular people spreads through the network - they have lots of friends, each of whom sees that some of their friends are popular.

Importantly, this only says something about the average. Arguing anything more requires making assumptions about how people interact and how friendships work.

A natural extension is to ask whether a similar result holds in directed graphs. A lot of relationships aren’t symmetric, so if a similar result holds, it makes the principle more applicable.

It turns out such a result does exist. Let’s model a directed edge as a producer-consumer relationship. There’s an edge from to if produces something that consumes.

Directed Graph

People both produce things and consume things, represented by out-edges and in-edges respectively. Let and be the number of out-edges and in-edges for .

Let’s consider the average number of outgoing edges. This is the average number of things that people produce.

For a given , let’s compare this to the number of things produced by content producers that follows. For each incoming edge, create a list for the source of that edge, writing down every consumer of that source. (This list will be the endpoint of every outgoing edge from that source.)

Directed Graph List

From here we can apply similar logic. Each person creates one list for each outgoing edge, giving lists total. Each is the title of lists, one for each consumer. Each of those lists will have items on it. All together, the average across all is

which we can once again apply Cauchy-Schwarz too. The conclusion?

On average, the content producers you follow make more things than you do.

I call this the producer view, because you’re always counting the edges that leave each vertex. We can also take the consumer view, counting the edges that are entering each vertex instead. By performing a similar argument, you get this conclusion instead.

On average, the people who follow your work follow more things than you do.

Both views are valid, and give different interpretations of the same graph.

Again, this argument only says something about the average, and you need assumptions about graph connectivity to argue anything stronger. In fact, despite its mathematical underpinnings, I would hesitate on treating the friendship paradox as a truth about the world. I see it more like a principle, that’s useful for flavoring different arguments, but not strong enough to hold an argument on its own.

* * *

In the derivation above, the only requirement was that we could model interactions as a graph.

There’s a branch of mathematics called category theory. I don’t know it very well, but the impression I get is that you let objects represent something, you let arrows represent some relation between objects, you draw arrows between different objects, and then you interpret all of mathematics as special cases of those objects and arrows. This lets you do things like explain finance by drawing a bunch of arrows.

For some reason I know fans of category theory are going to read this post, so as an homage to them, let’s make a bunch of wild claims about society by generating different interpretations of vertices and edges.

Let vertices be Twitter accounts. An edge connects to if follows . In the producer view, on average the accounts you follow have more followers than you. In the consumer view, the people who follow you are more likely to follow more people than you do.

Let vertices be people. Instead of friendship, say there’s an edge from to if has a crush on . To the disappointment of many people, crushes aren’t symmetric. In the producer view, on average the people you crush on have more admirers than you do. In the consumer view, on average people who have crushes on you have crushes on more people than you do. I don’t know if this makes anyone feel better about their love life, but there you go?

Again, let vertices be people. This time, there is an edge from to if writes something that reads. In the producer view, on average your readership is smaller than the readerships of writers you follow. In the consumer view, on average your readership reads more things than you do. Now, not everybody writes, but we could substitue writing with any form of communication. Blogs, articles, Facebook posts, speeches, Youtube videos, research papers, memes…

In general, any prolific person not only makes lots of things, they become well-known for making lots of things. Their reputation both precedes them and outgrows them.

* * *

I like the friendship paradox a lot. Why?

Well, for one, it’s great for addressing imposter syndrome issues. For example, sometimes I feel like I should be writing more. When I poke at the feeling, it often turns into this.

  1. I should write more.
  2. Why do I think that? It’s partly because I read cool things from people that write more than I do.
  3. But by friendship paradox, it’s expected that those writers are writing more than me.
  4. So hey, maybe I shouldn’t feel too bad.

More importantly, the friendship paradox touches on another, more important idea: the things you see don’t have to reflect reality. If you base your assumptions of popularity on the popularity of your friends, on average you’ll come up short. If you base your assumptions of productivity by things you read online, it’s easier to see evidence of productivity from people who are very productive. If you base your views of somebody by things you hear them say, it’s warped by the chances you would have heard their views in the first place. And so on down.

Not all of these are applications of the friendship paradox, but it’s easy to forget about these things, and thinking about the paradox is a nice reminder.