AlexDunstan commited on
Commit
9ba0717
·
verified ·
1 Parent(s): 16566e3

Add complete 2x2 normal-form game datasets (Parquet, zstd)

Browse files
.DS_Store ADDED
Binary file (6.15 kB). View file
 
README.md ADDED
@@ -0,0 +1,123 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: cc-by-4.0
3
+ pretty_name: Nash Equilibria of 2x2 Normal-Form Games
4
+ tags:
5
+ - game-theory
6
+ - nash-equilibrium
7
+ - normal-form-games
8
+ - combinatorics
9
+ - synthetic
10
+ size_categories:
11
+ - 100M<n<1B
12
+ configs:
13
+ - config_name: default
14
+ data_files:
15
+ - split: payoffs_0_10
16
+ path: matrices_2x2_0_to_10.parquet
17
+ - split: payoffs_0_5
18
+ path: matrices_2x2_0_to_5.parquet
19
+ - split: payoffs_0_3
20
+ path: matrices_2x2_0_to_3.parquet
21
+ - split: payoffs_0_2
22
+ path: matrices_2x2_0_to_2.parquet
23
+ ---
24
+
25
+ # Nash Equilibria of 2×2 Normal-Form Games
26
+
27
+ An **exhaustive enumeration** of every two-player 2×2 normal-form (bimatrix) game with
28
+ non-negative integer payoffs in a fixed range, each annotated with its pure- and
29
+ mixed-strategy Nash equilibria and a set of game-theoretic classifications.
30
+
31
+ Because the payoff space is enumerated completely, the largest split contains **all
32
+ `11^8 = 214,358,881`** games with payoffs in `0..10` — not a sample.
33
+
34
+ ## Splits
35
+
36
+ Each split is the complete enumeration for a payoff range. Payoffs `0..k` is a strict
37
+ subset of payoffs `0..10` (identical rows), so the smaller splits are convenience
38
+ subsets of `payoffs_0_10`.
39
+
40
+ | split | payoff range | games (rows) |
41
+ |---|---|--:|
42
+ | `payoffs_0_10` | 0–10 | 214,358,881 |
43
+ | `payoffs_0_5` | 0–5 | 1,679,616 |
44
+ | `payoffs_0_3` | 0–3 | 65,536 |
45
+ | `payoffs_0_2` | 0–2 | 6,561 |
46
+
47
+ ```python
48
+ from datasets import load_dataset
49
+ ds = load_dataset("AlexDunstan/nash-equilibria-matrices", split="payoffs_0_10")
50
+ ```
51
+
52
+ ## Game encoding
53
+
54
+ A 2×2 game has two players (p1, p2) choosing a row / column. Each of the 4 cells holds a
55
+ payoff pair. The 8 payoff columns are named `r{row}c{col}_p{player}` (row-major, 0-indexed):
56
+
57
+ | | col 0 | col 1 |
58
+ |---|---|---|
59
+ | **row 0** | `r0c0_p1`, `r0c0_p2` | `r0c1_p1`, `r0c1_p2` |
60
+ | **row 1** | `r1c0_p1`, `r1c0_p2` | `r1c1_p1`, `r1c1_p2` |
61
+
62
+ ## Columns (32)
63
+
64
+ **Payoffs (8)** — `r0c0_p1 … r1c1_p2`: `int8`, the integer payoff to each player in each cell.
65
+
66
+ **Equilibria**
67
+ - `num_equilibria` (`int8`): number of pure-strategy Nash equilibria.
68
+ - `equilibrium_positions` (`string`): list of `(row, col)` pure-NE cells, e.g. `"[(0, 0), (1, 1)]"`.
69
+ - `category` (`string`): `Solved` if ≥1 pure NE, else `Unsolved`.
70
+
71
+ **Structural flags** (`bool`)
72
+ - `p1_has_dominant`, `p2_has_dominant`, `both_dominant`: dominant-strategy existence.
73
+ - `is_zero_sum`, `is_symmetric`: structural properties of the payoff matrix.
74
+ - `has_pareto_dom_ne`, `all_ne_pareto_eff`: Pareto properties of the equilibria.
75
+
76
+ **Welfare**
77
+ - `max_welfare` (`int16`): maximum total payoff (`p1+p2`) over all cells.
78
+ - `ne_welfare` (`string`): total welfare at each NE, e.g. `"[0, 2]"`.
79
+ - `welfare_loss` (`int16`): efficiency gap between `max_welfare` and the equilibria.
80
+
81
+ **Mixed-strategy equilibrium** (populated for 2×2 games with no pure NE; `null`/empty otherwise)
82
+ - `mixed_exists` (`bool`).
83
+ - `mixed_p`, `mixed_q` (`double`): equilibrium mixing probabilities.
84
+ - `mixed_payoff_p1`, `mixed_payoff_p2` (`double`): expected payoffs under the mixed NE.
85
+
86
+ **Payoff asymmetry at equilibria**
87
+ - `ne_p1_payoffs`, `ne_p2_payoffs`, `ne_payoff_diffs` (`string`): per-NE payoff lists and differences.
88
+ - `ne_has_equal_payoffs` (`bool`).
89
+ - `ne_mean_abs_diff` (`double`): mean absolute payoff difference across the equilibria.
90
+
91
+ **Classification**
92
+ - `game_type` (`string`): a categorical label. Distribution over `payoffs_0_10`:
93
+
94
+ | game_type | rows |
95
+ |---|--:|
96
+ | Harmony | 56,150,160 |
97
+ | Dominant (P1 only) | 51,967,234 |
98
+ | Dominant (P2 only) | 51,967,234 |
99
+ | Other | 18,295,200 |
100
+ | No Equilibrium | 18,283,848 |
101
+ | Deadlock | 11,809,512 |
102
+ | Prisoner's Dilemma | 5,814,336 |
103
+ | Zero-Sum | 65,307 |
104
+ | Coordination | 6,050 |
105
+
106
+ > **List columns are stored as strings** (Python `repr` of a list), for exact
107
+ > round-trip fidelity. Parse them with `ast.literal_eval`:
108
+ > ```python
109
+ > import ast
110
+ > positions = ast.literal_eval(row["equilibrium_positions"])
111
+ > ```
112
+
113
+ ## Provenance
114
+
115
+ Games were generated by exhaustive Cartesian enumeration of the payoff space, then
116
+ enriched with equilibrium detection and classification computed deterministically from
117
+ the payoff matrix (no sampling, no randomness). Payoffs are compact integer types and
118
+ repetitive categorical/list columns are dictionary-encoded, so the full 214M-row split is
119
+ ~172 MB of Parquet.
120
+
121
+ ## License
122
+
123
+ CC-BY-4.0 — free to use with attribution.
matrices_2x2_0_to_10.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f4a31f896c456c959afb46ac988f377794da4a47f9726d8bf378a88416ceb3ad
3
+ size 180138048
matrices_2x2_0_to_2.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4d694c79ac6bdacbd73ba8cb16d503bea391c33fca9b2e01fecb740047f30ecf
3
+ size 28215
matrices_2x2_0_to_3.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b656501b8bddd6409de994027d08e20e3696272f8908f8ee2e07efd0612d394c
3
+ size 75537
matrices_2x2_0_to_5.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1044e0d7b43d745f4ce34aeece9f6dbac2df44b9ec5d567690a7b9a0f015e568
3
+ size 1846884