Sub topic 3
Why income is plotted on a log scale
This chapter assumes you know the difference between correlation and causation, can read a scatterplot and an average, and have a rough idea of what a logarithm is. If logarithms are fuzzy, the first section rebuilds the idea using only doubling.
The problem a dollar axis creates
The previous chapter described the basic pattern: people with higher incomes report higher well-being. If you plot that on an axis in dollars, two things go wrong.
- Income is very skewed. Most people earn modest amounts, and a few earn enormous amounts. On a dollar axis the bulk of the data is squeezed into the left edge, and a handful of extreme points stretch the chart.
- Dollars are not equally meaningful at every level. An extra 10,000 per year is a big change for someone earning 20,000. For someone earning 160,000 it is a small change. A dollar axis treats both as the same horizontal distance.
A log scale fixes both by plotting the proportional change in income instead of the dollar change. On that axis, doubling your income always moves you the same distance.
Logarithms as counting doublings
A logarithm answers the question "how many times do I multiply?" The base-2 logarithm counts doublings. Going from 20,000 to 40,000 is one doubling, and so is going from 80,000 to 160,000. Going from 20,000 to 100,000 is a factor of 5, which is a little more than two doublings.
import math
def doublings(low, high):
"""How many times income doubles going from low to high."""
return math.log2(high / low)
print(doublings(20_000, 40_000)) # 1.0
print(doublings(80_000, 160_000)) # 1.0
print(doublings(20_000, 100_000)) # about 2.32The dollar gaps in the first two calls are 20,000 and 80,000. The log gap is identical. That is the whole idea of the scale.
Equal raises, unequal proportions
The same 10,000 raise looks very different once you express it as a proportion of what a person already earns. The code below measures each raise in doublings.
import math
for base in (20_000, 40_000, 80_000, 160_000):
gain = math.log2((base + 10_000) / base)
print(f"raise of 10,000 on {base:>7,}: {gain:.3f} doublings")Running it prints:
raise of 10,000 on 20,000: 0.585 doublings
raise of 10,000 on 40,000: 0.322 doublings
raise of 10,000 on 80,000: 0.170 doublings
raise of 10,000 on 160,000: 0.087 doublingsThe identical dollar raise is worth about seven times more, in proportional terms, at the bottom of this range than at the top. If well-being tracks proportional income, a flat raise helps a low earner much more than a high earner.
From a scale to a model
Plotting on a log axis is a display choice. The log-linear model is a claim about the data: well-being rises in a straight line with the logarithm of income.
well_being = intercept + slope * ln(income)Here ln is the natural logarithm. The slope tells you how much predicted well-being changes per unit of log income. Because the model is linear in the log, every doubling of income predicts the same gain, wherever you start. The next example uses a made-up slope to show this.
import math
# Illustrative, made-up coefficient: NOT an empirical estimate.
SLOPE_PER_LOG_UNIT = 0.3
def predicted_gain(low, high, slope=SLOPE_PER_LOG_UNIT):
return slope * (math.log(high) - math.log(low))
print(round(predicted_gain(20_000, 40_000), 3))
print(round(predicted_gain(80_000, 160_000), 3))Both calls print 0.208. That number is 0.3 * ln(2). The slope of 0.3 is a placeholder chosen for the demonstration, not a research result. Real studies estimate the slope from data, and it depends on which well-being measure is used.
What "diminishing returns" means here
In a log-linear model, the gain per dollar shrinks as income grows. The gain per doubling stays constant. Both statements are true at once, and they are often confused.
| Statement | In dollars | In doublings |
|---|---|---|
| Gain from the next 10,000 | Gets smaller as income rises | Not the natural unit |
| Gain from the next doubling | Needs a larger and larger dollar increase | Always the same |
| Does the curve ever flatten completely? | No, it keeps rising | No, it keeps rising |
This last row matters for the debate covered later in the tutorial. A pure log-linear relationship never plateaus. Each doubling still adds the same amount, even though the dollars needed for it keep growing. A claim that happiness "levels off" at some income means the real data bend away from a straight line on the log axis. So the log model gives you a baseline to compare against.
Why researchers expect logarithmic income
Three arguments support the log form. None of them proves it.
- Diminishing marginal utility. An old idea in economics, going back to Daniel Bernoulli in the 1700s, holds that each extra unit of wealth adds less satisfaction than the last. A log function is the simplest curve with that property.
- Proportional thinking. People often judge raises as percentages. A 10 percent raise feels similar to many people at different salaries.
- Empirical fit. In large surveys, life evaluation tends to rise roughly in a straight line against log income, across many countries. This is the main evidence, and the Kahneman and Deaton (2010) analysis of Gallup data used log income on its axis. Later chapters return to what happens at the top of that range.
Practical details and gotchas
Zero and negative incomes
The logarithm of zero is undefined, and negative numbers have no real logarithm. Datasets with people who have no income need a decision. Analysts may drop those people, add a small constant before taking the log, or use a different transformation. Each choice can shift results, especially at the low end where the log curve is steepest. A reported slope is partly a product of how the lowest earners were handled.
Which log you used
Natural log (ln), base 10, and base 2 all give straight lines against each other. They differ only by a constant multiplier. This matters when you compare slopes:
- A slope per unit of
ln(income)is not the same number as a slope per doubling. - To convert, multiply the
lnslope byln(2), about 0.693, to get the gain per doubling.
import math
slope_per_ln = 0.3 # made-up value, as above
slope_per_doubling = slope_per_ln * math.log(2)
print(round(slope_per_doubling, 3)) # 0.208Always check which base a paper used before comparing figures between papers.
Household versus individual income
Many surveys record household income. A household of five on 80,000 is in a very different position from a single person on 80,000. Some studies adjust for household size, and others do not. Two studies that both say "log income" may be measuring different things.
Top-coding and bracketed answers
Survey respondents often pick an income bracket, and the top bracket is open-ended, such as "over 200,000". The log scale makes the top look more compressed than it is, and top-coding hides how high the highest earners really are. Whether a curve "flattens" at high income can depend on how the top was coded and how few people sit there.
Axis labels
A log axis is usually labeled with dollar values at multiplicative intervals, such as 10,000, 20,000, 40,000, 80,000. If tick marks are evenly spaced but the labels grow by a fixed amount instead, the chart is mislabeled. When reading a figure, check that equal spacing means equal ratios.
What the log scale does not tell you
- It does not show causation. A log-linear fit describes how well-being and income move together in a sample. Richer people may differ in health, job security, or education. Later chapters examine lottery winners and cash transfers for causal evidence.
- It does not fix the measure. Life evaluation, daily emotional experience, and sense of meaning can each have different slopes against log income. The log form is a fit to one particular measure at a time.
- It can hide differences between people. A single slope describes an average. Different people can sit on different curves, which is an issue the heterogeneity chapter takes up.
- It depends on the range. A straight line over 20,000 to 160,000 does not guarantee the same line holds at 1,000,000 or at 2,000.
Reading a log-income chart: a checklist
- Is the income axis in dollars or logs, and what is the base?
- Is the income per person, or per household, and is it adjusted for size?
- How are zero and very high incomes handled?
- What is on the vertical axis: a life evaluation rating, a sampled mood, or something else?
- How many respondents are in each part of the curve?
- Is the claim a fitted slope, or a claim that the curve bends?
Exercise
A person's income rises from 25,000 to 50,000. Another person's rises from 100,000 to 200,000. Under a log-linear model with a positive slope, which person is predicted to gain more in well-being, and by how much more?
Show answer
Neither. Both incomes exactly double, so both are one doubling and the model predicts the same gain, which equals slope times ln(2). The dollar raises are 25,000 and 100,000, but the model depends only on the ratio, which is 2 in both cases.
Exercise
Write a Python expression that gives the predicted well-being gain from an income of 30,000 to an income of 120,000 using a slope of 0.25 per natural-log unit. Then state how many doublings that is.
Show answer
0.25 (math.log(120000) - math.log(30000)), which is about 0.347 (equal to 0.25 ln(4)). The ratio is 4, so it is exactly two doublings (math.log2(120000 / 30000) is 2.0).
Exercise
A study reports that well-being rises in a straight line against log income and concludes "more money always adds the same happiness per dollar." What is wrong with that conclusion?
Show answer
A straight line against log income means equal gain per doubling, not per dollar. Per dollar, the gain shrinks as income grows, because each doubling needs more dollars. The conclusion mixes up the log axis with the dollar axis.