# Stochastic game

In game theory, a stochastic game, introduced by Lloyd Shapley in the early 1950s, is a dynamic game with probabilistic transitions played by one or more players. The game is played in a sequence of stages. At the beginning of each stage the game is in some state. The players select actions and each player receives a payoff that depends on the current state and the chosen actions. The game then moves to a new random state whose distribution depends on the previous state and the actions chosen by the players. The procedure is repeated at the new state and play continues for a finite or infinite number of stages. The total payoff to a player is often taken to be the discounted sum of the stage payoffs or the limit inferior of the averages of the stage payoffs.

Stochastic games generalize both Markov decision processes and repeated games.

## Two-player games

Stochastic two-player games on directed graphs are widely used for modeling and analysis of discrete systems operating in an unknown (adversarial) environment. Possible configurations of a system and its environment are represented as vertices, and the transitions correspond to actions of the system, its environment, or "nature". A run of the system then corresponds to an infinite path in the graph. Thus, a system and its environment can be seen as two players with antagonistic objectives, where one player (the system) aims at maximizing the probability of "good" runs, while the other player (the environment) aims at the opposite.

In many cases, there exists an equilibrium value of this probability, but optimal strategies for both players may not exist.

We introduce basic concepts and algorithmic questions studied in this area, and we mention some long-standing open problems. Then, we mention selected recent results.

## Theory

The ingredients of a stochastic game are: a finite set of players ${\displaystyle I}$; a state space ${\displaystyle M}$ (either a finite set or a measurable space ${\displaystyle (M,{\mathcal {A}})}$); for each player ${\displaystyle i\in I}$, an action set ${\displaystyle S^{i}}$ (either a finite set or a measurable space ${\displaystyle (S^{i},{\mathcal {S}}^{i})}$); a transition probability ${\displaystyle P}$ from ${\displaystyle M\times S}$, where ${\displaystyle S=\times _{i\in I}S^{i}}$ is the action profiles, to ${\displaystyle M}$, where ${\displaystyle P(A\mid m,s)}$ is the probability that the next state is in ${\displaystyle A}$ given the current state ${\displaystyle m}$ and the current action profile ${\displaystyle s}$; and a payoff function ${\displaystyle g}$ from ${\displaystyle M\times S}$ to ${\displaystyle R^{I}}$, where the ${\displaystyle i}$-th coordinate of ${\displaystyle g}$, ${\displaystyle g^{i}}$, is the payoff to player ${\displaystyle i}$ as a function of the state ${\displaystyle m}$ and the action profile ${\displaystyle s}$.

The game starts at some initial state ${\displaystyle m_{1}}$. At stage ${\displaystyle t}$, players first observe ${\displaystyle m_{t}}$, then simultaneously choose actions ${\displaystyle s_{t}^{i}\in S^{i}}$, then observe the action profile ${\displaystyle s_{t}=(s_{t}^{i})_{i}}$, and then nature selects ${\displaystyle m_{t+1}}$ according to the probability ${\displaystyle P(\cdot \mid m_{t},s_{t})}$. A play of the stochastic game, ${\displaystyle m_{1},s_{1},\ldots ,m_{t},s_{t},\ldots }$, defines a stream of payoffs ${\displaystyle g_{1},g_{2},\ldots }$, where ${\displaystyle g_{t}=g(m_{t},s_{t})}$.

The discounted game ${\displaystyle \Gamma _{\lambda }}$ with discount factor ${\displaystyle \lambda }$ (${\displaystyle 0<\lambda \leq 1}$) is the game where the payoff to player ${\displaystyle i}$ is ${\displaystyle \lambda \sum _{t=1}^{\infty }(1-\lambda )^{t-1}g_{t}^{i}}$. The ${\displaystyle n}$-stage game is the game where the payoff to player ${\displaystyle i}$ is ${\displaystyle {\bar {g}}_{n}^{i}:={\frac {1}{n}}\sum _{t=1}^{n}g_{t}^{i}}$.

The value ${\displaystyle v_{n}(m_{1})}$, respectively ${\displaystyle v_{\lambda }(m_{1})}$, of a two-person zero-sum stochastic game ${\displaystyle \Gamma _{n}}$, respectively ${\displaystyle \Gamma _{\lambda }}$, with finitely many states and actions exists, and Truman Bewley and Elon Kohlberg (1976) proved that ${\displaystyle v_{n}(m_{1})}$ converges to a limit as ${\displaystyle n}$ goes to infinity and that ${\displaystyle v_{\lambda }(m_{1})}$ converges to the same limit as ${\displaystyle \lambda }$ goes to ${\displaystyle 0}$.

