Skip to content

scaplan/name-game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Code for "A Simple Threshold Captures the Social Learning of Conventions"

Please email any / all of the (co-first) authors if you have questions.

Preprint available below:


Setup

  • Bash tested on GNU bash, version 3.2.57(1)-release (arm64-apple-darwin23)
  • Python tested on version 3.11.8 with no external libraries.
  • R scripts have been tested on version 4.3.2. The following R packages are required to create the plots and run statistical analysis. dplyr, tidyr, ggplot2, Hmisc, scales, Matrix, tibble, lme4, reshape2, tidyverse, cowplot, ggpubr, ggrepel, xtable, ggtext
    • The scripts will attempt to install them automatically, though in my experimence it is far preferred to ensure that these are present and available on the local system ahead of time.

No other setup is required.

n.b. a number of scripts assume a Unix-style directory stucture (already satisfied on Linux or Mac OS systems). You may need to make some manual adjustments if running on Windows (or, perhaps easier, would be to run using "linux subsystem for windows" if this applies to you).

Running

The following script runs all generation and analyses:

$ runall.sh

n.b. a word of caution though: while some of the simulations and analyses are quite quick (e.g. RUN_MAIN_ROUND_BY_ROUND, others (e.g. RUN_CRITICAL_MASS_SIMULATION) are computation heavy and will take hours to complete on a personal computer. By default the flags are set within runall.sh to generate everything but you likely want to take a more targetted approach if you're interesting in a particular component.

Abstract

A persistent puzzle throughout the cognitive and social sciences is how people manage to learn social conventions from the sparse and noisy behavioral data of diverse actors, without explicit instruction. Here, we show that the dominant theories of social learning perform poorly at capturing how individuals learn conventions in coordination experiments that task them with matching their behaviors while interacting in social networks. Across experiments, participants' choices systematically deviate from both imitation and optimization. Instead, they follow a categorical, two-stage learning process: they behave probabilistically until they acquire enough information about each other to trigger a mental threshold and then their choices stabilize. We effectively estimate this threshold using the Tolerance Principle (TP), a parameter-free equation first developed to model how children learn rules in language. We show that threshold-based agents produce social learning that is more accurate than imitating and optimizing agents, while also providing a better model of how a critical mass of dissenters can overturn conventions. The superior performance of our model holds when comparing against a variety of optimization approaches, including Bayesian inference. Furthermore, in a pre-registered dyadic experiment requiring people to infer non-linguistic behavioral patterns amid controlled levels of noise in observed signals, TP outperforms all other models at reproducing learning rates among human participants. These findings offer compelling evidence that a simple, mathematical threshold underlies individual and social learning, from grammatical rules to behavioral conventions.

About

Code for "A Simple Threshold Captures the Social Learning of Conventions"

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors