ΨPsychology, Built

Act II · The Wet Machine

Part 9 of 62

Genes and Evolution

Psych 101 and the majorstarts at this level60 min of film16 chaptersprerequisites: none

How much of who you are did you inherit, and what does that question mean?

In 1979 identical twins separated as babies meet at thirty-nine and find a list of shared habits. The list proves nothing: two strangers compared on two hundred things share about ten. The design behind it does. A family passes on genes and a home together, so a family tree cannot say which did the work; twins and adoption can. Many small genes add up to a bell curve, and a score splits into additive genes, the home a family shares, and everything else. Identical twins share all of the first two and fraternal twins half of the genes, so twice the difference between their correlations is the heritability: four lines of algebra, and the series' first path diagram. On the Pool the design gives back what was planted, slowly, and then fails as each of its four assumptions is switched off, two failures inflating the genes and two the home. The viewer guesses six heritabilities. Then what the number is not: not fixedness (height rose twenty centimetres in a century), not about groups (seed from one sack in two fields), not about a person, not a constant. Three laws: everything is heritable, the shared home counts for less, much is neither. The search for the genes: a decade of candidate genes tested in samples that could not see them, whose findings failed; then a million tests at once, a threshold of five in a hundred million, and thousands of positions of tiny effect. A polygenic score predicts the averages of groups and says little about one person, and between siblings its effect is smaller, because part of it is the home the parents' genes made. Evolution supplies hypotheses and stories; the difference is whether they can fail.

What you need. Part 2's confounds and random assignment, Part 3's correlation and variance, Part 4's power, forking paths and the winner's curse, and Part 8's correction for many tests. Maximum likelihood is used as a tool in chapter 4 and explained in Part 44.

Hook
two twins called Jim, 1979
Ideas, models and mathematics
the family confound, many loci and a bell curve, Falconer's formula and the ACE path diagram, the twin design on the Pool and four ways it fails, what heritability is not, three laws, the candidate-gene decade, genome-wide association, polygenic scores within and between families, evolution as a source of hypotheses
Psyche gains
twin, adoption and sibling simulators; a miniature genome
On you
genes or the shared home, from two twin correlations

What you will be able to do

Psych 101 and the major

  • Explain why resemblance within families cannot separate genes from a shared home, and how twins and adoption can.
  • State what heritability is, and four things it is not.
  • Say why candidate-gene findings failed and why genome-wide studies need enormous samples.

Graduate

  • Derive Falconer's formula from the two twin correlations, compute the three shares, and attach a standard error.
  • Read a path diagram of the ACE model and say what each line asserts.
  • Compute the sample needed to detect a variant of a given size, the number of false hits among a million tests, and what a score of a given accuracy says about one person.

Research

  • Simulate a twin study with an assumption broken and predict the direction of the bias.
  • Explain why a polygenic score's effect is smaller between siblings, and what the gap can and cannot be attributed to.

Practice

  • Tell a test for a single-gene condition from a polygenic score, and do the arithmetic of a consumer score and of embryo selection.
  • Ask six questions of any claim about genes and behaviour.

Contents

Each chapter has a home level. Choose a track to see what to read and watch: Psych 101 and the major 53 min · Graduate 56 min · Research 60 min · Practice 56 min.

  1. 0Two men called JimPsych 101 and the major4 min
  2. 1Nature and nurturePsych 101 and the major3 min
  3. 2From peas to bell curvesPsych 101 and the major3 min
  4. 3The logic of twinsPsych 101 and the major4 min
  5. 4On the Pool: when the design is right, and when it is wrongPsych 101 and the major5 min
  6. 5On you: guess the heritabilityPsych 101 and the major2 min
  7. 6What heritability is notPsych 101 and the major5 min
  8. 7Three laws and a puzzlePsych 101 and the major3 min
  9. 8The candidate-gene decadePsych 101 and the major4 min
  10. 9A million testsPsych 101 and the major3 min
  11. 10What a polygenic score can sayPsych 101 and the major5 min
  12. 11Evolution as a source of hypothesesPsych 101 and the major4 min
  13. 12The LedgerPsych 101 and the major2 min
  14. 13In practice: what a genetic test can deliverPractice4 min
  15. 14Frontier: inside the familyResearch4 min
  16. Recap, problems, and the road aheadAll tracks5 min

Also on this page: Lecture · Key results · Try it · Lab · Problems · Notes and sources · Build the film.

Lecture

The text of each chapter is the film's narration, as it is spoken, so you can read along or revise without the film. The pictures are in the film. A dashed box stands for a number the film computes when it is rendered (hover over it to see what is computed); the README's figures for each chapter, where it lists them, follow the chapter's text.

Two men called JimPsych 101 and the major4 min

In February , in Ohio, two men met for the first time since they were a few weeks old. They were identical twins, adopted by different families as babies, and they were . Both had been named James by their new parents, so both were called Jim. As the newspapers told it, each had married a woman called Linda, divorced her, and then married a woman called Betty. One had a son called James Alan. The other had a son called James Allan. Each had owned a dog called Toy. A psychologist at the University of Minnesota, Thomas Bouchard, read about them and invited them to his laboratory. That was the beginning of a study of twins raised apart that ran for twenty years.

It's a wonderful story, and as evidence it's worth almost nothing. You know why, from Part 4. Nobody wrote down beforehand which things would be compared. The two men were compared on everything anyone could think of: names, wives, cars, cigarettes, hobbies, dogs. So take two strangers of the same age, from the same state. Compare them on things, and suppose each has a one in chance of matching. On average, match. Among twenty thousand simulated pairs of strangers, percent share eight things or more. And the newspaper prints the ten that matched, not the hundred and ninety that didn't. This is the garden of forking paths again, with a human-interest headline. The chances here are an illustration, not an estimate. The point is the shape of the mistake.

But behind the anecdote there's a design, and the design is one of the most repeated in psychology. Identical twins have the same genes. Raise them in different homes, and what they still share is their genes, and not their home. So measure many pairs, on one measure fixed in advance, and compute one number: the correlation between twin and twin. For scores on intelligence tests, the Minnesota group reported in 1990 that about percent of the variation went with the genes. That number has been attacked and defended ever since. This part is about what a number like it means, when it can be trusted, and what it can never tell you. The question sounds simple: how much of who you are did you inherit? The harder one is what that question means.

Part nine: genes and evolution. We'll see why families can't separate genes from homes, and meet the designs that can. We'll watch many small genes add up to a bell curve, derive the formula that twin studies use, and draw the first path diagram of the series. We'll run the twin design on the Pool, where we know the truth, and then break its assumptions one at a time. We'll list what heritability is not, which is longer than what it is. We'll follow the search for the genes themselves, through a decade of findings that weren't there, to a million tests at once. And we'll ask what a genetic score can say about one person, and what evolution can say about all of us.

What it does: The reunion; coincidences among strangers; the design behind the anecdote; objectives

1Nature and nurturePsych 101 and the major3 min

The phrase comes from Francis Galton, a cousin of Charles Darwin. In he published a book called Hereditary Genius. He'd gone through the families of eminent English judges, statesmen, scientists and poets, and found that eminence ran in families. The close relatives of an eminent man were far more likely to be eminent than strangers were. He concluded that ability is inherited. You can see the hole in the argument. The son of a judge gets his father's genes. He also gets his father's house, his books, his school, his name and his friends. A family passes on both at once, so a family tree can't tell you which one did the work. Galton saw the difficulty, and in he tried a way round it. He sent a questionnaire to twins.

Here's the difficulty as a picture. Two imaginary worlds. In the first, a trait is passed on entirely through genes, and homes make no difference. Measure parents and their children. The correlation is . In the second world there are no genes for the trait at all. Children resemble their parents only because they grow up in their parents' home. The correlation: . The two pictures are the same. No amount of data on ordinary families can tell these worlds apart. So do something to the families. Take children who were raised from birth by other people. In the world of genes, they still resemble the parents who gave them their genes, , and not the parents who raised them, . In the world of homes it's the reverse. That's the logic of every design in this part. Find people who share genes but not a home, or a home but not genes.

One more thing has to be said about Galton before we borrow his question. He didn't stop at measuring. In he coined a word, eugenics, for the project of improving a population by controlling who has children. Within fifty years that idea was law in many countries: forced sterilization, immigration quotas, and worse. The science it claimed was mostly wrong, and chapter six will show exactly which mistakes it made about the number we're about to compute. The history itself is told in Part 32. For now, keep one thing in mind. The question of how much is inherited has been used to hurt people, and a careful answer to it is the best protection against the careless ones.

What it does: Galton's families; two worlds with the same parent-child correlation, and what adoption shows; eugenics named

2From peas to bell curvesPsych 101 and the major3 min

Galton's question ran straight into a puzzle. In 1900 biologists rediscovered Gregor Mendel's experiments on peas. Mendel's factors, which we now call genes, come in discrete versions. A pea plant is tall or it's short, with nothing in between. But the traits Galton cared about aren't like that. Height, or a score on a test, takes every value, in a bell curve. For nearly twenty years two schools argued. One said inheritance is Mendel's discrete factors. The other said it's continuous, and measured it with Galton's correlations. In 1918 a young statistician, Ronald Fisher, showed that both were right.

Suppose a trait is influenced by one gene, which comes in two versions, a plus and a minus. Everyone carries two copies, so there are three kinds of people: no pluses, one, or two. Now two genes whose effects add. Five kinds. Five genes: eleven kinds. Fifty genes, and the steps are too fine to see. It's a bell curve, built entirely out of Mendel's discrete factors. Add the effects of the environment, which blur the steps further, and you have the distributions we actually measure. Fisher's paper went further. It worked out how alike relatives should be if this picture is true. And that's what makes the whole subject computable.

Here's the bookkeeping Fisher introduced. A person's score is a sum of three parts. A: the added-up effects of their genes. C, for common: everything in the environment that children in the same family share. And E: everything else, including luck and the error of the measurement. If the parts are independent, their variances add. So the variance of the scores can be shared out among the three. The share that belongs to A is called the heritability, written h squared. Notice what kind of thing it is. It's a property of a population: of how people differ from one another. It isn't a property of a person. Keep that in mind until chapter six.

One prediction of the model was already in Galton's notebooks. Measure both parents, average them, and measure their grown-up children. The children of tall parents are tall, but less so than their parents. They fall back toward the average. Galton called it regression, and that's where the word in statistics comes from. Under Fisher's model the slope of this line has a meaning. If parents pass on their genes and nothing else, the slope is the heritability. Here it's , and we planted . Parents one unit above the average have children who are, on average, above. But in real families parents pass on a home as well, and then the slope mixes the two. To pull them apart we need a sharper tool.

What it does: Mendel against the bell curve; 1, 2, 5 and 50 genes; a score in three parts; regression to the mean and its slope

3The logic of twinsPsych 101 and the major4 min

Nature runs the experiment for us. There are two kinds of twins. Identical twins come from one fertilized egg that split in two. They have the same genes. Fraternal twins come from two eggs. Genetically they're ordinary brothers and sisters. Of the genes that differ between people, they share, on average, half. And both kinds are born at the same time and grow up in the same home. So here's the logic. If identical twins are more alike than fraternal twins, the extra likeness should come from the extra genes they share. The comparison was first made in the nineteen-twenties, and it's been made thousands of times since.

Here are three hundred pairs of each kind from the Pool's twin registry, for a trait where we've planted the truth. Half the variation comes from genes, a fifth from the shared home, and the rest from everything else. Each dot is a pair. One twin across, the other up. Identical pairs: a correlation of . Fraternal pairs: . A looser cloud. The whole method lives in the gap between those two clouds.

Now the algebra, which takes four lines. Call the three shares a squared, c squared and e squared. Identical twins share all of A and all of C. So their correlation is a squared plus c squared. Fraternal twins share half of A and all of C: half of a squared, plus c squared. Subtract. The c squareds cancel, and what's left is half of a squared. So the heritability is twice the difference between the two correlations. The shared home is what's left of the fraternal correlation, and E is whatever makes even identical twins differ. On the registry, in a large sample: two times minus is . We planted . The shared home comes out at , and the rest at . This is called Falconer's formula. You can do it on a napkin, and that's part of why it's been applied to almost every trait you can name.

Here are the same four lines as a picture, and it's the first of a kind you'll see throughout the series. Squares are things we measure: each twin's score. Circles are causes nobody sees: A, C and E for each twin. Arrows say what causes what. The curved lines say how alike the two twins' causes are. Their homes: the same, so one. Their genes: one for identical twins, a half for fraternal twins. Their E's aren't joined at all. That's what E means. A picture like this is a model. It predicts the two correlations, it can be fitted to data, and it can fail. It's called a path diagram, and from Part 44 on they get much bigger. Now some classic data. A review of studies of intelligence-test scores put the correlation for identical twins raised together at , and for fraternal twins at . The formula turns that into for genes, for the shared home, and for the rest. Before we believe it, let's find out when the formula tells the truth.

What it does: Two kinds of twins; two clouds of points; Falconer's four lines; the path diagram; the classic data

4On the Pool: when the design is right, and when it is wrongPsych 101 and the major5 min

First, the good news. On the Pool we know the answer, so we can run the twin study two thousand times and see what it reports. With fifty pairs of each kind, the estimates are all over the place. Ninety-five percent of the studies report something between and , and percent report a heritability that's impossible: below zero, or above one. Two hundred pairs of each: better. A thousand of each: between and . At every size the estimate is right on average. What a bigger sample buys is precision, and because the formula doubles a difference between two correlations, it buys it slowly. To pin a heritability to within a tenth, a twin study needs thousands of pairs.

Here's one study of a thousand pairs of each kind, picked by rule: of a hundred and one such studies, the one with the middle estimate. The napkin formula gives for the genes. Modern studies don't use the napkin. They fit the path diagram by maximum likelihood, which uses all of the data, keeps every share between zero and one, and gives an interval for each. The fit: genes , somewhere between and . Shared home, . Everything else, . The truth is inside every interval. So when its assumptions hold, the design works. Now for the assumptions. There are four, and on the Pool each one can be switched off.

With everything as assumed, the formula gives back what we planted. One. Equal environments. The formula assumes identical twins share their surroundings no more than fraternal twins do. If identical twins are treated more alike, dressed alike, mistaken for each other, that extra likeness is counted as genes. The formula reports when the truth is . Two. Random mating. In fact people tend to marry people like themselves. Then fraternal twins share more than half of the genes that matter, the two kinds of twin look more similar than they should, and the formula undercounts the genes and overcounts the home. Three. Genes that simply add. If some genes work only in combination, identical twins, who share every combination, are far more alike than fraternal twins. The formula reports for genes, when the truth is , and below zero for the home. A negative share is the design telling you that its model is wrong. Four. Genes independent of the home. If parents' genes shape the home they make, by the books on the shelf, say, that part of the genes' influence is counted as home. The home's share goes from to . So the errors don't all push the same way. Two of them inflate the genes' share, and two inflate the home's. A real twin study has some of each, and nobody knows exactly how much.

No single design is safe. So the field uses several, with different weak points, and looks for agreement. Adoptive brothers and sisters share a home and no genes. Their correlation is the shared home's share, directly. On the Pool: . A parent and the child they didn't raise share genes and no home. That gives half the heritability: . And identical twins raised apart, the design the two Jims began. Their correlation is the heritability itself: . That design has its own weak point. If the two homes are alike, because agencies place children with similar families, the answer comes out too high. With homes half alike, it's . When twins, adoptees and ordinary families all point to the same number, the number has earned some trust. When they disagree, the disagreement is the finding.

What it does: 2,000 studies at each size; one study fitted by maximum likelihood; four assumptions switched off; adoption and twins apart as checks

5On you: guess the heritabilityPsych 101 and the major2 min

Your turn. Here are six ways in which people differ. Which language you speak. How many years of schooling you had. Personality traits, such as how outgoing you are. Scores on tests of reasoning, at seventeen. A diagnosis of attention deficit hyperactivity disorder. And a diagnosis of schizophrenia. For each one, guess the heritability that twin studies report: the share of the differences between people that goes with their genes. Is it nearer zero, nearer a half, or nearer one? Decide on all six before the answers come up.

Here's what twin studies report. The language you speak: zero. Nobody inherits a language. It comes entirely from the family and the place, and it's a useful reminder that running in families and being genetic aren't the same thing. Years of schooling: about , and it's the unusual one, because here the shared home matters about as much as the genes do. Personality: in twin studies, and about half that in studies of other relatives, which is the disagreement chapter four warned about. Reasoning at seventeen: . A diagnosis of ADHD: . Schizophrenia: . If you guessed low for the last three, you're in good company. Most people do. And a team that pooled fifty years of twin studies, nearly eighteen thousand traits, found an average of percent. Almost nothing came out at zero. These numbers are large, they've been found again and again, and they're easy to misread. The next chapter is about the misreadings.

What it does: Six traits, guessed and then revealed

6What heritability is notPsych 101 and the major5 min

One. It isn't fixedness. Take height. In well-fed countries, twin studies put its heritability at about , as high as anything we measure. Now look across a century. South Korean women born in are, on average, centimetres taller than those born in . Iranian men: . A nation's genes don't change in a hundred years. Its food did. So a trait can be highly heritable and still move a long way when the environment moves. Heritability says which differences go with genes in the environments people actually had. It says nothing about what a new environment would do. Medicine's standard example is phenylketonuria: a condition caused by a single gene, which damages the developing brain, and which is prevented by a diet. Entirely genetic, and entirely treatable.

Two. It isn't about groups. Here's a picture due to the geneticist Richard Lewontin. Take a sack of seed, with all the usual genetic variety. Sow a handful in a field with rich soil, and a handful in a field with poor soil. Within the rich field every plant has the same soil. So the differences in height between one plant and the next are almost all genetic. Heritability: . Within the poor field, the same: . And the difference between the fields? The plants in the rich soil are taller by units, and the genetic difference between the fields is zero. The seed came from one sack. So a high heritability inside each of two groups tells you nothing about why the groups differ. This is the mistake at the centre of a century of claims about classes, nations and races, and it's a mistake of logic before it's anything else.

Three. It isn't about you. People say: intelligence is sixty percent genetic, so sixty percent of my intelligence comes from my genes. That sentence has no meaning. Think of a rectangle. Its area is its width times its height. How much of the area is due to the width? For one rectangle, the question has no answer. But for a collection of rectangles you can ask something sensible. Do they differ in area mostly because their widths differ, or their heights? If they're all about the same height, the differences in area go with the widths. That's the kind of statement heritability is. It shares out differences among people. A person's genes and surroundings aren't two piles that add up to them. They multiply, like width and height.

Four. It isn't a constant. Heritability is a share, so it changes when the other share changes. Make everyone's environment more alike, and the environmental spread shrinks, and heritability goes up, with no change in any gene. With the spread of environments at a quarter of the genetic spread it's . At three times, it's . A study of American seven-year-olds in 2003 reported just that. Among the poorest families, the shared home accounted for percent of the differences in test scores and the genes for almost none. Among affluent families it was nearly the reverse. Later samples disagree about how general that is. And the heritability of scores on reasoning tests rises with age: percent at nine, at twelve, at seventeen. One reading is that older children choose more of their own surroundings. So: not fixed, not about groups, not about you, and not a constant. What's left is a modest and useful number. It says that in a given population genes matter for a trait, and roughly how much. And it tells you where to look next.

What it does: Height in a century; seed in two fields; the rectangle; heritability against the spread of environments, wealth and age

7Three laws and a puzzlePsych 101 and the major3 min

By the year 2000, twin and adoption studies had piled up so consistently that the psychologist Eric Turkheimer summed them up as three laws. First: all human behavioural traits are heritable. Not that genes fix them. That in every population studied, some of the differences go with genes. Second: the effect of being raised in the same family is smaller than the effect of genes. Third: a substantial part of the variation is accounted for by neither. In 2015 a team pooled fifty years of twin studies: traits, and more than fourteen million pairs of twins. The average heritability was percent, and for about two thirds of the traits the simple additive model was enough. The first law has held. As laws of psychology go, it's one of the best replicated we have.

The second and third laws are the surprising ones. Common sense says the home matters most: the parents you had, their money, their rules, their books. But adoption studies keep finding that adoptive brothers and sisters, raised in one home from infancy, are by adulthood hardly more alike in personality than strangers. And identical twins, with the same genes and the same home, are far from the same person. On our registry their correlation is , which leaves percent of the differences with neither cause. What's in that remainder? Partly the error of the measurement. Partly experiences that brothers and sisters don't share: a friend, a teacher, an illness. Partly, it seems, chance in how a brain grows. Most of it has never been pinned down. Two cautions, before anyone concludes that parents don't matter. These studies cover the range of homes that get into studies, which rarely includes neglect or abuse. And a small effect on a personality score isn't a small effect on a life. The home decides the language you speak and the religion you were taught, and for schooling, as you saw, the home's share is as large as the genes'.

What it does: Turkheimer's laws and fifty years of twin studies; the shared home that counts for little; what is in the remainder

