Calculate d prime (d′) from hit and false-alarm rates or response counts, or from 2AFC proportion correct, using the equal-variance signal detection model.

Choose proportion or percent. Rates must be strictly between 0 and 1 (0% and 100%); use counts for endpoint correction.


Related Calculators

Calculator Functions

FunctionWhat it doesWhat it requires
Yes/no d′ from ratesFinds d′ for a yes/no task from two response ratesRequires the hit rate and the false-alarm rate
Hit rate from d′ and false alarmsPredicts the hit rate that goes with a d′ and a false-alarm rateRequires d′ and the false-alarm rate
False-alarm rate from d′ and hitsPredicts the false-alarm rate that goes with a d′ and a hit rateRequires d′ and the hit rate
Yes/no d′ from response countsFinds d′ from the four response counts, with a correction for rates of 0 or 1Requires the hits, misses, false alarms and correct rejections
2AFC d′ from proportion correctFinds d′ for a two-alternative forced-choice taskRequires the proportion correct

Rates can be entered as a proportion or a percent and must lie strictly between 0 and 1. The two prediction functions can answer in either form. The yes/no functions also report the criterion c, β and A′.

D Prime Formulas

d′ = z(H) − z(F) [1]
d′Sensitivity, in standard deviation units
HHit rate: hits ÷ signal trials
FFalse-alarm rate: false alarms ÷ noise trials
z( )Inverse of the standard normal cumulative distribution, which turns a probability into a z score

The yes/no results add three more measures [1]:

c = −(z(H) + z(F)) ÷ 2
ln β = (z(F)² − z(H)²) ÷ 2
A′ = 0.5 + (H − F)(1 + H − F)
÷ (4H(1 − F))

A positive c means a bias toward answering no, and β equals 1 when neither answer is favoured. The A′ line is for H at or above F. When H is below F, the two rates swap places and the fraction is subtracted from 0.5.

Yes/no d′ from rates

The main formula applies directly. A hit rate of 0.8 and a false-alarm rate of 0.2 give z scores of 0.841621 and -0.841621, so d′ = 1.683242, with c = 0, β = 1 and A′ = 0.875. A d′ below zero means the hit rate is under the false-alarm rate.

Hit rate from d′ and false alarms

H = Φ(d′ + z(F))

Φ is the standard normal cumulative distribution, which turns a z score back into a probability. A d′ of 1.683242 with a false-alarm rate of 0.2 predicts a hit rate of 0.8.

False-alarm rate from d′ and hits

F = Φ(z(H) − d′)

A d′ of 1 with a hit rate of 0.7 predicts a false-alarm rate of 0.317180.

Yes/no d′ from response counts

H = (hits + 0.5) ÷
(hits + misses + 1) [1]
F = (FA + 0.5) ÷
(FA + CR + 1) [1]

FA is the number of false alarms and CR the number of correct rejections. This loglinear correction keeps both rates away from 0 and 1, where a z score does not exist. It is applied to every set of counts, so the result differs a little from d′ worked out from the raw rates. With 40 hits, 10 misses, 5 false alarms and 45 correct rejections, H = 0.794118 and F = 0.107843, so d′ = 2.058872.

2AFC d′ from proportion correct

d′ = √2 × z(Pc) [1]

Pc is the proportion of correct answers. A proportion correct of 0.76 gives d′ = 0.998863. A proportion of 0.5 is chance and gives 0, and a proportion under 0.5 gives a negative d′.

Limits of This Estimate

  • d′, c and β assume that the signal and noise distributions are both normal with the same standard deviation. When that does not hold, d′ changes with response bias [1].
  • A′ needs no normal assumption, but it is not the same number as the area under the ROC curve worked out from d′ [1].
  • The forced-choice formula is for two alternatives and assumes no preference for either position. It does not apply to tasks with three or more alternatives.

Sources

  1. Stanislaw and Todorov, Calculation of signal detection theory measures, Behavior Research Methods, Instruments, & Computers 31 (1999): formulas for d′, the criterion c, β and A′, the loglinear correction and the link between yes/no d′ and two-alternative forced choice