A module for fitting 2AFC psychometric data
Project description
psychofit
A module for fitting 2AFC psychometric data
The psychofit module contains tools to fit two-alternative psychometric data. The fitting is done using maximal likelihood estimation: one assumes that the responses of the subject are given by a binomial distribution whose mean is given by the psychometric function.
The data can be expressed in fraction correct (from 50 to 100%) or in fraction of one specific choice (from 0 to 100%). To fit them you can use these functions:
weibull50
- Weibull function from 0.5 to 1, with lapse rateweibull
- Weibull function from 0 to 1, with lapse rateerf_psycho
- erf function from 0 to 1, with lapse rateerf_psycho_2gammas
- erf function from 0 to 1, with two lapse rates
Functions in the toolbox are:
mle_fit_psycho
- Maximumum likelihood fit of psychometric functionneg_likelihood
- Negative likelihood of a psychometric function
For more info, see: Examples - Examples of use of psychofit toolbox
Matteo Carandini (2000-2017) initial Matlab code
Miles Wells (2017-2018) ported to Python
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for Psychofit-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7029430f01bbffe295cdc48ae15e4c3020073e2004c528bcf098da7dbb3d6894 |
|
MD5 | 0f01cbf1383bd136ed1b07b8a9775018 |
|
BLAKE2b-256 | 15cf7477d5ef2d0ba0819262b1b9ec8472222eca8b99b3e233e525db566b6244 |