DetectionTheory.dprimeABXMethod

Compute d' for an ABX task from 'hit' and 'false alarm' rates.

dprimeABX(H, FA, method)

Arguments

  • H::Real: Hit rate.
  • FA::Real : False alarm rate.
  • method::String: 'diff' for differencing strategy or 'IO' for independent observations strategy.

Returns

  • dprime::Real: d' value

References

  • Macmillan, N. A., & Creelman, C. D. (2004). Detection Theory: A User’s Guide (2nd ed.). London: Lawrence Erlbraum Associates.

Examples

    #independent observations model
    dp = dprimeABX(0.7, 0.2, "IO")
    #differencing model
    dp = dprimeABX(0.7, 0.2, "diff")
DetectionTheory.dprimeMAFCMethod

Compute d' corresponding to a certain proportion of correct responses in m-AFC tasks.

dprimeMAFC(pc, m)

Arguments

  • Pc::Real: Proportion of correct responses.
  • m::Integer: Number of alternatives.

Returns

  • dprime::Real: d' value

References

  • Green, D. M., & Swets, J. A. (1988). Signal Detection Theory and Psychophysics. Los Altos, California: Peninsula Publishing.
  • Green, D. M., & Dai, H. P. (1991). Probability of being correct with 1 of M orthogonal signals. Perception & Psychophysics, 49(1), 100–101.

Examples

    dp = dprimeMAFC(0.7, 3)
DetectionTheory.dprimeOddityMethod

Compute d' for an odd-one-out task.

dprimeOddity(pc, method)

Arguments

  • pc::Real: Proportion of correct responses.
  • method::String: 'diff' for differencing strategy or 'IO' for independent observations strategy.

Returns

  • dprime::Real: d' value

References

  • Macmillan, N. A., & Creelman, C. D. (2004). Detection Theory: A User’s Guide (2nd ed.). London: Lawrence Erlbraum Associates.
  • Versfeld, N. J., Dai, H., & Green, D. M. (1996). The optimum decision rules for the oddity task. Perception & Psychophysics, 58(1), 10–21.

Examples

    dp = dprimeOddity(0.7, "diff")
    dp = dprimeOddity(0.7, "IO")
DetectionTheory.dprimeSDMethod

Compute d' for one interval same/different task from 'hit' and 'false alarm' rates.

dprimeSD(H, FA, method)

Arguments

  • H::Real: Hit rate.
  • FA::Real : False alarm rate.
  • method::String: 'diff' for differencing strategy or 'IO' for independent observations strategy.

Returns

  • dprime::Real: d' value

References

  • Macmillan, N. A., & Creelman, C. D. (2004). Detection Theory: A User’s Guide (2nd ed.). London: Lawrence Erlbraum Associates.
  • Kingdom, F. A. A., & Prins, N. (2010). Psychophysics: A Practical Introduction. Academic Press.

Examples

    #independent observations model
    dp = dprimeSD(0.7, 0.2, "IO")
    #differencing model
    dp = dprimeSD(0.7, 0.2, "diff")
DetectionTheory.dprimeYesNoMethod

Compute d' for one interval "yes/no" type tasks from hits and false alarm rates.

dprimeYesNo(H, FA)

Arguments

  • H::Real: Hit rate.
  • FA::Real: False alarms rate.

Returns

  • dprime::Real: d' value

References

  • Green, D. M., & Swets, J. A. (1988). Signal Detection Theory and Psychophysics. Los Altos, California: Peninsula Publishing.
  • Macmillan, N. A., & Creelman, C. D. (2004). Detection Theory: A User’s Guide (2nd ed.). London: Lawrence Erlbraum Associates.

Examples

    dp = dprimeYesNo(0.7, 0.2)