This repository contains all data and code necessary to reproduce the results of Flexibly biased learning rates in social learning (Witt, Palminteri & Wu, 2025), in which we investigated learning rate biases in individual and social learning. The code is designed to be run from the top directory.
has all code used for simulating
modelSim.pyhas simulation and parameter generationnormativeSims.pyusesmodelSim.pyto generate data used in normative analyses -- needs to be run to reproduce those plots as the outputs are above github's file size limit
and everything related to model fitting and recovery
modelFit.pyhas the functions to calculate negative log likelihoods of parameter sets given data- separate functions for individual and social conditions
pilotFits.pyis used for fitting experimental data with the biased modelpilotFits_plain.pyis used for fitting experimental data with the unbiased modelfitting_synthesis.pyconverts this script's output for further analysis
analysis scripts
CogSci.Ranalysis script to generate results and figures in the CogSci paper
data from experiments, fitting data, simulations
all the plots used in the paper