8The candidate-gene decadePsych 101 and the major4 min

Twin studies say that genes matter. They don't say which genes. In the nineteen-nineties it became cheap to read a person's version of one particular gene, and a new kind of study took off. Pick a candidate: a gene with a good story. The serotonin transporter, for instance. Serotonin is what the common antidepressants act on, and the gene comes in a short version and a long one. Read it in a few hundred people, and test whether the versions differ in the trait. The most famous result came in 2003, from a study that had followed people in Dunedin, New Zealand, since their birth. People with the short version, it reported, were more likely to become depressed after stressful events in their lives. A gene, an environment, and an interaction between the two. It was one of the most celebrated findings of its decade, and hundreds of studies of the same kind followed it.

Here's the trouble, and it's arithmetic. When very large studies finally measured the effect of single common gene variants on a trait like years of schooling, the largest one explained about two hundredths of one percent of the differences between people. How many people does it take to detect an effect of that size? For an eighty percent chance, at the usual threshold: . A study of a thousand people has a percent chance, when five percent is what you'd get from nothing at all. So a candidate-gene study of a few hundred people couldn't have detected a real effect of realistic size. And yet such studies reported hits, year after year. You know from Part 4 what that means.

So here's a gene that does nothing, studied by two thousand laboratories, with people each. If every laboratory runs the one analysis it planned, percent find something, as they should. But there are choices. Count the copies of the short version, or lump people into 'any short' or 'two short'. Analyse everyone, or men and women separately. Use one measure of depression, or another. That's analyses, every one of them defensible. Let each laboratory report its best, and percent find a significant effect of a gene that does nothing. Add journals that prefer positive results, and you have a literature.

And then the tests arrived. In 2009, a pooled analysis of studies, more than people, found no association between the serotonin gene and depression, with stress or without. In 2012, published gene variants for intelligence were retested in three large samples. Of tests, was significant, where to were expected if the published effects were real. And in 2019 a team took the most-studied candidate genes for depression and tested each one, with a plan registered in advance, in samples of up to people. None held up. As a set, the famous genes did no better than genes picked at random. A decade of findings, hundreds of papers, and almost nothing there. It goes on the Ledger today. The lesson isn't that genes don't matter for behaviour. The twin studies stand. It's that each gene matters so little that this method couldn't see it.

What it does: The serotonin transporter; what a thousand people can detect; a null gene analysed 18 ways; the tests of 2009, 2012 and 2019

9A million testsPsych 101 and the major3 min

If you can't guess the gene, test them all. One person's DNA differs from another's at millions of positions, and a chip can read about a million of them at once. At each position, ask the candidate-gene question. Do people with more copies of one version score higher? That's one regression for each position. A million tests. You met this problem in the last part, in the brain: a hundred thousand voxels. The cure is the same. Divide the threshold by the number of tests. Point oh five, divided by a million, is five in a hundred million. That line is called genome-wide significance. A result that hasn't crossed it, and then been found again in a second sample, isn't believed. The price is the one you'd predict. With a bar that high, and effects that small, the samples have to be enormous.

Here's a genome in miniature. Twenty-five hundred positions. Five hundred of them truly affect a trait, each a little, and together they carry half of its variation. Study people. Each dot is a position, and its height says how surprising its association with the trait is. The dashed line is the corrected threshold. positions clear it. Six thousand people: . Twenty thousand: , and not one of them a false alarm. The method is strict, and what it finds is real. But look at what it misses. positions matter, and with twenty thousand people we've found . The rest are real and invisible. And the first hits to appear are exaggerated. At two thousand people, the estimated effects of the hits are times their true size. That's Part 4's winner's curse: to clear a high bar with a small sample, an estimate has to be lucky as well as real.

The real history has the same shape. Take years of schooling. In 2013: people, and positions found, each one worth about a month of schooling. In 2018: one point one million people, and positions. In 2022: three million people, and . Thousands of positions, each with an effect too small to matter by itself, spread across the whole genome. It's been called the fourth law of behaviour genetics: a typical human trait is associated with very many genetic variants, each of very small effect. That's Fisher's picture from 1918, confirmed one position at a time.

What it does: One regression a position and the line at 5 × 10⁻⁸; a miniature genome at three sample sizes; the real history

10What a polygenic score can sayPsych 101 and the major5 min

Thousands of tiny effects are useless one at a time. So add them up. For each person, go through the positions. Multiply the number of copies by the effect the big study estimated, and sum. The total is called a polygenic score. Then test it honestly: in people who weren't in the study. On our miniature genome, a score built from people predicts percent of the variation in new people. The trait's heritability is fifty percent. The score gets only part of the way, because each effect is estimated with error. The bigger the discovery study, the closer the score gets to that ceiling. For years of schooling, the real scores now predict to percent of the variation. For one predictor of a behavioural trait, that's a large number. Now let's see what it buys.

What do twelve to sixteen percent mean? Take the middle, . Sort people by their score into ten groups. The averages of the groups climb steadily from the lowest to the highest. For comparing groups, the score works. Now one person. Someone in the top tenth of the score has a percent chance of being above the middle on the trait. Someone in the bottom tenth has a percent chance. So of the people the score ranks highest, one in four is below average, and of those it ranks lowest, one in four is above. And the range it leaves open for a person is almost as wide as before: plus or minus standard deviations, where knowing nothing at all gives one point nine six. A score like this is a tool for research on groups. As a statement about one person, it's a weak hint.

There's a second caution, about what the score is a score of. Compare unrelated people, and a difference of one unit in the score goes with units of the trait. Now compare brothers and sisters, who have the same parents and the same home. Between siblings, the same difference in score goes with : about percent less. That's what the study of a million people found for schooling. Why? Because across families the score also picks up the parents. Parents with higher scores make different homes, and their children get both the genes and the home. In Iceland, the gene versions that parents did not pass on still predicted their children's schooling, at percent of the strength of the ones they did. It's been named genetic nurture. It's Galton's confound, found inside the genome. And one more gap. For height, twin studies say percent. All the common variants together reach about . The difference is called the missing heritability. Part of it is rarer variants that no chip reads. And part of it may be the twin design's own inflation, from chapter four.

Last, a word you'll have heard: epigenetics. Every cell in your body has the same DNA, yet a neuron isn't a liver cell. The difference is in which genes are switched on, and one of the switches is a chemical tag attached to the DNA. Experience can move the tags. Rat pups that were licked and groomed more by their mothers grew up with fewer tags on a gene that regulates the response to stress, and they handled stress more calmly. And in people: men and women who were conceived during the Dutch famine of had, six decades later, fewer tags on a growth gene than their own brothers and sisters. So the environment writes on the genome's switches. That's one way nurture gets into biology. What isn't established is the popular claim that such marks are handed down through the generations in people. Treat that one as open.

What it does: Building and testing a score; groups against one person; smaller within families; missing heritability; epigenetics

11Evolution as a source of hypothesesPsych 101 and the major4 min

So far we've studied how people's genes differ. But most of the genome is the same in everyone, and it's the same because of its history. Natural selection kept what helped ancestors survive and have children. So for any feature of the mind you can ask a second kind of why. Not how does it work, but what was it for? A fear of snakes and of heights. A taste for sugar and fat. The pain of being left out. An evolutionary account says these were useful for a very long time, in conditions unlike ours. That's a way of generating hypotheses, and it's produced good ones. It's also a way of generating stories. The difference between the two is the usual one. Can it fail?

First, a hypothesis. If the least that a parent must invest in a child differs between the sexes, then what men and women look for in a long-term partner should differ in particular ways. And it should differ everywhere, not just in one culture. In 1989 David Buss reported a test: people, in cultures. In of the samples, women rated a partner's financial prospects higher than men did. In all , men preferred partners younger than themselves. That's a prediction that could have failed in thirty-seven places, and it didn't. The caveats are his own. The samples were mostly urban and educated, and a questionnaire measures what people say they want, not whom they choose. And there's a rival account. The same pattern is what you'd expect wherever women have less access to money. That's been tested since, and the story continues in Part 37.

Now the failure mode. In 1979 Stephen Jay Gould and Richard Lewontin warned against what they called just-so stories. Take any trait, invent an advantage it might once have had, and call it explained. The story is always available. If people are generous, generosity was adaptive. If they're selfish, so was that. An account that can explain a result and its opposite has explained neither. So here's what a testable version needs. A prediction made before the data. A comparison across cultures, because a universal can't be a local habit. A comparison across species, because selection leaves relatives with related traits. And the rival explanation, usually learning or culture, tested alongside. Held to that standard, some evolutionary claims survive and many don't. We'll meet both kinds: reasoning about cheats in Part 24, and attraction in Part 37.

The last tool is other animals. In 2002, in Oxford, a New Caledonian crow called was given a straight piece of wire, and a small bucket of food at the bottom of a tube. She bent the wire into a hook and lifted the bucket out. It looked like insight: a bird inventing a tool. Fourteen years later, field workers reported that wild crows of her species bend their twig tools as a matter of routine. So she was probably doing what her species does, with a new material. Still remarkable. Less of a miracle. That's how comparative work goes: a striking observation, and then the careful question of what it shows. Its value is this. When crows, apes and octopuses, whose brains are built very differently, arrive at similar solutions, the solutions tell us what the problem demands, and not just how one kind of brain happens to work.

What it does: The second "why"; 37 cultures; just-so stories and what a testable claim needs; a crow and a wire

12The LedgerPsych 101 and the major2 min

Three rows today. The first. The claim: on almost every psychological trait, identical twins are more alike than fraternal twins. An early summary: Bouchard and McGue's review of 111 studies, in 1981. The record: fifty years of twin studies, pooled in 2015. Nearly eighteen thousand traits, an average heritability of forty-nine percent, and almost no trait at zero. What repeats is the pattern of correlations. Reading it as a share for genes rests on the design's assumptions, and the share describes a population, not a person. Replicated.

The second. The claim: common variants in a few named genes explain who becomes depressed after stress, or who scores higher on tests. The original: Caspi and colleagues, 2003, on the serotonin transporter. The record. A pooled analysis in 2009: nothing. Twelve variants for intelligence, retested in 2012: one significant test in thirty-two. Eighteen candidate genes for depression, tested in 2019 in up to four hundred and forty thousand people: none. Small samples, flexible analyses and journals that prefer a positive result. It's Part 4's mechanism, in a different field. Failed.

And the third. The claim: a score added up from many common gene variants predicts how far a person goes in school. The original: Rietveld and colleagues, 2013. Three variants, and a score that predicted about two percent. The record: a million people in 2018, three million in 2022. Thousands of variants, and a score that predicts twelve to sixteen percent. It predicts groups far better than it predicts a person. Part of it is the parents' genes, acting through the home. And it predicts poorly in people whose ancestry differs from the samples it was built on. Replicated. That makes rows. Compare the second with the third. The same question, which genes, was asked twice. Once with small samples and a free hand, and once with enormous samples, a threshold fixed in advance, and a second sample to confirm. The first way produced a decade of results that weren't there.

What it does: Twin heritability, candidate genes, and the score for schooling

13In practice: what a genetic test can deliverPractice4 min

Where is this used? Start with the established part. Genetic counselling deals mostly with conditions that come from one gene, or one chromosome: Huntington's disease, cystic fibrosis, Down syndrome. There a test is close to a diagnosis, and the counsellor's work is to help a family understand a probability and decide what to do. The skills are psychological: how people understand risk, which is Part 26, and how to give hard news. The traits of this part aren't like that. They're influenced by thousands of positions, each one tiny. For those, the test is a polygenic score, and you now know what a score can say.

Companies will sell you a score for a behavioural trait. Do the arithmetic before you buy. Take a score that predicts percent of the differences in scores on reasoning tests, which is about as good as published scores get. You're told you're in the top tenth. Your chance of actually being above average is percent. A coin gives fifty. Your predicted score, on the IQ scale, comes with a range of plus or minus points. And three things the report may not say. The score was built on people of European ancestry, and it's several times less accurate in people of African ancestry. Part of what it measures is your parents' home. And nothing in it says what a different school, or a different year of your life, would do.

The strongest claim on sale is embryo selection. During IVF, score the embryos and implant the one with the highest score. Here's the arithmetic. The embryos of one couple are siblings. They differ in score less than strangers do: half the spread. And between siblings the score's effect is about forty percent smaller, as you saw. With ten embryos, choosing the top one instead of one at random gains, on average, IQ points. A simulation with real genomes, published in 2019, got about . More embryos barely help. A hundred embryos: points. The curve is the expected best of a sample, and it flattens fast. Against that small average gain, set the range from the last screen, plus or minus points around any one child, which no selection removes.

So here's what to carry out of this part: six questions for any claim about genes and behaviour. Is it one gene with a large effect, or a score built from thousands? How much of the differences does it predict, in people it wasn't built on? In whom was it built, and does it work in people like the ones it's being used on? Does the effect hold between brothers and sisters, or only between families? Was the threshold set for the number of tests, and was the result found twice? And the one that matters most to a person: does it say anything about what a change in circumstances would do? Heritability, remember, never does.

What it does: Counselling for single genes; a consumer score; choosing among embryos; six questions

14Frontier: inside the familyResearch4 min

The frontier of this part is the family, and here's why. Take two populations that differ, for reasons of ancestry, in how common a gene variant is. They also differ in a habit, for reasons that have nothing to do with the gene. Eating with chopsticks, in the classic teaching example. Pool the two, and the variant predicts the habit, with a p-value near ten to the minus . A gene for chopsticks. Within either population, there's nothing. Statistical corrections for ancestry help a great deal, and they can't be proved complete. For traits like schooling, which follow geography and class as well as genes, that matters.

But brothers and sisters can't differ in ancestry. They have the same parents. And which of a parent's two copies each child receives is a coin flip. It's Mendel's lottery, and it's as fair an experiment as nature offers: same parents, same home, and a random draw of genes. So the newest studies run the genome-wide scan between siblings. In 2022, with siblings, the effects estimated inside families came out smaller than the usual estimates for schooling, test scores, height, depressive symptoms and smoking. For bodily measures such as cholesterol, they were about the same. The traits where the home has a say are the ones where comparing strangers had overstated what genes do. In our own simulation with two strata, the effect looks like between strangers and between siblings, and the second is the one we planted.

A second frontier: whose genomes? About four fifths of the people in genome-wide studies have been of European ancestry. A score built on them predicts about half as well in people of East Asian ancestry, and several times worse in people of African ancestry. That isn't because the biology differs. The positions on a chip are markers, not causes, and which marker travels with which cause depends on a population's history. So today the tools of this field work best for the people who were already best served. The remedy is to study everyone.

So here's what isn't settled. What's in the missing heritability? Rarer variants, which need whole genomes to be read. Or twin estimates that were too high to begin with. Probably some of each. How does genetic nurture work? Which parts of a home do parents' genes shape, and could those parts be given to any child? That would turn a genetic finding into an environmental one. How do you get from a position in the genome to a behaviour? Through a gene, a kind of cell, a circuit and a habit. For almost no behavioural trait has that path been traced. And what should a score be used for? Research on groups, or decisions about one child, or one embryo? The arithmetic in this part says which of those it can bear. The starred problem asks you to design the study that separates a child's own genes from the home that their parents' genes made.

What it does: Stratification; Mendel's lottery between siblings; whose genomes; four open questions

Recap, problems, and the road aheadAll tracks5 min

Part nine in ten lines. A list of coincidences chosen after looking proves nothing, and a design fixed in advance can. A family passes on genes and a home together, and twins and adoption pull them apart. Many small genes add up to a bell curve, and heritability is the genes' share of the variance. The twin formula doubles the difference between two correlations, and on the Pool it gives back what we planted. Its assumptions fail in both directions: too much for the genes if identical twins are treated alike, too much for the home if parents' genes shape it. Heritability isn't fixedness, isn't about groups, isn't about you, and isn't a constant. Three laws: everything is heritable, the shared home counts for less, and much is neither. Candidate genes were tested in samples that couldn't have seen them, and the decade's findings failed. A million tests need a threshold of five in a hundred million and enormous samples, and then three positions became thousands. And a polygenic score predicts groups, not persons, and part of it is the home.

Kant's wager. Today touches the second objection: that the mind can't be experimented on. You can't assign a child different genes, or a different family. But nature does. Twins come in two kinds. Adoption moves children between homes. And Mendel's lottery deals each brother and sister a random hand. They're experiments nobody designed, and each rests on assumptions that have to be checked, which is what chapter four was for. And on the first objection, that the mind admits no mathematics: here was a variance shared out, a formula in four lines, a diagram fitted to data. And a prediction. In 1918 Fisher's model said that traits like these must rest on very many genes of tiny effect. A century later, a million tests at a time, that's what was found.

Where this comes back. Reasoning about cheats, an evolutionary claim put to the test, is Part 24. How people understand a risk is Part 26. Temperament, and what parents do, is Part 30. Intelligence, its heritability and the history of eugenics are Part 32. Personality, and the gap between what twins say and what families say, is Part 33. Attraction across cultures is Part 37. The genetics of depression, psychosis and addiction are Parts 40 and 41. And path diagrams, fitted in earnest, begin in Part 44.

Seven problems, with full solutions in this part's README. One applies the twin formula and asks what a study of that size can tell apart. One works out what assortative mating does to it. One pools Lewontin's two fields. One computes the samples that the candidate-gene studies needed. One counts the false alarms in a million tests, and asks what a score says about one person. One uses Psyche's genes module to break the twin design and to reproduce the gap inside families. And the last, with the star, is the frontier's problem. Pause here if you'd like to try them.

The books and papers behind this part are listed here and in the README. Turkheimer's three laws take five pages, and they're the best five pages to start with.

So that's where the differences between people come from, as far as anyone can say: some from genes, less than you'd think from the home people share, and a good deal from neither. But a person also differs from themselves. The same mind isn't the same at four in the afternoon and at four in the morning, after a coffee, or after a week of bad sleep. The brain sits in a body with rhythms, hormones and drugs. In 1938 a physiologist and his student went down into a cave in Kentucky and lived there for a month, on a day of twenty-eight hours, to see whether the body would follow the clock on the wall. One of them adapted. The other couldn't. Why, and what it tells us about the clock inside, is Part 10: chemistry and clocks.

Where it goes next. Reasoning about cheats as a test of an evolutionary claim is Part 24; how people understand a risk is Part 26; temperament and parenting are Part 30; intelligence, its heritability across wealth and age, and the history of eugenics are Part 32; personality is Part 33; mate preferences are Part 37; the genetics of disorders are Parts 40 and 41. Path diagrams are fitted in earnest from Part 44.

Key results

The part's results in one place, for revision.

A score in three parts\(\displaystyle P=A+C+E,\qquad\allowbreak h^{2}=\frac{\operatorname{Var}(A)}{\operatorname{Var}(P)}\)
Falconer's formula\(\displaystyle h^{2}=2\,(r_{MZ}-r_{DZ}),\qquad\allowbreak c^{2}=2\,r_{DZ}-r_{MZ},\qquad\allowbreak e^{2}=1-r_{MZ}\)
Parents and children\(\displaystyle \mathbb{E}[\text{child}\mid\text{midparent}]=h^{2}\times\text{midparent}\)
People needed for one variant\(\displaystyle n\approx\frac{(z_{\alpha/2}+z_{\beta})^{2}\,(1-r^{2})}{r^{2}}\)
Genome-wide significance\(\displaystyle \alpha=\frac{0.05}{10^{6}}=5\times10^{-8}\)
What a score predicts\(\displaystyle R^{2}\approx h^{2}\,\frac{n\,h^{2}}{n\,h^{2}+m}\)

Try it

Lab 9 · From twin correlations to a polygenic score, and where each step can mislead

Simulate identical and fraternal twins with known shares for genes, the shared home and the rest; recover the shares with Falconer's formula and by maximum likelihood; break each assumption of the design and watch the estimate move; check the result against adoption; analyse a gene that does nothing in eighteen ways; run a genome-wide scan at three sample sizes; and build a polygenic score, test it on new people, and compare its effect between strangers and between siblings.