The "undiscounted" game ${\displaystyle \Gamma _{\infty }}$ is the game where the payoff to player ${\displaystyle i}$ is the "limit" of the averages of the stage payoffs. Some precautions are needed in defining the value of a two-person zero-sum ${\displaystyle \Gamma _{\infty }}$ and in defining equilibrium payoffs of a non-zero-sum ${\displaystyle \Gamma _{\infty }}$. The uniform value ${\displaystyle v_{\infty }}$ of a two-person zero-sum stochastic game ${\displaystyle \Gamma _{\infty }}$ exists if for every ${\displaystyle \varepsilon >0}$ there is a positive integer ${\displaystyle N}$ and a strategy pair ${\displaystyle \sigma _{\varepsilon }}$ of player 1 and ${\displaystyle \tau _{\varepsilon }}$ of player 2 such that for every ${\displaystyle \sigma }$ and ${\displaystyle \tau }$ and every ${\displaystyle n\geq N}$ the expectation of ${\displaystyle {\bar {g}}_{n}^{i}}$ with respect to the probability on plays defined by ${\displaystyle \sigma _{\varepsilon }}$ and ${\displaystyle \tau }$ is at least ${\displaystyle v_{\infty }-\varepsilon }$, and the expectation of ${\displaystyle {\bar {g}}_{n}^{i}}$ with respect to the probability on plays defined by ${\displaystyle \sigma }$ and ${\displaystyle \tau _{\varepsilon }}$ is at most ${\displaystyle v_{\infty }+\varepsilon }$. Jean-François Mertens and Abraham Neyman (1981) proved that every two-person zero-sum stochastic game with finitely many states and actions has a uniform value.

If there is a finite number of players and the action sets and the set of states are finite, then a stochastic game with a finite number of stages always has a Nash equilibrium. The same is true for a game with infinitely many stages if the total payoff is the discounted sum.

The non-zero-sum stochastic game ${\displaystyle \Gamma _{\infty }}$ has a uniform equilibrium payoff ${\displaystyle v_{\infty }}$ if for every ${\displaystyle \varepsilon >0}$ there is a positive integer ${\displaystyle N}$ and a strategy profile ${\displaystyle \sigma }$ such that for every unilateral deviation by a player ${\displaystyle i}$, i.e., a strategy profile ${\displaystyle \tau }$ with ${\displaystyle \sigma ^{j}=\tau ^{j}}$ for all ${\displaystyle j\neq i}$, and every ${\displaystyle n\geq N}$ the expectation of ${\displaystyle {\bar {g}}_{n}^{i}}$ with respect to the probability on plays defined by ${\displaystyle \sigma }$ is at least ${\displaystyle v_{\infty }^{i}-\varepsilon }$, and the expectation of ${\displaystyle {\bar {g}}_{n}^{i}}$ with respect to the probability on plays defined by ${\displaystyle \tau }$ is at most ${\displaystyle v_{\infty }^{i}+\varepsilon }$. Nicolas Vieille has shown that all two-person stochastic games with finite state and action spaces have a uniform equilibrium payoff.

The non-zero-sum stochastic game ${\displaystyle \Gamma _{\infty }}$ has a limiting-average equilibrium payoff ${\displaystyle v_{\infty }}$ if for every ${\displaystyle \varepsilon >0}$ there is a strategy profile ${\displaystyle \sigma }$ such that for every unilateral deviation by a player ${\displaystyle i}$, the expectation of the limit inferior of the averages of the stage payoffs with respect to the probability on plays defined by ${\displaystyle \sigma }$ is at least ${\displaystyle v_{\infty }^{i}-\varepsilon }$, and the expectation of the limit superior of the averages of the stage payoffs with respect to the probability on plays defined by ${\displaystyle \tau }$ is at most ${\displaystyle v_{\infty }^{i}+\varepsilon }$. Jean-François Mertens and Abraham Neyman (1981) proves that every two-person zero-sum stochastic game with finitely many states and actions has a limiting-average value, and Nicolas Vieille has shown that all two-person stochastic games with finite state and action spaces have a limiting-average equilibrium payoff. In particular, these results imply that these games have a value and an approximate equilibrium payoff, called the liminf-average (respectively, the limsup-average) equilibrium payoff, when the total payoff is the limit inferior (or the limit superior) of the averages of the stage payoffs.

Whether every stochastic game with finitely many players, states, and actions, has a uniform equilibrium payoff, or a limiting-average equilibrium payoff, or even a liminf-average equilibrium payoff, is a challenging open question.

A Markov perfect equilibrium is a refinement of the concept of sub-game perfect Nash equilibrium to stochastic games..

## Applications

Stochastic games have applications in economics, evolutionary biology and computer networks.[1] They are generalizations of repeated games which correspond to the special case where there is only one state.