Sub topic 4
Signal detection theory: sensitivity versus response bias
This chapter assumes you know what an absolute threshold is (from the previous chapter), what a z-score is, and how to read a proportion as a rate. It also assumes you have read basic Python.
Why a fixed threshold is not enough
The classic threshold idea says a stimulus is detected once it passes a fixed intensity. Real observers do not behave that way. A radiologist scanning an X-ray, or a listener straining to hear a faint tone, will sometimes say "yes" when nothing is there. Their willingness to say "yes" also changes with the situation.
Signal detection theory (SDT) explains this. Every trial has two parts:
- Sensitivity is how well the observer's internal evidence separates a real signal from noise.
- Response bias is how much evidence the observer demands before saying "yes."
SDT measures these two things separately. A plain "percent correct" score mixes them together.
The four outcomes
On each trial, the signal is either present or absent, and the observer answers "yes" or "no." That gives four outcomes.
| Signal | Observer says "yes" | Observer says "no" |
|---|---|---|
| Present | Hit | Miss |
| Absent | False alarm | Correct rejection |
Only two rates are independent. The hit rate is hits divided by all signal-present trials. The false-alarm rate is false alarms divided by all signal-absent trials. The miss rate is 1 minus the hit rate, and the correct-rejection rate is 1 minus the false-alarm rate.
The model: two overlapping distributions
SDT assumes the observer's internal evidence varies from trial to trial because of neural noise. On noise-only trials, evidence follows a bell curve. On signal trials, it follows a second bell curve shifted upward. The two curves overlap, so no single evidence value separates signal from noise perfectly.
The observer picks a criterion, a cutoff on the evidence axis. Evidence above the cutoff produces "yes," and evidence below it produces "no."
- d-prime (d′) is the distance between the two curve centers, measured in standard deviations. A larger d′ means less overlap and better sensitivity.
- Criterion (c) is the position of the cutoff relative to the midpoint between the curves. Zero is neutral. A positive value is conservative (fewer "yes" answers). A negative value is liberal (more "yes" answers).
Computing d′ and c
Convert each rate to a z-score with the inverse of the normal cumulative distribution. Then:
- d′ = z(hit rate) − z(false-alarm rate)
- c = −0.5 × (z(hit rate) + z(false-alarm rate))
The script below compares two observers who have the same sensitivity but different bias.
from statistics import NormalDist
z = NormalDist().inv_cdf
def d_prime(hit_rate, false_alarm_rate):
return z(hit_rate) - z(false_alarm_rate)
def criterion(hit_rate, false_alarm_rate):
return -0.5 * (z(hit_rate) + z(false_alarm_rate))
observers = {
"conservative": (0.69, 0.07),
"liberal": (0.93, 0.31),
}
for name, (hits, fas) in observers.items():
print(name, round(d_prime(hits, fas), 2), round(criterion(hits, fas), 2))
# conservative 1.97 0.49
# liberal 1.97 -0.49The liberal observer has far more hits (93% against 69%). That does not mean better detection. The liberal observer also has far more false alarms (31% against 7%). Both observers have d′ of about 1.97, so their sensitivity is the same. Only the criterion differs.
For comparison, a hit rate of 0.84 with a false-alarm rate of 0.16 gives d′ of about 1.99 and a criterion of 0, which is neutral.
What moves the criterion
Sensitivity depends on the stimulus and the sensory system. The criterion depends on the observer's goals and expectations. Two common influences:
- Payoffs. If a miss is costly (a missed tumor), observers become more liberal. If a false alarm is costly (a false fire alarm), they become more conservative.
- Base rates. If signals are common, observers say "yes" more readily. If signals are rare, they say "no" more readily. This is one reason rare targets, such as a weapon in baggage, are often missed.
The ROC curve
An observer can change the criterion while d′ stays fixed. Plotting hit rate against false-alarm rate across several criteria gives a receiver operating characteristic (ROC) curve. The curve bows toward the top-left corner as d′ increases. A diagonal line means d′ of zero, which is pure guessing.
Common errors and edge cases
- Judging by hit rate alone. A high hit rate can come from a liberal criterion. Always look at the false-alarm rate too.
- Rates of exactly 0 or 1. The z-score is infinite, and
inv_cdfraises an error. A common fix is to add 0.5 to each count and 1 to each total before computing the rates. - Too few trials. With few trials the rates are unstable, so d′ is noisy.
- Assuming equal variance. The formulas above assume both curves have the same spread. When they do not, d′ depends on the criterion. ROC analysis can reveal this.
SDT applies well beyond lab sensory tasks. It is used for medical screening, eyewitness identification, lie detection, and memory research.
Exercise
An observer in a tone-detection task has a hit rate of 0.84 and a false-alarm rate of 0.16. After a payoff change that penalizes false alarms heavily, the hit rate drops to 0.69 and the false-alarm rate drops to 0.07. Did the observer's sensitivity change, or the response bias? Use the numbers in this chapter.
Show answer
Sensitivity stayed about the same: d′ was about 1.99 before and about 1.97 after. The criterion moved from 0 (neutral) to about +0.49 (conservative). The penalty changed the response bias, not the ability to detect the tone. The lower hit rate reflects caution, not worse hearing.