Skip to main content

A module for fitting 2AFC psychometric data

Project description

psychofit

Coverage Status CI

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 rate.
  • weibull - Weibull function from 0 to 1, with lapse rate.
  • erf_psycho - erf function from 0 to 1, with lapse rate.
  • erf_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 function.
  • neg_likelihood - Negative likelihood of a psychometric function.

For more info, see:

  • Examples.ipynb - Examples of use of psychofit toolbox.

Matteo Carandini (2000-2017) initial Matlab code
Miles Wells (2017-2018) ported to Python

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

Psychofit-1.0.0.post0.tar.gz (5.2 kB view details)

Uploaded Source

Built Distribution

Psychofit-1.0.0.post0-py3-none-any.whl (5.7 kB view details)

Uploaded Python 3

File details

Details for the file Psychofit-1.0.0.post0.tar.gz.

File metadata

  • Download URL: Psychofit-1.0.0.post0.tar.gz
  • Upload date:
  • Size: 5.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.5

File hashes

Hashes for Psychofit-1.0.0.post0.tar.gz
Algorithm Hash digest
SHA256 567885ea3ba9c07c672ed95b2ce6d6fb5e7647b8db7790d5431d6c6a54be509a
MD5 42077ebd24cab8db0371209f9659d08c
BLAKE2b-256 c3770fd5233f9095450bcdcd8ac260147039408e8300f8215e775329ed4b9798

See more details on using hashes here.

File details

Details for the file Psychofit-1.0.0.post0-py3-none-any.whl.

File metadata

File hashes

Hashes for Psychofit-1.0.0.post0-py3-none-any.whl
Algorithm Hash digest
SHA256 d91782b87aa52e4d80dc7eecbb22c58f8feac1528a220ced30a4eebc3fdec1bb
MD5 ba91a7e49588f54225e22004399d8fde
BLAKE2b-256 bc8468fa413b33c32cac843257602a35cc23cadf705eca7a059732f864bc1670

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page