Asymmetric matching pennies in the lab: mixed Nash equilibrium against real play
A Tsinghua experiment replayed the asymmetric matching pennies game for 50 rounds. Row players stayed near the Nash mix; column players did not. We recompute the equilibrium and the cost of each deviation.
In matching pennies, one player wins if two coins match and the other wins if they differ, so the only sensible plan is to be unpredictable. Make one outcome pay the first player much more, and game theory gives a surprising answer: that player should still play 50:50; it is the other player whose mix changes. In a famous 2001 experiment people did not behave that way at all. A 2023 study in Behavioral Sciences repeated the game for 50 rounds with students in Beijing and found something different again. This article recomputes the paper’s equilibrium predictions with the nash equilibrium solver and works out what each kind of deviation cost the players. To test observed choice rates against a predicted mix, use hypothesis tests; for the safest (maximin) mix in a game like this, the LP solver.
The paper in brief
Students at Tsinghua University played two versions of an asymmetric matching pennies game, 50 rounds each, for real money. The row player chooses Top or Bottom (T or B), the column player Left or Right (L or R). The column player earns 0.80 yuan for a mismatch, (T, R) or (B, L), and 0.40 for a match. The row player earns 0.40 or 0.80 in three cells; the games differ only in the row player’s payoff for (T, L): 3.20 yuan in the “higher-type” game and 0.44 yuan in the “lower-type” game.
The paper states the mixed Nash equilibrium, the pair of mixes from which neither player gains by changing alone: the row player plays T half the time in both games, and the column player plays R 87.5 % of the time in the higher-type game and about 9 % in the lower-type game. In the classic 2001 study by Goeree and Holt, played once, 96 % of row players chose T when (T, L) paid well. In the Beijing sessions, with repeated play and new partners each round, row players stayed close to 50 % (in one-sample t tests against the Nash mix, t = −0.98, not significant, in the higher-type game and 2.49 in the lower-type game), while column players missed their prediction by a wide margin: about 66 to 71 % R instead of 87.5 % (t = −6.32), and roughly three times the predicted 9 % (t = 8.59).
Checked with the tools
We typed both payoff tables into the Nash equilibrium solver’s maths and solved them, then used the same code’s expected-payoff function to value the choices the paper reports. This is a recomputation from the paper’s tables. The observed choice rates are the approximate figures in the paper’s text (its full tables are images), so the cost calculations are rounded illustrations.
Step 1: the equilibria. The solver finds exactly one equilibrium in each game, fully mixed:
| Game | Paper’s Nash prediction | Nash equilibrium solver |
|---|---|---|
| Higher type, (T, L) pays 3.20 | row T 50 %, column R 87.5 % | row T 1/2, column R 7/8; payoffs 0.75 and 0.60 yuan |
| Lower type, (T, L) pays 0.44 | row T 50 %, column R about 9 % | row T 1/2, column R 1/11 = 9.09 %; payoffs 0.436 and 0.60 yuan |
The reason is the indifference rule: in a mixed equilibrium each player’s mix must leave the other player indifferent between their moves. The row player’s own payoffs therefore fix the column player’s mix, never its own. Figure 1 repeats the solve for 121 values of the (T, L) payoff from 0.41 to 4 yuan: the column player’s chance of R climbs from 0.02 to 0.90, while the row player’s chance of T sits at exactly 0.5 throughout. That flat line is the “contradiction” people keep failing to follow.
Step 2: what the row players left on the table. Against column players who chose R about 66 % of the time, a row player earns 1.352 yuan per round on average from T and 0.664 from B; at 71 % R it is 1.212 against 0.684 (Figure 2). So with the column play that actually happened, T was the better reply by 0.53 to 0.69 yuan a round, and a row player at 50:50 gave up half of that. In the lower-type game, with column players at about 27 % R, B pays 0.508 against 0.429 for T, a much smaller gap of 0.079 yuan.
Step 3: why the column players’ “big” deviation was cheap. For a column player, R beats L by 0.4 × (2 × the row’s chance of T − 1). With row players about 3 points from 50 %, that is just ±0.024 yuan a round. Missing the Nash mix by 15 to 20 points cost the column players almost nothing, because the row players were nearly 50:50; the row players’ adherence to 50:50 was what cost money, once the column players had moved. This is the logic behind the paper’s ε-equilibrium and quantal response analyses (models in which people err more when errors are cheap), which our tools do not fit.
How we made the graphs
The charts and every number come from scripts/blog-figures/asymmetric-matching-pennies-experiment-china-mixed-nash-equilibrium-own-payoff-effect.mjs in fibub’s public code. It calls supportEnumeration (every Nash equilibrium of a two-player game) and payoffs (expected payoffs for given mixes) from src/lib/sci/nash.ts, the maths behind the nash equilibrium solver.
The payoff tables, the stated equilibria and the approximate observed choice rates come from the paper’s text. The sweep of the (T, L) payoff in Figure 1 and the 27 % used for the lower-type game (three times 9 %) are our choices.
How we test the maths
On every change to fibub, tests/sci.mjs runs tests/sci-tools/nash-equilibrium-solver.mjs, which checks the solver against nashpy’s vertex enumeration and SciPy:
- Battle of the sexes must give its two pure equilibria and the mixed one with the row player at (0.6, 0.4) and the column player at (0.4, 0.6), as nashpy lists them.
- A 2 × 2 zero-sum game must give the value 1/7 with mixes 3/7 and 2/7 in closed form, and zero-sum values must match SciPy’s
linprog. - New with this article: the higher-type game must give exactly one equilibrium, T 1/2 and R 7/8 with payoffs 0.75 and 0.6; the lower-type game, R 1/11 and a row payoff of 4.8/11. By hand, the column’s chance of R is (a − 0.4)/a for a (T, L) payoff of a.
Check it yourself
On the nash equilibrium solver:
- Set Start from to Blank, with 2 strategies for each player.
- Rename the rows T and B and the columns L and R, then type the cells (row payoff, column payoff): T, L 3.2, 0.4; T, R 0.4, 0.8; B, L 0.4, 0.8; B, R 0.8, 0.4.
- Under Equilibria there is one line: the row player plays T 1/2, B 1/2, the column player L 1/8, R 7/8, with row payoff 0.75 and column payoff 0.6.
- Change the T, L cell to 0.44, 0.4. The column player’s mix becomes L 10/11, R 1/11, the row payoff 0.4364, and the row player’s mix stays at 1/2.
- Look at Best responses: each move is the best reply to a different opponent move, so there is no pure equilibrium, which is why the players must mix.
What researchers can use it for
- Write down the benchmark first: before running a game experiment, compute every equilibrium of each treatment with the nash equilibrium solver, including the payoffs.
- Value deviations: with the observed mixes, compare each move’s expected payoff, as in Steps 2 and 3, to see which deviations were costly and which were nearly free.
- Test choice rates against a prediction with a one-sample test on per-person rates in the hypothesis tests tool, as the paper does.
- Design treatments: sweep a payoff, as in Figure 1, to choose values where the predicted mixes are far apart and easy to tell apart in the data.
- Teach the indifference principle with a game where it gives a counter-intuitive answer students can test in class.
The fine print
- The paper’s tables of observed choice rates are images; we used the approximate figures given in its text, so the costs in Steps 2 and 3 are illustrations, not exact recomputations.
- The paper’s payoffs are given in yuan in its appendix and in experimental currency units in a figure (10 units = 1 yuan); the equilibrium mixes do not depend on the unit.
- Nash equilibrium assumes each player knows the other is choosing optimally. The paper’s own fits of ε-equilibrium and quantal response with spite or altruism go beyond what fibub’s tools do.
- The paper is from 2023 and uses sessions run in 2012.
Sources
- Leng, A., Lian, Z., Lien, J. W. and Zheng, J. (2023), Revisiting the Asymmetric Matching Pennies Contradiction in China, Behavioral Sciences 13(9): 757, doi:10.3390/bs13090757. Licence CC BY (Creative Commons Attribution), checked on the MDPI page, 2026-11-24. Values used here: the two payoff tables in yuan (Appendix A); 50 rounds of each game; the stated Nash mixes (row 50 % T; column 87.5 % R in the higher-type game and about 9 % R in the lower-type game); column players' R choices of about 66 to 71 % in the higher-type game and about three times 9 % in the lower-type game; row players about 3 percentage points from equilibrium in the higher-type game; one-sample t statistics against the Nash mix (random rematching: row −0.98 and 2.49, column −6.32 and 8.59); Goeree and Holt's 96 % and 92 %.
- Goeree, J. K. and Holt, C. A. (2001), Ten little treasures of game theory and ten intuitive contradictions, American Economic Review 91: 1402-1422 (the original asymmetric matching pennies contradiction). Nash, J. (1951), Non-cooperative games, Annals of Mathematics 54: 286-295.
If you are an author or publisher and want a credit or a passage changed or removed, tell us and we will act quickly.