- ⇑ -
Names, birthdates, addresses, and other data.
Have you ever wondered how useful it is when a random company online collects your name, address, maybe your birthdate, and sometimes much more? What makes that information useful? Can we quantify it?
This is an article for people that like math, but it can be recreationally and doesn't go beyond basic college level math. If you remember how logarithms work, you're set, but if not I try to go slow anyway. Probability here usually reduces to simple fractions, so advance knowledge of that field isn't necessary either, except that independent probabilities can be multiplied. Only once I use a Bernoulli distribution, which you can safely ignore.
Lastly, the equations on this page are written using MathML, which works out of the box with Firefox but not with most other browsers, although a MathML plugin is available for IE (MathPlayer). I think you have no choice if you use Safari or Chrome except to wait until those browsers support it. This will probably make little sense without the equations.
Shannon, the inventor of modern information theory, uses this definition as the the basis of information,
meaning that the information of an event x is greater as the probability of such an event gets smaller. In other words, an event has more information if it is harder to guess. But that's not all. The information of the union of two independent events is the sum of their individual informations. Explicitly in equations,
This is one of the reasons the logarithm is a natural choice to map probabilities into information, since only the logarithm (of any base) can map arbitrary products into sums.
Often you don't have an exact value for your random variable X, but you'd like to know how informative X is on average. It turns out this quantity is used all the time in probability, and it's called the Entropy of X (or H(X)).
It's easy to talk about information about people. In this theory, we need a probability space into which we can score information. The easiest experiment involves considering each person as an entity in the probability space, and every property (or random variable) X acquires a probability by adding the number of people that have such a property and divide it over the human population.
According to the U.S. Census Bureau, the world population is projected to be 7 billion by April, 2012 (accessed on 2011-09-04). That means that the maximum information possible in this setting, enough to narrow down to a single person, corresponds to
Of course, the minimum ammount of information in this and any other setting is 0 bits, here corresponding to any property that all humans have (p=1). For example, if I told you I have a heart, that would carry zero information in narrowing down which human I am.
Information as defined here also corresponds to the minimum amount of storage needed to identify events in this space. So it seems incredible to me that you could identify each human currently alive uniquely using only 33 bits (or a little over 4 bytes). Using the estimate of Carl Haub, the number of people that have ever lived on Earth totals 106 billion people, so the number of bits needed to identify any of them is
The human population is almost exactly evenly male and female,
so knowing my gender is worth
Althought it seems small, gender is very often independent of other kinds of information (for example, geography, but not names), so you can easily and reliably add 1 bit of information by asking for the gender.
Using published statistics about the population of these different regions (often approximations from Wikipedia), knowing where I live in increasing resolution affords you with the following information.
I was surprised the city affords more information than the zip code in this case, but I'm sure it varies depending on how big your city is (if it has multiple zip codes).
I was a bit disturbed by the detailed stats on my zip code available on city-data.com. For example, if you knew I'm a hispanic living in 08540, you'd have
If you know where I work or study, you get a similar amount of information.
I don't know how informative a street address is. My street is very short, it has 16 buildings, each with 3 units, each of which usually houses at least 2 people, but sometimes a bit more. If we settle for an average of 3 people per unit, we'd have
And if you have my unit number, you actually have nearly the maximum information,
since currently that information narrows things down to me, my wife and my baby. However, the reality is a bit less ideal. Addresses expire regularly, especially on a college town. I regularly get mail addressed to former inhabitants, so many of these businesses certainly have old information. My address has been used to identify up to maybe 7 couples or roommates in the last 10 years, which might reduce the information to
Limited to the USA, you can find out how common your first and last names are on HowManyOfMe.com. Although the website suggests it knows how many people with both your first and last name are, further reading shows that they assume independence, and they acknowledge that this is an incorrect assumption. We'll therefore ignore this information.
I got the following statistics for my name
Note I included my second family name, a feature of names in Spanish-speaking countries. I imagine in those cases that the two family names are combined randomly (meaning people don't generally choose who they marry by their family name). In that case, the information content of a double famly name is, on average, twice that of a single family name, as it is used in the USA. However, this still doesn't guarantee that the name will uniquely identify me. In fact, I've known of a person matching my full Spanish name in my hometown of Juárez, and maybe less surprisingly, his brother matched my brother's full name as well.
The same website suggests that James and Smith are independently the most common first and last names in the USA. The numbers for these least informative names look like this.
So adding these minumum information contents, and rounding up for a bit of optimism, we see that the minimum information content of a full name is about 12 bits. So although some names are greatly informative (I believe my son has a unique name, a combination of a Scottish, an English, a Basque, and a Dutch name), it is interesting to see that there is a relatively high minimum information in a name. This makes sense, otherwise names would be useless, not really serving their purpose of identifying people.
Note that first names are highly correlated with gender (an Alejandro is all but certainly male). The map is of course complicated, so many websites will ask for both pieces of data anyway, but their information is usually not additive. Similarly, names and geography are highly correlated (my name is a lot more informative in the USA than it would be in Mexico). On the other hand, names are overall very likely to be independent from birthdates (next), so we can add their information.
I did want to mention interesting exceptions of the independence between names and birthdates. One I remember is from Mexico, where people used to be named (at least one of your first or middle names) after the saint on whose feast day they were born. At least I think that's how some of my aunts were named, but Wikipedia would only confirm this tradition for Italy. In a different example, Ghanaian names are usually chosen from the day of the week a person was born. In either example, the information of a name and a birthdate is smaller than the sum of the independent informations, but we can easily remove the components that are dependent (usually a single name) to get a more decent approximation.
How much information is in a birthday (day and month, but not year for now)? To get a quick answer, let's oversimplify the problem. Assume there are exactly 365 days in a year and that being born on any day is equally likely. In that case a birthday gives us this much information.
Of course, things are known to be more complicated. Roy Murphy has found that birthdays are significantly non-uniform. He specifically found that births are slightly more likely in July through October, while they are less likely March through May. David Gleich has also found a significant bias in births by weekday, in a subset of Americans, with fewer births during the weekend, which might be explained by C-sections and inductions being more common during the week.
In the end, a less uniform birthday distribution implies that the average information content of a birthday is less that what we've estimated. This is because the entropy of a random variable is maximal when its distrubution is uniform.
If you add a birth year, this is additional information equivalent to knowing your age. Assuming you're alive, the range of ages is for the most part limited to 0 through 85 years. If you again assumed a uniform distribution over that range, you'd find that this age/year adds this much information.
So combining the birth day and month with the year information, which are most likely independent, you get a full 14.94 bits with a full birthdate.
The age distribution is known to be highly skewed towards the younger ages. You can see the exact distribution for Americans. So again the implication is that the actual age information is lower than we've calculated it to be. Younger ages are less informative, while older ages are more informative.
I wanted to give a detailed example of when something is very uninformative. The vast majority of people have 2 legs, but a small fraction only have 1 or even 0, having lost them in accidents or for other reasons. I imagine there are people with more than two legs, due to genetic or developmental anomalies, but to simplify this analysis I'll ignore those cases. I looked online for a leg distribution, and couldn't find one. So I'll have to invent data for my example.
Assume the probability of losing a leg is
and the loss of each leg is an independent event, so the distribution of number of lost legs is binomial with n=2. In that case each of the events has this much information.
Interestingly, knowing that somebody has less than 2 legs can be extremely informative. So why don't online forms ask for your number of legs more often? The secret is in the average information content, or entropy, of the number of legs. The problem with the very informative cases is that they are very rare, so when you weigh their information by their probability, their effect is reduced relative to the majority of low-information 2-leg cases. In equations,
In general, we'll have a low average information (or low entropy) when one or very few cases dominate. This is why you're not normally asked online how many legs you have.
I tried looking for data on eye color, but this is the best I could do, found on Yahoo answers, and except for "American Academy of Opthamology", I could not find the source or other information on the following data.
The situation is much worse worldwide, with brown eyes dominating over the rest, and consequently the entropy drops to nearly zero (same as in the "number of legs" example).
Although slightly more informative than gender in USA (and independent of it), eye color is not independent of geography and names, which are by themselves much more informative, so it might make sense that nobody asks for your eye color in webforms.
We could estimate that name and birthdate information are independent and highly informative, combined providing at least 26 bits of information, sometimes much more depending on the name. Geography, or street address, is also highly informative, and while not independent of the previous quantities, combined most likely narrows the vast majority of people.
I hope this exercise has helped you understand in intuitive terms how information theory works, and maybe you can apply it to your data of interest.