DOI: 10.5281/zenodo.14642254
title: Dataset and computer code for "The dynamics of cooperation in asymmetric public goods games"

description: Description of dataset “ThresholdPGG_ExperimentalData.xlsx”

These data were generated to investigate how players with different endowments and productivities cooperate in asymmetric threshold public goods games.

Experimental setting: 

Five treatments: (1) Full equality (N=110), (2) Endowment inequality (N=118), (3) Productivity inequality (N=112), (4) Aligned inequality (N=104), (5) Misaligned inequality (N=110).

Each participant is assigned to one treatment only. Each treatment includes two session: participants play Session 1 first and then Session 2. At the beginning of Session 1, participants are randomly matched in pairs, where in each pair one participant is assigned to Player 1 and the other is Player 2. They then play 20 rounds of the asymmetric threshold public goods game. Throughout a session, the pair of participants and their roles do not change. After Session 1, participants engage in Session 2. Again, they play 20 rounds of the asymmetric threshold public goods game but now with a different partner and in the opposite role. Finally, after completing both sessions, participants complete a survey on their perception of the fair contribution pattern and the minimum contribution they expect from their co-player for successful coordination.

Each participant answers these questions twice: once from the perspective of Player 1 and once from the perspective of Player 2. However, in the full equality treatment, each participant answers only once because Player 1 and Player 2 are identical in this treatment. Nevertheless, in the dataset, their responses are recorded twice to maintain consistency with the data format used in other treatments (essentially duplicating the same response for both roles).

Structure of the Data:

Each treatment has two sheets: “TreatmentName_Type 1” and “TreatmentName_Type 2”.

In "TreatmentName_Type 1" sheet, focus players are Type 1 who act as Player 1 in Session 1 and Player 2 in Session 2. 

In "TreatmentName_Type 2" sheet, focus players are Type 2 who act as Player 2 in Session 1 and Player 1 in Session 2. 

The data format across treatments is consistent.

Each player's experimental data is represented by four rows:

- The first two rows correspond to Session 1.

- The last two rows correspond to Session 2.

Missing data codes: None

Abbreviations used: n/a; not applicable

 

Column Descriptions:

1        Column A: Participant ID.

2        Column B: Pairing information for each focal player in both games.

3        Columns C to V (Contributions): 

(1) Data is organized in blocks of four rows:

-  The first two rows in each block record contributions from both players in Session 1 (20 rounds).

-  The last two rows contributions from both players in Session 1 (20 rounds).

(2) Within each block:

-  The first and third rows (Columns C–V) record Player 1's contributions in Session 1 and Session 2, respectively.

-  The second and fourth rows (Columns C–V) record Player 2's contributions in Session 1 and Session 2, respectively.

4        Columns W to Z (Survey Responses):

(1) Columns W and X record Player 1's answers. Columns Y and Z record Player 2's answers.

(2) In each block of four rows:

-  The first two rows record responses from both players in Session 1.

-  Column W: Player 1's perception of fair contributions.

Top cell: The contribution Player 1 believes they should make.

Bottom cell: The contribution Player 1 believes Player 2 should make.

-  Column Y: Player 2's perception of fair contributions.

Top cell: The contribution Player 2 believes Player 1 should make.

Bottom cell: The contribution Player 2 believes they should make.

-   Columns X and Z: Minimum contributions expected by Player 1 and Player 2, respectively, for successful coordination.

(3) The last two rows follow the same format as the first two rows but represent responses from Session 2.

 

Description of Dataset: “linearPGG_ExperimentalData.xlsx”

These data were generated to investigate how players with different endowments and productivities cooperate in asymmetric linear public goods games.

Experimental Setting:

Five treatments: (1) Full equality (N=114), (2) Endowment inequality (N=110), (3) Productivity inequality (N=110), (4) Aligned inequality (N=106), (5) Misaligned inequality (N=110).

The session setup is same as in the threshold public goods game described earlier, but the survey was replaced with the following two questions:

1.     What is your preferred contribution pattern? (Specify contributions for both players).

2.     Given your co-player's contribution (from 0 to their endowment), how much would you contribute?

Similar to the threshold public goods experiment, except for the full equality treatment, each participant answered these questions twice, assuming the roles of Player 1 and Player 2, respectively. Although participants in the full equality treatment answered the questions only once, their responses were recorded twice in the dataset to maintain consistency with the data format used in other treatments (essentially duplicating the same response for both roles).

Structure of the Data:

The dataset contains 10 sheets, with two sheets for each treatment.

Each treatment consists of two sheets. The data format across treatments is consistent.

Each player's experimental data is represented by four rows:

