Sub topic 2
Variance and heritability: what the number does and does not say
This chapter assumes you know what an average and a correlation are, and that you have a rough idea of how a survey or experiment works. You don't need any genetics. By the end you should be able to read a sentence like "happiness is 40% heritable" and say what it means and what it doesn't.
Variance: the quantity being divided up
People differ in how satisfied they are with their lives. Statisticians measure that spread with variance. To compute it, take each person's score, subtract the group average, square the difference, and average the squares. The standard deviation is the square root of the variance. It is easier to read because it is in the original units.
Variance describes differences between people in a particular group. It says nothing about the average level. A country where everyone rates their life 8 out of 10 and a country where everyone rates it 3 out of 10 both have a variance of zero.
Researchers split this total variance into parts and ask how much of the spread each source accounts for. The sources are usually grouped like this:
- Genetic variance: differences linked to differences in DNA between people.
- Shared environment: influences that make siblings raised together alike, such as the family's neighborhood or income.
- Non-shared environment: influences that make siblings different, such as friends, illnesses, and individual experiences. In practice this also contains measurement error.
If these sources are independent, the parts add up to the total, and each part's share is a proportion between 0 and 1.
Heritability defined
Heritability (written h²) is the proportion of the variance in a trait, in a specific population, that is statistically associated with genetic differences between its members.
h² = genetic variance ÷ total variance
A heritability of 0.40 for life satisfaction means that, in the sample studied, about 40% of the differences between people go with genetic differences. The remaining 60% goes with environment and measurement error. The next chapter shows how twin data produce such estimates.
The definition contains three qualifiers, and most misreadings come from dropping one of them:
- Proportion of variance, not proportion of the trait. Variance is about differences, not about what any one person has.
- In a specific population. The number is a property of a group, measured at a time, in a set of environments.
- Statistically associated. Heritability is a statistical summary and not a description of a biological mechanism.
Heritability depends on the environment
Heritability is a ratio, so changing the denominator changes it even when the genes stay the same. If a population's environments become more varied, environmental variance rises and heritability falls. If environments become more uniform, heritability rises.
The simulation below holds genetic differences fixed. It changes only how much the environment varies.
import random
import statistics
random.seed(1)
N = 100_000
def simulate(genetic_sd, environment_sd, shift=0.0, n=N):
"""Return (heritability, mean) for a trait = genes + environment + shift.
`shift` is an effect applied equally to everyone.
All parameter values are illustrative.
"""
genes = [random.gauss(0, genetic_sd) for _ in range(n)]
env = [random.gauss(0, environment_sd) for _ in range(n)]
total = [5.0 + g + e + shift for g, e in zip(genes, env)]
h2 = statistics.pvariance(genes) / statistics.pvariance(total)
return h2, statistics.fmean(total)
for env_sd in [0.5, 1.0, 2.0]:
h2, mean = simulate(genetic_sd=1.0, environment_sd=env_sd)
print(f"environment sd={env_sd}: heritability={h2:.2f}, mean={mean:.2f}")
h2, mean = simulate(genetic_sd=1.0, environment_sd=1.0, shift=1.5)
print(f"everyone gets +1.5: heritability={h2:.2f}, mean={mean:.2f}")The first three lines print heritabilities of about 0.80, 0.50, and 0.20, with a mean near 5. The genes are identical in all three runs. The last line shows a different point. An intervention that lifts everyone by the same amount raises the mean to about 6.5 and leaves heritability at about 0.50. Heritability measures differences between people, so a change that affects everyone equally doesn't move it.
What the number does and does not say
| Claim | Correct? | Why |
|---|---|---|
| "40% of the differences between people in this sample go with genetic differences" | Yes | This is the definition. |
| "40% of my happiness is genetic" | No | Heritability applies to a population's variance, not to one person's level. |
| "A heritable trait can't be changed" | No | Heritability says nothing about how a trait responds to a new intervention. |
| "The heritability of happiness is 40%, everywhere and always" | No | The value depends on the population and its range of environments. |
| "The other 60% is under your control" | No | The remainder includes chance events, measurement error, and circumstances nobody chooses. |
| "High heritability means a specific gene was found" | No | Twin-based estimates don't identify genes. |
Four common errors
Treating it as a personal share
Suppose a population has an average life satisfaction of 7, and heritability is 0.4. You can't say that 2.8 of your 7 points come from your genes. Heritability describes why scores differ across the group. It does not apportion any one score. Think of the area of a rectangle. Both length and width are needed to produce it, so asking how much of one rectangle's area is due to its length is meaningless. A population-level question about differences is different. Across many rectangles of varying lengths and similar widths, most of the variation in area would go with length.
Equating "heritable" with "fixed"
Height is highly heritable, yet average height rose substantially in many countries over the twentieth century, mainly because of better nutrition and health. Poor eyesight is heritable, and glasses correct it. The classic example is phenylketonuria (PKU), a genetic condition. Its harmful effects are largely prevented by a controlled diet. In each case a strong genetic contribution to differences coexists with an effective environmental fix. Heritability tells you how much of the existing variation tracks genes under existing conditions. It doesn't predict what a new condition would do.
Treating the environmental remainder as something you control
The non-shared environment bucket is often large for wellbeing. It holds your chosen activities, but it also holds random events, other people's behavior, illness, and measurement noise. A survey answer depends on mood that day, on question wording, and on the other questions asked earlier. Noise counts as non-shared environment in most twin models. Part of the "environmental" share is therefore not an influence on happiness at all. It is imprecision in the instrument.
Carrying a number to a different group
An estimate from a Western, wealthy, mostly adult sample doesn't automatically hold for children or for populations with very different living conditions. When the range of environments differs, the ratio differs. Compare any heritability figure only to the sample it came from.
Narrow and broad heritability
Two technical terms appear in the literature, and they are easy to confuse.
- Narrow-sense heritability counts only additive genetic effects, where each gene variant adds a small amount independently. This is the quantity breeders use to predict how offspring will differ from parents.
- Broad-sense heritability counts all genetic variance, including interactions between variants (dominance and epistasis).
For a given trait, broad-sense heritability is at least as large as narrow-sense. Papers on wellbeing don't always state which one they report. Check the methods before comparing numbers across studies.
Gene–environment correlation hides inside the ratio
The split into genetic and environmental parts assumes the two can be separated. In reality, people with certain genetic tendencies tend to end up in certain environments. An outgoing person may build a larger social network, and that network may raise their wellbeing. The model can credit that to genes, to environment, or to both, depending on the design. The earlier chapters' framing of "genes versus environment" is a simplification. A later chapter on gene–environment interplay covers this in more detail.
A checklist for reading a heritability claim
- Which population was measured, and how varied were their environments?
- Which wellbeing measure was used: life satisfaction, mood, or something else?
- Is the figure narrow-sense or broad-sense?
- Does the claim stay at the level of group differences, or does it slide into statements about one person?
- Does the writer conclude that the trait can't change? If so, that inference isn't supported by heritability alone.
Exercise
A news article says "Your happiness is 50% genetic, so only half of it is up to you." Name two separate errors in this sentence, using the definition of heritability.
Show answer
First, heritability is a proportion of the variance (the differences between people) in a particular population. It is not a share of any one person's happiness, so "your happiness is 50% genetic" misapplies it. Second, "only half is up to you" wrongly treats the remainder as personal choice. The non-shared environment includes chance events, other people's actions, and measurement error. A third possible error is that heritability doesn't say a trait is unchangeable. Environmental changes can shift the average level, and heritable traits such as height have changed with better nutrition.
Exercise
In the simulation, the environmental standard deviation is changed from 1.0 to 2.0 while genetic standard deviation stays at 1.0. Compute the heritability in each case. Then explain why heritability fell even though the genes did not change.
Show answer
With a genetic variance of 1.0 and environmental variance of 1.0, total variance is 2.0, so h² = 1.0 / 2.0 = 0.50. With an environmental standard deviation of 2.0 the environmental variance is 4.0, total variance is 5.0, and h² = 1.0 / 5.0 = 0.20. Heritability is a ratio, so a larger environmental variance in the denominator lowers it even though genetic variance is unchanged.
Exercise
A program gives every participant in a population an extra 1.5 points of life satisfaction. What happens to the mean and to heritability, and what does this show about heritability?
Show answer
The mean rises by 1.5. Variance is unchanged because everyone moves by the same amount, so heritability is unchanged. This shows that heritability measures differences between people and says nothing about whether the average level can be changed by an intervention.