NashPy: Strategic Interactions in Python

Augusto Gonzalez-Bonorino
8 min readFeb 13, 2023

Learn to implement the main concepts of Game Theory in Python! Your first step towards building rational AI.

source: https://www.thenewatlantis.com/wp-content/uploads/legacy/20190820_TNA58Wilkenfeldbanner.jpg

I. Introduction

Game theory is a branch of mathematics that studies decision-making in strategic situations, where the outcome of a decision depends not only on the choice made by a single player, but also on the choices made by other players. The study of strategic interaction has numerous real-world applications, and the development of computational (or algorithmic) game theory has opened up new possibilities for the use of game theory in various fields. Some of the areas where game theory and computational game theory have been applied to include:

  1. Economics: Game theory is used to study market competition and price strategies, as well as to model the behavior of firms and consumers in various markets.
  2. Political Science: Game theory is used to model political decisions and voting behavior, and to understand the interactions between political parties and interest groups.
  3. Computer Science: Game theory is used to study network formation, resource allocation, and the design of algorithms for efficient computation.
  4. Engineering: Game theory is used to model and optimize the behavior of complex systems, such as power grids and…

--

--

Augusto Gonzalez-Bonorino

Msc Economics at Claremont Grad Univ. From Argentina. I created the Entangled Mind blog. Check it out ;) Lead Researcher @ https://www.econllm-lab.com/