Skip to main content

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

Metadata

Release files for Psychofit 1.0.0.post0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for Psychofit 1.0.0.post0
File Size Uploaded
Psychofit-1.0.0.post0.tar.gz 5.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for Psychofit 1.0.0.post0
File Interpreter ABI Platform
Psychofit-1.0.0.post0-py3-none-any.whl Python 3 none any Details

Total release size: 10.9 kB

Release files / Psychofit-1.0.0.post0.tar.gz

Download URL Psychofit-1.0.0.post0.tar.gz
Size 5.2 kB
Tags Source
SHA-256 checksum
How to use checksums
567885ea3ba9c07c672ed95b2ce6d6fb5e7647b8db7790d5431d6c6a54be509a
BLAKE2b-256 checksum
How to use checksums
c3770fd5233f9095450bcdcd8ac260147039408e8300f8215e775329ed4b9798
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.5

Release files / Psychofit-1.0.0.post0-py3-none-any.whl

Download URL Psychofit-1.0.0.post0-py3-none-any.whl
Size 5.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d91782b87aa52e4d80dc7eecbb22c58f8feac1528a220ced30a4eebc3fdec1bb
BLAKE2b-256 checksum
How to use checksums
bc8468fa413b33c32cac843257602a35cc23cadf705eca7a059732f864bc1670
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.5

Release history Release notifications | RSS feed

This release

1.0.0.post0 This release

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page