ForHosting KIT · Developer Utilities

Payoff Matrix Expected Value Calculator for Mixed Strategies

This payoff matrix expected value calculator evaluates every pure strategy available to a row player against a specified mixed strategy for the opponent.

● BetaFree · in your browser
Use it from WebAPIEmailTelegramApp soon

Enter the row player's payoff matrix and a probability for each opponent action. The calculator multiplies each payoff by the matching column probability, sums the products by row, and identifies the pure strategy or tied strategies with the highest expected payoff. It is useful for game theory exercises, strategic decision analysis, economics courses, and transparent checks of mixed-strategy reasoning.

Arrange the payoff matrix from the row player's perspective

Begin with a matrix whose rows represent the pure strategies you want to evaluate and whose columns represent the opponent's possible pure strategies. Every cell must contain the payoff received by the row player for that particular pair of choices. If a textbook displays ordered payoff pairs such as (3, 1), enter only the first number when the row player is the first player; use only the second number if you are instead evaluating the second player's choices after transposing the strategic viewpoint. Keep every row the same length because each row must correspond to the same ordered set of opponent actions. Negative payoffs, zero, fractions, and decimal values are all valid. Optional strategy names make the result easier to interpret, but they must follow the matrix row order. Without names, the calculator assigns Strategy 1, Strategy 2, and so forth. This explicit structure prevents a common error: combining one player's payoff entries with probabilities that refer to a differently ordered set of opponent actions.

Enter and interpret the opponent's mixed strategy

Supply one probability for each matrix column, in exactly the same order as the opponent strategies represented by those columns. Probabilities must be between zero and one and must add to one. A probability of zero is allowed and means that the corresponding opponent action contributes nothing to any expected payoff. For each row, the calculator forms a probability-weighted average: it multiplies every payoff in that row by its column probability and then adds those products. The returned expected payoff is therefore the long-run average payoff associated with committing to that pure row strategy while the opponent repeatedly randomizes according to the supplied distribution. It is not a guaranteed payoff in a single play, nor does it predict which action the opponent will actually choose. The probability sum is returned as a check, and inputs with a sum outside a small floating-point tolerance are rejected instead of silently normalized. That behavior keeps the stated mixed strategy distinct from accidental or incomplete weights.

Compare pure strategies and identify a best response

Read the expected_payoffs list to compare all row strategies under the same opponent distribution. The maximum_expected_payoff field gives the largest computed value, while best_strategies lists every strategy attaining that value. Returning all maximizers matters because a player can be indifferent between two or more pure strategies. Any mixture supported entirely on tied best responses also has the same expected payoff against this fixed opponent strategy, although this calculator does not solve for equilibrium probabilities. A best response here is conditional on the probabilities you supplied: changing the opponent's mixture can change the ranking, create a tie, or remove one. Use the result to verify a candidate mixed-strategy equilibrium by checking whether strategies claimed to be in a player's support are tied and no excluded pure strategy pays more. For automated use, the API price is $0.002 per request. The deterministic calculation also runs without network calls or random sampling, so repeated identical inputs produce identical numeric results.

Check a game theory exercise

Calculate each row strategy's expected payoff and verify which pure action is a best response to the stated opponent mixture.

Test equilibrium indifference

Confirm that strategies included in a proposed mixed-strategy support have equal expected payoffs and that excluded strategies do not outperform them.

Compare decisions under randomized behavior

Evaluate fixed actions when another participant, market state, or scenario follows a known probability distribution.

Which player's payoffs should I enter?

Enter the payoffs of the player whose row strategies you are evaluating. If cells show payoff pairs, select that player's component consistently.

Do the probabilities have to sum to one?

Yes. They must be nonnegative, no greater than one, and sum to one within a small floating-point tolerance.

What happens when several strategies tie?

Every strategy tied for the maximum expected payoff appears in best_strategies; the calculator does not discard co-best responses.

Does this calculator find a Nash equilibrium?

No. It evaluates pure responses to one supplied opponent mixture. You can use the results as an indifference and best-response check within an equilibrium calculation.

Can payoffs be negative or decimal values?

Yes. Any finite numeric payoff is accepted, including negative values, zero, integers, fractions represented as decimals, and positive decimals.

What does an expected payoff mean?

It is the probability-weighted average payoff for repeatedly choosing one pure strategy against the supplied opponent distribution, not a guaranteed result from one play.

What does the API request cost?

The API price is $0.002 per request. The browser version can execute the same deterministic calculation locally.

Everything on this page is available programmatically. This section is for teams who want to wire it into their own systems; everyone else can just use the tool above.

POSThttps://api.kit.forhosting.com/econ/payoff-matrix-expected-value

Prefer to automate it? One authenticated POST creates the task; the result comes back by webhook or a signed link. The same capability also runs here on the web, by email and from Telegram — and soon from our app too.

curl -X POST https://api.kit.forhosting.com/econ/payoff-matrix-expected-value \
  -H "Authorization: Bearer $KIT_KEY" \
  -H "Content-Type: application/json" \
  -d '{"payoff_matrix":[[3,0],[1,2]],"opponent_probabilities":[0.25,0.75]}'
{
  "payoff_matrix": [
    [
      3,
      0
    ],
    [
      1,
      2
    ]
  ],
  "opponent_probabilities": [
    0.25,
    0.75
  ]
}
{
  "task_id": "tsk_a1b2c3d4e5f6a1b2c3d4e5f6",
  "type": "econ.payoff_matrix_expected_value",
  "status": "queued",
  "_links": {
    "result": "/tasks/tsk_…/result"
  }
}

The API is asynchronous: the call returns a task_id immediately and the result arrives by webhook. Polling is capped at 1 req/s per task.

Per request$0.002

Published price — no tokens, no invented credits. A failed task is never charged.

HTTPCodeMeaning
401unauthorizedMissing or invalid API key.
402insufficient_balanceYour balance doesn't cover the task price.
404unknown_typeThat task type doesn't exist.
429rate_limitedToo many requests. Use the webhook instead of polling.

Read the full KIT documentation →