Mental Models204 cards · 12 fields

Mental Models/Systems

Network Models

网络模型

How far news travels depends on how people are linked, not how many you know.

You chat with a stranger at a dinner and find out he knows one of your college classmates, and you both say, "Small world." The social psychologist Stanley Milgram wanted to know just how small this "small" really is.

In the mid-1960s he asked a group of ordinary people in the American Midwest to get a folder to a stockbroker they had never met, in a suburb of Boston. The rule was that they couldn't mail it to him directly. They could only pass it to an acquaintance they knew on a first-name basis and ask that person to pass it on by the same rule. Most of the chains broke off partway. But in the ones that arrived, there were only five or six people between the starting point and the stockbroker.

Suppose you want to find a doctor at a hospital in another city to look at some scans for you. Asking all your colleagues gets you nowhere: the people your colleagues know are mostly colleagues too, so however much you ask, you're still going round inside the company. But your college roommate happens to live in that city, and he has a friend who's a doctor at that hospital. You ask your roommate, your roommate asks his friend, and two steps get you there. And this line isn't just for you: if a colleague wants to reach someone in that city, they can ask you to ask, and it's only one more step.

Network models draw people as dots and acquaintance as lines, and look at how the lines connect. When people's acquaintances also know each other, circles cluster tightly and news goes round and round inside them. A long-distance line like the roommate is a shortcut shared by everyone near either end, and with a few of them in a network, the number of steps between any two people drops sharply. The dot with the most lines is called a hub. When two groups are connected only through one person, that person is called a bridge. If a hub or a bridge goes away, news can no longer get through.

Colleagues keep you in; a far roommate: 2 steps
Step 1Step 2Step 1Step 2Ask via youYouColleaguesMostly know colleaguesCollege roommateLives in that cityStill in the firmAsked around, no way outHospital doctorRoommate's friend
Step 1Step 2Step 1Step 2Ask via youYouColleaguesMostly know colleaguesCollege roommateLives in that cityStill in the firmAsked around, no way outHospital doctorRoommate's friend

Colleagues mostly know colleagues: two steps on, you're still in the firm. The roommate is a far line: two steps. Asking via you adds one: everyone nearby can use it.

A few long lines bring the circles close

If everyone knows people and nobody's acquaintances overlap, then in steps you reach about people: everyone you reached at the last step brings new faces each, so every extra step multiplies by the number of acquaintances. If everyone knows 30 people, two steps reach 900 and three steps reach 27,000. The network has 30 times as many people, yet it takes only one more step. But once acquaintances cluster, a friend's friends are mostly your own friends too, and the first few steps keep going round inside the circle.

Put a thousand people in a ring, each knowing only the 5 people on either side. Each step moves at most 5 seats. The person opposite is 500 seats away, so it takes 100 steps, and 50 on average. Yet the circles are very tight: pick any two of a person's 10 acquaintances, and about two-thirds of the time they know each other.

A long line is like that roommate in another city. If it connects A and B, far apart on the ring, then the dozens of people around A who want to reach the people around B can all use it instead, saving dozens of steps at once. Add 10 long lines at random on a computer, only two in a thousand of all 5,000 lines, and the average number of steps drops to about 20, while the share of acquaintances who know each other hardly moves. Add 50, and it's about 9 steps on average. Try several different random additions, and the results all land around here.

New dots link to popular dots, so a few dots keep growing

In a network with random links, every dot's number of lines stays close to the average, without much difference. Real networks, though, often have a few dots with far more lines than average. The way Barabási and Albert pictured them growing is that the chance a new dot links to a given old dot is proportional to the number of lines the old dot already has. An old dot with 100 lines is 100 times as likely to be picked as one with just 1, so the dots with many lines keep snowballing.

This unevenness also leads to an odd result: pick anyone at random, and their friends most likely have more friends than they do. People with many lines sit at the other end of more lines, so when you follow lines to find friends, you're more likely to land on them.

Only removing a hub or a bridge breaks the network

In a network with uneven numbers of lines, most dots have only a handful. If a few dots fail at random, they're most likely these small dots, and the other dots still connect. But if the one that fails happens to be a hub, a large patch of dots attached to it lose contact all at once. When two groups are connected only through one person, that person is a bridge: if he leaves, there's not a single path left between the two groups.

Network models are most useful for questions that depend only on who is linked to whom, such as spreading, searching and staying connected. Real links are strong or weak, run in one direction or both, and come and go over time; treat them all as the same thickness and your conclusions can be far off. Seeing a long tail, where a few dots have far more lines than average, and declaring that it grew by preferential attachment is also a misreading: other ways of growing produce long tails too.

Design
When a new member joins a group, besides introducing a few big names, also introduce them to two or three people who are new as well. A newcomer linked only to big names drops out of the group once the big names get busy; newcomers who know each other form a small circle of their own and stay connected without relying on any one person.
Predict
To estimate whether throttling traffic will bring down a whole network of services, first count how many downstream services each of the most-called services is linked to.
  1. Take the list and count: how many contacts does each person have, and how many times the average is the biggest?
  2. Is there anyone on the list who can only be reached through one particular person?
  3. How did newcomers get to know their first few people? Go and ask a few who joined recently.

Public health

Friends as flu lookouts

In the fall of 2009, H1N1 flu was spreading at Harvard. Nicholas Christakis and James Fowler picked 319 undergraduates at random and asked each to name friends; the 425 people named made up the friend group. The named friends knew more people on average than the people who named them, and were closer to the center of the network. According to diagnosis records, the outbreak reached the friend group about two weeks earlier than the random group. Without drawing the whole network, by watching the friend group you could see the outbreak coming ahead of time.

Communications

A network that still works after bombing

In the early 1960s, Paul Baran at the RAND Corporation was asked to design a communications network that could still carry calls after a nuclear attack. In a network where every line is switched through one center, bomb the center and everything goes dead. He simulated on a computer a net-like structure with no center, where each node was linked by three or more lines: destroy half the nodes at random, and the rest were still mostly connected. On that basis he argued for building the network like a fishing net, and in 1964 he wrote it up as On Distributed Communications, which later became one of the references for the ARPANET.

Biology

Knock out a hub protein and the yeast dies

In 2001, Barabási's research group drew 1,870 of yeast's proteins as dots and 2,240 known pairs of interactions as lines. Over 90% of the proteins had fewer than five lines, and knocking out one of them on its own killed the yeast only about 21% of the time. Fewer than 1% of the proteins had more than fifteen lines, and knocking out one of those killed it about 62% of the time. Without testing each one, you can look at how many lines a protein has in the network and estimate whether the yeast can do without it: the ones with many lines are about three times as likely to be essential for life.

You pick one person from each of two networks. A has 6 acquaintances, and of the 15 pairs among them, 9 know each other. B also has 6 acquaintances, and of the 15 pairs, only 3 know each other. The two networks have the same total number of people.

What conclusion can you draw directly from these numbers?

In a group of six, A is friends with the other five, and those five don't know each other. Each person first counts how many friends they have, then works out how many friends each of their friends has, and takes the average.

How many of these 6 people find that their friends have more friends on average than they do?

In a social network, each person knows 20 people on average, and whether two people know each other is completely random. The number of people grows from 10,000 to 10 million, 1,000 times as many.

Roughly how many steps does the average distance between any two people go up by? (The question is how much it goes up, not the total.)