Figure produced by Lab 9: From twin correlations to a polygenic score, and where each step can mislead
Produced by the lab below, seed 0, in 2.6 s.
python -m videos.psychology.labs 9 needs numpy, scipy, matplotlib · download lab09.py · source on GitHub
1 gene(s): kinds of people; share within one step of the middle                                           3; 1.00
5 gene(s): kinds of people; share within one step of the middle                                           11; 0.66
50 gene(s): kinds of people; share within one step of the middle                                          101; 0.24
children on their parents' average: slope (planted heritability 0.6)                                      0.60
twin correlations, identical and fraternal (planted .70 and .45)                                          0.70, 0.45
Falconer: genes, shared home, the rest (planted .5, .2, .3)                                               0.51, 0.20, 0.30
one study of 1,000 + 1,000 pairs, by maximum likelihood                                                   0.49, 0.19, 0.31
standard error of Falconer's h2 with 50, 200, 1,000, 5,000 pairs of each kind                             0.27, 0.13, 0.06, 0.03
identical twins treated more alike: Falconer's genes and home                                             0.75, 0.07
like marries like: Falconer's genes and home                                                              0.46, 0.26
genes that do not simply add: Falconer's genes and home                                                   0.80, -0.10
parents' genes shape the home: Falconer's genes and home                                                  0.40, 0.35
adoption: adoptive siblings, parent and child apart, identical twins apart                                0.20, 0.25, 0.50
two fields: heritability within each; the gap; the genetic part of the gap                                0.90, 0.90; 3.0; 0.01
pooled heritability of the two fields (0.9 within each)                                                   0.28
a variant explaining 0.02%: people for 80% power at .05; at 5e-8                                          39,237; 197,966
... the chance of detecting it with 1,000 people                                                          7%
a gene that does nothing: studies significant as planned; with the best of 18 analyses                    6%; 38%
1,000 people: hits of 300 real positions; false hits                                                      3; 0
4,000 people: hits of 300 real positions; false hits                                                      39; 0
10,000 people: hits of 300 real positions; false hits                                                     95; 0
a score built on 10,000 people, tested on 2,000 others: variance predicted; the formula                   42%; 38%
a score's effect between strangers and between siblings (direct effect 0.3)                               0.50, 0.30
a variant with no effect in two pooled populations: p pooled; p within each                               1e-54; 0.99, 0.36
expected gain in IQ points from the best of 10 and of 100 embryos (score predicts 3.6% between siblings)  3.1, 5.0

Twin correlations give back the planted shares when the design's assumptions hold, slowly: a heritability known to a tenth needs thousands of pairs. Each assumption that fails moves the estimate, two of them toward the genes and two toward the home. Heritability belongs to a population in its environments: pool two fields and it falls from 0.9 to 0.28 with no gene changed. A variant of realistic size is invisible to a study of a thousand, and a flexible analysis finds a gene that does nothing a third of the time. A genome-wide scan with a corrected threshold finds only real positions, and misses most of them. A score predicts new people about as well as the formula says, and its effect between siblings is the direct one.
The code (130 lines; it asserts its own result)
"""Lab 9: twins with the truth planted, a broken assumption, a gene that does nothing, and a genome-wide scan."""

import numpy as np

from videos.coursekit import labs
from explainer.psychology.psyche import genes as G

TITLE = "From twin correlations to a polygenic score, and where each step can mislead"
GOAL = ("Simulate identical and fraternal twins with known shares for genes, the shared home and the rest; recover "
        "the shares with Falconer's formula and by maximum likelihood; break each assumption of the design and "
        "watch the estimate move; check the result against adoption; analyse a gene that does nothing in eighteen "
        "ways; run a genome-wide scan at three sample sizes; and build a polygenic score, test it on new people, "
        "and compare its effect between strangers and between siblings.")
TASKS = [
    "In twin_study, set mz_extra to 0.2, 0.4 and 0.6 and record Falconer's h2. Write the estimate as a formula in "
    "a2, e2 and mz_extra, and say how large mz_extra would have to be for a trait with no genetic variance to "
    "show a 'heritability' of 0.3.",
    "Run the genome-wide scan with 1,000, 4,000 and 16,000 people and, for the hits at each size, compare the "
    "estimated effects with the true ones. Why are the first hits exaggerated, and why does the exaggeration fade?",
    "In sibling_design, set nurture to 0 and strata_gap and strata_env to 1. The population slope is still larger "
    "than the within-family one. What does that say about reading the gap between the two as 'genetic nurture'?",
]


def run(seed=0):
    out = labs.Lab()
    rng = lambda k: np.random.default_rng(seed + k)  # noqa: E731
    true = dict(a2=0.5, c2=0.2, e2=0.3)

    # 1. many small genes
    for L in (1, 5, 50):
        k, p = G.allele_sum(L)
        out.row(f"{L} gene(s): kinds of people; share within one step of the middle", f"{len(k)}; {p[abs(k - L) <= 1].sum():.2f}")
    mid, child = G.midparent_offspring(60_000, 0.6, 0.4, rng(1))
    slope = float(np.polyfit(mid, child, 1)[0])
    out.row("children on their parents' average: slope (planted heritability 0.6)", f"{slope:.2f}")
    assert abs(slope - 0.6) < 0.03

    # 2. twins
    d = G.twin_study(40_000, 40_000, **true, rng=rng(2))
    f = G.falconer(d.r_mz, d.r_dz)
    out.row("twin correlations, identical and fraternal (planted .70 and .45)", f"{d.r_mz:.2f}, {d.r_dz:.2f}")
    out.row("Falconer: genes, shared home, the rest (planted .5, .2, .3)", f"{f['h2']:.2f}, {f['c2']:.2f}, {f['e2']:.2f}")
    one = G.twin_study(1_000, 1_000, **true, rng=rng(3))
    fit = G.ace_fit(one)
    out.row("one study of 1,000 + 1,000 pairs, by maximum likelihood", f"{fit['a2']:.2f}, {fit['c2']:.2f}, {fit['e2']:.2f}")
    out.row("standard error of Falconer's h2 with 50, 200, 1,000, 5,000 pairs of each kind",
            ", ".join(f"{G.falconer_se(0.7, 0.45, n, n):.2f}" for n in (50, 200, 1000, 5000)))
    assert abs(f["h2"] - 0.5) < 0.04 and abs(f["c2"] - 0.2) < 0.04

    # 3. each assumption broken
    cases = [("identical twins treated more alike", dict(true), dict(mz_extra=0.4)),
             ("like marries like", dict(true), dict(assort=0.5)),
             ("genes that do not simply add", dict(a2=0.2, c2=0.1, e2=0.3), dict(d2=0.4)),
             ("parents' genes shape the home", dict(true), dict(rge=0.5))]
    est = {}
    for k, (name, comp, kw) in enumerate(cases):
        t = G.twin_study(40_000, 40_000, **comp, **kw, rng=rng(10 + k))
        est[name] = G.falconer(t.r_mz, t.r_dz)
        out.row(f"{name}: Falconer's genes and home", f"{est[name]['h2']:.2f}, {est[name]['c2']:.2f}")
    ad = G.adoption_study(60_000, **true, rng=rng(20))
    out.row("adoption: adoptive siblings, parent and child apart, identical twins apart",
            f"{ad['adoptive_siblings']:.2f}, {ad['parent_child_apart']:.2f}, {ad['mz_apart']:.2f}")
    assert est["identical twins treated more alike"]["h2"] > 0.65 and est["genes that do not simply add"]["c2"] < 0
    assert abs(ad["mz_apart"] - 0.5) < 0.03

    # 4. what heritability is not
    fields = G.two_fields(20_000, rng=rng(30))
    out.row("two fields: heritability within each; the gap; the genetic part of the gap",
            f"{fields['h2_rich']:.2f}, {fields['h2_poor']:.2f}; {fields['gap']:.1f}; {abs(fields['genetic_gap']):.2f}")
    out.row("pooled heritability of the two fields (0.9 within each)", f"{0.9 / (1 + 1.5 ** 2):.2f}")

    # 5. candidate genes
    out.row("a variant explaining 0.02%: people for 80% power at .05; at 5e-8", f"{G.n_for_r2(0.0002):,}; {G.n_for_r2(0.0002, alpha=5e-8):,}")
    out.row("... the chance of detecting it with 1,000 people", f"{100 * G.power_for_r2(1000, 0.0002):.0f}%")
    g = rng(40)
    studies = [G.candidate_gene_study(800, g) for _ in range(600)]
    planned = np.mean([s["planned"] < 0.05 for s in studies])
    best = np.mean([s["smallest"] < 0.05 for s in studies])
    out.row("a gene that does nothing: studies significant as planned; with the best of 18 analyses",
            f"{100 * planned:.0f}%; {100 * best:.0f}%")
    assert planned < 0.09 and best > 0.25

    # 6. a genome-wide scan and a score
    X = G.simulate_genotypes(12_000, 1_500, rng(50))
    y, beta = G.polygenic_trait(X, 0.5, 300, rng(51))
    line = 0.05 / X.shape[1]
    for n in (1_000, 4_000, 10_000):
        res = G.gwas(X[:n], y[:n])
        hit = res["p"] < line
        out.row(f"{n:,} people: hits of 300 real positions; false hits", f"{int((hit & (beta != 0)).sum())}; {int((hit & (beta == 0)).sum())}")
    res = G.gwas(X[:10_000], y[:10_000])
    score = G.polygenic_score(X[10_000:], res["beta"])
    r2 = float(np.corrcoef(score, y[10_000:])[0, 1] ** 2)
    out.row("a score built on 10,000 people, tested on 2,000 others: variance predicted; the formula",
            f"{100 * r2:.0f}%; {100 * G.expected_r2(10_000, 1_500, 0.5):.0f}%")
    assert abs(r2 - G.expected_r2(10_000, 1_500, 0.5)) < 0.07

    # 7. within and between families; choosing among embryos
    fam = G.sibling_design(200_000, rng(60), direct=0.3, nurture=0.4)
    out.row("a score's effect between strangers and between siblings (direct effect 0.3)",
            f"{fam['population']:.2f}, {fam['within']:.2f}")
    st = G.stratified_association(4_000, rng(61))
    out.row("a variant with no effect in two pooled populations: p pooled; p within each",
            f"{st['pooled']:.0e}; {st['within_a']:.2f}, {st['within_b']:.2f}")
    out.row("expected gain in IQ points from the best of 10 and of 100 embryos (score predicts 3.6% between siblings)",
            f"{G.embryo_gain(10, 0.036):.1f}, {G.embryo_gain(100, 0.036):.1f}")
    assert abs(fam["within"] - 0.3) < 0.02 and st["pooled"] < 1e-8
    out.note = ("Twin correlations give back the planted shares when the design's assumptions hold, slowly: a "
                "heritability known to a tenth needs thousands of pairs. Each assumption that fails moves the "
                "estimate, two of them toward the genes and two toward the home. Heritability belongs to a "
                "population in its environments: pool two fields and it falls from 0.9 to 0.28 with no gene "
                "changed. A variant of realistic size is invisible to a study of a thousand, and a flexible "
                "analysis finds a gene that does nothing a third of the time. A genome-wide scan with a corrected "
                "threshold finds only real positions, and misses most of them. A score predicts new people about "
                "as well as the formula says, and its effect between siblings is the direct one.")

    fig, ax = labs.figure(2, size=(11, 4.2))
    ax[0].scatter(d.mz[:400, 0], d.mz[:400, 1], s=6, color=labs.BLUE, alpha=0.6, label=f"identical, r = {d.r_mz:.2f}")
    ax[0].scatter(d.dz[:400, 0], d.dz[:400, 1], s=6, color=labs.PINK, alpha=0.6, label=f"fraternal, r = {d.r_dz:.2f}")
    ax[0].set(title="Twin pairs with planted shares .5, .2, .3", xlabel="one twin", ylabel="the other twin")
    ax[0].legend(loc="upper left", fontsize=8)
    lp = -np.log10(np.maximum(res["p"], 1e-300))
    cols = np.where(beta != 0, labs.GREEN, labs.GREY)
    ax[1].scatter(np.arange(len(lp)), np.minimum(lp, 40), s=4, c=cols)
    ax[1].axhline(-np.log10(line), color=labs.PINK, lw=1.2, ls="--")
    ax[1].set(title="A scan of 1,500 positions in 10,000 people (green: real)", xlabel="position",
              ylabel="-log10 p")
    out.fig = fig
    return out