-  The first two rows correspond to Session 1.

-  The last two rows correspond to Session 2.

Missing data codes: None

Abbreviations used: n/a; not applicable

 

Column Descriptions:

1       Column A: Participant ID.

2       Column B: Pairing information for each focal player in both sessions.

3       Columns C to X:

(1) Data is organized in blocks of four rows:

-  The first two rows in each block record contributions from both players in Session 1 (22 rounds).

-  The last two rows record contributions in Session 2 (21 rounds).

(2) Within each block:

-  The first and third rows (Columns C–X) record Player 1's contributions in Session 1 and Session 2, respectively.

-  The second and fourth rows (Columns C–X) record Player 2's contributions in Session 1 and Session 2, respectively.

4       Columns Y and Z (Preferred Contribution Patterns):

(1) Column Y: The Player 1's preferred contribution pattern (from Player 1’s perspective).

(2) Column Z: The Player 2's preferred contribution pattern (from Player 2’s perspective).

(3) Both Column Y and Column Z record Player 1's contribution on the top row and Player 2's contribution on the bottom row.

(4) In each block of four rows:

-  The first two rows record responses from both players of Session 1.

-  The last two rows record responses from both players of Session 2.

5       Columns AA and Beyond (Conditional Contributions):

(1) Column titles with "CC_k" indicate conditional contributions when the co-player contributes k.

(2) In each block of four rows:

-  The first two rows record responses from the two players of Session 1:

    The first row corresponds to the Player 1's answer (from Player 1’s perspective).

    The second row corresponds to the Player 2's answer (from Player 2’s perspective).

-  The last two rows record responses from the two players of Session 2:

   The third row corresponds to the Player 1's answer (from Player 1’s perspective).

   The fourth row corresponds to the Player 2's answer (from Player 2’s perspective).

 

Computer code used for evolutionary simulations

we used the Matlab scripts LinearPGG_CreateDataIntrospection.m and ThresholdPGG_CreateDataIntrospection.m, which we ran with Matlab R2020b. Its usage is documented inline.

 

 

Description of Dataset: “linearPGG_4P_ExperimentalData.mat”

This dataset contains individual contribution decisions from a laboratory public goods game experiment with 4-player groups. These data were generated to investigate how players with different endowments and productivities cooperate in 4-player linear public goods games.

Experimental Setting: The four-player games mirror the two-player design, with each possible role being duplicated (i.e., there are two players of each original type). 

Data Structure:

- Group Size: 4 players per group

- Duration: 20 rounds per session

- Sessions: 2 sessions per treatment

- Treatments: full equality (FE), aligned inequality (AI), and misaligned inequality (MI)

- #participants: FE (N=100), AI (N=104), and MI (N=108).

Missing data codes: None

Abbreviations used: n/a; not applicable

Variable description:

Treatment: Categorical variable indicating the experimental treatment condition. Takes values FE, AI, or MI corresponding to the three experimental treatments.

Session: Integer variable representing the session number within each treatment condition. Takes values 1 or 2, as each treatment was conducted across two (independent) sessions.

GroupID: Integer variable providing a unique group identifier across all treatments and sessions. Groups are numbered sequentially starting from 1, with each group containing exactly 4 participants.

PlayerID: Integer variable identifying individual players within each group. Takes values 1, 2, 3, or 4, representing each participant's position within their assigned group.

GlobalPlayerID: Integer variable providing a unique identifier for each participant-session combination in the dataset. Although the same individuals participated in both sessions within each treatment, they are assigned different GlobalPlayerIDs for Session 1 and Session 2 due to the re-randomization of groups. For example, if a treatment has 108 unique individuals, the dataset will contain 216 GlobalPlayerID values (108 × 2 sessions).

Round: Integer variable indicating the game round number. Takes values from 1 to 20, representing the sequential decision-making rounds within each session.

Contribution: Numeric variable recording each participant's contribution to the public good in each round. Values range from 0 to maximum possible contribution.

 

 

Description of Dataset: “linearPGG_4P_SurveyData.mat”

This dataset contains survey data from the 4-player linear public goods game experiment examining preferences and conditional responses across different treatment conditions.

Game Type: 4-player linear public goods game

Treatments: full equality (FE), aligned inequality (AI), and misaligned inequality (MI)

Player Roles: 

Role 1: Players 1 and 2 

Role 2: Players 3 and 4

Note: FE treatment has no role distinction

Data Files Structure:

Preference Data Files



Preference_FE.mat: FE treatment, all participants

Preference_AI_R1.mat: AI treatment, Role 1 participants

Preference_AI_R2.mat: AI treatment, Role 2 participants

