Reading the Brain
What can a brain scan tell you about a mind?
In 2009 a dead salmon is put in a scanner, shown photographs of people, and found to have 'active' voxels: a test in every voxel, at one in a thousand, always finds something. A scan is the end of a chain, and the part walks it. One neuron has a tuning curve, the real signal through a keyhole. A scalp electrode hears only cells that are aligned and active together, so the EEG gives timing to the millisecond and no unique answer about place. Averaging pulls a five-microvolt wave out of twenty microvolts of noise at a rate of the square root of the number of trials, and one such wave, the N400, follows the meaning of a word. Magnetic resonance lines up protons, tips them, and reads an image from its Fourier transform; the functional scan measures oxygen in the blood, an echo that peaks five seconds after the neurons and follows their input more than their output. An experiment becomes a map by a regression in every voxel, of one task minus another. Then three ways a map misleads: the threshold (and the 2016 finding that cluster inference let through far more than 5%), choosing voxels by the correlation that is then reported, and reading the map backwards from region to mental state. Watching is not intervening: to know a region is needed you disturb it. The part ends with what scanning has settled, what is sold on its name, and how many people a brain study needs.
What you need. Part 3's reliability and attenuation, Part 4's regression, t test, Bayes' rule and forking paths, Part 2's permutation test, Part 5's impulse and Part 6's synaptic currents. The Fourier transform is used as a fact in chapter 4 and done properly in Analysis, Built.
- Hook
- a dead salmon in a scanner, 2009
- Ideas, models and mathematics
- one neuron's tuning curve, EEG and the inverse problem, averaging and the N400, MRI in five minutes, the BOLD signal as a convolution, the GLM, a hundred thousand tests, circular analysis, reverse inference, intervention, how many people a study needs
- Psyche gains
- a tuned cell, a toy head, a synthetic brain under each threshold
- On you
- which reported correlation is impossible?
What you will be able to do
Psych 101 and the major
- Say what each instrument measures, how far that is from an impulse, and what it gives up: a single unit, the EEG, structural and functional MRI.
- Explain why averaging finds an event-related potential, and what the N400 is.
- State three ways a brain map misleads, and the remedy for each.
Graduate
- Compute the noise left after averaging n trials, and the trials needed for a given precision.
- Convolve events with a haemodynamic response, build a design matrix, and fit a voxel by least squares.
- Compute the chance of a false alarm among N tests, a Bonferroni threshold, the ceiling on a correlation from two reliabilities, and a reverse inference by Bayes' rule.
Research
- Explain why selecting voxels by a correlation and then reporting it measures nothing, and simulate it.
- Say what sample a brain-behaviour association of a given size needs, and what small studies of small effects report.
Practice
- Tell an established use of a brain measure (epilepsy, sleep, presurgical mapping) from a product sold on the word 'brain'.
- Ask six questions of any claim that arrives with a picture of a brain.
Contents
Each chapter has a home level. Choose a track to see what to read and watch: Psych 101 and the major 51 min · Graduate 55 min · Research 61 min · Practice 55 min.
- 0A salmon in a scannerPsych 101 and the major4 min
- 1Listening to one neuronPsych 101 and the major3 min
- 2Voltages on the scalpPsych 101 and the major4 min
- 3Averaging out the noisePsych 101 and the major3 min
- 4MRI in five minutesPsych 101 and the major3 min
- 5Blood, and a slow echoPsych 101 and the major4 min
- 6The linear model of an experimentPsych 101 and the major4 min
- 7A hundred thousand testsPsych 101 and the major5 min
- 8Choosing voxels by the answerPsych 101 and the major4 min
- 9On you: which of these is impossible?Psych 101 and the major2 min
- 10Reading a mind backwardsPsych 101 and the major3 min
- 11From watching to interveningPsych 101 and the major4 min
- 12The LedgerPsych 101 and the major3 min
- 13In practice: what is sold, and what worksPractice4 min
- 14Frontier: how many people does a brain study need?Research6 min
- 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.
A salmon in a scannerPsych 101 and the major4 min
In 2009 a group of researchers in the United States put a salmon in a brain scanner. An Atlantic salmon, and, as their report takes care to say, not alive at the time. They showed the fish a series of photographs of people in social situations, and asked it to work out what emotion each person was feeling. Then they analysed the scans the way a good share of published studies did. Cut the image into small cubes, called voxels. Run a statistical test in every one. Call a voxel active if it passes at one in a thousand. And there it was. A small cluster of active voxels, in the brain of a dead fish, apparently thinking about human feelings.
The fish hadn't come back to life, and the scanner wasn't broken. The salmon was a statistics lesson, and you already know the statistics, from Part 4. A test at one in a thousand gives a false alarm one time in a thousand. That sounds safe. But run a thousand tests on pure noise, and the chance that at least one of them passes is percent. A brain image isn't a thousand tests. It's tens of thousands. Some voxels will pass by chance, in any brain, alive or dead. The researchers then applied the standard corrections for the number of tests, and the salmon's activity vanished. Their point wasn't about fish. By the count they cite, something like a quarter of the brain-imaging papers in the main journals at the time were still reporting results without that correction.
A brain scan in a newspaper looks like a photograph of someone thinking. It isn't a photograph. It's the last link of a chain. Neurons fire. Currents flow at their synapses. A few seconds later, the blood supply to that patch of tissue changes. That changes a magnetic signal. The signal is fitted with a statistical model, the fit is passed through a threshold, and what survives is painted onto a picture of a brain. Every one of those links rests on an assumption. And then there's one more step, the largest, which the picture doesn't show: from the coloured map to a statement about a mind. Part 7 read the brain through damage. This part reads it through instruments. We'll walk the chain link by link, so that you can see where it holds, and where, more than once, it has broken.
Part eight: reading the brain. We'll listen to one neuron, and see why an electrode on the scalp can hear only cells that act together. We'll pull a signal out of noise by averaging, and compute how fast that works. We'll do magnetic resonance imaging in five minutes, and meet the slow echo in the blood that a functional scan really measures. We'll build the linear model that turns an experiment into a map, and face the hundred thousand tests inside it. We'll see three ways a map misleads: the threshold, choosing voxels by the answer, and reading the map backwards. And we'll end with what scans have settled, what's being sold, and how many people a brain study needs.
What it does: The experiment; why it happened; the chain from a thought to a coloured map; objectives
1Listening to one neuronPsych 101 and the major3 min
The first link of the chain is one cell. In Part 5 we put a wire inside a giant axon. A finer wire can be parked next to a cell in a living brain, close enough to pick up each of its impulses, and you can listen to them through a loudspeaker. In the late nineteen-fifties David Hubel and Torsten Wiesel did that in the visual cortex of anaesthetized cats, and showed the cat patterns of light. They began with spots, because spots were what excited cells in the eye. The cortical cells mostly ignored them. Then, by their own account, a cell went off like a machine gun when the edge of a glass slide slid across the projector, throwing a line onto the screen. The cell wanted a line. And a line at one particular angle. Turn it, and the cell fell quiet. So here was a cell in a brain whose activity meant something you could state: there's an edge, here, tilted this way.
Make that a measurement. Here's a model cell of the same kind. Show it a line at its favourite angle, and in one second it fires about impulses. Thirty degrees off, about . At right angles to its favourite, , which is what it does with no stimulus at all. Now do it properly: every angle, several times each, count the impulses, and plot the average against the angle. The counts scatter, because a cell's firing is noisy, as Part 5 showed. Through them runs a smooth hill. That's the cell's tuning curve. It's the basic description of a sensory neuron, and it answers two questions at once. What is this cell about? The angle of an edge. And how does it say it? With its rate. Every cell in the first visual area has such a curve, each with its own favourite angle, and together they cover all of them.
Keep this as the standard everything else is measured against. A wire next to a cell gives you the real signal. Each impulse, to the millisecond, from a cell whose place you know. The cost is a hole in the skull. So nearly all of this work is in animals, and in people only when surgery is needed anyway. And it's a keyhole. One cell out of eighty-six billion, or, with today's probes, a few thousand at once. You learn a great deal about very little. So the rest of this part is about instruments that stay outside the head. Each of them pays for that politeness. The question to ask of every one is the same: what does it measure, how far is that from an impulse, and what was given up on the way?
What it does: Hubel and Wiesel's line of light; a tuning curve from Poisson counts; what a single cell gives and costs
2Voltages on the scalpPsych 101 and the major4 min
Now go outside the skull. In the nineteen-twenties, in Jena, a psychiatrist called Hans Berger pressed electrodes to the heads of his patients and of his own son, and connected them to the most sensitive instrument he could get. He found a voltage that rose and fell about ten times a second, when the person sat quietly with eyes closed. When they opened their eyes, or did a sum, it faded. He made his first recording in , and didn't publish until . The signal is millionths of a volt, a thousand times smaller than the impulse inside a neuron in Part 5. Hardly anyone believed him. It took until 1934, when Edgar Adrian's laboratory in Cambridge repeated it, for the brain wave to be accepted. Berger named his record the electroencephalogram. Everyone else calls it the EEG. You met its rhythm in Part 6, as two populations of cells swinging against each other.
What is that voltage? Not impulses. An impulse lasts a millisecond, and a neighbour's impulse a moment later doesn't line up with it. What adds up at a distance is the slower current that flows when a synapse is active, which makes each cell, for a few hundredths of a second, a tiny battery with a plus end and a minus end. Now it's a matter of arithmetic. If the batteries all point the same way and switch on together, their fields add. If they point every which way, they mostly cancel. A hundred aligned sources sum to a hundred. A hundred random ones sum to about ten, the square root. With a million sources, the aligned sum is about times larger. And the cortex is built to be aligned. Its large cells stand side by side like trees in a plantation, pointing at the surface. So the EEG is the synaptic input of large sheets of those cells, when it arrives in step. Everything else in the brain is electrically invisible from outside.
There's a second cost, and it's permanent. Here's a toy head, seen from the front, with nine electrodes on the scalp. Put one small source inside, and each electrode reads a voltage. That's the forward problem, from source to scalp, and it has one answer. Now the question a researcher faces: given the nine voltages, where was the source? Here's a quite different arrangement, several sources, some positive and some negative, spread across the head. Its nine voltages are identical, to the last decimal. That isn't an accident of the toy. There are more possible sources than electrodes, so there are whole patterns of sources that cancel at every electrode. Add any of them to a solution and you have another solution. Helmholtz proved this in the eighteen-fifties. So the EEG tells you when something happened, to the millisecond. Where it happened can't be read off. It can only be estimated, by adding assumptions about what sources are plausible.
What it does: Berger's rhythm; aligned sources add as N and random ones as its square root; two sets of sources with one scalp pattern
3Averaging out the noisePsych 101 and the major3 min
Now use that millisecond timing to ask a question about the mind. Show someone a word, and record the EEG for the next second. Here are three such trials. They look like noise, and mostly they are: the brain's own ongoing activity, about millionths of a volt. Hidden in each one is what the word added. In this model that's a wave of about microvolts, a quarter the size of the noise. It's drawn below, enlarged. You can't find it in any single trial. But it has one property the noise doesn't. It's locked to the word. It comes at the same moment after every word, with the same shape. The ongoing activity has no idea when the word appeared. So line the trials up on the word, and average.
Average ten trials, and the wave begins to show. Fifty, and it's clear. Two hundred, and the average lies almost on the hidden wave. The noise hasn't been removed from any trial. It's been cancelled against itself. And it cancels at a rate you can calculate, the same rate as every average in this series. The noise left after n trials is the noise in one trial, divided by the square root of n. The dots are measured on the simulated trials. The line is the formula. That square root is the economics of the whole method. To halve the noise you need four times the trials. To bring twenty microvolts down to one, you need . That's why an experiment of this kind shows people hundreds of words, and why its result is called an event-related potential: a potential that only exists as an average over events.
Here's the most famous use. In 1980 Marta Kutas and Steven Hillyard showed people sentences, one word at a time. Most ended sensibly. He spread the warm bread with butter. Some didn't. He spread the warm bread with socks. They averaged the EEG after the last word, separately for the two kinds of ending. After socks there's a negative wave that butter doesn't produce, largest about four hundred milliseconds after the word. It was named the N400. They had expected something else: the positive wave that follows any surprising event, like a rare tone, which is called the P300. A word printed in larger type produced a wave of that kind. A word with the wrong meaning produced this. And it's graded. The less expected the meaning, the larger the wave. So here's a quantity read off the scalp that follows understanding while it's happening, four tenths of a second after the word, long before the person could tell you anything. It goes on the Ledger today.
What it does: A wave hidden in single trials; averages of 10, 50 and 200; the square-root law; the N400
4MRI in five minutesPsych 101 and the major3 min
The other instrument uses a magnet, and you need to know just enough of how it works to know what its pictures are pictures of. Three steps. One. Your body is mostly water, and the nucleus of every hydrogen atom in it, a single proton, is a tiny magnet. Normally they point in all directions and cancel. Put a person in a strong field, sixty thousand times the Earth's, and a slight majority of the protons line up with it. They don't sit still. Each one wobbles around the field, like a spinning top, at a rate set by the field's strength. At three tesla, that's about a hundred and twenty-eight million times a second, a radio frequency. So send in a radio pulse at exactly that frequency. It tips the protons over. Switch it off, and as they swing back into line they broadcast a faint radio signal of their own. That signal is all the scanner ever hears.
Two. The signal fades, and how fast it fades depends on what the water is sitting in. The protons take a second or so to line up with the field again, and it's quicker in white matter, the brain's fatty cables, than in grey. And their signals drift out of step with one another within a tenth of a second, again at a rate that depends on the tissue. So if you read the signal at a well-chosen moment after the pulse, grey matter, white matter and fluid give different strengths. That difference is the contrast in the picture. An MRI scan is a map of how the water in each spot behaves, and nothing in it is a photograph. Remember the second kind of fading. The functional scan is built on it.
Three. How does a radio signal from the whole head turn into a picture? By making the field slightly stronger on one side of the head than the other. Then protons on one side wobble a little faster than those on the other, and where a proton is has been turned into the pitch of its signal. Work through the consequences and you find that each reading the scanner takes is the strength of one striped pattern across the head: so many stripes, at such an angle. The full set of readings is the picture's Fourier transform, which you can meet properly in Analysis, Built. Run the transform backwards and the picture appears. With only the coarsest eighth of the stripes, it's a blur. Each further batch adds finer detail. So a scan takes time, because the patterns are collected one after another. A whole brain at a resolution of a few millimetres takes a second or two. Hold on to that number as well.
What it does: Protons lined up and tipped; relaxation and contrast; gradients, k-space and the Fourier transform
5Blood, and a slow echoPsych 101 and the major4 min
So far that's a picture of anatomy. To watch a brain work, you need something in the picture that changes when neurons are active. In 1990 Seiji Ogawa found it, in the blood. The molecule that carries oxygen in a red blood cell is magnetically quiet while it holds its oxygen. Once it's handed the oxygen over, it's slightly magnetic, and it disturbs the field around the vessel. That makes nearby protons drift out of step faster, the second kind of fading from the last chapter, and the signal there drops. Now the surprise. When a patch of brain becomes active, its vessels open and it's sent more fresh blood than it needs. The used-up blood is flushed out. So in active tissue the signal goes up, by something like one percent. It's called the blood-oxygen-level-dependent signal, BOLD. Two years later, two groups used it to watch a human brain respond to a flashing light. That's functional MRI, and it's what nearly every picture of a working brain you've seen is made of.
And here's what that signal does in time. Suppose the neurons in a voxel fire a brief burst, over in a fraction of a second. For the first second or two, nothing. Then the fresh blood arrives, and the signal climbs to a peak about seconds after the neurons have finished. It falls back, dips a little below where it started, and takes twenty seconds or so to settle. So functional MRI doesn't see neurons. It sees a slow echo of them, in the plumbing. Compare the EEG: timing to the millisecond, and no secure place. This is the opposite bargain. Place to a few millimetres, and timing to a few seconds. There's no instrument yet that gives you both from outside the head.
To get from that echo to an experiment, you need one assumption, and it's a strong one. Suppose every event in the experiment, each picture, each word, sets off the same echo. And suppose echoes simply add. Then three events close together give a single hump, more than twice as high as one echo and smeared in time. If that's true, you can predict the whole time course of a voxel from nothing but the times of the events. Mathematically it's a convolution: the events, combined with the echo. Is it true? It was tested in the visual cortex in 1996, and it holds well, though not perfectly: very brief events give a bit more than their share. Nearly every functional imaging study rests on this line. It's the same move as Part 5's equations, a model of the instrument, and it deserves the same question. Does it predict what it wasn't fitted to?
One more link, and it's the one most often forgotten. What neural event does the blood follow? In 2001 Nikos Logothetis and his colleagues recorded with electrodes and a scanner at once, from the same patch of a monkey's visual cortex. The BOLD signal followed the slow currents, the ones that reflect input arriving at the synapses and being worked on locally, better than it followed the impulses the cells sent out. So a bright voxel means that more synaptic work is going on there, and synaptic work is what costs energy. It doesn't tell you that the region is sending a message. And inhibition is synaptic work too. A region that's being held down hard can light up. Keep that in mind when a headline says a region was activated.
What it does: The BOLD signal; a response that peaks at 5 s; responses add; what the signal follows
6The linear model of an experimentPsych 101 and the major4 min
Now an experiment. A person lies in the scanner and does a task for twenty seconds, rests for twenty, and so on, while an image is taken every two seconds. From the last chapter you can write down what a voxel that cares about the task should do: the on and off periods, convolved with the echo. That predicted curve is called a regressor. Here's the measured signal from one voxel. It's noisy, as always. Ask one question of it: what multiple of the prediction, added to a constant, fits this best? Least squares answers: a weight of . Divide the weight by its uncertainty and you have a t statistic, here . And here's a voxel somewhere else. Its best weight is , and its t is . Nothing. That's the whole analysis. It's the regression of Part 4, with a predictor built from the design of the experiment and the physiology of blood. The weight is how strongly this voxel followed the task.
Do that in every voxel and you have a map. To see what such a map is worth, we need a brain where we know the answer, so here is a synthetic one. A slice of voxels. In two patches, voxels in all, the signal really does follow the task, weakly. Everywhere else there's only noise, and the noise is smooth, so that neighbouring voxels resemble each other, as they do in a real scan. Run the regression in every voxel and colour each one by its t. The two patches show up. So do speckles where nothing is happening. Notice what the map is. It's not one finding. It's sixteen hundred separate tests laid side by side, and a real brain has a hundred times as many. The published picture comes from drawing a line: voxels above it get colour, voxels below it get none. Where to draw that line is the next chapter. It's where the salmon came from.
Before that, one thing about what a map can mean. A voxel's signal has no natural zero, so nobody maps activity. They map a difference. The task, minus a control. Reading a word aloud, minus looking at a word. What's left is said to be the brain areas for speaking. You've seen this before. It's Donders, in Part 1, subtracting one reaction time from another to time a single step of thought. It carries the same assumption, pure insertion: that adding the step of speaking leaves everything else, the seeing and the reading, exactly as it was. Part 1 showed how that can fail. So a map is only as good as its control task. And the most common control of all, lying still and doing nothing, isn't nothing. A resting brain is busy, with the things minds do when left alone. Some regions are reliably more active at rest than in almost any task.
What it does: One voxel fitted; the same fit everywhere gives a map; a map is a subtraction, with Donders' assumption
7A hundred thousand testsPsych 101 and the major5 min
Take the synthetic brain and switch its two patches off. Now it's a brain in which nothing responds to the task. A salmon. Fit the model in every voxel, and apply the rule that was common in 2009: a voxel is active if it passes at one in a thousand. This is the first such brain we generated, and there's a voxel lit. With tests at one in a thousand you expect to pass by luck. We made a thousand of these empty brains. percent of them show something. That's below what independent tests would give, because neighbouring voxels move together, but it's nowhere near the five percent a reader assumes. And this is one slice. A whole brain is about a hundred thousand voxels. At one in a thousand, that's about a hundred false voxels in every study, in every brain, dead or alive. The salmon wasn't a fluke. It was the expected result.
There are three standard ways to draw the line honestly, and each defines honest differently. The first says: I want only a five percent chance of even one false voxel in the whole map. The simplest version divides the threshold by the number of tests. On our empty brains it lets something through percent of the time. The second accepts some false voxels, and controls their share: of everything I colour, no more than five percent should be wrong. That's the false discovery rate. The third changes the question. Real activity comes in patches, and noise mostly comes in specks. So set a lenient bar for each voxel, and then demand that a whole cluster of neighbours pass together. How big must the cluster be? That depends on how smooth the noise is, and we'll come back to that. All three hold the empty brains near five percent. With no correction, it was .
Corrections aren't free. Put the two patches back, and apply each rule to the same data. The lenient threshold finds nearly all of the truly active voxels, of . On this brain it happened to add none that were false. On others it adds one or two. The strictest rule is safe, and it finds . It's missed . The false discovery rate and the cluster rule sit between. This is Part 4's trade, false alarms against misses, made a hundred thousand times at once. And it's the reason for a habit worth dropping. A voxel that didn't pass isn't a voxel where nothing happened. A map shows where the evidence cleared a bar. The blank parts are mostly where it didn't, and say little about what's there.
The cluster rule needs to know how big a cluster of noise can get, and for years the software worked that out from a formula. The formula assumes something about the noise: that how alike two voxels are falls off with distance like a bell curve. Real scanner noise doesn't. Its resemblance falls off more slowly, with a long tail, so noise makes bigger clumps than the formula expects. Here's that in miniature. Set the cluster size on bell-curve noise, and empty brains pass percent of the time, close to the five that was promised. Use the same size on noise with a long tail, and percent pass. In 2016 Anders Eklund and his colleagues ran the real test. They took resting scans of people, in whom no task was happening, and analysed them as if there'd been one, three million times, with the three most used programs. With common settings, up to seventy percent of those empty analyses found a cluster. Read that number carefully. It's the share of empty studies with at least one false cluster. It isn't the share of published findings that are false. And one method came through at five percent: shuffling the labels of the real data to find out what its own noise does. That's Part 2's permutation test. The programs, and the settings they recommend, were changed afterwards.
What it does: A brain of noise; three corrections; what each finds and misses; the cluster rule against real noise
8Choosing voxels by the answerPsych 101 and the major4 min
The second way a map misleads is quieter, and in 2009 it caused the loudest row the field has had. Edward Vul and three colleagues had been reading papers in social neuroscience, and something didn't add up. The typical study scanned a dozen or two people, gave them a questionnaire, and reported that activity in some region went with a trait, jealousy, anxiety, empathy, with a correlation of point eight or higher. You know from Part 3 that a correlation between two noisy measures has a ceiling, set by their reliabilities. These were above the ceiling. They were too good to be true. So Vul's group wrote to the authors and asked how the numbers had been computed. More than half said, in effect: we correlated every voxel with the questionnaire, kept the voxels that passed a threshold, and reported the correlation in those. The draft of their paper was called voodoo correlations. Here's why the name stuck.
Take simulated people. Give each a score, and a scan of voxels. Scores and scans are pure noise, unrelated by construction. Correlate every voxel with the score. The correlations pile up around zero, as they should, but with only sixteen people they spread a long way. Now keep the voxels whose correlation is above , which is about the usual one in a thousand. voxels pass. And their average correlation with the score is . It couldn't be anything else. You kept only the voxels above , so their average is above . The selection didn't find a strong relationship. It made one, out of nothing. And notice that the number carries no information about the brain at all. It's set by the threshold and the number of people.
There's a clean test for this, and it's also the cure. Scan the same people again, and measure the correlation in the new scans, in the voxels you chose from the old ones. When nothing is there, the chosen voxels show in the data they were chosen from, and zero in fresh data. Now put a real effect in: a true correlation of , in a few of the voxels. The circular analysis reports again. It gives nearly the same number whether the truth is nothing or something. Fresh data gives a small number, because most of the chosen voxels were still noise. So the rule is one you already know, from Part 4. Don't test a hypothesis on the data that suggested it. Choose with one half, measure with the other. A second group counted that year. Of imaging papers in five leading journals, had the same circle in at least one analysis. The authors of the criticized papers objected that their regions were real. Many probably are. But the size of an effect is a measurement, and those numbers weren't measurements.
What it does: Correlations that were too good; the same analysis on noise; fresh data as test and cure
9On you: which of these is impossible?Psych 101 and the major2 min
Your turn. Here are three results of the kind those papers reported. Each plot is sixteen people. Across is their score on a questionnaire. Upward is a measure taken from their brain scan. The correlations are point four five, point six two, and point eight eight. You're told two more things. The questionnaire's reliability is : give it twice, and the two sets of scores correlate . The brain measure's reliability is . One of these three results can't be right, whatever the brain is doing. Which one, and why? You have everything you need from Part 3. Take a few seconds.
The answer is C. Part 3 gave you the rule. Two measures can't correlate with each other more strongly than each correlates with itself. If the true quantities behind them were perfectly related, the correlation you'd observe is the square root of the product of the two reliabilities. Here that's . A and B are under the ceiling. They might be true. C, at point eight eight, is far above it. No brain could produce it with instruments this noisy. So when you meet one, there are two explanations left, and you've now seen both. The voxels were chosen by the correlation, or the sample was small and this is the lucky one that got published. And the ceiling is lower than most people think. When the reliability of common brain-scan measures was finally added up, in 2020, the average came out near point four. With a good questionnaire, that's a ceiling near , for a perfect relationship. Real ones are far from perfect.
What it does: Three results and two reliabilities; the ceiling on a correlation
10Reading a mind backwardsPsych 101 and the major3 min
The third way a map misleads isn't in the statistics. It's in the sentence written underneath. An imaging experiment runs forward. You control what people do, frighten them, say, and observe which regions respond. Fear, therefore amygdala. The sentence in the newspaper runs the other way. People looked at a politician's face, their amygdala responded, therefore they were afraid of him. Amygdala, therefore fear. Nobody measured that direction. It's an old mistake in logic. If it rains, the street is wet. But a wet street doesn't prove rain. Whether the backward step is any good depends on what else makes that region respond. And the amygdala responds to faces, to anything new, to rewards, to surprise. Russell Poldrack named this in 2006. He called it reverse inference, and he showed how to put a number on it.
The number is Bayes' rule, from Part 4. What you want is the probability that a process was engaged, given that a region was active. That depends on how often the region is active when the process is engaged, against how often it's active when it isn't. Poldrack took one of the safest cases there is: and . In a database of published experiments, activation there multiplies the odds of language by about . So if you thought language was fifty-fifty beforehand, the scan moves you to . By his own description, that's weak evidence. And it's weaker still when the idea was unlikely to begin with. Start at one in five, and you end at . Start at one in ten, and you end at . A region that responded to one thing only would multiply the odds by far more. Few do. The regions that turn up in the most headlines are among the least selective in the brain, which is partly why they turn up.
None of this means a scan can never tell you what someone is doing. It means the claim has to be earned, and there's an honest way to earn it. Fit a model that predicts the mental state from the whole pattern of activity, across thousands of voxels, instead of from one region's name. Then test it on scans it's never seen, and report how often it's right. Compare that with chance, and with what you could have guessed without a scanner at all. Then the claim is a number, and a number can be checked. Right seventy times in a hundred, on new people, is a statement about the world. The fear centre lit up is a story. This is called decoding, it's Part 4's prediction on fresh data once more, and it's where the frontier of this part is.
What it does: Forward and reverse inference; Bayes' rule with Poldrack's factor; decoding as the honest version
11From watching to interveningPsych 101 and the major4 min
Suppose every warning so far has been heeded. The threshold is honest, the voxels were chosen independently, and the claim runs forward. What you have is this: a region is more active while people do the task. It may be doing the work. It may also be listening in on a region that does the work, or preparing for a response that never has to be made, or clearing up afterwards. All of those light up. Activity that goes with a task is a correlation, measured inside one head. You know from Part 2 what it takes to go further. You have to intervene: change the region, and see what happens to the task.
There are four ways to do it. Damage, the subject of Part 7. It tests whether a region is needed, but nature picks the place. In 1985 Anthony Barker and his colleagues in Sheffield held a coil of wire against a volunteer's head and sent a brief, strong current through it. The magnetic pulse passed through the skull, and the volunteer's opposite hand twitched. A pulse like that disturbs a patch of cortex for a fraction of a second and leaves no trace. So you can ask, in a healthy person, whether a region is needed, and at what moment. During surgery, as Penfield did, a small current can switch a spot on or off while the patient talks. And in animals, cells can be made sensitive to light, and then switched on or off, one cell type at a time, to the millisecond. Part 6's memory experiment was done that way. Two words sort these out. Take a region away and the task fails: it was necessary. Switch it on and the behaviour appears: it was sufficient. A scan, by itself, shows neither.
So here's a short, plain list. What has thirty years of scanning settled? The maps. The layouts of vision, touch, movement and hearing, which Part 7 knew from wounds and surgery, have been charted in living, healthy people. That brains are alike: the same regions answer to the same kind of task in person after person. The best-known is a patch on the underside of the brain that responds more to faces than to anything else, reported in 1997 and found again ever since. What it's for is still argued, and that's Part 14. That one patient's language and movement areas can be found before an operation, so the surgeon can avoid them. And that regions form networks which rise and fall together even when a person is doing nothing. And what hasn't it delivered? Reading what one person is thinking, without their cooperation and hours of their own data. Diagnosing a mental disorder from an individual's scan. A centre for love, or religion, or a favourite brand. And the deepest gap: a map says where. It doesn't say how. Knowing which patch of cortex is busy during arithmetic tells you about as much about arithmetic as knowing which building a company is in tells you about its business.
What it does: A scan is an observation; damage, a magnetic pulse, a current, light; what scanning has settled and what it has not
12The LedgerPsych 101 and the major3 min
Three rows today. The first. The claim: a word that doesn't fit the meaning of its sentence is followed, about four hundred milliseconds later, by a negative brain potential. The original: Kutas and Hillyard, 1980. The record: three decades of studies, reviewed by Kutas and Federmeier in 2011. It appears in reading, in listening, in sign language, and with pictures, and it grows as the word gets less expected. It's one of the most repeated effects in the whole field. What it measures is still argued: surprise, or the work of fitting a meaning in. Replicated.
The second. The claim: practising brain-training games improves abilities you didn't practise. One origin: Jaeggi and colleagues, 2008, who trained students on a memory task and reported gains on a test of reasoning. The record. In 2010 Adrian Owen and the BBC ran the experiment on eleven thousand four hundred and thirty people for six weeks. They got better at every game they practised, and no better at anything else. In 2016 a review went through the hundred and thirty-two papers the industry cites, and found little evidence of broad transfer. People improve at what they practise. What fails is the claim that it carries over to memory, attention or intelligence in general. Failed.
And the third. The claim: a brain scan can tell whether a particular person is lying. The original: Kozel and colleagues, 2005. Volunteers were told to lie about a mock theft, and most were classified correctly from their scans. The record: Ganis and colleagues, 2011. The same kind of test caught every liar. Then the volunteers were taught a trick, a tiny movement of a finger or toe at chosen moments, and it caught one in three. It's never been tested where it would be used: on people with something to lose, who don't want to be read. An American court excluded it in 2010, and the appeal court agreed. Not directly tested. That makes rows. Look at the three. The one that stands is a measurement, repeated in a great many laboratories. The two that don't were products.
What it does: The N400, brain training, and lie detection by scan
13In practice: what is sold, and what worksPractice4 min
Outside the laboratory, where have these instruments earned a place? In epilepsy. A seizure is the largest electrical event a brain produces, and the EEG shows it as it happens. In sleep medicine. The stages of sleep are defined by the rhythms of the EEG, which is Part 10. Before brain surgery. A functional scan can find where one patient's language and hand movements live, and the surgeon then checks by stimulating the cortex directly, as Penfield did. And everywhere, the structural scan, which shows a stroke or a tumour. Look at what those have in common. One person. A large effect. A question about that person's brain, not their character. And an independent way to check the answer. Now look at what's sold beyond that.
Take lie detection by brain scan, which has been offered to courts and to employers. Be generous. Suppose it's right nine times in ten, on liars and on honest people alike. Test people, of whom one in ten is lying. Of the liars, it flags . Of the honest people, it wrongly flags one in ten: . So of the people it calls liars, half are telling the truth. That's Bayes' rule again, the same sum as reverse inference, and no improvement in the scanner changes it. Only a better base rate does. And nine in ten is a laboratory figure, from volunteers with nothing at stake who weren't trying to beat it. When volunteers in one study were taught to move a toe at chosen moments, detection fell from percent to . That's today's third Ledger row, and it's why courts have kept it out.
The second product has nothing to do with scanners, and everything to do with the word brain. Brain-training games promised that a few minutes a day would sharpen memory and attention in general, at work, at school, and into old age. In 2010 that was tested on adults, assigned at random to different kinds of training for weeks. They improved at every game they practised. On tests of things they hadn't practised, even closely related things, they improved no more than a comparison group that hadn't trained on such games. In one well-known company in the business paid two million dollars to settle a charge of deceptive advertising, without admitting fault. This one is also on the Ledger. It teaches something about the mind, too. Skills are narrower than we'd like, and that comes back in Part 54.
So here's what to carry out of this part: six questions for any claim that arrives with a picture of a brain. How many tests are in the picture, and how was the line drawn? Were the voxels chosen with the same data the number comes from? How many people, and how reliable is the measure in each of them? Does the claim run forward, from task to brain, or backward, from brain to mind? Was the prediction tested on people the model had never seen? And the one that's asked least: what would the same study have shown without the scanner? A picture of a brain makes an explanation feel more solid. Often the behaviour already told you everything the picture does.
What it does: Epilepsy, sleep and surgery; a detector that is right nine times in ten; brain training tested; six questions
14Frontier: how many people does a brain study need?Research6 min
The frontier of this part is a number: how many people a study needs. For twenty years the typical study relating a brain measure to a trait, an ability or a diagnosis had about people. In 2022 a large group put three very big datasets together, about people, and asked how strong those links really are. The typical one has a correlation near . Even the strongest are small. Now see what that does to a small study. Here are twenty thousand simulated studies of people each, of a link whose true size is , which would be one of the stronger ones. Their results scatter widely, because people can't pin a correlation down. Only percent reach significance, barely more than chance. And look at which ones those are. To be significant with people, a correlation has to be at least . So the studies that get published report on average, about times the truth, and nearly one in five of them has the sign wrong. It's Part 4's filter, with a scanner attached.
So how many people does it take? That's a calculation, for an eighty percent chance of detecting the link. If the true correlation is , which is what small studies used to report, about people. If it's , about . If it's , the typical value, nearly eighty thousand. Part of the reason the links are so small is the instrument. When the reliability of common brain-scan measures was added up, the average was about . You saw in chapter nine what that does to any correlation. There's a reply, and it's a fair one. Models that combine thousands of brain measures at once, and are tested on people they've never seen, find stronger links with fewer people. How much stronger is being argued as this is made. And don't over-learn the lesson. Small studies aren't useless. A handful of people is plenty when each one is their own control and the effect is large: the tuning curve, the N400, the map of the visual field. What twenty-five people can't tell you is how brains differ between people.
And here's what the honest kind of mind reading looks like when it works. In 2023 a group in Texas scanned people for about hours each while they listened to stories, and trained a model, for each person, to predict that person's brain activity from the meaning of the words. Then they ran it backwards on a new story. The decoder doesn't recover the words. The blood is far too slow for that. It recovers the gist: a paraphrase, often close in meaning, in different words. It does the same, more weakly, when the person only imagines telling a story. And it has limits that matter. It needs many hours of that person's own data. A model trained on one person doesn't read another. And it needs their cooperation: when the participants deliberately thought about something else, it failed. So it's a real advance, and it's exactly the shape chapter ten asked for. A model, a test on new data, and a score. It's also the reason people have started to write about the privacy of a brain.
So here's what isn't settled. How far can those small links be strengthened? By better measures, by scanning each person for much longer, and by models tested on new people. Nobody knows yet where the ceiling is. Can a scan say anything useful about one person? Averages over groups are solid. A diagnosis, or a forecast, for an individual mostly isn't there yet. What lies between the blood and the thought? A single voxel holds hundreds of thousands of neurons. A map of where things happen isn't a theory of how. That's most of the rest of this series. And who may read a brain? Today's decoders need the person's help. The question of consent is being asked now, before they don't. The starred problem asks you to design a study that could show a brain measure tells you something about a person that their behaviour doesn't.
What it does: Small links and small studies; the samples needed; the gist of a story decoded; four open questions
Recap, problems, and the road aheadAll tracks5 min
Part eight in ten lines. The salmon showed that enough tests on noise always find something. One neuron has a tuning curve, and it's the real signal, seen through a keyhole. The scalp hears only cells that are aligned and in step, which gives you when and not where. Averaging pulls a signal out of noise at the rate of the square root of the number of trials. Functional MRI measures blood, an echo that peaks five seconds late, which gives you where and not when. A map is a regression in every voxel, of a difference between two tasks. Without correction, most empty brains show activity, and every correction costs misses. Choose voxels by the answer, and you get a strong correlation from nothing, above the ceiling the measures allow. Reading a map backwards is Bayes' rule, and to know a region is needed you have to intervene. And the links between brains and behaviour are small, so finding them takes thousands of people.
Kant's wager. Today touches the first objection and the third. On the first, that the mind admits no mathematics: the N400 is a number, read off a scalp, that tracks understanding four tenths of a second after a word. That isn't yet an equation that predicts, but it's a quantity where Kant said there could be none. On the third, that observing a mind disturbs it: here, for once, is an instrument that doesn't ask the person anything. It records while they read. But the disturbance moves. It's no longer in the subject. It's in the analyst, who has a hundred thousand tests to choose among, and Part 4 said what happens then. The remedy is Part 4's as well: decide the analysis first, correct for the tests, and check on fresh data.
Where this comes back. The brain's rhythms in sleep are Part 10. Tuning curves and receptive fields, starting in the eye, are Part 13. The face area, and the argument about what it's for, is in Part 14. Attention measured on the scalp is Part 18. The N400 returns with language in Part 23. Evidence building up in the brain before a choice is Part 25. What a scan can say about awareness is Part 27. Why findings fail to repeat gets the whole of Part 43. And the statistics of brain data, done in full, are Part 49.
Seven problems, with full solutions in this part's README. One reads a tuning curve and asks how many showings it takes to tell two rates apart. One shows why unaligned cells are invisible from the scalp. One counts the trials an average needs. One builds the response to a block of events from the echo. One does the salmon's arithmetic for a whole brain. One uses Psyche's imaging module to see how circular selection depends on the sample. 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. The salmon poster is one page long, and it's the most useful page in the field.
So now we have the machine's parts, a map of where they are, and instruments for watching them work. Every brain we've described so far has been a brain in general. But the people those brains belong to aren't alike, and the last chapter said how hard it is to read their differences off a scan. There's an older way to ask where differences between people come from, and it doesn't need a scanner. Two men, twins separated as babies and raised in different families, meet for the first time at thirty-nine, and find they share a startling list of habits. As evidence, that story is worth nothing, and you know why. The research design behind it is one of the most repeated in psychology. What it measures, and what it can't, is Part 9: genes and evolution.
Where it goes next. Rhythms of the EEG in sleep are Part 10; tuning curves and receptive fields are Part 13; the face area is argued in Part 14; attention on the scalp is Part 18; the N400 returns with language in Part 23; evidence accumulating before a choice is Part 25; scans and awareness are Part 27. Why findings fail to repeat is Part 43, and the statistics of brain data in full are Part 49.
Key results
The part's results in one place, for revision.
Try it
Lab 8 · From a noisy trace to a map, and three ways the map misleads
Average simulated EEG trials until a wave a quarter the size of the noise appears, and check the square-root law; convolve events with the haemodynamic response and fit a voxel by least squares; threshold brains of pure noise by four rules; select voxels by their correlation with a score and measure it again on fresh data; and work out what a study of 25 people can detect.
python -m videos.psychology.labs 8
needs numpy, scipy, matplotlib · download lab08.py ·
source on GitHubnoise left in an average of 4 trials; 20 / sqrt(n) 10.09, 10.00 microvolts
noise left in an average of 25 trials; 20 / sqrt(n) 3.95, 4.00 microvolts
noise left in an average of 100 trials; 20 / sqrt(n) 2.00, 2.00 microvolts
noise left in an average of 400 trials; 20 / sqrt(n) 1.19, 1.00 microvolts
'socks' minus 'butter', 300 to 500 ms; the wave put in -3.8, -3.8 microvolts
the haemodynamic response: peak, lowest point 5.0 s, 15.8 s
two events: largest gap between the sum of responses and the response to both 1.1e-16
one active voxel (true weight 0.20): fitted weight, t 0.17, 4.1
uncorrected: true voxels found of 78; empty brains with something 78; 44%
bonferroni: true voxels found of 78; empty brains with something 62; 2%
fdr: true voxels found of 78; empty brains with something 78; 2%
cluster: true voxels found of 78; empty brains with something 78; 4%
chance of any false alarm in 100,000 independent tests at p < 0.001 1.0000
cluster rule: empty brains passing, noise as assumed and with a long tail 6%, 18%
16 people, 10,000 voxels of noise: voxels with r > 0.7 14
... their mean correlation, in the same data and in fresh data 0.74, 0.15
the ceiling for reliabilities 0.5 and 0.8; for 0.4 and 0.8 0.63, 0.57
reverse inference with odds multiplied by 2.3: priors 0.5, 0.2, 0.1 become 0.70, 0.37, 0.20
25 people, true r = 0.06: studies significant; their mean |r|; wrong sign 6%; 0.46; 22%
people needed for 80% power at r = 0.2, 0.06, 0.01 194, 2,179, 78,487
Averaging leaves what is locked to the event and shrinks the rest by the square root of the number of trials. The blood's response peaks five seconds late, and under the linear assumption responses add, which is what lets an experiment's design predict a voxel's signal. A map is a test in every voxel: uncorrected, nearly half of empty slices show something, and each correction that prevents it misses real voxels. Voxels chosen by their correlation report a correlation set by the threshold, not by the brain, and it vanishes in fresh data. An unselective region moves a prior only a little. And 25 people can only ever report a brain-behaviour correlation of 0.4 or more, whatever the truth is.
The code (112 lines; it asserts its own result)
"""Lab 8: an average that finds a wave, an echo in the blood, a brain of noise, and a correlation from nothing."""
import numpy as np
from videos.coursekit import labs
from explainer.psychology.psyche import imaging as I
TITLE = "From a noisy trace to a map, and three ways the map misleads"
GOAL = ("Average simulated EEG trials until a wave a quarter the size of the noise appears, and check the "
"square-root law; convolve events with the haemodynamic response and fit a voxel by least squares; "
"threshold brains of pure noise by four rules; select voxels by their correlation with a score and "
"measure it again on fresh data; and work out what a study of 25 people can detect.")
TASKS = [
"Halve the size of the N400 in erp_trials (edit erp_template, or scale the difference wave) and find how many "
"trials per condition you now need for the difference to be four times its standard error. Why does the "
"answer quadruple?",
"In null_tmaps, raise the smoothness of the noise from fwhm=3 to fwhm=6 voxels. What happens to the share of "
"empty brains that the uncorrected rule lights up, and why does Bonferroni become more conservative?",
"Run voodoo with 40 subjects and the threshold that gives p < 0.001 for that sample (about r = 0.48). What "
"correlation does the circular analysis report now? What does that say about which published correlations "
"to distrust most?",
]
def run(seed=0):
out = labs.Lab()
# 1. averaging
t = np.arange(-100.0, 800.0, 4.0)
odd = I.erp_trials(1600, t, "n400", rng=np.random.default_rng(seed + 80))
usual = I.erp_trials(1600, t, "none", rng=np.random.default_rng(seed + 81))
noise = odd - I.erp_template(t, "n400")
for n in (4, 25, 100, 400):
left = float(np.sqrt((noise.reshape(-1, n, len(t)).mean(axis=1) ** 2).mean()))
out.row(f"noise left in an average of {n} trials; 20 / sqrt(n)", f"{left:.2f}, {20 / np.sqrt(n):.2f} microvolts")
diff = odd.mean(axis=0) - usual.mean(axis=0)
win = (t > 300) & (t < 500)
out.row("'socks' minus 'butter', 300 to 500 ms; the wave put in", f"{diff[win].mean():.1f}, "
f"{(I.erp_template(t, 'n400') - I.erp_template(t, 'none'))[win].mean():.1f} microvolts")
assert abs(float(np.sqrt((noise.reshape(-1, 100, len(t)).mean(axis=1) ** 2).mean())) - 2.0) < 0.4
assert diff[win].mean() < -2.0
# 2. the echo and the linear model
tt = np.linspace(0, 30, 3001)
h = I.hrf(tt)
out.row("the haemodynamic response: peak, lowest point", f"{tt[np.argmax(h)]:.1f} s, {tt[np.argmin(h)]:.1f} s")
both = I.bold([10.0, 16.0], 60, 1.0)
out.row("two events: largest gap between the sum of responses and the response to both",
f"{np.abs(both - I.bold([10.0], 60, 1.0) - I.bold([16.0], 60, 1.0)).max():.1e}")
brain = I.SyntheticBrain(regions=((16, 15, 3.0, 0.20), (30, 33, 4.0, 0.16)))
s = brain.scan(rng=np.random.default_rng(seed + 82))
fit = I.glm(s["Y"][:, 16, 15], s["X"], [1, 0])
out.row("one active voxel (true weight 0.20): fitted weight, t", f"{fit['beta'][0, 0]:.2f}, {fit['t'][0]:.1f}")
assert abs(tt[np.argmax(h)] - 5.0) < 0.1 and 0.0 < fit["beta"][0, 0] < 0.45
# 3. four rules, on a brain with something in it and on brains of noise
null_maps, mask = I.null_tmaps(400, rng=np.random.default_rng(seed + 83))
extent = I.cluster_extent(I.null_tmaps(400, rng=np.random.default_rng(seed + 84))[0], mask, s["df"])
rates = I.familywise_rates(null_maps, mask, s["df"], extent)
for rule in ("uncorrected", "bonferroni", "fdr", "cluster"):
hit = I.threshold_map(s["t"], s["df"], brain.mask, rule, extent=extent)
out.row(f"{rule}: true voxels found of {int(brain.active.sum())}; empty brains with something",
f"{int((hit & brain.active).sum())}; {100 * rates[rule]:.0f}%")
out.row("chance of any false alarm in 100,000 independent tests at p < 0.001", f"{I.chance_of_any(100_000):.4f}")
assert rates["uncorrected"] > 0.3 and rates["bonferroni"] < 0.08
# 4. the cluster rule on the wrong kind of noise
c = I.cluster_calibration(brains=300, long_tail=0.5, rng=np.random.default_rng(seed + 85))
out.row("cluster rule: empty brains passing, noise as assumed and with a long tail",
f"{100 * c['gaussian']:.0f}%, {100 * c['long_tail']:.0f}%")
assert c["long_tail"] > c["gaussian"]
# 5. circular selection
v = I.voodoo(subjects=16, voxels=10_000, threshold=0.7, rng=np.random.default_rng(seed + 86))
out.row("16 people, 10,000 voxels of noise: voxels with r > 0.7", str(v["selected"]))
out.row("... their mean correlation, in the same data and in fresh data", f"{v['r_same']:.2f}, {v['r_fresh']:.2f}")
out.row("the ceiling for reliabilities 0.5 and 0.8; for 0.4 and 0.8", f"{I.r_ceiling(0.5, 0.8):.2f}, {I.r_ceiling(0.4, 0.8):.2f}")
assert v["r_same"] > 0.7 and abs(v["r_fresh"]) < 0.3
# 6. reading backwards, and how many people
out.row("reverse inference with odds multiplied by 2.3: priors 0.5, 0.2, 0.1 become",
", ".join(f"{I.reverse_inference(p, 0.23, 0.10)['posterior']:.2f}" for p in (0.5, 0.2, 0.1)))
st = I.small_study(0.06, 25, rng=np.random.default_rng(seed + 87))
out.row("25 people, true r = 0.06: studies significant; their mean |r|; wrong sign",
f"{100 * st['power']:.0f}%; {st['mean_sig_r']:.2f}; {100 * st['wrong_sign']:.0f}%")
out.row("people needed for 80% power at r = 0.2, 0.06, 0.01",
", ".join(f"{I.n_for_correlation(r):,}" for r in (0.2, 0.06, 0.01)))
assert st["mean_sig_r"] > 0.4 and I.n_for_correlation(0.2) == 194
out.note = ("Averaging leaves what is locked to the event and shrinks the rest by the square root of the number "
"of trials. The blood's response peaks five seconds late, and under the linear assumption "
"responses add, which is what lets an experiment's design predict a voxel's signal. A map is a "
"test in every voxel: uncorrected, nearly half of empty slices show something, and each "
"correction that prevents it misses real voxels. Voxels chosen by their correlation report a "
"correlation set by the threshold, not by the brain, and it vanishes in fresh data. An "
"unselective region moves a prior only a little. And 25 people can only ever report a brain-"
"behaviour correlation of 0.4 or more, whatever the truth is.")
fig, ax = labs.figure(2, size=(11, 4.2))
ax[0].plot(t, odd[0], color=labs.GREY, lw=0.6, label="one trial")
ax[0].plot(t, odd[:25].mean(axis=0), color=labs.BLUE, lw=1.2, label="average of 25")
ax[0].plot(t, odd[:400].mean(axis=0), color=labs.GREEN, lw=2, label="average of 400")
ax[0].plot(t, I.erp_template(t, "n400"), color=labs.PINK, lw=1.2, ls="--", label="the wave put in")
ax[0].set(title="Averaging trials locked to a word", xlabel="time after the word (ms)", ylabel="microvolts",
ylim=(-30, 30))
ax[0].legend(loc="upper right", fontsize=8)
edges = np.linspace(-1, 1, 41)
ax[1].hist(v["r_all"], edges, color=labs.GREY)
ax[1].axvline(0.7, color=labs.PINK, lw=1.5, ls="--")
ax[1].set(title=f"10,000 voxels of noise: {v['selected']} pass r > 0.7, mean {v['r_same']:.2f}",
xlabel="correlation with the score, 16 people", ylabel="voxels")
out.fig = fig
return out
Now change it
- Halve the size of the N400 in erp_trials (edit erp_template, or scale the difference wave) and find how many trials per condition you now need for the difference to be four times its standard error. Why does the answer quadruple?
- In null_tmaps, raise the smoothness of the noise from fwhm=3 to fwhm=6 voxels. What happens to the share of empty brains that the uncorrected rule lights up, and why does Bonferroni become more conservative?
- Run voodoo with 40 subjects and the threshold that gives p < 0.001 for that sample (about r = 0.48). What correlation does the circular analysis report now? What does that say about which published correlations to distrust most?
Problems, with solutions
Try each problem before opening its solution.
1. A cell fires 40 impulses a second to its preferred orientation and 2 with no stimulus; its tuning is a bell curve with standard deviation 20 degrees. What is its rate to a line 30 degrees off? If counts are Poisson, how many half-second showings tell that rate from the peak rate with a z of 3?
Solution
The rate is 2 + 38 exp(−(30/20)²/2) = 2 + 38 × 0.325 = 14.3 a second. In half a second the cell fires 20 impulses on average at the peak and 7.2 at 30 degrees off, and a Poisson count's variance equals its mean. Over n showings the difference of the two mean counts is 12.8 with standard error √((20 + 7.2)/n), so z = 12.8 / √(27.2/n) ≥ 3 needs n ≥ 9 × 27.2 / 12.8² = 1.5. Two showings of each are enough. A well-tuned cell, heard directly, is a very good instrument; the problem with it is how few you can hear.
2. N unit dipoles point in random directions in a plane. Show that the mean square of their sum is N. A patch of cortex has 10⁶ aligned cells, and a hundred times as many unaligned ones around it. Which contributes more to the scalp?
Solution
Write the sum as S = Σ vᵢ with |vᵢ| = 1. Then |S|² = Σ |vᵢ|² + Σ over i ≠ j of vᵢ·vⱼ. The first sum is N. Each cross term averages to zero, because vⱼ is as likely to point one way as the opposite. So the mean of |S|² is N, and the typical size of the sum is √N. The 10⁶ aligned cells sum to 10⁶. The 10⁸ unaligned ones sum to about √(10⁸) = 10⁴. The aligned patch contributes a hundred times more, although it has a hundredth of the cells.
3. A response of 5 microvolts sits in noise of 20. How many trials bring the noise in the average down to 1 microvolt? How many are needed to tell two conditions apart, if the test needs the difference to be 4 times its standard error?
Solution
The noise in an average of n trials is 20/√n, which is 1 when n = 400. For two conditions with n trials each, the difference of the two averages has standard error 20 √(2/n). The true difference is 5, so 5 ≥ 4 × 20 √(2/n) gives √(n/2) ≥ 16 and n ≥ 512 trials in each condition. Halving the noise by better recording would cut that to 128: the cost goes with the square of the noise.
4. The response to one brief event is h(t). Write the predicted signal for events at times t₁, …, t_k, and show that a block of events 2 s apart for 20 s gives a plateau. Why does the plateau start about 5 s late?
Solution
Under the linear assumption the prediction is y(t) = Σ h(t − tᵢ), a convolution of a train of events with h. For events every 2 s, once more than the duration of h has passed since the block began, the sum at any moment contains one copy of h at every lag 0, 2, 4, … and is close to (1/2) ∫ h dt, a constant: the plateau. With the film's h (peak 1, area 4.75) the constant is about 2.4 to 2.7, depending on where between events you look. The plateau is late because each event's contribution is near zero for the first second or two and peaks at 5 s; the sum reaches nine-tenths of its height about 7.5 s after the block begins. It also outlasts the block by the same lag, which is why blocks are analysed with the convolved prediction and not with a square wave.
5. A map has 100,000 voxels and nothing is there. How many pass at p < 0.001? What threshold does Bonferroni give for a 5% chance of any? Why is that too strict when neighbouring voxels are alike?
Solution
On average 100,000 × 0.001 = 100 voxels pass. Bonferroni sets each test at 0.05 / 100,000 = 5 × 10⁻⁷, a t of about 5.2 with 118 degrees of freedom (4.9 for a normal deviate). The bound assumes the worst case, in which the tests' false alarms never coincide. Neighbouring voxels are correlated, by the blood supply and by the smoothing applied to the images, so the map holds far fewer independent pieces of evidence than voxels, and a threshold tuned to 100,000 independent tests gives a familywise rate well under 5% and misses more than it needs to. Random field theory and permutation tests set the threshold from the smoothness of the data instead.
6. With explainer.psychology.psyche.imaging: run voodoo for 10, 16 and 40 subjects at the threshold that
gives p < 0.001 for each. How does the reported correlation depend on the sample? Then use reverse_inference
to find how selective a region must be to take a prior of 0.1 above 0.5.
Solution
import math
import numpy as np
from scipy import stats
from explainer.psychology.psyche import imaging as I
for n in (10, 16, 40):
t = stats.t.ppf(0.999, n - 2)
r_cut = t / math.sqrt(n - 2 + t * t)
runs = [I.voodoo(subjects=n, voxels=10_000, threshold=r_cut, rng=np.random.default_rng(100 + k))
for k in range(40)]
print(n, round(r_cut, 2), round(np.nanmean([v["r_same"] for v in runs]), 2),
round(np.nanmean([v["r_fresh"] for v in runs]), 2))
for factor in (5, 9, 10):
print(factor, I.reverse_inference(0.1, factor * 0.05, 0.05)["posterior"])
The thresholds are r = 0.85, 0.71 and 0.47, and the circular analysis reports 0.88, 0.75 and 0.51, from noise, with about ten voxels passing each time; in fresh data all three are zero. The reported number is set by the sample size: the smaller the study, the more impressive the correlation. That is the opposite of what a reader assumes, and it is why the largest published brain-behaviour correlations came from the smallest studies. For the second part, the posterior odds are the prior odds times the factor: 1/9 times the factor must exceed 1, so the region must be at least nine times as likely to be active when the process is engaged as when it is not. Poldrack's estimate for one of the best cases was 2.3.
7. ★ Design the study that could show a brain measure predicts something about one person that their behaviour and their history do not, and say what would count as failure.
There is no single right answer; a good one has five parts. (i) An outcome that matters and is measured later: relapse within a year, a reading difficulty at age eight, response to one treatment against another. (ii) A baseline model built without the scanner, from the things already known: age, history, questionnaires, a few behavioural tests. This is the comparison that is usually missing, and the claim is about what the brain measure adds to it. (iii) A sample large enough for the effect you can honestly expect (chapter 14: thousands, if the added link is like the usual ones), with the brain measure's reliability measured in the same people, since it caps the answer. (iv) The model, its features and its threshold fixed and registered before a held-out sample is opened, ideally from another site and scanner, and the result reported as prediction on those unseen people: how much does the brain measure improve on the baseline, with an interval? (v) A statement, in advance, of what failure is: an improvement over the baseline that is zero within the interval, or too small to change any decision. A brain measure can be real, replicable and still add nothing to what a ten-minute interview already tells you; a study that cannot return that verdict has not tested the claim.
Notes and sources
Where it comes back
The EEG's rhythms in sleep: Part 10. Tuning curves and receptive fields, from the eye inward: Part 13. The
fusiform face area and what it is for: Part 14. Attention measured on the scalp: Part 18. The N400 and the
understanding of sentences: Part 23. Evidence accumulating in the brain before a choice: Part 25. What scans say
about awareness: Part 27. Why findings fail to repeat: Part 43. The statistics of brain data in full (mixed
models, permutation, decoding, representational similarity): Part 49. Brain training and the narrowness of
skills: Part 54. Psyche's imaging module is the forward model later parts use when they set a model's
prediction beside a recording.
Sources
Books. S. A. Huettel, A. W. Song and G. McCarthy, Functional Magnetic Resonance Imaging (3rd ed., 2014). R. A. Poldrack, J. A. Mumford and T. E. Nichols, Handbook of Functional MRI Data Analysis (2011). S. J. Luck, An Introduction to the Event-Related Potential Technique (2nd ed., 2014). R. A. Poldrack, The New Mind Readers (2018).
Papers.
- C. M. Bennett, A. A. Baird, M. B. Miller and G. L. Wolford, "Neural correlates of interspecies perspective taking in the post-mortem Atlantic salmon: an argument for multiple comparisons correction", poster, Human Brain Mapping 2009; Journal of Serendipitous and Unexpected Results 1 (2010) 1–5.
- D. H. Hubel and T. N. Wiesel, "Receptive fields of single neurones in the cat's striate cortex", Journal of Physiology 148 (1959) 574–591.
- H. Berger, "Über das Elektrenkephalogramm des Menschen", Archiv für Psychiatrie und Nervenkrankheiten 87 (1929) 527–570.
- M. Kutas and S. A. Hillyard, "Reading senseless sentences: brain potentials reflect semantic incongruity", Science 207 (1980) 203–205. M. Kutas and K. D. Federmeier, "Thirty years and counting: finding meaning in the N400 component of the event-related brain potential (ERP)", Annual Review of Psychology 62 (2011) 621–647.
- S. Ogawa, T. M. Lee, A. R. Kay and D. W. Tank, "Brain magnetic resonance imaging with contrast dependent on blood oxygenation", PNAS 87 (1990) 9868–9872. K. K. Kwong et al., "Dynamic magnetic resonance imaging of human brain activity during primary sensory stimulation", PNAS 89 (1992) 5675–5679.
- G. M. Boynton, S. A. Engel, G. H. Glover and D. J. Heeger, "Linear systems analysis of functional magnetic resonance imaging in human V1", Journal of Neuroscience 16 (1996) 4207–4221.
- N. K. Logothetis, J. Pauls, M. Augath, T. Trinath and A. Oeltermann, "Neurophysiological investigation of the basis of the fMRI signal", Nature 412 (2001) 150–157.
- A. Eklund, T. E. Nichols and H. Knutsson, "Cluster failure: why fMRI inferences for spatial extent have inflated false-positive rates", PNAS 113 (2016) 7900–7905.
- E. Vul, C. Harris, P. Winkielman and H. Pashler, "Puzzlingly high correlations in fMRI studies of emotion, personality, and social cognition", Perspectives on Psychological Science 4 (2009) 274–290. N. Kriegeskorte, W. K. Simmons, P. S. F. Bellgowan and C. I. Baker, "Circular analysis in systems neuroscience: the dangers of double dipping", Nature Neuroscience 12 (2009) 535–540.
- R. A. Poldrack, "Can cognitive processes be inferred from neuroimaging data?", Trends in Cognitive Sciences 10 (2006) 59–63.
- A. T. Barker, R. Jalinous and I. L. Freeston, "Non-invasive magnetic stimulation of human motor cortex", Lancet 325 (1985) 1106–1107.
- A. M. Owen et al., "Putting brain training to the test", Nature 465 (2010) 775–778. D. J. Simons et al., "Do 'brain-training' programs work?", Psychological Science in the Public Interest 17 (2016) 103–186. S. M. Jaeggi, M. Buschkuehl, J. Jonides and W. J. Perrig, "Improving fluid intelligence with training on working memory", PNAS 105 (2008) 6829–6833.
- G. Ganis, J. P. Rosenfeld, J. Meixner, R. A. Kievit and H. E. Schendan, "Lying in the scanner: covert countermeasures disrupt deception detection by functional magnetic resonance imaging", NeuroImage 55 (2011) 312–319. F. A. Kozel et al., "Detecting deception using functional magnetic resonance imaging", Biological Psychiatry 58 (2005) 605–613. United States v. Semrau, 693 F.3d 510 (6th Cir. 2012).
- M. L. Elliott et al., "What is the test-retest reliability of common task-functional MRI measures? New empirical evidence and a meta-analysis", Psychological Science 31 (2020) 792–806.
- S. Marek et al., "Reproducible brain-wide association studies require thousands of individuals", Nature 603 (2022) 654–660.
- J. Tang, A. LeBel, S. Jain and A. G. Huth, "Semantic reconstruction of continuous language from non-invasive brain recordings", Nature Neuroscience 26 (2023) 858–866.
About this partfrom its README
In 2009 a group of researchers put a dead Atlantic salmon in an MRI scanner, showed it photographs of people in social situations, and asked it what each person was feeling. Analysed the way many published studies were at the time, with a test in every voxel at one in a thousand and no correction for the number of tests, the salmon had a small cluster of "active" voxels in its brain. With the standard corrections it had none. The fish was a statistics lesson, and the lesson is larger than one threshold: a picture of a working brain is the last link of a chain, from impulses to synaptic currents to blood flow to a magnetic signal to a statistical model to a threshold to a map, and then comes a further step, from the map to a statement about a mind.
This part walks the chain. The route: a single neuron and its tuning curve; the EEG, why the scalp hears only cells that are aligned and active together, and why the sources of a scalp pattern cannot be read off; averaging, the square-root law, and the N400; magnetic resonance in three steps; the BOLD signal, its slow response, the linear assumption and what the signal follows; the general linear model of an experiment, and subtraction again; a hundred thousand tests, the corrections and their price, and the cluster failure of 2016; circular analysis; the ceiling that reliability puts on a correlation, as an exercise for the viewer; reverse inference by Bayes' rule; the difference between watching a region and intervening on it; and a plain list of what scanning has and has not settled. The practice chapter sets the established clinical uses beside lie detection and brain training; the frontier asks how many people a brain study needs.
What is computed and built
explainer/psychology/psyche/imaging.py, the measurement chain as code: a tuning curve and Poisson counts; dipole sums, a toy lead field and a source no electrode can see; event-related potentials and the noise left by averaging; relaxation and the Fourier pair behind an MR image; the haemodynamic response, the convolution model and a least-squares fit with contrasts; a synthetic brain thresholded by four rules, null brains and their familywise rates, and a cluster threshold calibrated on the wrong kind of noise; circular selection of voxels; reverse inference, the ceiling on a correlation, and the samples small effects need. Tested intests/psychology/test_imaging.pyagainst closed forms, SciPy and the module's own known answers.- The Ledger gains three rows and the Archive seventeen datasets.
- On the Homunculus map nothing lights yet: this part builds instruments, not faculties.
Chapter notes
| # | Chapter | What it does |
|---|---|---|
| 0 | A salmon in a scanner | The experiment; why it happened; the chain from a thought to a coloured map; objectives |
| 1 | Listening to one neuron | Hubel and Wiesel's line of light; a tuning curve from Poisson counts; what a single cell gives and costs |
| 2 | Voltages on the scalp | Berger's rhythm; aligned sources add as N and random ones as its square root; two sets of sources with one scalp pattern |
| 3 | Averaging out the noise | A wave hidden in single trials; averages of 10, 50 and 200; the square-root law; the N400 |
| 4 | MRI in five minutes | Protons lined up and tipped; relaxation and contrast; gradients, k-space and the Fourier transform |
| 5 | Blood, and a slow echo | The BOLD signal; a response that peaks at 5 s; responses add; what the signal follows |
| 6 | The linear model of an experiment | One voxel fitted; the same fit everywhere gives a map; a map is a subtraction, with Donders' assumption |
| 7 | A hundred thousand tests | A brain of noise; three corrections; what each finds and misses; the cluster rule against real noise |
| 8 | Choosing voxels by the answer | Correlations that were too good; the same analysis on noise; fresh data as test and cure |
| 9 | On you: which of these is impossible? | Three results and two reliabilities; the ceiling on a correlation |
| 10 | Reading a mind backwards | Forward and reverse inference; Bayes' rule with Poldrack's factor; decoding as the honest version |
| 11 | From watching to intervening | A scan is an observation; damage, a magnetic pulse, a current, light; what scanning has settled and what it has not |
| 12 | The Ledger | The N400, brain training, and lie detection by scan |
| 13 | In practice: what is sold, and what works | Epilepsy, sleep and surgery; a detector that is right nine times in ten; brain training tested; six questions |
| 14 | Frontier: how many people does a brain study need? | Small links and small studies; the samples needed; the gist of a story decoded; four open questions |
| Recap, problems, and the road ahead | Ten lines; what today adds to the reply to Kant; payoffs; problems; references; Part 9 |
NotesWhere the numbers come from
| What | Source |
|---|---|
| The salmon: the task, the uncorrected threshold, the cluster, nothing after correction | Bennett et al. (2009), from the authors' commentary and summaries; registered in SOURCES.md, with what was read and what was not |
| Cortical cells that need a line at one orientation | Hubel and Wiesel (1959), from the abstract; the slide's edge is from their later recollections |
| First human EEG in 1924, published 1929; alpha at about ten a second; confirmed in 1934 | Berger (1929), from histories |
| "He spread the warm bread with socks"; a negative wave near 400 ms | Kutas and Hillyard (1980), from lecture notes and reviews; the film's curves are a model, tagged so |
| The BOLD signal (1990) and its first use in people (1992) | Ogawa et al. (1990), Kwong et al. (1992), from textbook histories |
| The fMRI response is close to linear in time | Boynton et al. (1996), from the abstract and a later review |
| BOLD follows local field potentials better than spikes | Logothetis et al. (2001), from the abstract |
| 499 people at rest, three million null analyses, up to 70% with a false cluster | Eklund, Nichols and Knutsson (2016), from the abstract and the debate that followed |
| More than half of surveyed studies selected voxels by the reported correlation; 57 of 134 papers | Vul et al. (2009); Kriegeskorte et al. (2009), from the abstracts and news reports |
| Reverse inference: a prior of 0.5 becomes 0.69 for Broca's area and language (a factor of 2.3) | Poldrack (2006), numbers from his own 2011 summary |
| The first transcranial magnetic stimulation | Barker, Jalinous and Freeston (1985), the PubMed record |
| 11,430 adults, six weeks of brain training, no transfer; the review of 132 articles; the 2016 settlement | Owen et al. (2010), Simons et al. (2016), the Federal Trade Commission's announcement as reported |
| fMRI lie detection: 100% without a countermeasure, 33% with; excluded by a court | Ganis et al. (2011), from the abstract; United States v. Semrau (2012), from case summaries |
| About 50,000 people; the typical study had 25; the typical association has r near 0.01 | Marek et al. (2022), from the abstract and a press summary |
| Test-retest reliability of task fMRI: mean ICC .397 over 90 experiments | Elliott et al. (2020), from the abstract |
| The gist of heard or imagined speech decoded from fMRI | Tang et al. (2023), from the abstract and summaries |
| Every curve, map, rate and sample size "computed by Psyche" or "simulated" | explainer.psychology.psyche.imaging |
The numbers that depend on choices made for the film. The model cell fires 40 impulses a second at its preferred orientation and 2 at rest, with a tuning width of 20 degrees; its counts are Poisson, eight showings of half a second at each of twelve orientations. The toy head has nine electrodes and twelve candidate sources in a uniform conductor; the "quite different set" of sources is the single source plus a vector from the lead field's null space. Single trials are a five-microvolt wave in smoothed noise of 20 microvolts; 200 trials a condition. The relaxation curves use round values (grey matter 1,300 and 110 ms, white matter 800 and 80 ms). The haemodynamic response is the usual difference of two gamma densities, peaking at 5 s. The synthetic brain is a slice of 1,600 voxels with two active patches (78 voxels, weights 0.20 and 0.16 in units of the noise), noise smoothed to 3 voxels, 120 scans at 2 s and a block design of 20 s on and off. Null brains are smooth noise with a t distribution's tails; 1,000 of them give the rates. The null brain on screen is chosen by rule: the first, in seed order, in which the uncorrected threshold declares a voxel. The cluster demonstration calibrates an extent threshold (voxelwise p < 0.01) on noise with Gaussian smoothness and applies it to noise in which half the variance comes from a field four times smoother: the mechanism of Eklund et al.'s result, in a toy, and its 16% is not their 70%. The circular analysis uses 16 simulated people, 10,000 voxels and a threshold of r > 0.7 (p of about 0.001); averages are over 200 runs. The three scatter plots of chapter 9 are constructed to have exactly the correlations shown. The lie detector's 90% is an assumed accuracy, and the base rate of one liar in ten is an assumption. Sample sizes use Fisher's z approximation for 80% power at a two-sided 5% level.
Notes
| Finding | Original | Status |
|---|---|---|
| A word that does not fit the meaning of its sentence is followed, about 400 ms later, by a negative brain potential (the N400) | Kutas and Hillyard 1980 | replicated |
| Practising brain-training games improves abilities that were not practised | Jaeggi and colleagues 2008 | failed |
| A brain scan can tell whether a particular person is lying | Kozel and colleagues 2005 | not directly tested |
Shown without a row, with the reason recorded in explainer/psychology/ledger.py: the salmon (a demonstration of
a statistical error), Hubel and Wiesel's cells (history of a method; orientation selectivity is entered in Part
13), Berger and Barker (the history of two instruments), the BOLD signal, its linearity and what it follows
(properties of a measurement), the cluster failure, circular analysis and reverse inference (results about
methods), the fusiform face area (entered with its dispute in Part 14), and the frontier's three results:
brain-wide associations (due in Part 43), the reliability of task fMRI, and language decoding.
Notes
Before the narrated master:
- Bennett et al.'s poster and paper were not read. The film says the report notes the salmon was "not alive at the time"; confirm the wording, and whether the uncorrected analysis used an extent threshold. The share of papers using uncorrected thresholds ("something like a quarter") is the survey figure the authors cite, as reported in their commentary. No voxel counts for the salmon are given. "A whole brain is about 100,000 voxels" is a round figure for 2 to 3 mm voxels.
- Hubel and Wiesel (1959) was not read. "Anaesthetized cats" and "spots worked in the eye" are standard; the slide's edge and "like a machine gun" are Hubel's later recollections and should be checked against his Nobel lecture. "A few thousand cells at once" refers to current high-density probes.
- Berger: the first recording in 1924 and publication in 1929 are from histories; "his own son" as a subject and the instrument he used should be checked. Adrian and Matthews confirmed the rhythm in 1934. That the non-uniqueness of the inverse problem was shown by Helmholtz "in the eighteen-fifties" (1853) is from textbooks. "A thousand times smaller than an impulse" compares tens of microvolts with about 100 millivolts.
- Kutas and Hillyard (1980) was not read. The sentence is as usually quoted; "a word printed in larger type produced a wave of that kind" (a late positivity) follows secondary accounts of their physical-deviance condition; that they had expected a P300 is from reviews. The film's curves are a model.
- MRI: 3 tesla as about 60,000 times the Earth's field, 128 MHz for protons at 3 tesla, and the relaxation times are textbook values, rounded. "A second or two" for a whole-brain functional image is typical, not universal.
- Ogawa et al. (1990) and the two 1992 papers were not read. "By something like one percent" is a typical figure at 1.5 to 3 tesla. The haemodynamic response's shape is the canonical model, not a measurement of one brain.
- Boynton et al. (1996) and Logothetis et al. (2001) are described from their abstracts.
- Eklund et al. (2016): "three million" analyses and "up to 70%" are from the abstract; the statement that the programs and their recommended settings were changed afterwards should be tied to the developers' notes. The film does not repeat the paper's withdrawn estimate of how many studies were affected.
- Vul et al. (2009): "more than half" of the surveyed studies is from the abstract; the traits named (jealousy, anxiety, empathy) and "a dozen or two people" describe the criticized studies as they are usually summarized. The working title "Voodoo correlations in social neuroscience" is from news reports.
- Poldrack (2006) was not read in full; the numbers are from his 2011 summary. "The regions that turn up in the most headlines are among the least selective" is a paraphrase of his argument, without a figure.
- Barker et al. (1985): "in Sheffield" and the twitch of the opposite hand are from the PubMed record and an encyclopedia entry.
- Owen et al. (2010): the comparison group's task is described only as "a comparison group that hadn't trained on such games"; check its description. The settlement's two million dollars and "without admitting fault" are from reports of the Federal Trade Commission's announcement of January 2016.
- The Ledger's row on lie detection cites Kozel et al. (2005) from memory: the mock theft and "most volunteers classified correctly" must be checked before the master. The row on brain training cites Jaeggi et al. (2008) from memory.
- Marek et al. (2022): about 50,000 people, a median study of 25, and a median association of 0.01 are from the abstract and a press summary; the reply by Spisak and colleagues (2023) is described from its abstract.
- Tang et al. (2023): three participants and about sixteen hours each are from a newspaper report; "a model trained on one person doesn't read another" and the failure when participants thought of something else follow the abstract's statement that decoding needs the subject's cooperation, and should be checked against the paper.
- The established clinical uses in chapter 13 are stated in general terms, without figures.
- The teaser for Part 9 (twins who met at thirty-nine) is checked with Part 9's own sources.
Companion material in this repository
The syllabus's plan for this partfrom SYLLABUS.md, the plan of record
- Hook: the salmon (Bennett et al. 2009). A test at one in a thousand, a thousand times: a 63% chance of at least one false alarm. The chain from a neuron to a statement about a mind.
- Listening to one neuron: Hubel and Wiesel's line (1959); a model cell's tuning curve (40, 14 and 2 impulses a second); the standard every other instrument is measured against, and its cost.
- Voltages on the scalp: Berger (recorded 1924, published 1929); why only aligned, synchronous cells add (N against root N: about 1,100 times at a million sources); the inverse problem on a toy head, two source patterns with identical scalp readings.
- Averaging out the noise: a 5 microvolt wave in 20 of noise; the noise left falls as one over root n (400 trials for 1 microvolt); the N400 (Kutas and Hillyard 1980).
- MRI in five minutes: protons in a field, two relaxations and contrast, gradients and k-space as a Fourier transform (link to Analysis, Built), an image rebuilt from part of its transform.
- Blood, and a slow echo: Ogawa (1990); the haemodynamic response (peak at 5 s); the working assumption that responses add, a convolution (Boynton et al. 1996); what the signal follows (Logothetis et al. 2001).
- The linear model of an experiment: a regressor, a weight and a t in one voxel (0.21, t = 5.3, against none); a map as 1,600 separate regressions; subtraction and pure insertion return from Part 1; rest is not nothing.
- A hundred thousand tests: empty brains show something 44% of the time uncorrected, and 2.9%, 3.9% and 6.5% under Bonferroni, the false discovery rate and clusters; what each rule finds of 78 true voxels (61 to 77); the cluster rule against long-tailed noise (5.7% against 15.9%) and Eklund et al. (2016).
- Choosing voxels by the answer: Vul et al. (2009); 16 people, 10,000 voxels of noise, r = .74 in the chosen voxels and zero in fresh data; the same .74 whether or not anything is there; Kriegeskorte et al.'s count.
- On you: three reported correlations, two reliabilities; the ceiling, root of 0.5 times 0.8, is .63.
- Reading a mind backwards: reverse inference as Bayes' rule (Poldrack 2006: 0.5 becomes 0.69; 0.2 becomes 0.37); the honest version, a model tested on new data.
- From watching to intervening: damage, the magnetic pulse (Barker et al. 1985), stimulation in surgery, light in animals; necessary and sufficient; what thirty years of scanning settled and what it did not.
- The Ledger. 13. In practice: what is sold, and what works. 14. Frontier: how many people does a brain study need?
Psyche: imaging (explainer/psychology/psyche/imaging.py): a tuned cell and its spike counts; dipole sums;
a lead-field toy head with a silent source; ERP trials and averaging; relaxation curves and k-space; the
haemodynamic response, convolution and the general linear model; a synthetic brain of smooth noise with known
active patches, thresholded by each rule, with family-wise rates over a thousand null brains; cluster
calibration under two kinds of noise; circular selection; reverse inference; the reliability ceiling; the
small-study simulator and sample sizes.
On you: three scatter plots of the kind imaging papers report, in the film. The interactive deals reported
correlations with the two measures' reliabilities; the reader judges each as possible or impossible, and the
page plots the answers against the ceiling.
Ledger: the N400 (replicated); brain-training transfer (failed); lie detection by fMRI (not directly tested). Shown without rows, with reasons: the salmon, Hubel and Wiesel (due in Part 13), Berger, Ogawa,
Logothetis, Boynton, Eklund, Vul, Poldrack, the face area (due in Part 14), Barker, Marek, Elliott and Tang.
In practice: where the instruments are everyday tools (epilepsy, sleep, mapping before surgery, structural
scans) and what those uses share; a lie detector that is right nine times in ten flags as many truthful people
as liars at a base rate of one in ten, and a rehearsed toe movement took detection from 100% to 33% (Ganis et
al. 2011); brain training on 11,430 adults (Owen et al. 2010); six questions for any claim with a brain picture.
Frontier: brain-wide association studies (Marek et al. 2022): at 25 people and a true r of 0.06, 6% of
studies are significant and those report .47; 194, about 2,200 and about 78,000 people for r of 0.2, 0.06 and
0.01; the test-retest reliability of task fMRI (Elliott et al. 2020); the reply from multivariate models;
decoding the gist of a story (Tang et al. 2023) and its limits. Analysis methods at depth are Part 49.
Reading: Bennett et al. 2009; Hubel & Wiesel 1959; Berger 1929; Kutas & Hillyard 1980; Kutas & Federmeier
2011; Ogawa et al. 1990; Boynton et al. 1996; Logothetis et al. 2001; Eklund, Nichols & Knutsson 2016; Vul et
al. 2009; Kriegeskorte et al. 2009; Poldrack 2006; Barker et al. 1985; Owen et al. 2010; Ganis et al. 2011;
Elliott et al. 2020; Marek et al. 2022; Tang et al. 2023; Luck, An Introduction to the Event-Related Potential
Technique; Poldrack, Mumford & Nichols; Huettel, Song & McCarthy; Poldrack, The New Mind Readers.
Build the film
python -m videos.psychology.psych8.compute # the part's numbers, into .cache/psych8
python tools/build.py psych8 # render and assemble the film
EXPLAINER_TTS=silent python tools/qa_scene.py psych8 Hook # one chapter, silent, with a contact sheet
Scenes: videos/psychology/psych8. Setup: see the course page. Source of these notes: the README and the scenes' narration.
Build it
python -m videos.psychology.psych8.compute # every number (about ten seconds), into .cache/psych8/
python tools/qa_scene.py psych8 Tests # one chapter, silent, at 480p, with a contact sheet
EXPLAINER_TTS=silent python tools/build.py psych8 -q l # the whole part, silent preview
python tools/build.py psych8 # 1080p30 with narration
python tools/qa_scene.py psych8 Tests --lang zh # the Chinese edition of one chapter
python tools/make.py psych8 # both editions, with the checks a long build needs
python -m videos.psychology.labs 8 # the lab: averaging, the echo, a brain of noise, selection
python tools/check_ledger.py psych8 # every study shown has its Ledger row, or a reason
python -m pytest tests/psychology # Psyche's imaging 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.