Skip to main content
POST
/
quantlib
/
economics
/
games
/
nash-check
Verify Nash Equilibrium
curl --request POST \
  --url https://finceptbackend.share.zrok.io/quantlib/economics/games/nash-check \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '
{
  "payoff_matrix_1": [
    [
      3,
      0
    ],
    [
      5,
      1
    ]
  ],
  "payoff_matrix_2": [
    [
      3,
      5
    ],
    [
      0,
      1
    ]
  ],
  "strategy_1": [
    0,
    1
  ],
  "strategy_2": [
    0,
    1
  ]
}
'
{
  "success": true,
  "data": {
    "is_nash_equilibrium": true,
    "payoff": [
      1,
      1
    ]
  }
}

Authorizations

X-API-Key
string
header
required

API key for authentication. Get your key at https://finceptbackend.share.zrok.io/auth/register

Body

application/json
payoff_matrix_1
number[][]
required

Payoff matrix for Player 1

Example:
[[3, 0], [5, 1]]
payoff_matrix_2
number[][]
required

Payoff matrix for Player 2

Example:
[[3, 5], [0, 1]]
strategy_1
number[]
required

Mixed strategy for Player 1 (probability distribution over strategies, must sum to 1)

Required range: 0 <= x <= 1
Example:
[0, 1]
strategy_2
number[]
required

Mixed strategy for Player 2 (probability distribution over strategies, must sum to 1)

Required range: 0 <= x <= 1
Example:
[0, 1]

Response

Successful Response

success
boolean
Example:

true

data
object