https://github.com/h3adache/gametheory
scripts to help with gametheory calculations
https://github.com/h3adache/gametheory
Last synced: 3 months ago
JSON representation
scripts to help with gametheory calculations
- Host: GitHub
- URL: https://github.com/h3adache/gametheory
- Owner: h3adache
- Created: 2013-03-06T15:06:26.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2013-03-11T02:54:44.000Z (about 12 years ago)
- Last Synced: 2025-01-17T03:38:15.365Z (5 months ago)
- Language: Python
- Size: 129 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
gametheory
==========scripts to help with gametheory calculations
prob.py
----------
Computes Nash equilibria for 2x2 and 3x3 gamesUsage:
> python
> import prob as p
> p.prob() # follow promptExplanation of the algorithm is:
[http://en.wikipedia.org/wiki/Nash_equilibrium#Computing_Nash_equilibria]### Usage as is applies to this script
run function prob. When it asks you for the payoffs enter them in the order of all payoffs for playing
action A followed by all payoffs for playing action B (and then action C if applicable)For example given the matrix:
A (rows)/B(columns) | Head | Tail
---|---|---
Head ( *p* ) | a1,b1 | a2,b3
Tail ( *1-p* )| a3,b2 | a4,b4You would do: a1,a2,a3,a4 to calculate P
bayesian.py
----------bayesian equilibrium