Preference_MI_R1.mat: MI treatment, Role 1 participants

Preference_MI_R2.mat: MI treatment, Role 2 participants


Structure: n × 4 matrix where:



n = number of participants in the treatment condition

Columns represent preferred contributions for Players 1, 2, 3, 4 respectively

Values are integers representing contributions


Conditional Response Data Files



Survey_Conditional_FE.mat: Conditional responses for FE treatment

Survey_Conditional_AI_R1.mat: Conditional responses for AI treatment, Role 1

Survey_Conditional_AI_R2.mat: Conditional responses for AI treatment, Role 2

Survey_Conditional_MI_R1.mat: Conditional responses for MI treatment, Role 1

Survey_Conditional_MI_R2.mat: Conditional responses for MI treatment, Role 2


Structure: Each row corresponds to one participant's complete set of conditional responses. Responses are organized following the survey table structure (row-by-row, then column-by-column ordering). The survey is detailed in the Supporting Information.

 

 

Description of Dataset: “ThreholdPGG_4P_ExperimentalData.mat”

This dataset contains individual contribution decisions from a threshold public goods game experiment with 4-player groups. These data were generated to investigate how players with different endowments and productivities cooperate in 4-player threshold games.

Experimental Setting: The four-player games mirror the two-player design, with each possible role being duplicated (i.e., there are two players of each original type). 

Data Structure:

- Group Size: 4 players per group

- Duration: 20 rounds per session

- Sessions: 2 sessions per treatment

- Treatments: full equality (FE), aligned inequality (AI), and misaligned inequality (MI)

- #participants: FE (N=76), AI (N=100), and MI (N=100).

Missing data codes: None

Abbreviations used: n/a; not applicable

Variable Description:

Treatment: Categorical variable indicating the experimental treatment condition. Takes values FE, AI, or MI corresponding to the three experimental treatments.

Session: Integer variable representing the session number within each treatment condition. Takes values 1 or 2, as each treatment was conducted across two (independent) sessions.

GroupID: Integer variable providing a unique group identifier across all treatments and sessions. Groups are numbered sequentially starting from 1, with each group containing exactly 4 participants.

PlayerID: Integer variable identifying individual players within each group. Takes values 1, 2, 3, or 4, representing each participant's position within their assigned group.

GlobalPlayerID: Integer variable providing a unique identifier for each participant-session combination in the dataset. Although the same individuals participated in both sessions within each treatment, they are assigned different GlobalPlayerIDs for Session 1 and Session 2 due to the re-randomization of groups. For example, if a treatment has 100 unique individuals, the dataset will contain 200 GlobalPlayerID values (108 × 2 sessions).

Round: Integer variable indicating the game round number. Takes values from 1 to 20, representing the sequential decision-making rounds within each session.

Contribution: Numeric variable recording each participant's contribution to the public good in each round. Values range from 0 to maximum possible contribution.

 

 

Description of Dataset: “ThresholdPGG_4P_SurveyData.mat”

This dataset contains survey data from the 4-player threshold public goods game experiment examining fairness preferences and conditional responses across different treatment conditions.

Game Type: 4-player threshold public goods game

Treatments: full equality (FE), aligned inequality (AI), and misaligned inequality (MI)

Player Roles: 

Role 1: Players 1 and 2 

Role 2: Players 3 and 4

Note: FE treatment has no role distinction

Data Files Structure:

Preference Data Files



Fair_FE.mat: FE treatment, all participants

Fair_AI_R1.mat: AI treatment, Role 1 participants

Fair_AI_R2.mat: AI treatment, Role 2 participants

Fair_MI_R1.mat: MI treatment, Role 1 participants

Fair_MI_R2.mat: MI treatment, Role 2 participants


Structure: n × 4 matrix where:



n = number of participants in the treatment condition

Columns represent preferred contributions for Players 1, 2, 3, 4 respectively

Values are integers representing contributions


 

Conditional Response Data Files



Survey_Conditional_FE.mat: Conditional responses for FE treatment

Survey_Conditional_AI_R1.mat: Conditional responses for AI treatment, Role 1

Survey_Conditional_AI_R2.mat: Conditional responses for AI treatment, Role 2

Survey_Conditional_MI_R1.mat: Conditional responses for MI treatment, Role 1

Survey_Conditional_MI_R2.mat: Conditional responses for MI treatment, Role 2 


Structure: Each file contains an n × 2 matrix where:

n = number of participants in the treatment condition.

Each row corresponds to one participant's complete set of conditional responses.

Column 1: Minimum collective contribution from the other 3 players 

Column 2: Participant's own contribution