This repository contains the code and data for the results reported in the article:
H.A. Xu*, A. Modirshanechi*, M.P. Lehmann, W. Gerstner**, and M.H. Herzog**, “Novelty is not Surprise: Human exploratory and adaptive behavior in sequential decision-making”, PLOS Computational Biology 17(6): e1009070. (2021)
* H.X. and A.M. contributed equally to this work.
** W.G. and M.H.H. contributed equally to this work.
Contact: [email protected]
- Julia (1.3) (to reproduce results of the behavioral modeling)
- MATLAB (2019a) (to reproduce results of the EEG analysis)
To install the necessary Julia packages, follow these steps:
- Navigate into the “SurNoR_2020” folder.
- Open a julia terminal, press "]" to enter the package management mode.
- In the package management mode, type “activate .”.
- In the package management mode, type “instantiate”.
All Julia packages and dependencies will be installed automatically within this environment.
To reproduce the figures reported in the paper, run the corresponding scripts in the “figure_script” folder. For example, to reproduce panels of Fig 5 and see the corresponding statistics, type “include(“figure_script/Fig5.jl”)”.
Navigate into the “SurNoR_2020/ figure_script/” folder. Open MATLAB 2019a. To reproduce the figures reported in the paper, place the corresponding scripts to your MATLAB path and run them. For example, run “Fig_9.m” to reproduce the results for the grand correlation analysis in Fig 9 of the paper.
- The experimental data are saved as “BehavData_SwitchState.csv” and “EEG_Frontal.csv” in the “data” folder. Read “data/ ReadMe.text” for more information.
- Each script in the “figure_script” folder uses some of the data files saved in the “data” folder (e.g., the fitted parameters or the experimental data) and some of the functions in the “src” folder (e.g., to run a model). To reproduce and save data files in each subfolder of the “data” folder, read “ReadMe.text” in the corresponding subfolder. Functions and source files in the “src” folder are separately documented.
- To reproduce data for Bayesian Model Selection (Fig 5B), you need to install SPM12 – see Stephan, et al. (2009). See “Fig5.jl” in the “figure_script” folder and “ReadMe.text” in the “data/Log_evidences” folder for details.