Please unzip the zip file. It will create a set of folders containing the complete analysis pipeline. Do not alter the arrangement of folders and subfolders. If you do, code will not run correctly as files will not be found where they are expected. Folder AnalysisCode contains Matlab and R code used to analyse these. The R files Figure1.R and Figure2.R run the analysis and plots for each figure. They read in the files HumanMemory.csv, HumanNaive.csv, and CoalTits.csv stored in folder Fits. These were generated by the Matlab scripts AnalyseHumanData.m and AnalyseCoalTitData.m stored in folder AnalysisCode. See the README.txt in the AnalysisCode folder for more details. Also in this folder is the document "Simulations and Power Analysis.docx" which describes the results of simulations we ran to assess whether the parameters extracted by fitting ROC curves are systematically biased as well as noisy. Matlab code used for this is in the folder Simulations. You will need to download a zip file of the data separately. Unzip this in a folder called "Data", at the same level as the folders "AnalysisCode", "Fits" etc. Folder Data will then contain the transcripts recording search decisions for humans and coal tits, which will be used by the analysis code. Folders Fits and Graphs contain ready-made versions of the fits and figures created by the analysis code.