Teori Permainan

Keseimbangan Nash, strategi, payoff, dan nilai Shapley.

Game theory symbols in LaTeX: strategies, payoffs and equilibria

Game theory notation in LaTeX is mostly indexed letters, so the trick is consistent subscripts. A player's strategy is s_i, the strategies of everyone else are s_{-i}, the payoff is u_i(s_i, s_{-i}), and a Nash equilibrium is marked with a star, s^*. Mixed strategies use \sigma_i \in \Delta(S_i), preferences use \succ and \succeq, and a best response reads best as \operatorname{BR}_i from amsmath. Payoff matrices are tables built with array. The table lists the game theory symbols people use most, with the package each one needs; the full list follows below.

Quick reference: strategies, payoffs and equilibria

SymbolCommandUsePackageCopy
si∈Sis_i \in S_i
s_i \in S_iStrategy of player ibuilt in
s−is_{-i}
s_{-i}Strategies of all other playersbuilt in
ui(si,s−i)u_i(s_i, s_{-i})
u_i(s_i, s_{-i})Payoff (utility) of player ibuilt in
s∗=(s1∗,…,sn∗)s^* = (s_1^*, \ldots, s_n^*)
s^* = (s_1^*, \ldots, s_n^*)Nash equilibrium profilebuilt in
BR⁡i(s−i)\operatorname{BR}_i(s_{-i})
\operatorname{BR}_i(s_{-i})Best responseamsmath
σi∈Δ(Si)\sigma_i \in \Delta(S_i)
\sigma_i \in \Delta(S_i)Mixed strategybuilt in
E[ui(σ)]\mathbb{E}[u_i(\sigma)]
\mathbb{E}[u_i(\sigma)]Expected payoffamssymb
a≻ba \succ b
a \succ bStrict preferencebuilt in
a⪰ba \succeq b
a \succeq bWeak preferencebuilt in
max⁡simin⁡s−iui\max_{s_i} \min_{s_{-i}} u_i
\max_{s_i} \min_{s_{-i}} u_iMaximin valuebuilt in
ϕi(v)\phi_i(v)
\phi_i(v)Shapley valuebuilt in
v(S)v(S)
v(S)Value of coalition Sbuilt in

Writing a payoff matrix

A two-player payoff matrix is an array in display math, with a rule after the row labels. The sgame package draws strategic-form games with player names if you need more:

\[
\begin{array}{c|cc}
    & L   & R   \\ \hline
  U & 3,3 & 0,5 \\
  D & 5,0 & 1,1
\end{array}
\]

Frequently asked questions about game theory in LaTeX

How do I write a payoff matrix in LaTeX?
Use an array inside display math, with a vertical rule after the row labels: \begin{array}{c|cc} & L & R \\ \hline U & 3,3 & 0,5 \\ D & 5,0 & 1,1 \end{array}. For a strategic-form game with player names, the sgame package provides a game environment.
How do I write s minus i in LaTeX?
Put the minus sign and the index inside braces: s_{-i}. Without braces, s_-i lowers only the minus sign. The same applies to profiles like (s_i', s_{-i}) and best responses BR_i(s_{-i}).
How do I mark a Nash equilibrium in LaTeX?
Use a superscript star: s^* for the profile and s_i^* for one player's equilibrium strategy. The equilibrium condition reads u_i(s_i^*, s_{-i}^*) \geq u_i(s_i, s_{-i}^*) for all s_i \in S_i.
ii
sis_i
SiS_i
s=(s1,…,sn)s = (s_1, \ldots, s_n)

Strategy Profile

s = (s_1, \ldots, s_n)
ui(s)u_i(s)
E[ui]\mathbb{E}[u_i]

Expected Payoff

\mathbb{E}[u_i]
BRi(s−i)BR_i(s_{-i})

Best Response

BR_i(s_{-i})
s∗=(s1∗,…,sn∗)s^* = (s_1^*, \ldots, s_n^*)

Nash Equilibrium

s^* = (s_1^*, \ldots, s_n^*)
σi\sigma_i
Δ(Si)\Delta(S_i)
sids_i^d
si≺si′s_i \prec s'_i

Dominated Strategy

s_i \prec s'_i
sPOs^{PO}
min⁡jmax⁡i\min_j \max_i

Minimax

\min_j \max_i
u1+u2=0u_1 + u_2 = 0

Zero Sum

u_1 + u_2 = 0
v(S)v(S)
ϕi(v)\phi_i(v)

Shapley Value

\phi_i(v)
SPESPE
aia_i