The samplr package: A tool for modeling human cognition with sampling algorithms.
Lucas Castillo, Yun-Xiao Li, Adam N Sanborn
University of Warwick, Coventry, UK. castillo.lucas@protonmail.com. · University of Warwick, Coventry, UK.
Key points
From the paper's conclusion- Here, we introduce the samplr package, which includes a variety of these algorithms and cognitive models built upon them.
Abstract
Many models of cognition have sampling as a central component. Researchers have used them to explain human performance across a wide range of tasks involving perception, probability reasoning, and choice. One family of these models takes inspiration from sampling approaches developed in statistics, either by adjusting samples with prior beliefs or by implementing a sampling algorithm that overcomes the difficulty of independent samples at the expense of autocorrelation. While these models have been successful in modeling human behavior, their adoption has been slowed by the technical difficulties in applying them. Here, we introduce the samplr package, which includes a variety of these algorithms and cognitive models built upon them. We show how models in this package can match qualitative patterns found in human data, and walk readers through examples of how to compare these models quantitatively to human data. This tool aims to make these methods accessible to many more researchers.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Neural Simulation-Based Inference for Computational Cognitive Models: A TutorialarXiv · 2026
- Silicon Samples Match the Answers but Not the RespondentsarXiv · 2026
- Learning Category Representations in Relation to Another Category: A Sequential Sampling ModelComputational Brain & Behavior · 2026
- Meta-Amortized Cognitive ModelingarXiv · 2026
- The Threat of Analytic Flexibility in Using Large Language Models to Simulate Human DataAdvances in Methods and Practices in Psychological Science · 2026
- Human-Likeness and Conversational Preference Diverge for Synthesized Agent Speech in Customer-Service CallsarXiv · 2026