Signal and Noise
When you say 'yes, I saw it', how much of that is seeing and how much is saying?
Radar observers on wartime patrols missed real contacts, more as the watch wore on, and Mackworth's Clock Test of 1948 reproduced the decline. But a miss can mean the target went unseen or that the observer was not sure enough to say so, and a hit rate cannot tell which. Detection theory can. Every detection has four outcomes, carried by two numbers, the hit and false-alarm rates; one observer under five reward schemes moves its hit rate from 97% to 37% while its sensitivity stays put. Two normal distributions and a criterion turn the two rates into d' for seeing and c for saying. Sliding the criterion traces the ROC, whose area is the two-choice score; confidence ratings trace a whole curve in one session. The viewer takes a recognition test and reads off a d'. The ideal observer compares the likelihood ratio with the odds and the stakes, and when signals are rare the most accurate rule is nearly silence. Rating ROCs fitted by maximum likelihood test whether the two spreads are equal; recognition's slope is about 0.8. Forced choice scores Phi(d'/root 2) with no criterion. Curved ROCs retired the gate-like threshold, though a recollection-plus-familiarity mixture fits recognition as well. A positive mammogram is cancer about 8% of the time, clearer in natural frequencies. Rare targets are missed more, partly because the criterion follows the base rate and partly because searches end too soon. On the watch, the false alarms tell caution from fatigue.
What you need. Part 11's psychometric function and forced choice, and the normal distribution and its quantile. Likelihood ratios are introduced here; the Neyman-Pearson lemma is proved in Statistics, Built.
- Hook
- Radar observers and Mackworth's Clock Test, 1948
- Ideas, models and mathematics
- four outcomes, d′ and c, the ROC and its area, the ideal observer and the accuracy trap, rating ROCs fitted by maximum likelihood, forced choice, threshold and dual-process rivals, base rates and natural frequencies, the prevalence effect, the vigilance decrement as caution or fatigue, double reading, line-ups, ROC against precision and recall, meta-d′
- Psyche gains
- a detection observer
- On you
- an old/new test with confidence, and your own ROC
What you will be able to do
Psych 101 and the major
- Name the four outcomes of a detection and explain why a hit rate alone is uninterpretable.
- Compute d' and c from a hit rate and a false-alarm rate, and say what each measures.
- Read an ROC: what moving along it and moving between curves mean.
Graduate
- Derive the ideal criterion from the likelihood ratio, the base rate and the payoffs.
- Fit a rating ROC by maximum likelihood and test equal against unequal variances.
- Derive the two-alternative score Phi(d'/root 2) and the area under the ROC.
Research
- Explain how the shape of an ROC separates threshold, detection and mixture models, and its limits.
- Assess the competing accounts of the prevalence effect and of the vigilance decrement.
Practice
- Choose between ROC and precision-recall curves for a classifier with rare positives.
- Explain the share of positive tests that are real from prevalence, hits and false alarms.
Contents
Each chapter has a home level. Choose a track to see what to read and watch: Psych 101 and the major 28 min · Graduate 37 min · Research 44 min · Practice 33 min.
- 0Radar observers, 1940sPsych 101 and the major2 min
- 1Four outcomesPsych 101 and the major3 min
- 2Two distributions and a linePsych 101 and the major3 min
- 3The ROCPsych 101 and the major3 min
- 4On you: old or new?Psych 101 and the major2 min
- 5The ideal observerPsych 101 and the major3 min
- 6Fitting an ROCGraduate2 min
- 7Forced choicePsych 101 and the major2 min
- 8Threshold or signal detection?Graduate2 min
- 9Base ratesPsych 101 and the major3 min
- 10When targets are rareResearch2 min
- 11The watch, revisitedResearch2 min
- 12The LedgerPsych 101 and the major2 min
- 13In practice: screening, alarms and classifiersPractice5 min
- 14Frontier: knowing what you sawResearch2 min
- Recap, problems, and the road aheadAll tracks4 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.
Radar observers, 1940sPsych 101 and the major2 min
In the Second World War, British aircraft hunted submarines by radar. Hour after hour, an observer watched a dim screen for a small blip. A real contact was a faint spot among specks of noise that came and went with every sweep. The Royal Air Force found that its observers missed real contacts, and missed more as a patrol wore on. And sometimes they reported a contact that was nothing at all.
The Air Force asked a psychologist, Norman Mackworth, why. In 1948 he published a laboratory version of the watch. A pointer moves round a blank clock face in small jumps, one a second. Now and then it jumps twice as far, and the observer presses a key. Two hours of this, and the double jumps reported fell as the watch went on. It's called the vigilance decrement, and it's real. But a miss can mean two different things. The observer didn't see the jump. Or the observer saw something, and wasn't sure enough to say so.
Kant's third objection was that observing the mind disturbs it: whatever a person reports is coloured by the reporting. Part 11 gave the first objection a strong reply. The third is still open, and the radar observer shows why. Every yes mixes what was seen with the willingness to say so. Today's question is whether the two can be pulled apart. When you say yes, I saw it, how much of that is seeing, and how much is saying?
Part twelve: signal and noise. We'll start with the four outcomes of a detection, and why a hit rate on its own means nothing. Then the theory: two distributions and a line, giving two numbers, one for seeing and one for saying. The ROC, and your own, from a memory test. The ideal observer, and where the line should go. Rival models, and how the shape of a curve decides between them. And rare targets, base rates, and the screens and alarms that run on this theory every day.
What it does: The radar screen; Mackworth's Clock Test; Kant's third objection; objectives
1Four outcomesPsych 101 and the major3 min
Every detection has two states of the world and two answers, so four outcomes. A signal was there, and the observer said yes: a hit. It was there, and the observer said no: a miss. Nothing was there, and the observer said yes: a false alarm. Nothing was there, and the observer said no: a correct rejection. Misses are just the hits that didn't happen, and correct rejections the false alarms that didn't. So two numbers carry everything: the hit rate and the false-alarm rate. Hold on to both, because one of them on its own is worth nothing.
Here's why. Take one of Psyche's observers and run five experiments. The signals are the same, the observer's eyes are the same. Only the rewards change: in one, a miss costs four times as much as a false alarm; in another, it's the other way round. The hit rate runs from percent down to percent. If you defined a threshold by the hit rate, it would move with the money. But look at the false alarms. They move in lockstep: when the observer says yes more often to signals, it says yes more often to blanks. Something stays fixed underneath, and it's a combination of the two rates. That combination is the sensitivity, and finding it is chapter two. Tanner and Swets made exactly this argument in 1954: the yes-no threshold is not a property of the eye. It's a decision.
There was an older fix for this, and it's still found in multiple-choice scoring and some clinical tests. Correct for guessing: treat the false alarms as lucky guesses, subtract them from the hits, and rescale. The formula quietly assumes a gate: on each trial either the signal got through, or the observer guessed blindly. Chapter eight puts that assumption on trial. Run it on one of Psyche's detection observers at five different criteria. The corrected score slides from down to . d prime stays at the whole way. Every correction is a model of how the answer was produced. Pick the wrong model, and the observer's caution leaks back into the score.
What it does: Hits, misses, false alarms, correct rejections; one observer under five reward schemes; the correction for guessing
2Two distributions and a linePsych 101 and the major3 min
Here's the picture behind the theory, worked out by engineers at Michigan for radar receivers and brought into psychology by Wilson Tanner and John Swets. On every trial the observer has one number to go on: how much evidence there seems to be. It's noisy. On blank trials it varies around zero; on signal trials, around a higher value. The distance between the two centres, in units of the noise, is called d prime. Here it's one and a half. The observer can't know which kind of trial it is. It can only draw a line and say yes whenever the evidence passes it. That line is the criterion. The part of the signal distribution past the line is the hit rate: percent. The part of the noise distribution past the line is the false-alarm rate: percent.
Now run it backwards. From an experiment you get two rates, and you want the two numbers behind them. The false-alarm rate is the noise distribution's tail past the criterion, so its z score, the normal quantile, is minus the criterion. The hit rate is the signal distribution's tail, so its z score is d prime minus the criterion. Subtract, and the criterion cancels: d prime is z of the hit rate minus z of the false-alarm rate. Add them instead, and d prime cancels: minus half the sum is c, where the line sits relative to the midpoint between the two distributions. With our rates: z of the hit rate is , z of the false-alarm rate is minus , so d prime is , and c is : slightly cautious. Two rates in, two numbers out, one for seeing and one for saying.
So the observer has two knobs. Turn the first, and the line slides. Move it left and the observer says yes more, to signals and to blanks alike: hits and false alarms rise together, and d prime doesn't change. Turn the second, and the distributions move apart. Hits rise and false alarms fall at the same time. That's better seeing. Payoffs, base rates and instructions turn the first knob. Practice, stronger signals and better eyes turn the second. A yes-no threshold mixes them. The two numbers keep them apart.
Now go back to chapter one's five reward schemes and convert each pair of rates. d prime comes out at one and a half every time. The criterion runs from when misses are expensive to plus when false alarms are. All the movement was in the saying. That's the first lesson of the theory: a hit rate on its own mixes seeing with saying. Report both rates, or both numbers.
What it does: The picture; d′ and c from two rates; two knobs; chapter 1 in the two numbers
3The ROCPsych 101 and the major3 min
Here's the most useful picture in the theory. On the left, the two distributions and the line. On the right, a square: false-alarm rate across, hit rate up. Start with a strict line, far to the right. Few false alarms and few hits: a point near the bottom left corner. Now slide the line left. Both rates rise, and the point climbs. A lax line, and both are high: top right. Every possible criterion gives one point, and together they trace a curve. The radar engineers called it the receiver operating characteristic, the ROC, and the name stuck. The dashed diagonal is an observer who sees nothing and says yes at random.
Now give Psyche better and better eyes. With d prime zero, the curve is the diagonal: no criterion helps an observer who can't tell signal from noise. As d prime grows, the curve bows up toward the top left corner, where hits are certain and false alarms never happen. One number summarizes a whole curve: the area under it. For d prime one and a half it's . And the area has a meaning. It's the chance that, given one signal trial and one blank, the observer's evidence is higher on the signal. That's exactly the score in a two-alternative forced choice, which is why Part 11 asked which interval was brighter. The same area, under the name AUC, is how most classifiers in machine learning are scored. We'll come back to that.
The area is a fine summary, until you have to choose between two tests. Here are two with exactly the same area. Test A has equal spreads. Test B's signal distribution is twice as wide: some targets are very obvious and some are buried. Their curves cross. In screening, where false alarms must be kept to two percent because so many healthy people are tested, B finds percent of the targets and A only . Allow thirty percent false alarms and they're level. So one number can't rank two tests. Look at the part of the curve where you'll actually work.
Tracing a curve with payoffs takes a session for every point. There's a faster way. Instead of yes or no, ask for a rating: sure no, probably no, maybe no, maybe yes, probably yes, sure yes. Here are the counts from one simulated session. Each boundary between ratings works as a criterion. Count only sure yes as a yes, and you get a strict point. Count sure or probably yes, and you get a laxer one. And so on. Five boundaries, five points, from one session. They fall on the same curve the payoffs would have traced. That agreement, ratings and payoffs moving one line, was among the early evidence that the theory describes something real.
What it does: Slide the line and trace the curve; the family by d′ and the area; two tests with the same area; a whole curve from confidence ratings
4On you: old or new?Psych 101 and the major2 min
Your turn again, and this time it's memory. Twelve words, one at a time. Just read each one and try to remember it.
Now twenty-four words. Half were on the list, half are new. For each one, write down old or new. If you're not sure, guess, and you can mark the guesses with a question mark. Number one.
Here are the answers. Count two things. Your hits: the old words you called old, out of twelve. And your false alarms: the new words you called old, also out of twelve. Pause the video if you need a moment.
Now find your hits down the side and your false alarms along the bottom. The cell is your d prime. For example, hits and false alarms give d prime of about . Notice what the table does. Someone who calls almost everything new, and someone who calls almost everything old, can come out with the same memory. Their caution differs, and the table takes it out. A perfect score of twelve has no z score, because the normal quantile of one is infinite, so the table adds a half to every count and one to every total. And twelve trials of each kind is a small test: your d prime is uncertain by about point six, one standard error. The course site has the full version, with confidence ratings, and it draws your own ROC.
What it does: Twelve words; twenty-four tested; the answers; your d′ from a table
5The ideal observerPsych 101 and the major3 min
So far the criterion was a line on the evidence. What's the best place for it, and is a line on the evidence even the best kind of rule? The answer runs through one quantity: the likelihood ratio, how much more probable this evidence is if a signal was there than if it wasn't. When the two distributions have the same spread, the ratio rises steadily with the evidence, so a line on the evidence is the same as a line on the ratio. And a line on the ratio is the best rule there is. That's the Neyman-Pearson lemma, from 1933: for any false-alarm rate you're willing to accept, the likelihood ratio gives the most hits. Its ROC sits above every other rule's. Statistics, Built proves it in its tenth part. Here, it means the radar observer's question has a best answer.
The lemma doesn't say which false-alarm rate to accept. That depends on two things the eye knows nothing about. The rule: say yes when the likelihood ratio beats the odds against a signal, times the ratio of what's at stake. If signals come half the time and every outcome is worth the same, the bar is one, and the line sits at the midpoint. If signals come one time in five, the evidence must be four times as likely under signal before yes pays. The line moves right, and the hit rate falls to percent. One time in twenty, the bar is nineteen, and the ideal observer catches only percent of the signals. Payoffs enter the same formula. If a miss costs much more than a false alarm, the bar comes down. So a good observer's criterion is supposed to move. The question is whether it moves the right amount.
And here's a trap that catches people who build screening tests. Plot the share of all trials answered correctly against where the line is drawn, for the three base rates. When signals come five percent of the time, the best line gets percent right. Saying no to every single trial gets ninety-five percent right. And the midpoint line, which catches most of the signals, gets only percent. When signals are rare, accuracy rewards silence. If the signal is a tumour or a bomb, accuracy is the wrong goal. The cost of a miss has to enter the formula, and someone has to decide what it is.
What it does: The likelihood ratio and Neyman-Pearson; base rates and payoffs move the line; accuracy rewards silence
6Fitting an ROCGraduate2 min
Everything so far assumed that the two distributions have the same width. That's a claim about the data, and an ROC can test it. Take the z score of both rates. In those coordinates an equal-variance ROC becomes a straight line with slope one. If the signal distribution is wider than the noise, the line is still straight, but its slope is the noise's spread divided by the signal's: a quarter wider gives a slope of point eight. And the intercept is d prime over that spread. So the slope of a z ROC measures something the yes-no task can't: whether signal evidence varies more than noise.
Now fit one. Here's a rating study from an observer whose signal distribution is a quarter wider than its noise. Five points in z coordinates. Fit the model by maximum likelihood, as in Part 11, but now on six-category counts, and fit it two ways: forcing equal spreads, and letting them differ. The free fit finds a slope of and a d prime of , close to the planted point eight and one point two five. And the equal-spread model fits significantly worse. The moral: one pair of rates gives you d prime only if you assume equal spreads. A rating ROC lets you check.
This isn't a curiosity. In recognition memory, deciding whether a word was on a list, z ROC slopes come out near point eight, in experiment after experiment. Ratcliff, Sheu and Gronlund made the point sharply in 1992. The usual reading: the familiarity of studied words varies more than that of new ones, because some words were learned well and some barely at all. But there's a rival reading. Perhaps part of recognition is all-or-none, a sudden recollection of the word on the list, added to graded familiarity. That model bends the curve too. The slope is a fact. What it means is still argued, and chapter eight shows how the shape of an ROC is used to argue it.
What it does: zROCs and their slope; a maximum-likelihood fit, equal against unequal variance; recognition's lopsided evidence
7Forced choicePsych 101 and the major2 min
Part eleven asked which of two intervals was brighter, and claimed that this question has no yes to be cautious about. Here's the reason in the theory. On each trial the observer gets two pieces of evidence, one from the signal interval and one from the blank, and simply picks the larger. There's no line to place. It's right whenever the difference between the two is positive. And the difference of two noisy numbers has twice the variance of either: its standard deviation is root two. So the chance of being right is the normal probability of d prime over root two. For d prime one, that's percent, a little better than an unbiased yes-no observer's , because the comparison uses two looks. Run it backwards and seventy-five percent correct means d prime of root two times the seventy-five percent quantile: point nine five. That's where the factor in Part 11's second problem came from.
Give the observer more alternatives, one signal hidden among several blanks. It's right when the signal's evidence beats every blank's, an integral the computer does in a moment. Guessing now succeeds one time in m, so the floor drops: a half for two alternatives, a quarter for four, an eighth for eight. That's why an eye chart, a choice among many letters, has a small guess rate. Forced choice buys a measurement of d prime that doesn't depend on the observer's caution, at the price of more trials. Yes-no and ratings buy the criterion as well, which matters whenever the criterion is what you're studying.
What it does: The difference of two looks and the root two; more alternatives, a lower floor
8Threshold or signal detection?Graduate2 min
Signal detection had a rival, and it was the older idea. In the high-threshold model a signal either crosses a real threshold and is detected, with some probability p, or it doesn't get through at all. When nothing gets through, the observer guesses, saying yes at some rate that payoffs can push up or down. Work out the ROC: as the guessing rate moves, the point moves along a straight line from p on the left edge to the top right corner. Now put chapter six's ratings on the plot. They curve, and the straight line can't follow them; the signal-detection curve can. Curved ROCs like these, in vision and hearing, were among the first evidence that a sensory threshold, in the old sense of a line below which nothing gets through, doesn't exist. The threshold of Part 11 is a point on a curve, not a gate.
In memory the rival is subtler. Andrew Yonelinas proposed in 1994 that sometimes a studied word is simply recollected: you remember seeing it, and you say old with full confidence. When it isn't, you fall back on familiarity, which behaves like any graded signal. Fit that mixture to the same five points, generated, remember, by an unequal-variance observer. It says percent of studied words were recollected. And it fits essentially as well as the model that made the data. The two curves part only at the very edges of the square, where the strictest and laxest criteria are and where data are scarce. That's why the debate about what recognition's ROC means has run for thirty years. The shape of a curve can rule out a model, as it ruled out the gate. It can't always pick between the survivors.
What it does: The high-threshold line against curved data; recollection plus familiarity, and why it fits as well
9Base ratesPsych 101 and the major3 min
Detection theory describes the test. It doesn't, on its own, tell you what a yes means. Here's a problem that has been put to doctors and students for decades, with these numbers. One percent of the women screened have breast cancer. If a woman has it, the mammogram is positive eighty percent of the time: that's the hit rate. If she doesn't, it's still positive nine point six percent of the time: the false-alarm rate. A woman's mammogram is positive. How likely is it that she has cancer? Take a moment. The answer is about eight percent. Most people, doctors included, guess far higher.
Here's the same problem told in counts instead of percentages. Picture a thousand women. Ten have cancer, and nine hundred and ninety don't. Of the ten, eight test positive. Of the nine hundred and ninety, about ninety-five test positive too, because nine point six percent of a large number is a large number. So of a hundred and three positive tests, eight are cancers. Eight percent. The false alarms swamp the hits, because there are so many more healthy women to make them. In 1995 Gerd Gigerenzer and Ulrich Hoffrage showed that this way of telling it, natural frequencies, roughly tripled the share of people who got the right answer: from about percent to . Still fewer than half. Base rates are hard for minds, and the format of the numbers matters.
The same arithmetic fits on one line, and it ties this chapter to chapter five. The odds of cancer after a positive test are the odds before it, times the hit rate over the false-alarm rate. One in ninety-nine, times , gives odds of about eight in a hundred, which is a probability of about percent. And that ratio, hits over false alarms, is the likelihood ratio of a positive result: chapter five's quantity, for a yes. If a second, independent test is also positive, multiply again: the probability rises to percent. A negative test has a ratio below one and brings the probability down to about one in five hundred. The test supplies the ratio. The population supplies the odds. You need both.
Now keep the test fixed and change who is tested. The hit and false-alarm rates stay the same, d prime of about with the same criterion. In screening, where one woman in a hundred is ill, percent of positives are real. In a clinic where one in ten is ill, it's percent. Same machine, same reader, different meaning. d prime and c describe the test. What a yes means depends also on the population. That's the arithmetic underneath every argument about who should be screened.
What it does: The mammogram problem; natural frequencies; Bayes's rule in odds; the same test in different populations
10When targets are rareResearch2 min
The radar observer's targets were rare. So are a weapon in a suitcase and a tumour on a scan. In 2005 Jeremy Wolfe, Todd Horowitz and Naomi Kenner asked what rarity itself does to a searcher. Observers looked for a tool among overlapping objects, a little like a baggage X-ray. The only thing that changed was how often a target was there at all: on half the displays, a tenth, or one in a hundred. Misses climbed from eleven percent to twenty-five, to fifty-two percent, while false alarms stayed very rare. The people whose job is to find rare things were, in the laboratory at least, worst at finding the rarest.
Signal detection offers an account. Chapter five showed that as targets get rarer, the ideal criterion moves up: more evidence is needed before yes pays. A searcher who lets the criterion follow the base rate will miss more of the rare targets, not from worse eyes but by design. Here's Psyche with its criterion fixed, moved half way to the ideal, and moved all the way. The published misses fall between the half-way and the full move. This is the shape, not a fit: Psyche's sensitivity was chosen, not estimated. But it shows that a missed target need not be an unseen one.
Not everyone accepts that account. In 2007 the psychologists Fleck and Mitroff let observers take back an answer they had just given. Most of the extra misses vanished. Observers had often answered absent before they had finished looking. So part of the prevalence effect is speed: when targets are rare, absent becomes a habit, given fast. A shifting criterion, searches that end too early and a fast habit all seem to contribute, and how much each does is still argued. The practical answer, in airport screening, is to project fake threat images into the stream, so that targets are never quite so rare and a screener's performance can be measured.
What it does: The prevalence effect; a criterion that follows the base rate; quitting too soon
11The watch, revisitedResearch2 min
Back to the radar observer, with the theory in hand. Here are two of Psyche's watchers on a two-hour watch. Watcher A sees as well at the end as at the start, but grows more cautious: its criterion creeps up. Watcher B stays just as willing to say yes, but sees less: its sensitivity drains away. Their hit rates fall identically, block by block. Counting the double jumps reported, Mackworth's measure, can't tell them apart. The false alarms can. The cautious watcher's false alarms fall, because it says yes less to everything. The tiring watcher's rise, because the evidence it's judging is getting worse. The fact Mackworth needed was in the trials without a signal.
So which was it on the real watches? When the theory was turned on vigilance, it found both. A meta-analysis in 1995 by See, Howe, Warm and Dember gathered studies and found a real loss of sensitivity, whose size depended on the kind of discrimination and on how fast events arrived. Later work argued that some decrements that look like lost sensitivity are criterion shifts in disguise. Both happen, and which dominates depends on the watch. The advance is that the question can be asked at all. And it matters, because the remedies differ. Lost sensitivity calls for rest and shorter watches. Caution calls for feedback, payoffs, and the fake targets of chapter ten.
What it does: Two watchers with one hit rate and opposite false alarms; what does fall on a long watch
12The LedgerPsych 101 and the major2 min
Three rows today. The first is the foundation. The claim: changing the payoffs or the base rate moves where an observer says yes, while its sensitivity stays the same. The original: Tanner and Swets, 1954, with a faint spot of light and trained observers. The record: Swets, Tanner and Birdsall in 1961, who found that payoffs, probabilities and confidence ratings all trace one ROC, and Green and Swets's book of 1966, gathering laboratories across vision and hearing. It holds wherever it's been tested, with one qualification: people move their criterion in the right direction, but usually not as far as an ideal observer would. Replicated.
The second. The claim: when targets are rare, searchers miss more of them. The original: Wolfe, Horowitz and Kenner, 2005, with misses rising from eleven to fifty-two percent. The record: the effect repeats, and Fleck and Mitroff showed in 2007 that letting people correct a hasty answer removes much of it. So rare targets really are missed more; why is argued, among criterion, early quitting and speed. Replicated.
The third. The claim: in recognition memory, the z ROC's slope is below one, about point eight. The original: Ratcliff, Sheu and Gronlund, 1992. The record: the slope repeats, and Yonelinas showed in 1994 that a recollection-plus-familiarity mixture also produces it. The slope is solid; its meaning is not settled. Replicated. That makes rows. Three today, all replicated, and each with an argument still running about what it means. Detection theory is very good at measuring. It's more modest about explaining.
What it does: The criterion moves; the prevalence effect; recognition's zROC slope
13In practice: screening, alarms and classifiersPractice5 min
Once you see the two distributions and the line, you see them everywhere. A radiologist looks for a tumour among normal tissue and decides how suspicious a shadow must be before a woman is called back. An airport screener looks for a weapon among clutter. A smoke alarm must tell a fire from toast. A spam filter scores every message and has a line for the junk folder. And a hiring panel has a bar for an offer. In every row there are two separate jobs. Raise d prime: better instruments, a second reader, more information. And set the criterion, which is a question about costs and therefore about values: who pays for a miss, and who for a false alarm? In 2000, John Swets, Robyn Dawes and John Monahan wrote a report arguing that this decision process is the same across fields, and that the tools of this part improve it in all of them.
Many screening programmes have each image read twice. What does the second reader buy? If the two readers' judgements were averaged, and their errors were independent, d prime would grow by root two, from to . But readers trained alike tend to err alike. With their errors correlated at a half, the gain shrinks to , and if they always agree, there's none. And programmes often don't average. A common rule recalls a patient if either reader says yes. Hits rise, from to percent, but false alarms rise too, from to . Recall only if both say yes, and the opposite happens. Those two rules mostly slide the criterion. Only combining the evidence itself raises d prime. Detection theory makes that distinction a calculation.
The sharpest recent use of this theory was in the courtroom's waiting room: the police line-up. For decades, line-up procedures were scored by a ratio: correct identifications of the guilty person divided by false identifications of an innocent one. Here's the trouble. Take one witness with one memory, and move only the criterion. A more cautious witness has a higher ratio, against , with exactly the same ability to tell guilty from innocent. Sequential line-ups, showing faces one at a time, scored the higher ratio and were widely recommended. In 2012 Laura Mickes, Heather Flowe and John Wixted measured the whole ROC instead. Simultaneous line-ups came out better at telling guilty from innocent. The sequential procedure had made witnesses more cautious, not more accurate. The argument over what this means for policy is still going, and Part 21 takes it up. But the lesson is chapter one's: a single number that mixes seeing with saying can point the wrong way.
The ROC left psychology long ago. Medicine adopted it, and machine learning scores most classifiers by the area under it. Here's a spam filter whose scores separate spam from real mail with d prime two: an area of . The ROC doesn't depend on how much spam there is; it's built from two rates that are each conditioned on the truth. That's its strength, and its blind spot. Plot instead precision, the share of flagged messages that really are spam, against recall, the hit rate. When half the mail is spam, at eighty percent recall the filter is right percent of the time. When one message in a hundred is spam, it's right percent of the time: the junk folder is mostly real mail. It's chapter nine's mammogram in another language. For rare targets, report both curves.
What it does: Signal, noise and criterion across fields; double reading; police line-ups; ROC against precision and recall
14Frontier: knowing what you sawResearch2 min
Here's where the theory stands. Solid: sensitivity and criterion come apart, and payoffs, base rates and confidence ratings all move one line. ROCs curve, so the old threshold, a gate below which nothing passes, is gone. And the ideal observer gives a yardstick for how close people get to the best possible decision. Argued: what the evidence axis really is, one number or many combined; why recognition's curve is lopsided; and how people learn where to put the line, and why they usually stop short of the optimum. For Kant's third objection, that's a strong reply. The report does mix seeing with saying. But the mixture can be measured, and taken apart.
The newest use of the theory turns it on the observer's own judgement. After the first decision, was there a signal, comes a second: was I right? Confidence is a detector too, and its signal is being correct. So plot confidence when right against confidence when wrong, and you get a second ROC. Here are three of Psyche's observers with the same eyes and the same accuracy. Only their confidence differs: one reads the evidence exactly, two add noise of their own. Their second ROCs fall in order. In 2012 Brian Maniscalco and Hakwan Lau showed how to put this in d prime's units, meta d prime: how much of the evidence the confidence can use. It's how metacognition is measured now, in studies of insight in psychiatric illness, of expertise, and, in Part 25, of how decisions unfold in time.
Four questions to carry out of this part. Is the evidence really one number? A radiologist combines many features of a shadow. How? Why do people set their criteria short of the optimum, and how do they learn where to put them? What does recognition's lopsided curve mean? And the starred problem: design a study that tells chapter eleven's two watchers apart in a single session.
What it does: What is solid and what is argued; confidence's own ROC and meta-d′; open questions
Recap, problems, and the road aheadAll tracks4 min
Part twelve in ten lines. Radar observers missed contacts, and the question was whether they saw less or said less. Every detection has four outcomes, and two numbers carry them: hits and false alarms. Two distributions and a line turn those into d prime, for seeing, and c, for saying. The ROC traces every possible line, and its area is the score in a two-choice task. The ideal line weighs the likelihood ratio against base rates and payoffs, and when signals are rare, accuracy rewards silence. The slope of a z ROC tests whether the two spreads are equal, and in recognition memory it's about point eight. Forced choice gives d prime over root two, with no criterion at all. Curved ROCs retired the old gate-like threshold, though mixtures remain as rivals. Base rates decide what a yes means: a positive mammogram is cancer about eight percent of the time, and rare targets are missed. And on the long watch, the false alarms tell caution from fatigue.
Kant's wager. Today was the third objection's day: that observing the mind disturbs it, so every report is coloured by the reporting. Detection theory concedes the first half. A yes does mix seeing with saying. But it denies the conclusion. The mixture has a structure, two numbers can be read off it, and the second one, the criterion, turns out to be something worth measuring in its own right. That's a strong reply. Not every report can be taken apart this way, and the hardest, reports of experience itself, wait for Part 27.
Where this comes back. The eye's response to single photons, and its own noise, are Part 13. Recognition memory, line-ups and false memories are Part 21. Confidence and evidence building up over time are Part 25. Base rates and judgment are Part 26. Whether you can see without knowing it, measured with d prime, is Part 27. Alarms, long watches and rare targets are Part 51. And hiring as a detection problem is Part 53.
Seven problems, with full solutions in this part's README. One asks whether two observers see or decide differently. One derives the ideal criterion. One proves what the area under the ROC is. One finds where a positive test becomes a coin flip. One shows what d prime does when the threshold model is true. One uses Psyche's detection module to test for unequal variances. 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. Macmillan and Creelman's user's guide is the place to start for doing it yourself.
So a report can be taken apart into seeing and saying, and the seeing has a number. Which raises the next question: what is the seeing made of? In 1942 three researchers sat in a dark room and asked how few quanta of light a person can see. The answer was a handful, close to the limit physics allows. And it turned out that the eye doesn't send the brain pictures. It sends differences, across space, time and colour, and each step can be written down as a filter. It's Part 13: the eye and the code.
Where it goes next. Single photons and the eye's own noise are Part 13. Recognition and false memories are Part 21, confidence over time Part 25, base rates and judgment Part 26, awareness measured with d' Part 27, alarms and rare targets Part 51, and hiring as detection Part 53.
Key results
The part's results in one place, for revision.
Try it
Lab 12 · Signal detection: seeing, saying and the ROC
Build an observer with normal evidence and a criterion; recover d' and c from its rates and see payoffs move only c; trace ROCs and check that their area is the two-choice score; simulate a rating study, fit it by maximum likelihood with equal and unequal variances and test between them; find the ideal criterion for base rates and payoffs and see accuracy reward silence when signals are rare; compare the high-threshold model's straight ROC with curved data; and work out what a positive test means at different base rates.
python -m videos.psychology.labs 12
needs numpy, scipy, matplotlib · download lab12.py ·
source on GitHubd' = 1.5, criterion at 1.0: hit and false-alarm rates; d' and c recovered 0.691, 0.159; 1.50, 0.25
the same from 400 + 400 simulated trials: d', c 1.44, 0.27
misses costly / even / false alarms costly: hit rates 0.97, 0.77, 0.37
... and d' in each 1.50, 1.50, 1.50
area under the ROC for d' = 1.5; Phi(d'/sqrt 2); simulated 2AFC 0.856; 0.856; 0.855
rating study (sigma_s = 1.25): fitted d', sigma_s, zROC slope 1.35, 1.32, 0.76
equal against unequal variance: chi-square, p 9.5, 0.002
signals 50% of the time: ideal criterion; hit rate; share correct 0.75; 0.77; 0.773
signals 20% of the time: ideal criterion; hit rate; share correct 1.67; 0.43; 0.849
signals 5% of the time: ideal criterion; hit rate; share correct 2.71; 0.11; 0.952
2AFC at d' = 1; 4AFC; d' from 75% correct 0.760; 0.552; 0.95
high-threshold observer, p = 0.5, guessing 0.1 and 0.4: d' 1.41, 0.78
mammogram: positives per 1,000; real; share real 103; 8; 0.078
prevalence where a positive is right half the time 0.107
criterion moved half way to the ideal, prevalence 50%, 10%, 1%: misses 0.11, 0.21, 0.37
Two rates give two numbers: payoffs move c and leave d' alone. The ROC's area equals the two-choice score. A rating study of a few hundred trials can tell unequal variances from equal; a few dozen cannot. When signals are rare the ideal criterion climbs and accuracy rewards silence. The high-threshold model's d' changes with the guessing rate, because its ROC is straight. A positive mammogram at 1% prevalence is right about one time in thirteen.
The code (113 lines; it asserts its own result)
"""Lab 12: d' and c from rates, payoffs that move only the criterion, ROCs and their area, rating ROCs fitted by
maximum likelihood with a test of equal variances, the ideal criterion and the accuracy trap, forced choice, the
high-threshold model's straight ROC, base rates, and the prevalence effect."""
import numpy as np
from scipy import stats
from videos.coursekit import labs
from explainer.psychology.psyche import sdt as D
TITLE = "Signal detection: seeing, saying and the ROC"
GOAL = ("Build an observer with normal evidence and a criterion; recover d' and c from its rates and see payoffs "
"move only c; trace ROCs and check that their area is the two-choice score; simulate a rating study, fit "
"it by maximum likelihood with equal and unequal variances and test between them; find the ideal criterion "
"for base rates and payoffs and see accuracy reward silence when signals are rare; compare the "
"high-threshold model's straight ROC with curved data; and work out what a positive test means at "
"different base rates.")
TASKS = [
"Fit the rating study at 30, 100 and 300 trials of each kind, 200 times each, with sigma_s = 1.25. Plot the "
"spread of the fitted zROC slope against trials. How many trials does one person need for the slope to mean "
"anything?",
"Give the ideal observer a payoff where a miss costs ten times a false alarm, at a base rate of 1%. Where is "
"the criterion, and what are the hit rate and the share of positives that are real?",
"Simulate a high-threshold observer (p = 0.5) at five guessing rates and compute d' at each. Then simulate a "
"signal-detection observer at five criteria. Which one keeps d' constant, and why?",
]
def run(seed=0):
out = labs.Lab()
rng = lambda k: np.random.default_rng(seed + k) # noqa: E731
# 1. two rates, two numbers
h, f = D.rates(1.5, 1.0)
out.row("d' = 1.5, criterion at 1.0: hit and false-alarm rates; d' and c recovered",
f"{h:.3f}, {f:.3f}; {D.dprime(h, f):.2f}, {D.criterion_c(h, f):.2f}")
obs = D.Observer(d=1.5, criterion=1.0)
xs, xn = obs.evidence(True, 400, rng(2)), obs.evidence(False, 400, rng(3))
r = D.from_counts(int((xs > 1.0).sum()), 400, int((xn > 1.0).sum()), 400)
out.row("the same from 400 + 400 simulated trials: d', c", f"{r['d']:.2f}, {r['c']:.2f}")
# 2. payoffs move only the criterion
ks = [D.optimal_criterion(1.5, 0.5, c_miss=4.0), D.optimal_criterion(1.5, 0.5), D.optimal_criterion(1.5, 0.5, c_fa=4.0)]
hh, ff = D.rates(1.5, np.array(ks))
out.row("misses costly / even / false alarms costly: hit rates", ", ".join(f"{v:.2f}" for v in hh))
out.row("... and d' in each", ", ".join(f"{D.dprime(a, b):.2f}" for a, b in zip(hh, ff)))
assert all(abs(D.dprime(a, b) - 1.5) < 1e-9 for a, b in zip(hh, ff)), "payoffs must leave d' alone"
# 3. ROC area and the two-choice score
out.row("area under the ROC for d' = 1.5; Phi(d'/sqrt 2); simulated 2AFC",
f"{D.auc(1.5):.3f}; {D.pc_2afc(1.5):.3f}; {np.mean(rng(4).normal(1.5, 1, 20000) > rng(5).normal(0, 1, 20000)):.3f}")
assert abs(D.auc(1.5) - D.pc_2afc(1.5)) < 1e-12, "the ROC's area is the two-choice score"
# 4. a rating study fitted two ways
o2 = D.Observer(d=1.25, sigma_s=1.25)
cs, cn = D.simulate_ratings(o2, [-0.4, 0.2, 0.7, 1.2, 1.8], 300, 300, rng(6))
u, e = D.fit_rating(cs, cn), D.fit_rating(cs, cn, equal_variance=True)
lr = 2 * (u["loglik"] - e["loglik"])
out.row("rating study (sigma_s = 1.25): fitted d', sigma_s, zROC slope",
f"{u['d']:.2f}, {u['sigma_s']:.2f}, {u['slope']:.2f}")
out.row("equal against unequal variance: chi-square, p", f"{lr:.1f}, {stats.chi2.sf(lr, 1):.3f}")
# 5. the ideal observer and the accuracy trap
for p in (0.5, 0.2, 0.05):
k = D.optimal_criterion(1.5, p)
out.row(f"signals {100 * p:.0f}% of the time: ideal criterion; hit rate; share correct",
f"{k:.2f}; {D.rates(1.5, k)[0]:.2f}; {D.expected_value(1.5, k, p):.3f}")
# 6. forced choice
out.row("2AFC at d' = 1; 4AFC; d' from 75% correct", f"{D.pc_2afc(1.0):.3f}; {D.pc_mafc(1.0, 4):.3f}; "
f"{D.d_from_2afc(0.75):.2f}")
# 7. the high-threshold model
g = np.array([0.1, 0.4])
fa, hit = D.high_threshold_roc(0.5, g)
out.row("high-threshold observer, p = 0.5, guessing 0.1 and 0.4: d'", ", ".join(f"{D.dprime(a, b):.2f}" for a, b in zip(hit, fa)))
# 8. base rates
nf = D.natural_frequencies(0.01, 0.8, 0.096)
assert abs(nf["ppv"] - 8 / 103.04) < 1e-9
out.row("mammogram: positives per 1,000; real; share real", f"{nf['positives']:.0f}; {nf['true_positive']:.0f}; {nf['ppv']:.3f}")
out.row("prevalence where a positive is right half the time", f"{0.096 / (0.8 + 0.096):.3f}")
# 9. the prevalence effect
kp = D.prevalence_criteria(2.5, [0.5, 0.1, 0.01], shift=0.5)
out.row("criterion moved half way to the ideal, prevalence 50%, 10%, 1%: misses",
", ".join(f"{1 - v:.2f}" for v in D.rates(2.5, kp)[0]))
out.note = ("Two rates give two numbers: payoffs move c and leave d' alone. The ROC's area equals the "
"two-choice score. A rating study of a few hundred trials can tell unequal variances from equal; a "
"few dozen cannot. When signals are rare the ideal criterion climbs and accuracy rewards silence. "
"The high-threshold model's d' changes with the guessing rate, because its ROC is straight. A "
"positive mammogram at 1% prevalence is right about one time in thirteen.")
fig, ax = labs.figure(2, size=(11, 4.2))
fg = np.linspace(1e-4, 1 - 1e-4, 300)
for d, col in ((0.5, labs.GREY), (1.0, labs.BLUE), (1.5, labs.GREEN), (2.5, labs.PINK)):
ax[0].plot(fg, 1 - stats.norm.cdf(stats.norm.ppf(1 - fg) - d), color=col, lw=1.6, label=f"d' = {d}")
hr, fr = D.rating_rates(cs, cn)
ax[0].plot(fr, hr, "o", color=labs.PINK, label="rating study")
ax[0].plot([0, 1], [0, 1], ":", color=labs.GREY)
ax[0].set(title="ROCs, and a rating study", xlabel="false-alarm rate", ylabel="hit rate")
ax[0].legend(fontsize=8)
zf, zh = stats.norm.ppf(fr), stats.norm.ppf(hr)
ax[1].plot(zf, zh, "o", color=labs.BLUE)
x = np.linspace(-2, 1, 10)
ax[1].plot(x, u["slope"] * x + u["d"] * u["slope"], color=labs.GREEN, lw=1.6, label=f"unequal: slope {u['slope']:.2f}")
ax[1].plot(x, x + e["d"], color=labs.GREY, lw=1.2, ls="--", label="equal: slope 1")
ax[1].set(title="The same study in z coordinates", xlabel="z(F)", ylabel="z(H)")
ax[1].legend(fontsize=8)
out.fig = fig
return out
Now change it
- Fit the rating study at 30, 100 and 300 trials of each kind, 200 times each, with sigma_s = 1.25. Plot the spread of the fitted zROC slope against trials. How many trials does one person need for the slope to mean anything?
- Give the ideal observer a payoff where a miss costs ten times a false alarm, at a base rate of 1%. Where is the criterion, and what are the hit rate and the share of positives that are real?
- Simulate a high-threshold observer (p = 0.5) at five guessing rates and compute d' at each. Then simulate a signal-detection observer at five criteria. Which one keeps d' constant, and why?
Problems, with solutions
Try each problem before opening its solution.
1. One observer has a hit rate of 0.84 and a false-alarm rate of 0.16; another, 0.69 and 0.07. Find d′ and c for each. Do they see differently, or decide differently?
Solution
First: z(0.84) = 0.99 and z(0.16) = −0.99, so d′ = 1.99 and c = −½(0.99 − 0.99) = 0. Second: z(0.69) = 0.50 and z(0.07) = −1.48, so d′ = 1.97 and c = −½(0.50 − 1.48) = 0.49. Their sensitivities are the same to two decimals; the second observer is more cautious, by about half a standard deviation. Compared by hit rate alone, the second looks worse at seeing; compared by false-alarm rate alone, better. Neither is true.
2. For the equal-variance model, show that the likelihood ratio is exp(d′x − d′²/2), and that the ideal criterion is x* = d′/2 + ln β / d′. Find it for d′ = 2, signals on a quarter of trials, all outcomes worth the same.
Solution
ℓ(x) = φ(x − d′)/φ(x) = exp(−(x − d′)²/2 + x²/2) = exp(d′x − d′²/2). Setting ℓ(x) = β and taking logs gives d′x − d′²/2 = ln β, so x* = d′/2 + ln β / d′. With equal payoffs β = P(noise)/P(signal) = 0.75/0.25 = 3, and x* = 1 + ln 3 / 2 = 1.55. The hit rate is 1 − Φ(1.55 − 2) = Φ(0.45) = 0.67 and the false-alarm rate 1 − Φ(1.55) = 0.06. Because the ratio rises monotonically with x, a line on x is the likelihood-ratio rule, and by the Neyman-Pearson lemma no other rule with this false-alarm rate gets more hits.
3. Show that the area under an equal-variance ROC is Φ(d′/√2), and under an unequal-variance one Φ(d′/√(1 + σ_s²)).
Solution
The ROC plots H(k) = P(X_s > k) against F(k) = P(X_n > k) as k runs over the line. The area is ∫ H dF over the false-alarm axis; substituting F = P(X_n > k), dF is minus the noise density at k, so the area is ∫ P(X_s > k) f_n(k) dk = P(X_s > X_n) for independent draws. The difference X_s − X_n is normal with mean d′ and variance 1 + σ_s², so P(X_s − X_n > 0) = Φ(d′/√(1 + σ_s²)), which for σ_s = 1 is Φ(d′/√2), the two-interval score.
4. With the mammogram's hit and false-alarm rates (0.8 and 0.096), at what prevalence is a positive test right half the time?
Solution
The share of positives that are real is 0.8p / (0.8p + 0.096(1 − p)). Setting it to ½: 0.8p = 0.096(1 − p), so p = 0.096 / 0.896 = 0.107. Only where about one woman in nine is ill does a positive test become a coin flip; in a screening population of 1% it is right about one time in thirteen.
5. A high-threshold observer detects with p = 0.5 and otherwise guesses yes at rate g. Compute d′ from its rates for g = 0.1 and g = 0.4. What does the difference say about using d′ when that model is true?
Solution
H = p + (1 − p)g and F = g. For g = 0.1: H = 0.55, F = 0.10, d′ = z(0.55) − z(0.10) = 0.13 + 1.28 = 1.41. For g = 0.4: H = 0.70, F = 0.40, d′ = 0.52 + 0.25 = 0.78. The observer's sensitivity, p, has not changed, but d′ has halved, because the high-threshold ROC is a straight line and d′ assumes a curved one. If that model were true, comparing d′ across conditions with different criteria would mislead. That observers' d′ stays roughly constant across criteria in real detection data is one of the arguments against the model (chapter 8).
6. With explainer.psychology.psyche.sdt: simulate rating studies from an observer with σ_s = 1.25 at 50 and at
500 trials of each kind, and find how often fit_rating rejects equal variances.
Solution
import numpy as np
from scipy import stats
from explainer.psychology.psyche import sdt as D
obs, crit = D.Observer(d=1.25, sigma_s=1.25), [-0.4, 0.2, 0.7, 1.2, 1.8]
for n in (50, 500):
rejected = 0
for i in range(200):
cs, cn = D.simulate_ratings(obs, crit, n, n, np.random.default_rng(5000 + i))
lr = 2 * (D.fit_rating(cs, cn)["loglik"] - D.fit_rating(cs, cn, equal_variance=True)["loglik"])
rejected += stats.chi2.sf(lr, 1) < 0.05
print(n, rejected / 200)
With 50 trials of each kind the test rejects equal variances 17% of the time; with 500, 91%. A typical recognition experiment has tens of trials per person, which is why zROC slopes are usually estimated from many people pooled, and why a single person's slope means little.
7. ★ Chapter 11's two watchers have the same hit rates. Design a single session that tells them apart, and say what each predicts.
Solution
Include blank trials and count false alarms: the cautious watcher's false alarms fall over the session and the tiring one's rise, while both lose hits; computed block by block, the first keeps d′ and raises c, the second keeps c and loses d′. Two further checks need no new trial types. Ask for a confidence rating on every response and fit a rating ROC per block: the cautious watcher's points slide along one curve, the tiring watcher's curve sinks toward the diagonal. Or change the payoff in the last block, rewarding hits: a watcher who had only grown cautious recovers its early hit rate at an unchanged false-alarm cost, which a watcher who sees less cannot do.
Notes and sources
Where it comes back
The eye's single photons and its own noise: Part 13. Recognition memory, line-ups and false memories: Part 21.
Confidence and evidence over time: Part 25. Base rates and judgment: Part 26. Awareness measured with d′: Part 27.
Alarms, long watches and rare targets: Part 51. Hiring as a detection problem: Part 53. Psyche's sdt module
supplies the observer, the ROCs and the fits those parts use.
Sources
Books. D. M. Green and J. A. Swets, Signal Detection Theory and Psychophysics (1966). N. A. Macmillan and C. D. Creelman, Detection Theory: A User's Guide (2nd ed., 2005). T. D. Wickens, Elementary Signal Detection Theory (2002).
Papers.
- N. H. Mackworth, "The breakdown of vigilance during prolonged visual search", Quarterly Journal of Experimental Psychology 1 (1948) 6–21.
- W. W. Peterson, T. G. Birdsall and W. C. Fox, "The theory of signal detectability", Transactions of the IRE Professional Group on Information Theory 4 (1954) 171–212.
- W. P. Tanner Jr. and J. A. Swets, "A decision-making theory of visual detection", Psychological Review 61 (1954) 401–409.
- J. A. Swets, W. P. Tanner Jr. and T. G. Birdsall, "Decision processes in perception", Psychological Review 68 (1961) 301–340.
- R. Ratcliff, C.-F. Sheu and S. D. Gronlund, "Testing global memory models using ROC curves", Psychological Review 99 (1992) 518–535.
- A. P. Yonelinas, "Receiver-operating characteristics in recognition memory: evidence for a dual-process model", Journal of Experimental Psychology: Learning, Memory, and Cognition 20 (1994) 1341–1354.
- G. Gigerenzer and U. Hoffrage, "How to improve Bayesian reasoning without instruction: frequency formats", Psychological Review 102 (1995) 684–704.
- J. E. See, S. R. Howe, J. S. Warm and W. N. Dember, "A meta-analysis of the sensitivity decrement in vigilance", Psychological Bulletin 117 (1995) 230–249.
- J. A. Swets, R. M. Dawes and J. Monahan, "Psychological science can improve diagnostic decisions", Psychological Science in the Public Interest 1 (2000) 1–26.
- J. M. Wolfe, T. S. Horowitz and N. M. Kenner, "Rare items often missed in visual searches", Nature 435 (2005) 439–440.
- M. S. Fleck and S. R. Mitroff, "Rare targets are rarely missed in correctable search", Psychological Science 18 (2007) 943–947.
- L. Mickes, H. D. Flowe and J. T. Wixted, "Receiver operating characteristic analysis of eyewitness memory: comparing the diagnostic accuracy of simultaneous versus sequential lineups", Journal of Experimental Psychology: Applied 18 (2012) 361–376.
- B. Maniscalco and H. Lau, "A signal detection theoretic approach for estimating metacognitive sensitivity from confidence ratings", Consciousness and Cognition 21 (2012) 422–430.
About this partfrom its README
In the Second World War, British aircraft hunted submarines by radar, and an observer watched a dim screen for hours for a faint blip among specks of noise. The Royal Air Force found that its observers missed real contacts, and missed more as a patrol wore on; sometimes they reported a contact that was nothing. It asked Norman Mackworth why, and in 1948 he published a laboratory version, a clock pointer that now and then jumped twice as far, watched for two hours. The double jumps reported fell as the watch went on. But a miss can mean two things: the jump was not seen, or it was seen and the observer was not sure enough to say so. A hit rate alone cannot tell them apart.
This part is the theory that can, worked out for radar receivers by engineers at Michigan in 1954 and brought into psychology the same year by Wilson Tanner and John Swets. It is the third objection's day in Kant's wager: the observer's report is coloured by the reporting, and detection theory measures the colouring. The route: four outcomes and why a hit rate means nothing alone; two distributions and a line, giving d′ for seeing and c for saying; the ROC, and the viewer's own d′ from a memory test; the ideal observer, the likelihood ratio and the trap in maximizing accuracy when signals are rare; fitting rating ROCs and recognition's slope of 0.8; forced choice and the root two; the high-threshold and dual-process rivals; base rates and the mammogram; the prevalence effect; and the radar watch revisited, where the false alarms tell caution from fatigue. The practice chapter is screening, alarms and the classifier ROC of machine learning; the frontier is confidence about one's own decisions.
What is computed and built
explainer/psychology/psyche/sdt.py: the equal- and unequal-variance observer; hit and false-alarm rates; d′, c and β from rates, with the log-linear correction; ROCs, zROCs and their area; rating counts simulated and fitted by maximum likelihood with equal or unequal variances; the likelihood ratio, the optimal β and criterion from base rates and payoffs, and expected value; two- and m-alternative forced choice; the high-threshold and dual-process ROCs; natural frequencies and positive predictive value; criteria that follow prevalence. Tested intests/psychology/test_sdt.py.- The Ledger gains three rows and the Archive thirteen datasets.
- The course's interactive is an old/new recognition test with confidence ratings that draws the reader's ROC.
Chapter notes
| # | Chapter | What it does |
|---|---|---|
| 0 | Radar observers, 1940s | The radar screen; Mackworth's Clock Test; Kant's third objection; objectives |
| 1 | Four outcomes | Hits, misses, false alarms, correct rejections; one observer under five reward schemes; the correction for guessing |
| 2 | Two distributions and a line | The picture; d′ and c from two rates; two knobs; chapter 1 in the two numbers |
| 3 | The ROC | Slide the line and trace the curve; the family by d′ and the area; two tests with the same area; a whole curve from confidence ratings |
| 4 | On you: old or new? | Twelve words; twenty-four tested; the answers; your d′ from a table |
| 5 | The ideal observer | The likelihood ratio and Neyman-Pearson; base rates and payoffs move the line; accuracy rewards silence |
| 6 | Fitting an ROC | zROCs and their slope; a maximum-likelihood fit, equal against unequal variance; recognition's lopsided evidence |
| 7 | Forced choice | The difference of two looks and the root two; more alternatives, a lower floor |
| 8 | Threshold or signal detection? | The high-threshold line against curved data; recollection plus familiarity, and why it fits as well |
| 9 | Base rates | The mammogram problem; natural frequencies; Bayes's rule in odds; the same test in different populations |
| 10 | When targets are rare | The prevalence effect; a criterion that follows the base rate; quitting too soon |
| 11 | The watch, revisited | Two watchers with one hit rate and opposite false alarms; what does fall on a long watch |
| 12 | The Ledger | The criterion moves; the prevalence effect; recognition's zROC slope |
| 13 | In practice: screening, alarms and classifiers | Signal, noise and criterion across fields; double reading; police line-ups; ROC against precision and recall |
| 14 | Frontier: knowing what you saw | What is solid and what is argued; confidence's own ROC and meta-d′; open questions |
| Recap, problems, and the road ahead | Ten lines; the third objection; payoffs; problems; references; Part 13 |
NotesWhere the numbers come from
| What | Source |
|---|---|
| Airborne radar observers missing contacts; the RAF's request; the Clock Test, two hours, the vigilance decrement | Mackworth (1948), from encyclopedia entries and reviews; registered in SOURCES.md; the detection rates are not given |
| The theory of signal detectability, noise against signal plus noise, and the ROC for receivers | Peterson, Birdsall and Fox (1954), from the library record and later accounts |
| A decision-making theory of visual detection; the yes-no threshold as a decision | Tanner and Swets (1954) |
| Payoffs, probabilities and ratings on one ROC; the theory's spread in psychology | Swets, Tanner and Birdsall (1961), from later reviews; Green and Swets (1966) |
| The likelihood-ratio rule is most powerful | Neyman and Pearson (1933), as in Statistics, Built, Part 10 |
| Recognition zROC slopes near 0.8 | Ratcliff, Sheu and Gronlund (1992), from reviews |
| The dual-process (recollection plus familiarity) account of recognition ROCs | Yonelinas (1994), from the author's posted copy |
| The mammogram problem: 1%, 80%, 9.6%; correct answers 16% with probabilities, 46% with natural frequencies | Gigerenzer and Hoffrage (1995), from later papers quoting it; Eddy (1982) for the problem |
| Misses of 11%, 25% and 52% at prevalences of 50%, 10% and 1%; false alarms very rare | Wolfe, Horowitz and Kenner (2005), from a public copy of the text |
| Letting observers correct a hasty answer removes much of the prevalence effect | Fleck and Mitroff (2007), from later summaries |
| 42 vigilance studies: a real sensitivity decrement that depends on the task and the event rate | See, Howe, Warm and Dember (1995), from the abstract |
| The same decision process across diagnostic fields | Swets, Dawes and Monahan (2000), from the abstract |
| Meta-d′: how much of the evidence confidence can use | Maniscalco and Lau (2012), from the abstract |
| Line-ups: sequential procedures had the higher diagnosticity ratio (0.44/0.15 against 0.52/0.28) but simultaneous ones discriminated better by ROC | Mickes, Flowe and Wixted (2012), from the posted copy's summary as quoted |
Everything else is computed by compute.py with Psyche's sdt module and is a model's behaviour, tagged as such on
screen. Psyche's observer has normal evidence on blank trials and normal evidence shifted by d′ (and in chapters 6
and 8 widened by 1.25) on signal trials, and says yes past a criterion. Every simulated study shown alone is the
middle one of many by a statistic fixed in advance. The radar screen, the clock, and the distributions of
recognition's familiarity are drawings and say so.
| Number on screen | Value | How |
|---|---|---|
| One observer (d′ = 1.5) under five payoff schemes: hit rates; false-alarm rates; d′; c | 97% to 37%; 63% to 3%; 1.50 in every scheme; −1.07 to +1.07 | the best criterion for each scheme |
| The correction for guessing, (H − F)/(1 − F), for one observer at five criteria; d′ | 0.87 down to 0.29; 1.50 throughout | closed form |
| A criterion at 1.0 with d′ = 1.5: hit and false-alarm rates; z scores; d′; c | 69%, 16%; 0.50, −1.00; 1.50; 0.25 | closed form |
| Area under the ROC for d′ = 1.5 | 0.856, the same as Φ(d′/√2) | closed form |
| Two tests with equal area (0.856): hits at 2% false alarms; at 30% | B (signal twice as wide) 56%, A 29%; 82% and 84% | binormal ROCs crossing near 27% |
| A rating study (150 + 150 trials): five ROC points | on the d′ = 1.5 curve | the middle of 101 by area |
| On you: 9 hits and 3 false alarms of 12 | d′ ≈ 1.2, c ≈ 0 | log-linear correction |
| Ideal criteria for signals 50%, 20%, 5% of the time: β; hit rates | 1, 4, 19; 77%, 43%, 11% | d′ = 1.5, equal payoffs |
| At 5%: correct with the best line; saying no to everything; the midpoint line | 95.2%; 95%; 77% | the same |
| Rating study from σ = 1.25: fitted slope and d′; equal-variance test | 0.81 and 1.19 (planted 0.80, 1.25); χ² = 5.5, p = 0.019 | 300 + 300 trials, the middle of 41 by slope |
| Two-interval forced choice at d′ = 1: correct; an unbiased yes-no observer | 76%; 69% | Φ(d′/√2), Φ(d′/2) |
| 75% correct in two-interval choice means d′ = | 0.95 | √2 z₀.₇₅ |
| High-threshold line against the rating data: squared error; detection curve; dual process (recollection 15%) | 0.051; 0.001; 0.002 | least squares in ROC space |
| Mammogram in natural frequencies: of 103 positives, real | 8 (7.8%) | 1,000 women |
| The same test where 10% are ill | 48% | the same rates |
| Bayes's rule in odds: likelihood ratio of a positive; after a second positive; after a negative | 8.3; 41%; 0.22% | odds before × H/F |
| Misses for a criterion moved half way, and all the way, to the ideal at 50%, 10%, 1% (d′ = 2.5) | 11%, 21%, 37%; 11%, 36%, 72% | the published 11%, 25%, 52% lie between |
| Two watchers over two hours: hit rates; false alarms (A, growing cautious; B, seeing less) | 76% to 44% for both; 10% to 2% (A), 10% to 32% (B) | 25 signals and 225 blanks a block |
| Two readers, each d′ = 1.5: averaged, independent; correlated 0.5; 'either says yes' hits and false alarms; 'both' | 2.12; 1.73; 95% and 40%; 60% and 5% | closed form |
| One witness at two criteria: diagnosticity ratio (d′ = 1.2) | 2.5 lax, 4.7 strict | the same ROC |
| A spam filter with d′ = 2: area under the ROC; precision at 80% recall, half spam and 1% spam | 0.92; 87% and 6% | closed form |
| Confidence's own ROC: area for an exact, a noisy and a noisier confidence (accuracy 77% for all) | 0.73, 0.65, 0.57 | 200,000 simulated trials each |
Notes
| Finding | Original | Status |
|---|---|---|
| Changing the payoffs or the base rate moves where an observer says yes, while sensitivity stays the same | Tanner and Swets 1954 | replicated |
| When targets are rare, searchers miss more of them | Wolfe, Horowitz and Kenner 2005 | replicated |
| Recognition memory's zROC slope is below one, about 0.8 | Ratcliff, Sheu and Gronlund 1992 | replicated |
Shown without a row, with the reason recorded in explainer/psychology/ledger.py: Mackworth's watch and the 1995
meta-analysis (vigilance is entered in Part 51), the mammogram problem (judgment is entered in Part 26), meta-d′ (a
method; confidence is entered in Part 25), Swets, Dawes and Monahan (a review of applications) and the line-up study
(a live dispute; eyewitness memory is entered in Part 21).
Notes
Before the narrated master:
- The radar story: "the Royal Air Force found that its observers missed real contacts, and missed more as a patrol wore on", "sometimes reported a contact that was nothing", and "asked Mackworth why" are from encyclopedia entries and reviews, not from Mackworth (1948). "A pointer that jumps one step every second" is the usual description of the clock; the number of double jumps and the detection rates are not given.
- "Engineers at Michigan for radar receivers": Peterson, Birdsall and Fox's paper concerns detecting signals in noise for receivers; that it was built for radar specifically is the usual account, from memory.
- "The ROC" as the radar engineers' name: from the theory's histories, not checked against the 1954 paper's wording.
- That people move their criterion in the right direction but less than an ideal observer (the Ledger row's note) is the usual summary in detection texts, from memory.
- Neyman-Pearson (1933) and Statistics, Built Part 10: the cross-reference follows the syllabus.
- Recognition's slope of 0.8 and its readings (wider old-item distributions, encoding variability, the dual-process mixture) are from reviews; Ratcliff et al.'s title and pages are from memory.
- The mammogram: "most people, doctors included, guess far higher" is the standard summary of Eddy (1982) and later studies, from memory; the 16% and 46% are one source's figures, which others round to "about 20%" and "about 50%".
- Wolfe et al. (2005): the stimuli as "a tool among overlapping objects, like a baggage X-ray" and the three miss rates are from a public copy of the text; the number of observers is not given. Fleck and Mitroff (2007): that "most of the extra misses disappeared" is a summary; the volume and pages are from memory. Threat-image projection at airports is described from general knowledge.
- See et al. (1995): "a real loss of sensitivity whose size depended on the kind of discrimination and on event rate" is from the abstract as quoted; the later criterion-shift argument is from a 2015 paper found by search.
- Swets, Dawes and Monahan (2000): only the abstract was read; the table of fields on screen is this film's.
- The prevalence model (a criterion moved a share of the way to the accuracy-maximizing one) and the confidence model (confidence reading the evidence with extra noise) are illustrations whose constants were chosen; the watchers' rates were constructed so that their hit rates match exactly.
- The correction for guessing as "still found in multiple-choice scoring and some clinical tests" is a general statement from memory.
- Double reading: "many screening programmes have each image read twice" and the 'either says yes' rule are general descriptions; the readers' correlation of 0.5 is an illustration.
- Line-ups: the ratios 0.44/0.15 and 0.52/0.28 are from one experiment as quoted in a summary; that sequential line-ups were "widely recommended" is from the paper's framing and later commentary; the authors' first names (Laura Mickes, Heather Flowe, John Wixted) are from memory. Defences of the ratio exist (for example Clark 2012) and are not presented in detail.
Companion material in this repository
The syllabus's plan for this partfrom SYLLABUS.md, the plan of record
- Hook: the radar screen; Mackworth's Clock Test; the third objection; objectives.
- Four outcomes, two free numbers; one observer under five reward schemes (hits 97% to 37%, d′ 1.5 throughout); the correction for guessing slides from 0.87 to 0.29 with d′ fixed.
- Two distributions and a line: d′ = z(H) − z(F) and c derived; two knobs; chapter 1 in the two numbers.
- The ROC traced by sliding the criterion; the family by d′ and its area (0.856 = Φ(d′/√2)); two tests with the same area that cross (56% against 29% hits at 2% false alarms); a whole ROC from confidence ratings.
- On you: twelve words studied, twenty-four tested; d′ from a table with the log-linear correction.
- The ideal observer: the likelihood ratio and Neyman–Pearson; base rates and payoffs set β (1, 4, 19); at 5% prevalence the best line gets 95.2% and "always no" 95%.
- Fitting: zROCs and slope 1/σ; a rating study fitted by maximum likelihood (slope 0.81, χ² = 5.5); recognition's slope of about 0.8 (Ratcliff, Sheu & Gronlund 1992).
- Forced choice: Φ(d′/√2) derived; m alternatives and a lower floor.
- Rivals: the high-threshold line against curved data; Yonelinas's recollection plus familiarity fits as well.
- Base rates: the mammogram (8 of 103; Gigerenzer & Hoffrage 1995); Bayes's rule in odds (a second positive: 41%); the same test at 1% and 10% prevalence.
- The prevalence effect (Wolfe et al. 2005: 11%, 25%, 52%); a criterion that follows the base rate; Fleck and Mitroff's correctable search; threat-image projection.
- The watch revisited: two watchers with one hit rate and opposite false alarms; See et al. (1995).
- The Ledger. 13. In practice: signal, noise and criterion across fields; double reading (√2 if independent); police line-ups and the diagnosticity ratio (Mickes, Flowe & Wixted 2012); ROC against precision and recall. 14. Frontier: what is solid and argued; confidence's own ROC and meta-d′ (Maniscalco & Lau 2012).
Psyche: sdt (explainer/psychology/psyche/sdt.py): equal- and unequal-variance observers; d′, c and β from
rates with the log-linear correction; ROCs, zROCs and their area; rating ROCs simulated and fitted by maximum
likelihood; the likelihood ratio and the ideal criterion under base rates and payoffs; two- and m-alternative
choice; high-threshold and dual-process ROCs; natural frequencies and predictive value; criteria that follow
prevalence.
On you: the in-film old/new test. The interactive is a recognition test with a six-point confidence scale that
draws the reader's ROC and gives d′, c and the area.
Ledger: the criterion moves while sensitivity stays (replicated); the prevalence effect (replicated);
recognition's zROC slope below one (replicated). Shown without rows, with reasons: Mackworth and See et al.
(Part 51), the mammogram (Part 26), meta-d′ (Part 25), Swets, Dawes & Monahan, and the line-up study (Part 21).
In practice: radiology and double reading, airport screening, alarms, line-ups, classifier ROC and
precision-recall.
Frontier: metacognition and meta-d′; whether the evidence is one-dimensional; criterion learning.
Reading: Tanner & Swets 1954; Swets, Tanner & Birdsall 1961; Green & Swets 1966; Macmillan & Creelman,
Detection Theory; Wickens, Elementary Signal Detection Theory; Swets, Dawes & Monahan 2000; Gigerenzer &
Hoffrage 1995; Wolfe et al. 2005; Mickes et al. 2012.
Build the film
python -m videos.psychology.psych12.compute # the part's numbers, into .cache/psych12
python tools/build.py psych12 # render and assemble the film
EXPLAINER_TTS=silent python tools/qa_scene.py psych12 Hook # one chapter, silent, with a contact sheet
Scenes: videos/psychology/psych12. Setup: see the course page. Source of these notes: the README and the scenes' narration.
Build it
python -m videos.psychology.psych12.compute # every number (under a minute), into .cache/psych12/
python tools/qa_scene.py psych12 Roc # one chapter, silent, at 480p, with a contact sheet
EXPLAINER_TTS=silent python tools/build.py psych12 -q l # the whole part, silent preview
python tools/build.py psych12 # 1080p30 with narration
python tools/qa_scene.py psych12 Roc --lang zh # the Chinese edition of one chapter
python tools/make.py psych12 # both editions, with the checks a long build needs
python -m videos.psychology.labs 12 # the lab: d′ and c, ROCs, fitting, the ideal observer
python tools/check_ledger.py psych12 # every study shown has its Ledger row, or a reason
python -m pytest tests/psychology # Psyche's sdt module, 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.