PsiReact
Hierarchical Bayesian modeling of response time data.
This package currently implements the linear ballistic accumulator (LBA) model (Brown & Heathcote 2008), with potential for other decision models to be added later. LBA has a closed-form solution, making it mathmatically tractable, while capturing many important properties of response time distributions. Importantly, while many response time models only support simulation of tasks with only two response options, LBA can simulate tasks with many response options.
In this example, there are 24 possible responses with different levels of support. Each curve shows the probability density function for one response according to the LBA model. The overall height of each curve reflects the probability of that response, and the shape reflects the probability of different response times.
PsiReact can be used to:
- Fit data to estimate model parameters
- Use hierarchical models to estimate both group-level tendencies and individual differences
- Generate simulated response time data for analysis
- Compare different models of response behavior
Installation
First, it is strongly recommended that you set up either a Conda environment or a Python virtual environment. This helps keep packages installed for different projects separate. For example, using Conda:
conda create -n psireact python=3.8
conda activate psireact
You can install the latest stable version of PsiReact using pip:
pip install psireact
You can also install the development version directly from the code repository on GitHub:
pip install git+git://github.com/mortonne/psireact
Getting started
To get an intuition for what sort of behavior the LBA model can produce, look at the LBA demo notebook. The LBA model can be used to both generate simulated data and to estimate parameters based on observed data. See the LBA parameter recovery notebook for examples. Also see examples of more complex hierachical models in the Nireact and PsiReact-Garnet projects.
Road map
Directions for future development:
- notebook illustrating definition and use of a hierarchical model
- support for additional response time models
- testing and demo of maximum likelihood estimation
Citation
If you use PsiReact, please cite the following:
- Morton NW, Schlichting ML, Preston AR. 2020. Representations of common event structure in medial temporal lobe and frontoparietal cortex support efficient inference. Proceedings of the National Academy of Sciences. 117(47): 29338-29345. doi:10.1073/pnas.1912338117.
- Morton NW. 2020. PsiReact: Modeling of response time data. Zenodo. doi:10.5281/zenodo.4282757.
Metadata
Release files for psireact 0.2.15
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| psireact-0.2.15.tar.gz | 11.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| psireact-0.2.15-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 33.6 kB
Release files / psireact-0.2.15.tar.gz
| Download URL | psireact-0.2.15.tar.gz |
|---|---|
| Size | 11.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b6c950ae4780da1eba529fc1a30687f66be03f4be56e60568e21476b7fbd65d7
|
|
BLAKE2b-256 checksum How to use checksums |
7f252b7daef19baf885acb45e272c2ea77b23108eeb6f2b8189a11df9bfc692b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.5.0.1 requests/2.25.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.5
|
Release files / psireact-0.2.15-py3-none-any.whl
| Download URL | psireact-0.2.15-py3-none-any.whl |
|---|---|
| Size | 22.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
dbec5ab73cd6b660510dedb4e7052509c721fca36bdeac3e33ca9c75fd54f3ac
|
|
BLAKE2b-256 checksum How to use checksums |
e59c8fd3bb061589ba1f35cc961332f9498933bf9dcc2e6684da6aa8ec0cc2d5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.5.0.1 requests/2.25.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.5
|