#StackBounty: #matlab #signal-detection Negative correlation between d' and hit rates?

Bounty: 100

I have data from a relatively easy task where subjects had to detect a signal in noise. I computed the hit and false alarm rates (HR, FAR), and then proceeded to compute d’ using the standard formula, found e.g. in Green&Swets 1966, and described also here:

d' = z(FAR) – z(HR),

where the z-scores for the left-tail p-values from the normal distribution are computed in Matlab as:

z(HR)  = norminv(1-HR, 0, 1)
z(FAR) = norminv(1-FAR, 0, 1).

This produced all-negative values for d’, and I know the usual practice is to then inverse the sign in the d’ formula, to get positive d’ values:

d' = z(HR) – z(FAR)

As a sanity check, I created a cross-subjects scatterplot of raw HR values against d’, expecting to find a by-and-large positive correlation. However, what I found was a very neat negative correlation:

enter image description here

I know the p-value in the above formulas for the z-scores are taken by some not as 1-p but simply as p, thus I recalculated z(HR) and z(FAR) as

z(HR)  = norminv(HR, 0, 1)
z(FAR) = norminv(FAR, 0, 1)

To have positive d’ values, I went back to its z(FAR)-z(HR) formula, but the values & their plot end up looking the same as the screenshot above.

Surely, assuming moderate FARs across the board, subjects with the highest HRs should in principle also have the highest d’ values?! What am I getting confused here?

REFERENCE: Green, D. M., & Swets, J. A. (1966). Signal detection theory and psychophysics (Vol. 1). Wiley New York.


EDIT: Having done more sanity checks on the data, the calculation of the FARs was in fact erroneous, and this was leading to the absurd negative correlation described. Once that fixed, the formulas above (with p rather than 1-p for norminv, and polarity HR-FAR rather than FAR-HR) gives sensible d’ values and a positive correlation. I will post this an answer as well.


Get this bounty!!!

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.