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.
Related Calculators
- Hit Ratio Calculator
- Difference Of Means Calculator
- Beta To Cohen’s D Calculator
- Hattie Effect Size Calculator
- All Statistics Calculators
Calculator Functions
| Function | What it does | What it requires |
|---|---|---|
| Yes/no d′ from rates | Finds d′ for a yes/no task from two response rates | Requires the hit rate and the false-alarm rate |
| Hit rate from d′ and false alarms | Predicts the hit rate that goes with a d′ and a false-alarm rate | Requires d′ and the false-alarm rate |
| False-alarm rate from d′ and hits | Predicts the false-alarm rate that goes with a d′ and a hit rate | Requires d′ and the hit rate |
| Yes/no d′ from response counts | Finds d′ from the four response counts, with a correction for rates of 0 or 1 | Requires the hits, misses, false alarms and correct rejections |
| 2AFC d′ from proportion correct | Finds d′ for a two-alternative forced-choice task | Requires 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′ | Sensitivity, in standard deviation units |
| H | Hit rate: hits ÷ signal trials |
| F | False-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]:
÷ (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
Φ 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
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
(hits + misses + 1) [1]
(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
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
- 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
