Skip to content

source paper: Li, H.H. and Ma, W.J. (2020). Confidence reports in decision-making with multiple alternatives violate the Bayesian confidence hypothesis. Nature Communications

Notifications You must be signed in to change notification settings

WeiJiMaLab/confidence-multiple-alternatives

 
 

Repository files navigation

confidence-multiple-alternatives (Archival copy)

This is a Ma lab copy of the original GitHub repository and code base, kept here for archival purposes. Please go to https://github.com/hsinhungli/confidence-multiple-alternatives for possible updates.

This repository accompanies the following paper:

Li, H.H. and Ma, W.J. (2020). Confidence reports in decision-making with multiple alternatives violate the Bayesian confidence hypothesis. Nature Communications. DOI: 10.1038/s41467-020-15581-6

The repository contains data and MATLAB code for fitting three main models to the data. Please refer to this paper when using the data or the code in this repository.

Data

The data of each participant are saved in .mat files in the 'data' folder.

Data are saved in a structure variable named 'trl' that contains trial-by-trial information.

trl.config: the configuration (stimulus distribution)

trl.estC: confidence reports

trl.estD : category decisions

trl.target_x: horizontal locations of the target dot

trl.target_y: vertical locations of the target dot

trl.theta: the color (angle in unit of radian on a color wheel) of the leftmost category.

Model fitting

Execute wrapper_fitmodel.m to run the optimization. In this script, one can determine which model, experiment and subject to fit. wrapper_fitmodel.m calls fitmodel_on_individual.m to set up and start the optimization.

One can choose to use either BADS or patternsearch for optimization in fitmodel_on_individual.m.

nll_diff_is.m, nll_map_is.m and, nll_en_is.m compute the values of the objective functions for the Difference, Max and Entropy models respectively. In these three functions, response distributions of category decisions and confidence reports are estimated by Monte-Carlo simulations, and the the negative log-likelihood of the model is computed.

About

source paper: Li, H.H. and Ma, W.J. (2020). Confidence reports in decision-making with multiple alternatives violate the Bayesian confidence hypothesis. Nature Communications

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • MATLAB 100.0%