Skip to content

About

Predicitve Inference Task from Seow & Gillan, Sci. Rep., 2020

Resources

Stars

0 stars

Watchers

1 watching

Forks

Repository files navigation

Predictive Inference Task (online)

This repository contains code to run a predictive inference task adapted from Vaghi et al. 2017 for web-based testing. The online task was used for the study:

Seow, T. X.F. & Gillan, C. M. (2020). Transdiagnostic phenotyping reveals a host of metacognitive deficits implicated in compulsivity. Scientific Reports, 10(1), 1-11.

TaskFig

Predictive-inference task. (a) Trial sequence. Participants were instructed to position a bucket (yellow arc on the circle edge) to catch a flying particle, and thereafter rated their confidence that they would catch the particle. Particles were fired from the centre of the circle to the edge. Points were gained when the particle was caught, and the bucket turned green; else, points were lost and the bucket turned red. (b) Particle trajectories. For every trial, landing locations were independently sampled from a Gaussian distribution. As such, particles landed around the same area with small variations induced by noise. For illustration purposes, dashed arrow lines represent particle trajectory of current (black) and past (blue) trials, which over trials allow subjects to generate a representation of the Gaussian. (c) Change-points. The mean of the distribution abruptly moves to another point on the circle when a “change-point” occurs. This new mean is then sampled in the same manner as (b) until the next change-point.

Notes:

  • This version has two hazard rate conditions that varied the number of change-points in a stretch of trials each, as opposed to one hazard rate in Vaghi et al. 2017.
  • data_buckPos is recorded from the edge of the bucket. For analysis purposes, bucket position is measured from the middle of the bucket. Thus <stim_bucketSize>/2 should be added to data_buckPos post-hoc.

License

This work is licensed under the Creative Commons Attribution-Non Commercial 4.0 International (CC BY-NC 4.0). Feel free to use it and adapt it however you want for non-commerical purposes.

(c) 2020 Tricia Seow

About

Predicitve Inference Task from Seow & Gillan, Sci. Rep., 2020

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages