Replication code and data for DeAngelo, McCannon & Wyatt (2025).
OSF Repository: https://osf.io/a6f3u/
This repository contains code to replicate experiments testing how responsibility affects LLM decision-making in a Stag-Hare coordination game. We compare "play-for-pair" (deciding for a team) vs "play-for-self" (deciding individually).
All data is in dist/. Files are named {treatment}_df_{timestamp}.csv.
| Timestamp | Description | N |
|---|---|---|
| 1734395183 | Main LLM vs LLM experiment | 15,000 |
| 1734473675 | LLM vs Random (50-50) agent | 7,500 |
| 1736822704 | LLM vs Mixed strategy agent | 750 |
| 1738885303 | Young persona | 4,500 |
| 1738885546 | Older persona | 4,500 |
| 1738885722 | Man persona | 4,500 |
| 1738885914 | Woman persona | 4,500 |
| 1738886203 | Competitive persona | 4,500 |
| 1738886397 | Introvert persona | 4,500 |
| 1738886580 | Extrovert persona | 4,500 |
| 1738973049 | Concealed game (Option A/B labels) | 4,500 |
Each experiment has a corresponding notes_{timestamp}.yaml with prompts and parameters.
pip install -r requirements.txtCreate .env with your OpenAI API key:
OPENAI_API_KEY=your_key_here
jupyter notebook replication.ipynbjupyter notebook game_play.ipynbpython chi_square_tests.py| Comparison | PP | PS | χ²(1) | p |
|---|---|---|---|---|
| Main result | 76.0% | 61.1% | 772.00 | <.001 |
| vs Human (C&J 2009) | 76.0% vs 42.9% | 61.1% vs 61.2% | 734.23 / 0.00 | <.001 / .991 |
| Concealed (Option A) | 3.1% | 1.1% | 44.23 | <.001 |
LLMs take significantly more risk when responsible for others.
game_play.ipynb- Main experiment runnergame_play_options.ipynb- Concealed game variantpersona_analysis.ipynb- Persona experiment analysisreplication.ipynb- Results replicationchi_square_tests.py- Statistical tests for paperstatistical_results.md- Summary of all test results
@article{deangelo2025responsibility,
title={The Role of Responsibility in AI's Strategic Risk-Taking},
author={DeAngelo, Gregory and McCannon, Bryan and Wyatt, Aaron},
journal={Journal of Economic Psychology},
year={2025}
}Open an issue or contact the authors with questions.