Now change it

  1. In twin_study, set mz_extra to 0.2, 0.4 and 0.6 and record Falconer's h2. Write the estimate as a formula in a2, e2 and mz_extra, and say how large mz_extra would have to be for a trait with no genetic variance to show a 'heritability' of 0.3.
  2. Run the genome-wide scan with 1,000, 4,000 and 16,000 people and, for the hits at each size, compare the estimated effects with the true ones. Why are the first hits exaggerated, and why does the exaggeration fade?
  3. In sibling_design, set nurture to 0 and strata_gap and strata_env to 1. The population slope is still larger than the within-family one. What does that say about reading the gap between the two as 'genetic nurture'?

Problems, with solutions

Try each problem before opening its solution.

1. In a study of 250 identical and 250 fraternal pairs the correlations are .62 and .40. Give Falconer's three shares. The standard error of each correlation is about (1 − r²)/√n: can this study tell the shared home's share from zero?

Solution

h² = 2(.62 − .40) = .44; c² = 2(.40) − .62 = .18; e² = 1 − .62 = .38. The standard errors of the two correlations are (1 − .3844)/√250 = .039 and (1 − .16)/√250 = .053. The shared home's share is 2 r_F − r_I, so its standard error is √(4 × .053² + .039²) = .113, and .18 is 1.6 standard errors from zero: no. The heritability's standard error is 2√(.039² + .053²) = .13, so the study says "somewhere between about .2 and .7". A twin study of this size settles that the trait is heritable and very little else.

2. A trait has a² = 0.6 and no shared home, but spouses resemble each other, so fraternal twins share 0.6 of A, not 0.5. What do the two twin correlations become, and what does Falconer's formula report?

Solution

Identical twins: r_I = a² = .60. Fraternal twins: r_F = .6 × .6 = .36. The formula reports h² = 2(.60 − .36) = .48 and c² = 2(.36) − .60 = .12. Twelve points of genetic variance have been filed under "shared home", because the formula's one half was too small. Assortative mating makes twin studies understate genes and invent a home effect; the equal-environments failure does the opposite; a real study has both.

3. In each of two fields the heritability of plant height is 0.9 and the variance is 1; the fields' means differ by 3. What is the heritability in the two fields pooled, half from each? What does that say about pooling populations?

Solution

The pooled variance is the variance within fields plus the variance between them: 1 + (3/2)² = 3.25. The genetic variance is still 0.9, so the pooled heritability is 0.9/3.25 = .28. No gene changed. Heritability fell from .9 to .28 because an environmental difference was added to the population being described. A heritability belongs to a population in its range of environments, and the gap between the fields, which is entirely environmental, sits inside a population whose "heritability" could be quoted to argue the opposite.

4. A variant explains 0.02% of the variance of a trait. How many people give an 80% chance of detecting it at p < .05? At p < 5 × 10⁻⁸? What is the chance with 300 people?

Solution

For a correlation of √r², n ≈ (z_{α/2} + z_power)² (1 − r²)/r². With r² = .0002: at .05, (1.960 + 0.842)² × .9998/.0002 = 39,237. At 5 × 10⁻⁸ the critical z is 5.451, so (5.451 + 0.842)²/.0002 = 197,966. With 300 people the test statistic has mean √(300 × .0002) = 0.245, and the chance of passing ±1.96 is Φ(0.245 − 1.96) + Φ(−0.245 − 1.96) = .043 + .014 = 5.7%: barely more than the 5% a variant with no effect at all would give. genes.n_for_r2 and genes.power_for_r2 do this arithmetic.

5. A genome-wide study makes 10⁶ independent tests of variants that do nothing. How many pass at p < .05? At p < 5 × 10⁻⁸? A score predicts 14% of a trait: what is the chance that someone in its top tenth is above the median?

Solution

At .05: 50,000 false hits. At 5 × 10⁻⁸: 0.05, so one such study in twenty has a single false hit. For the score, the correlation is √.14 = .374. For a person whose score is z standard deviations up, the trait is normal with mean .374 z and standard deviation √.86 = .927, so the chance of being above the median is Φ(.374 z/.927). In the top tenth z averages 1.75, giving about Φ(.71) = .76; the film's simulation gives 76%. One in four of the people the score ranks highest is below average.

6. With explainer.psychology.psyche.genes: run twin_study with mz_extra from 0 to 0.6 and plot Falconer's h². Then use sibling_design to find the nurture that makes the within-family effect 40% smaller than the population effect.

Solution
import numpy as np
from explainer.psychology.psyche import genes as G
for m in (0.0, 0.2, 0.4, 0.6):
    d = G.twin_study(100_000, 100_000, 0.5, 0.2, 0.3, mz_extra=m, rng=np.random.default_rng(1))
    print(m, round(G.falconer(d.r_mz, d.r_dz)["h2"], 2))        # 0.5, 0.62, 0.74, 0.86
out = G.sibling_design(400_000, np.random.default_rng(2), direct=0.3, nurture=0.4)
print(out["population"], out["within"], out["ratio"])            # 0.50, 0.30, 0.60

The estimate is a² + 2 m e²: each tenth of the unshared variance that identical twins secretly share adds 0.06 to the "heritability". In the sibling design the population slope is direct + nurture/2 and the within-family slope is direct, so a ratio of 0.6 needs nurture = (4/3) × direct.

7. ★ Design the study that would tell a direct effect of a child's genes from an effect of the home their parents' genes made, and say what result would count against genetic nurture.

Three designs attack it from different sides, and the answer is their agreement. (a) Trios: genotype both parents and the child, and split each parent's alleles into those passed on and those not. The alleles not passed on can act only through the parents; a score built from them should predict the child's outcome if genetic nurture is real, after controls for ancestry. (b) Adoption: the adoptive parents' scores cannot reach the child through inheritance at all; if they predict the adoptee's schooling, that is nurture; if only the birth parents' scores do, it is transmission. (c) Siblings: the difference between two siblings' scores is Mendel's lottery, so the within-family slope is the direct effect; the gap between it and the population slope bounds everything else (nurture, stratification, assortative mating together). Against genetic nurture would count: a non-transmitted score with no association in large samples; adoptive parents' scores that predict nothing; within- and between-family slopes that agree. Fix the outcome, the score and the analysis in advance, power the study for a within-family effect a third smaller than the published one, and say beforehand how small an effect you would call zero.

Notes and sources

Where it comes back

Reasoning about cheats as a test of an evolutionary claim: Part 24. How people understand a risk, the counsellor's problem: Part 26. Temperament and what parents do: Part 30. Intelligence, its heritability across wealth and age, and the history of eugenics: Part 32. Personality, where twin and family studies disagree: Part 33. Mate preferences across cultures and the rival accounts: Part 37. The genetics of depression, psychosis and addiction: Parts 40 and 41. Path diagrams fitted in earnest: Part 44. Psyche's genes module supplies the twin and family simulators those parts use.

Sources

Books. V. S. Knopik, J. M. Neiderhiser, J. C. DeFries and R. Plomin, Behavioral Genetics (7th ed., 2017). K. P. Harden, The Genetic Lottery (2021). D. S. Falconer and T. F. C. Mackay, Introduction to Quantitative Genetics (4th ed., 1996). D. J. Kevles, In the Name of Eugenics (1985).

