Get the latest tech news

Finding Nash equilibria through simulation


The Python code described here focuses on the area of Game Theory involving simultaneous games, such as the Prisoner's Dilemma and Rock, Paper, Scissors. Each game is played multiple times between multiple participants to determine and then visualize the pure and mixed-strategy Nash Equilibria (NEs).

There may be several NEs for a given matrix, and by generating multiple graphs, we give the program a chance to converge on different results depending on how the random process develops. Although there appears to be two distinct results generated across the ten games, they're actually identical since the 3D alpha blending of the orange and blue points sometimes favors one color over the other. sim22.py, sim33.py, sim44.py, and simNN.py utilize the same code for playing simultaneous games based on a payoff matrix by calling functions in gtUtils.py and instantiating multiple Player objects.

Get the Android app

Or read this on Hacker News

Read more on:

Photo of simulation

simulation

Photo of Nash equilibria

Nash equilibria

Related news:

News photo

How to Escape from the Simulation [pdf]

News photo

Ansys teams with Supermicro and Nvidia to speed multiphysics simulation up to 1,600X

News photo

Nvidia will show simulation and GenAI advances at Siggraph