Skip to content

kiarashrahmani/Nash-equilibrium

Repository files navigation

Bayesian Game Nash Equilibrium Calculator

This project calculates Nash equilibrium in Bayesian games, specifically a variant of the Bach or Stravinsky (BoS) game with imperfect information.

Description

The game involves two players, each with imperfect information about the other player's preferences. The players receive signals before making decisions, and the Nash equilibrium is calculated based on the given probabilities and payoff matrix.

Usage

  1. Run the script:
  2. python bayesian_game.py
  3. Enter the input parameters when prompted.
  4. Follow the instructions to input the payoff matrix elements.
  5. The script will output the Nash equilibrium for the given Bayesian game.

Contributing

If you'd like to contribute to this project, please follow these steps:

  1. Fork the repository.
  2. Create a new branch:
  3. git checkout -b feature/new-feature
  4. Make your changes and commit them:
  5. git commit -m 'Add new feature'
  6. Push to the branch:
  7. git push origin feature/new-feature
  8. Open a pull request.

License

This project is licensed under the MIT License - see the LICENSE file for details.

About

this is a repository that calculates Nash equilibrium for bayesian games with 2 players

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published