Papers.

  • T. J. Bouchard, D. T. Lykken, M. McGue, N. L. Segal and A. Tellegen, "Sources of human psychological differences: the Minnesota Study of Twins Reared Apart", Science 250 (1990) 223–228.
  • F. Galton, "The history of twins, as a criterion of the relative powers of nature and nurture", Fraser's Magazine 12 (1875) 566–576; Hereditary Genius (1869).
  • R. A. Fisher, "The correlation between relatives on the supposition of Mendelian inheritance", Transactions of the Royal Society of Edinburgh 52 (1918) 399–433.
  • T. J. Bouchard and M. McGue, "Familial studies of intelligence: a review", Science 212 (1981) 1055–1059.
  • T. J. C. Polderman et al., "Meta-analysis of the heritability of human traits based on fifty years of twin studies", Nature Genetics 47 (2015) 702–709.
  • E. Turkheimer, "Three laws of behavior genetics and what they mean", Current Directions in Psychological Science 9 (2000) 160–164. C. F. Chabris, J. J. Lee, D. Cesarini, D. J. Benjamin and D. I. Laibson, "The fourth law of behavior genetics", Current Directions in Psychological Science 24 (2015) 304–312.
  • E. Turkheimer, A. Haley, M. Waldron, B. D'Onofrio and I. I. Gottesman, "Socioeconomic status modifies heritability of IQ in young children", Psychological Science 14 (2003) 623–628.
  • C. M. A. Haworth et al., "The heritability of general cognitive ability increases linearly from childhood to young adulthood", Molecular Psychiatry 15 (2010) 1112–1120.
  • NCD Risk Factor Collaboration, "A century of trends in adult human height", eLife 5 (2016) e13410.
  • P. F. Sullivan, K. S. Kendler and M. C. Neale, "Schizophrenia as a complex trait", Archives of General Psychiatry 60 (2003) 1187–1192. S. V. Faraone and H. Larsson, "Genetics of attention deficit hyperactivity disorder", Molecular Psychiatry 24 (2019) 562–575. A. R. Branigan, K. J. McCallum and J. Freese, "Variation in the heritability of educational attainment", Social Forces 92 (2013) 109–140. T. Vukasović and D. Bratko, "Heritability of personality", Psychological Bulletin 141 (2015) 769–785.
  • A. Caspi et al., "Influence of life stress on depression: moderation by a polymorphism in the 5-HTT gene", Science 301 (2003) 386–389. N. Risch et al., "Interaction between the serotonin transporter gene (5-HTTLPR), stressful life events, and risk of depression", JAMA 301 (2009) 2462–2471.
  • C. F. Chabris et al., "Most reported genetic associations with general intelligence are probably false positives", Psychological Science 23 (2012) 1314–1323.
  • R. Border et al., "No support for historical candidate gene or candidate gene-by-interaction hypotheses for major depression across multiple large samples", American Journal of Psychiatry 176 (2019) 376–387.
  • C. A. Rietveld et al., "GWAS of 126,559 individuals identifies genetic variants associated with educational attainment", Science 340 (2013) 1467–1471. J. J. Lee et al., "Gene discovery and polygenic prediction from a genome-wide association study of educational attainment in 1.1 million individuals", Nature Genetics 50 (2018) 1112–1121. A. Okbay et al., "Polygenic prediction of educational attainment within and between families from genome-wide association analyses in 3 million individuals", Nature Genetics 54 (2022) 437–449.
  • A. Kong et al., "The nature of nurture: effects of parental genotypes", Science 359 (2018) 424–428.
  • L. J. Howe et al., "Within-sibship genome-wide association analyses decrease bias in estimates of direct genetic effects", Nature Genetics 54 (2022) 581–592.
  • L. Yengo et al., "A saturated map of common genetic variants associated with human height", Nature 610 (2022) 704–712.
  • A. R. Martin et al., "Clinical use of current polygenic risk scores may exacerbate health disparities", Nature Genetics 51 (2019) 584–591.
  • E. Karavani et al., "Screening human embryos for polygenic traits has limited utility", Cell 179 (2019) 1424–1435.
  • D. M. Buss, "Sex differences in human mate preferences: evolutionary hypotheses tested in 37 cultures", Behavioral and Brain Sciences 12 (1989) 1–49. S. J. Gould and R. C. Lewontin, "The spandrels of San Marco and the Panglossian paradigm", Proceedings of the Royal Society B 205 (1979) 581–598.
  • B. T. Heijmans et al., "Persistent epigenetic differences associated with prenatal exposure to famine in humans", PNAS 105 (2008) 17046–17049. I. C. G. Weaver et al., "Epigenetic programming by maternal behavior", Nature Neuroscience 7 (2004) 847–854.
  • A. A. S. Weir, J. Chappell and A. Kacelnik, "Shaping of hooks in New Caledonian crows", Science 297 (2002) 981.
About this partfrom its README

In February 1979 two men met in Ohio for the first time since they were a few weeks old. They were identical twins, adopted by different families, and they were thirty-nine. As the newspapers told it, both were called Jim, both had married a Linda and then a Betty, and each had owned a dog called Toy. As evidence the story is worth almost nothing: nobody wrote down beforehand what would be compared, and two strangers compared on two hundred things will share about ten of them. The design behind the story is another matter. Identical twins raised in different homes share their genes and not their home, and a psychologist in Minnesota spent the next twenty years measuring pairs like them on measures fixed in advance.

This part asks how much of who a person is was inherited, and, harder, what that question means. The route: why a family tree cannot separate genes from a home; how many small genes add up to a bell curve, and the bookkeeping of variance that Fisher introduced; the twin design, its four-line formula and its path diagram; the same design on the Pool, where the truth is planted, first working and then failing as each of its four assumptions is switched off; six traits whose heritability the viewer guesses; what heritability is not (not fixedness, not about groups, not about a person, not a constant); the three laws of behaviour genetics and the puzzle of the shared home; the decade of candidate genes and why its findings were not there; genome-wide association, a million tests at once; what a polygenic score can say about groups and about one person, and why it is smaller inside families; evolution as a source of hypotheses and of stories. The practice chapter does the arithmetic of consumer scores and embryo selection; the frontier is the family itself, and whose genomes have been studied.

What is computed and built
  • explainer/psychology/psyche/genes.py: the sum of L loci; families under the infinitesimal model with switches for unequal environments, assortative mating, dominance and gene-environment correlation; Falconer's estimates and their standard error; a maximum-likelihood ACE fit; adoption and parent-offspring designs; Lewontin's two fields; power for one variant; a flexibly analysed null candidate gene; genotypes, a polygenic trait, a genome-wide scan and polygenic scores; the sibling design with genetic nurture and stratification; the expected gain from choosing among embryos; coincidences among strangers. Tested in tests/psychology/test_genes.py against closed forms and the module's own planted answers.
  • The Ledger gains three rows and the Archive twenty-three datasets.
  • The series' first path diagram (the ACE model); the notation returns in Part 44.
Chapter notes
# Chapter What it does
0 Two men called Jim The reunion; coincidences among strangers; the design behind the anecdote; objectives
1 Nature and nurture Galton's families; two worlds with the same parent-child correlation, and what adoption shows; eugenics named
2 From peas to bell curves Mendel against the bell curve; 1, 2, 5 and 50 genes; a score in three parts; regression to the mean and its slope
3 The logic of twins Two kinds of twins; two clouds of points; Falconer's four lines; the path diagram; the classic data
4 On the Pool: when the design is right, and when it is wrong 2,000 studies at each size; one study fitted by maximum likelihood; four assumptions switched off; adoption and twins apart as checks
5 On you: guess the heritability Six traits, guessed and then revealed
6 What heritability is not Height in a century; seed in two fields; the rectangle; heritability against the spread of environments, wealth and age
7 Three laws and a puzzle Turkheimer's laws and fifty years of twin studies; the shared home that counts for little; what is in the remainder
8 The candidate-gene decade The serotonin transporter; what a thousand people can detect; a null gene analysed 18 ways; the tests of 2009, 2012 and 2019
9 A million tests One regression a position and the line at 5 × 10⁻⁸; a miniature genome at three sample sizes; the real history
10 What a polygenic score can say Building and testing a score; groups against one person; smaller within families; missing heritability; epigenetics
11 Evolution as a source of hypotheses The second "why"; 37 cultures; just-so stories and what a testable claim needs; a crow and a wire
12 The Ledger Twin heritability, candidate genes, and the score for schooling
13 In practice: what a genetic test can deliver Counselling for single genes; a consumer score; choosing among embryos; six questions
14 Frontier: inside the family Stratification; Mendel's lottery between siblings; whose genomes; four open questions
Recap, problems, and the road ahead Ten lines; what today adds to the reply to Kant; payoffs; problems; references; Part 10
NotesWhere the numbers come from
What Source
The "Jim twins" (reunited 1979 at 39; the listed coincidences); about 70% of IQ variance going with genes in twins reared apart Bouchard et al. (1990), from summaries and press accounts; registered in SOURCES.md
Hereditary Genius (1869), the twin questionnaire (1875), "eugenics" coined (1883) Galton, from histories of the twin method
Many factors of small effect give continuous variation (1918) Fisher (1918), from histories
111 studies of intelligence-test scores: identical twins .86, fraternal twins .60 Bouchard and McGue (1981), from the abstract; the .60 is an open check
17,804 traits, 14,558,903 twin pairs, mean heritability 49%, 69% of traits fitting an additive model Polderman et al. (2015), from the abstract
The three laws, and the fourth Turkheimer (2000); Chabris et al. (2015)
Among poor families the shared home took 60% of the differences in children's IQ and genes almost none Turkheimer et al. (2003), from the abstract
Heritability of general cognitive ability: 41%, 55%, 66% at 9, 12 and 17 Haworth et al. (2010), from the abstract
Height gained in a century: 20.2 cm (South Korean women), 16.5 cm (Iranian men) NCD-RisC (2016), from the abstract
Six twin heritabilities (schooling .40, personality .47, cognitive ability at 17 .66, ADHD .74, schizophrenia .81) Branigan et al. (2013); Vukasović and Bratko (2015); Haworth et al. (2010); Faraone and Larsson (2019); Sullivan et al. (2003)
The serotonin-transporter interaction (2003) and its pooled test (2009: 14 studies, more than 14,000 people) Caspi et al. (2003); Risch et al. (2009)
12 variants for intelligence: 1 of 32 tests significant, 10 to 15 expected Chabris et al. (2012), from the abstract
18 candidate genes for depression, samples of 62,138 to 443,264, none supported Border et al. (2019), from the abstract
Schooling: 126,559 people and 3 positions (0.02% each, about a month a copy); 1.1 million and 1,271; 3 million and 3,952; scores predicting 11–13% and 12–16%; effects about 40% smaller within families; 7–10% for cognitive performance Rietveld et al. (2013); Lee et al. (2018); Okbay et al. (2022), from the abstracts
Non-transmitted alleles have 29.9% of the transmitted alleles' effect on schooling Kong et al. (2018), from the abstract
178,086 siblings; smaller within-family estimates for schooling, cognition, height, depressive symptoms, smoking Howe et al. (2022), from the abstract
Height: all common variants reach about 45% (40% for the 12,111 found); twins about 80% Yengo et al. (2022), from the abstract; the twin figure is the textbook one
Scores about 4.5 times less accurate in African and about 2 times in East Asian ancestry; about 79% of participants European Martin et al. (2019), from summaries and the preprint
Choosing the best of ten embryos: about 2.5 IQ points Karavani et al. (2019), from summaries
10,047 people, 37 cultures; 36 of 37 and 37 of 37 Buss (1989), from summaries
Fewer methyl tags on IGF2 six decades after the Dutch famine (60 people); maternal care and methylation in rats Heijmans et al. (2008); Weaver et al. (2004), from the abstracts
Betty the crow (2002), and wild crows' routine tool bending (2016) Weir et al. (2002), from accounts of both studies

Everything else is computed by compute.py with Psyche's genes module. The twin registry is simulated under the infinitesimal model with planted shares of 0.5 (additive genes), 0.2 (shared home) and 0.3 (the rest); "the Pool's twin registry" in the film means these simulated families. The example study in chapter 4 is chosen by rule (of 101 studies of 1,000 + 1,000 pairs, the one with the median estimate) and its intervals are bootstrap percentiles. The chances in the hook's coincidence count (200 comparisons, 1 in 20 each) are an illustration and are said to be. The miniature genome has 2,500 unlinked positions, 500 of them causal, and a trait with a heritability of 0.5; its significance line is 0.05 / 2,500. The embryo calculation uses the top of the published range for cognitive performance (10%) and the published within-family shrinkage (40%).

Notes
Finding Original Status
On almost every psychological trait, identical twins are more alike than fraternal twins Bouchard and McGue 1981 replicated
Common variants in a few named genes explain who becomes depressed after stress, or who scores higher on tests Caspi and colleagues 2003 failed
A score added up from many common gene variants predicts how far a person goes in school Rietveld and colleagues 2013 replicated

