Lab 2
Materials for class on Friday, January 18, 2019
Contents
Things we’ll do
- Calculate mixed strategies in games
- Review concepts that are covered in Problem Set 1
Mixed strategies
When there is no single Nash equilibrium in a game, players have to engage in a mixed strategy and attempt to predict what the other players will do. The choices they make are determined by the payoffs in the game, since it is generally more likely that players will choose strategies that maximize their payoffs.
Here’s the general process for solving any game theory matrix:
- Determine if there are pure equilibria (cover each row/column and ask what each player’s best strategy would be). If there are multiple equilibria, you need to find the mixed strategy.
- Calculate the expected utility for each choice for each player and find the probability cutoff for each choice.
- Calculate the expected payoff for each player.
Let’s do this with the Bach or Stravinksy game that we used in class:
Friend 2 | |||
---|---|---|---|
Chinese | Italian | ||
Friend 1 | Chinese | 2, 1 | 0, 0 |
Italian | 0, 0 | 1, 2 |
Step 1: Find the equilibria:
- Best response for Friend 1 if Friend 2 chooses Chinese = Chinese
- Best response for Friend 1 if Friend 2 chooses Italian = Italian
- Best response for Friend 2 if Friend 1 chooses Chinese = Chinese
- Best response for Friend 2 if Friend 1 chooses Italian = Italian
The game has two Nash equilibria, so it has a mixed strategy.
Step 2: Calculate the expected utility for each choice for each player. We do this by assuming some probability for Friend 1’s choices (\(p\), \(1 - p\)) and for Friend 2’s choices (\(q\), \(1 - q\)):
Friend 2 | ||||
---|---|---|---|---|
Chinese | Italian | |||
\(q\) | \(1 - q\) | |||
Friend 1 | Chinese | \(p\) | 2, 1 | 0, 0 |
Italian | \(1 - p\) | 0, 0 | 1, 2 |
To find the expected utility for a choice, add the utility × probability for each choice in the row (or column, for Player 2). Thus,
\[ \begin{aligned} EU_{\text{Friend 1, Chinese}} &= 2q + 0(1-q) =& 2q \\ EU_{\text{Friend 1, Italian}} &= 0q + 1(1-q) =& 1 - q \\ EU_{\text{Friend 2, Chinese}} &= 1p + 0(1-p) =& p \\ EU_{\text{Friend 2, Italian}} &= 0p + 2(1-p) =& 2 - 2p \end{aligned} \]
With these formulas, you can then determine \(q\) and \(p\) by setting the expected utilities for each player equal to each other and solving for the variable:
\[ \begin{aligned} 2q &= 1 - q & p &= 2 - 2p \\ 3q &= 1 & 3p &= 2 \\ q &= \frac{1}{3} & p &= \frac{2}{3} \end{aligned} \]
Friend 1’s best response is determined by what Friend 2’s \(q\) is in real life:
\[ \text{Best response}_{\text{Friend 1}} = \left \{ \begin{aligned} &\text{Chinese } & \text{if } q < \frac{1}{3} \\ &\text{Italian } & \text{if } q > \frac{1}{3} \\ &\text{indifferent } & \text{if } q = \frac{1}{3} \\ \end{aligned} \right \} \]
Similarly, Friend 2’s best response is determined by what Friend 1’s \(p\) is in real life:
\[ \text{Best response}_{\text{Friend 2}} = \left \{ \begin{aligned} &\text{Chinese } & \text{if } p > \frac{2}{3} \\ &\text{Italian } & \text{if } p < \frac{2}{3} \\ &\text{indifferent } & \text{if } p = \frac{1}{3} \\ \end{aligned} \right \} \]
Step 3: Calculate the expected payoff for each player when playing the mixed strategy. This is the utility × probability for each cell, added together. First, calculate the joint probabilities for each cell by multiplying the row and column probabilities:
Friend 2 | ||||
---|---|---|---|---|
Chinese | Italian | |||
\(q = \frac{1}{3}\) | \(1 - q = \frac{2}{3}\) | |||
Friend 1 | Chinese | \(p = \frac{2}{3}\) | \(\frac{2}{3} \times \frac{1}{3} = \frac{2}{9}\) | \(\frac{2}{3} \times \frac{2}{3} = \frac{4}{9}\) |
Italian | \(1 - p = \frac{1}{3}\) | \(\frac{1}{3} \times \frac{1}{3} = \frac{1}{9}\) | \(\frac{1}{3} \times \frac{2}{3} = \frac{2}{9}\) |
Then multiply each probability by the payoff and add all the cells together:
\[ \begin{aligned} EP_{\text{Friend 1}} &= (2 \times \frac{2}{9}) + (0 \times \frac{4}{9}) + (0 \times \frac{1}{9}) + (1 \times \frac{2}{9}) =& \frac{2}{3} \\ EP_{\text{Friend 2}} &= (1 \times \frac{2}{9}) + (0 \times \frac{4}{9}) + (0 \times \frac{1}{9}) + (2 \times \frac{2}{9}) =& \frac{2}{3} \end{aligned} \]
The expected payoff for each player in the mixed strategy is \(\frac{2}{3}\), which is less than what either player would make if they coordinated on their least preferred outcome. That is, it’s better for Friend 1 to compromise and eat Italian and get 1 unit of utility rather than gamble on the mixed strategy.