pysdt

A module for computing signal detection theory measures. Some of the functions in this module have been ported to python from the ‘psyphy’ R package of Kenneth Knoblauch http://cran.r-project.org/web/packages/psyphy/index.html

Functions

compute_proportions(nCA, nTA, nIB, nTB, corr) Compute proportions with optional corrections for extreme proportions.
dprime_ABX(H, FA, meth) Compute d’ for ABX task from ‘hit’ and ‘false alarm’ rates.
dprime_ABX_from_counts(nCA, nTA, nCB, nTB, …) Compute d’ for ABX task from counts of correct and total responses.
dprime_SD(H, FA, meth) Compute d’ for one interval same/different task from ‘hit’ and ‘false alarm’ rates.
dprime_SD_from_counts(nCA, nTA, nCB, nTB, …) Compute d’ for one interval same/different task from counts of correct and total responses.
dprime_mAFC(Pc, m) Compute d’ corresponding to a certain proportion of correct
dprime_oddity(prCorr[, meth]) Compute d’ for oddity task from proportion of correct responses.
dprime_yes_no(H, FA) Compute d’ for one interval ‘yes/no’ type tasks from hits and false alarm rates.
dprime_yes_no_from_counts(nCA, nTA, nCB, …) Compute d’ for one interval ‘yes/no’ type tasks from counts of correct and total responses.
gaussianPsy(x, alphax, betax, gammax, lambdax) Compute the gaussian psychometric function.
gumbelPsy(x, alphax, betax, gammax, lambdax) Compute the gumbel psychometric function.
invGaussianPsy(p, alphax, betax, gammax, lambdax) Compute the inverse gaussian psychometric function.
invGumbelPsy(p, alphax, betax, gammax, lambdax) Compute the inverse gumbel psychometric function.
invLogisticPsy(p, alphax, betax, gammax, lambdax) Compute the inverse logistic psychometric function.
invWeibullPsy(p, alphax, betax, gammax, lambdax) Compute the inverse weibull psychometric function.
logisticLikelihood(lev, response, alphax, …)
logisticPsy(x, alphax, betax, gammax, lambdax) Compute the logistic psychometric function.
weibullPsy(x, alphax, betax, gammax, lambdax) Compute the weibull psychometric function.