Shown without a row, with the reason recorded in explainer/psychology/ledger.py: the Jim twins and the Minnesota study (an anecdote and the study it began), Galton and Fisher (history and theory), Turkheimer's laws and the table of heritabilities (summaries whose evidence is the first row), the heritability that depends on wealth and on age (entered with intelligence in Part 32), the century of height, genetic nurture, the within-sibship scan, height's variants and the portability of scores (methods results at the frontier), the embryo simulation, mate preferences in 37 cultures (entered in Part 37), the famine and methylation, and Betty the crow.

Notes

Before the narrated master:

  • Bouchard et al. (1990) was not read. The number of reared-apart pairs differs between secondary sources and is not given in the film; "about seventy percent" is the study's headline as summarized. The Jim twins' details (the date, Linda and Betty, the sons' names, the dog) are from popular accounts and are told as "the newspapers told it"; sources differ on whether they were separated at three or four weeks, so the film says "a few weeks".
  • Galton: that Hereditary Genius (1869) surveyed judges, statesmen, scientists and poets is from memory of the book's chapters; the twin questionnaire's date (1875) and the coining of "eugenics" (1883) are from histories. "Within fifty years it was law in many countries" summarizes sterilization and immigration laws of 1907 to the 1930s and is told in Part 32.
  • The comparison of identical with fraternal twins "first made in the nineteen-twenties" (Merriman, Siemens) is from histories found by search; the names are not used in the film.
  • Bouchard and McGue (1981): the .86 for identical twins reared together is confirmed by a paper that cites it; the .60 for fraternal twins is from memory of the paper's figure. If it is wrong, the shares shown (.52, .34, .14) change with it.
  • Lewontin's two-fields picture is attributed from memory (1970); the film calls it "a picture due to the geneticist Richard Lewontin".
  • Height's twin heritability of "about 0.8" in well-fed countries is the textbook figure. Phenylketonuria as a single-gene condition prevented by diet is textbook medicine.
  • Turkheimer et al. (2003): the film uses the abstract's wording (60% shared environment and genes close to zero among impoverished families; the reverse among affluent ones). "Later samples disagree" summarizes mixed replications; the meta-analysis usually cited (Tucker-Drob and Bates 2016) was not checked.
  • "Adoptive brothers and sisters are by adulthood hardly more alike in personality than strangers" summarizes adoption studies from memory (Plomin and Daniels 1987; Loehlin's Texas project); no number is shown.
  • Caspi et al. (2003): the cohort's size is not given; "one of the most celebrated findings of its decade" is a characterization. Risch et al. (2009): 14 studies and "more than 14,000" people are from a university summary (14,250 in the paper, from memory).
  • The "chopsticks gene" is the standard teaching example of stratification (Hamer and Sirota 2000, from memory).
  • Kong et al. (2018): "in Iceland" follows the authors' affiliation (deCODE); the abstract as retrieved does not name the population.
  • Martin et al. (2019): the 4.5-fold figure is from a news summary of the paper, the 2-fold figure for East Asian ancestry from the preprint's "2- to 5-fold", and 79% European from a truncated excerpt.
  • "About as good as published scores get" for a score predicting 10% of cognitive performance refers to Lee et al. (2018); later scores should be checked. Karavani et al.'s 2.5 points is for ten embryos, from summaries.
  • Buss (1989): counts from secondary summaries; page range from the journal listing.
  • Gould and Lewontin (1979) and the phrase "just-so stories" are from memory of the paper.
  • Betty the crow: the 2016 field study's reference (Rutz and colleagues, Royal Society Open Science) is from memory. Octopuses are mentioned without numbers.
  • The outro's Mammoth Cave story (Kleitman and a student, 1938, a 28-hour day) is from the syllabus and will be verified with Part 10.

Companion material in this repository

The syllabus's plan for this partfrom SYLLABUS.md, the plan of record
  1. Hook: the "Jim twins" (1979) and the Minnesota study. Two strangers compared on 200 things share about ten; anecdote against design; about 70% of IQ variance in twins reared apart (Bouchard et al. 1990).
  2. Nature and nurture: Galton's families (1869) and the confound; two simulated worlds with the same parent-child correlation, told apart only by adoption; eugenics named, and deferred to Part 32.
  3. From peas to bell curves: Mendel against the bell curve; 1, 2, 5 and 50 loci (Fisher 1918); a score as A + C + E and heritability as a share of variance; regression to the mean, whose slope is the heritability.
  4. The logic of twins: two kinds of twins; Falconer's formula in four lines (0.50, 0.20, 0.30 recovered on the registry); the ACE model as a path diagram (the first in the series; returns in Part 44); 111 studies of test scores (Bouchard and McGue 1981).
  5. On the Pool: 2,000 studies at each of four sizes (50 pairs: 95% of estimates between −0.05 and 1.07); one study fitted by maximum likelihood with bootstrap intervals; four assumptions switched off (equal environments 0.75, assortative mating 0.48, dominance 0.80 with a negative home, gene-environment correlation a home of 0.35); adoptive siblings, parent and child apart, and twins apart as checks.
  6. On you: six traits, guessed and then revealed (language 0, schooling .40, personality .47, cognitive ability at seventeen .66, ADHD .74, schizophrenia .81; 49% across 17,804 traits).
  7. What heritability is not: not fixed (height rose 20 cm in a century), not about groups (seed from one sack in two fields), not about a person (the rectangle), not a constant (the spread of environments; Turkheimer et al. 2003; Haworth et al. 2010).
  8. Three laws and a puzzle: Turkheimer (2000) and Polderman et al. (2015); the shared home that counts for little; what is in the remainder; two cautions.
  9. The candidate-gene decade: the serotonin transporter (Caspi et al. 2003); a variant explaining 0.02% needs 39,237 people and a thousand give a 7% chance; a null gene analysed 18 ways is "significant" 38% of the time; the tests of 2009, 2012 and 2019 (Border et al.).
  10. A million tests: the line at 5 × 10⁻⁸; a miniature genome at 2,000, 6,000 and 20,000 people (4, 57 and 179 hits of 500, none false; the first hits 1.5 times too large); schooling: 3 positions, then 1,271, then 3,952.
  11. What a polygenic score can say: built and tested out of sample (39%, against a formula's 38%); a score predicting 14% puts 76% of its top tenth above the median; smaller between siblings (0.30 against 0.50) and genetic nurture (Kong et al. 2018); missing heritability; epigenetics in two careful minutes.
  12. Evolution as a source of hypotheses: the second "why"; 37 cultures (Buss 1989); just-so stories and what a testable claim needs; Betty the crow and her later qualification.
  13. The Ledger. 13. In practice: what a genetic test can deliver. 14. Frontier: inside the family.

Psyche: genes (explainer/psychology/psyche/genes.py): the sum of L loci; families under the infinitesimal model with switches for unequal environments, assortative mating, dominance and gene-environment correlation; Falconer's estimates and a maximum-likelihood ACE fit; adoption and parent-offspring designs; two fields; power for one variant and a flexibly analysed null gene; a genome-wide scan and polygenic scores; the sibling design with genetic nurture and stratification; the gain from choosing among embryos. On you: guess the heritability of six traits, in the film. The interactive shows the same trait in forty identical and forty fraternal pairs; the reader decides from the two correlations whether genes or the shared home account for more, and the page plots each trait against the lines "all genes" and "all home". Ledger: twins and the heritability of psychological traits (replicated); candidate genes for behaviour (failed); a polygenic score for years of schooling (replicated, about 40% smaller within families). Shown without rows, with reasons: the Jim twins, Galton, Fisher, the three laws, the heritability that depends on wealth and on age (due in Part 32), a century of height, the table of heritabilities, genetic nurture, the within-sibship scan, height's variants, portability, the embryo simulation, mate preferences (due in Part 37), the famine and methylation, and the crow. In practice: genetic counselling for single-gene conditions against polygenic scores; a consumer score that predicts 10% leaves a 67% chance of being above average for its top tenth and ±28 IQ points; choosing the best of ten embryos gains about 3 points (2.5 in Karavani et al. 2019) and of a hundred about 5; six questions for any claim about genes and behaviour. Frontier: stratification (the chopsticks gene, simulated); within-sibship genome-wide studies (Howe et al. 2022); whose genomes (Martin et al. 2019); the missing heritability, how genetic nurture works, the path from a variant to a behaviour, and what a score should be used for. Reading: Knopik et al., Behavioral Genetics; Falconer & Mackay; Harden, The Genetic Lottery; Kevles, In the Name of Eugenics; Galton 1875; Fisher 1918; Bouchard et al. 1990; Bouchard & McGue 1981; Polderman et al. 2015; Turkheimer 2000; Turkheimer et al. 2003; Haworth et al. 2010; Caspi et al. 2003; Risch et al. 2009; Chabris et al. 2012; Border et al. 2019; Rietveld et al. 2013; Lee et al. 2018; Okbay et al. 2022; Kong et al. 2018; Howe et al. 2022; Yengo et al. 2022; Martin et al. 2019; Karavani et al. 2019; Buss 1989; Gould & Lewontin 1979; Heijmans et al. 2008; Weir et al. 2002.

Build the film

python -m videos.psychology.psych9.compute        # the part's numbers, into .cache/psych9
python tools/build.py psych9                  # render and assemble the film
EXPLAINER_TTS=silent python tools/qa_scene.py psych9 Hook   # one chapter, silent, with a contact sheet

Scenes: videos/psychology/psych9. Setup: see the course page. Source of these notes: the README and the scenes' narration.

Build it
python -m videos.psychology.psych9.compute            # every number (about half a minute), into .cache/psych9/
python tools/qa_scene.py psych9 PoolTest              # one chapter, silent, at 480p, with a contact sheet
EXPLAINER_TTS=silent python tools/build.py psych9 -q l   # the whole part, silent preview
python tools/build.py psych9                          # 1080p30 with narration
python tools/qa_scene.py psych9 PoolTest --lang zh    # the Chinese edition of one chapter
python tools/make.py psych9                           # both editions, with the checks a long build needs
python -m videos.psychology.labs 9                    # the lab: twins, a broken assumption, a genome-wide scan
python tools/check_ledger.py psych9                   # every study shown has its Ledger row, or a reason
python -m pytest tests/psychology                     # Psyche's genes module, the Pool, the Ledger, the Archive

The Chinese edition is zh_lines.py (the narration, line by line) and the series table videos/psychology/psychology_text_zh.json (the text on screen); the terms are in PSYCHOLOGY_ZH_GUIDE.md.