<?xml version="1.0" encoding="UTF-8" standalone="yes"?><oembed><version><![CDATA[1.0]]></version><provider_name><![CDATA[Azimuth]]></provider_name><provider_url><![CDATA[https://johncarlosbaez.wordpress.com]]></provider_url><author_name><![CDATA[John Baez]]></author_name><author_url><![CDATA[https://johncarlosbaez.wordpress.com/author/johncarlosbaez/]]></author_url><title><![CDATA[Game Theory (Part&nbsp;15)]]></title><type><![CDATA[link]]></type><html><![CDATA[<p>In <a href="https://johncarlosbaez.wordpress.com/2013/02/11/game-theory-part-13/">Part 13</a> we saw an example of a Nash equilibrium where both players use a <b>mixed strategy</b>: that is, make their choice randomly, using a certain probability distribution on their set of mixed strategies.  </p>
<p>We found this Nash equilibrium using the oldest method known to humanity: we <i>guessed it</i>.  Guessing is what mathematicians do when we don&#8217;t know anything better to do.   When you&#8217;re trying to solve a new kind of problem, it&#8217;s often best to start with a very easy example, where you can guess the answer.  While you&#8217;re doing this, you should try to notice patterns!  These can give you tricks that are useful for harder problems, where pure guessing won&#8217;t usually work so well.</p>
<p>So now let&#8217;s try a slightly harder example.  In Part 13 we looked at the game &#8216;matching pennies&#8217;, which was a zero-sum game.  Now we&#8217;ll look at a modified version.  It will still be a zero-sum game.  We&#8217;ll find a Nash equilibrium by finding each player&#8217;s <a href="http://en.wikipedia.org/wiki/Minimax">&#8216;maximin strategy&#8217;</a>.  This technique works for <i>zero-sum</i> two-player normal-form games, but not most other games.</p>
<p>Why the funny word &#8216;maximin&#8217;?  </p>
<p>In this sort of strategy, you assume that no matter what you do, the other player will do whatever minimizes your expected payoff.   This is a sensible assumption in a zero-sum game!  They are trying to maximize their expected payoff, but in a zero-sum game <i>whatever they win, you lose</i>&#8230; so they&#8217;ll <i>minimize</i> your expected payoff.</p>
<p>So, in a maximin strategy you try to <i>maximize</i> your expected payoff while assuming that given whatever strategy you use, your opponent will use a strategy that <i>minimizes</i> your expected payoff.</p>
<p>Think about that sentence: it&#8217;s tricky!  But it explains the funny word &#8216;maximin&#8217;.  In brief, you&#8217;re trying to maximize the minimum of your expected payoff.</p>
<p>We&#8217;ll make this more precise in a while&#8230; but let&#8217;s dive in and look at a new game!</p>
<h3> Matching pennies&#8212;modified version </h3>
<p>In this new game, each player has a penny and must secretly turn the penny to either heads or tails.  They then reveal their choices simultaneously.   If the pennies do not match&mdash;one heads and one tails&mdash;<font color="red">B</font> wins 10 cents from A.  If the pennies are both heads, player A wins 10 cents from <font color="red">player B</font>.  And if the pennies are both tails, player A wins 20 cents from <font color="red">player B</font></p>
<p>Let&#8217;s write this game in normal form!   If we say</p>
<p>&bull; choice <b>1</b> is heads<br />
&bull; choice <b>2</b> is tails</p>
<p>then the normal form looks like this:</p>
<div align="center">
<table border="0">
<tr>
<td></td>
<td align="center"><font color="red"><b>1</b></font></td>
<td align="center"><font color="red"><b>2</b></font></td>
</tr>
<tr>
<td><b>1 &nbsp;&nbsp;</b></td>
<td align="center">(10,<font color="red">-10</font>)&nbsp;&nbsp;</td>
<td align="center">(-10,<font color="red">10</font>)&nbsp;&nbsp;</td>
</tr>
<tr>
<td><b>2</b></td>
<td align="center">(-10,<font color="red">10</font>)&nbsp;&nbsp;</td>
<td align="center">(20,<font color="red">-20</font>)&nbsp;&nbsp;</td>
</tr>
</table>
</div>
<p>We can also break this into two matrices in the usual way, one showing the payoff for A: </p>
<div align="center">
<img src='https://s0.wp.com/latex.php?latex=A+%3D+%5Cleft%28+%5Cbegin%7Barray%7D%7Brr%7D+10+%26+-10+%5C%5C+-10+%26+20+%5Cend%7Barray%7D+%5Cright%29+&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='A = &#92;left( &#92;begin{array}{rr} 10 &amp; -10 &#92;&#92; -10 &amp; 20 &#92;end{array} &#92;right) ' title='A = &#92;left( &#92;begin{array}{rr} 10 &amp; -10 &#92;&#92; -10 &amp; 20 &#92;end{array} &#92;right) ' class='latex' />
</div>
<p>and one showing the payoff for B:</p>
<div align="center">
<img src='https://s0.wp.com/latex.php?latex=B+%3D+%5Cleft%28+%5Cbegin%7Barray%7D%7Brr%7D+-10+%26+10+%5C%5C+10+%26+-20+%5Cend%7Barray%7D+%5Cright%29+&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='B = &#92;left( &#92;begin{array}{rr} -10 &amp; 10 &#92;&#92; 10 &amp; -20 &#92;end{array} &#92;right) ' title='B = &#92;left( &#92;begin{array}{rr} -10 &amp; 10 &#92;&#92; 10 &amp; -20 &#92;end{array} &#92;right) ' class='latex' />
</div>
<p>Before we begin our real work, here are some warmup puzzles:</p>
<p><b>Puzzle 1.</b>  Is this a zero-sum game?</p>
<p><b>Puzzle 2.</b>  Is this a symmetric game?</p>
<p><b>Puzzle 3.</b>  Does this game have a Nash equilibrium if we consider only pure strategies?</p>
<p><b>Puzzle 4.</b>  Does this game have a dominant strategy for either player A or player B?</p>
<h3> A&#8217;s expected payoff </h3>
<p>Remember that we write  A&#8217;s mixed strategy as</p>
<div align="center">
<img src='https://s0.wp.com/latex.php?latex=p+%3D+%28p_1%2C+p_2%29+&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='p = (p_1, p_2) ' title='p = (p_1, p_2) ' class='latex' />
</div>
<p>Here <img src='https://s0.wp.com/latex.php?latex=p_1&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='p_1' title='p_1' class='latex' /> is the probability that A makes choice 1: that is, chooses heads.   <img src='https://s0.wp.com/latex.php?latex=p_2&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='p_2' title='p_2' class='latex' /> is the probability that A makes choice 2: that is, chooses tails.  Similarly, we write B&#8217;s mixed strategy as</p>
<div align="center">
<img src='https://s0.wp.com/latex.php?latex=q+%3D+%28q_1%2C+q_2%29+&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='q = (q_1, q_2) ' title='q = (q_1, q_2) ' class='latex' />
</div>
<p>Here <img src='https://s0.wp.com/latex.php?latex=q_1&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='q_1' title='q_1' class='latex' /> is the probability that B makes choice 1, and <img src='https://s0.wp.com/latex.php?latex=q_2&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='q_2' title='q_2' class='latex' /> is the probability that B makes choice 2.  </p>
<p>Given all this, the expected value of A&#8217;s payoff is</p>
<div align="center">
<img src='https://s0.wp.com/latex.php?latex=p+%5Ccdot+A+q+&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='p &#92;cdot A q ' title='p &#92;cdot A q ' class='latex' />
</div>
<p>We saw this back in <a href="https://johncarlosbaez.wordpress.com/2013/02/11/game-theory-part-12/">Part 12</a>.  </p>
<p>Now let&#8217;s actually calculate the expected value of A&#8217;s payoff.  It helps to remember that probabilities add up to 1, so</p>
<div align="center">
<img src='https://s0.wp.com/latex.php?latex=p_1+%2B+p_2+%3D+1%2C+%5Cqquad+q_1+%2B+q_2+%3D+1+&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='p_1 + p_2 = 1, &#92;qquad q_1 + q_2 = 1 ' title='p_1 + p_2 = 1, &#92;qquad q_1 + q_2 = 1 ' class='latex' />
</div>
<p>It&#8217;s good to have fewer variables to worry about!  So, we&#8217;ll solve for <img src='https://s0.wp.com/latex.php?latex=p_2&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='p_2' title='p_2' class='latex' /> and <img src='https://s0.wp.com/latex.php?latex=q_2&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='q_2' title='q_2' class='latex' />:</p>
<div align="center">
<img src='https://s0.wp.com/latex.php?latex=p_2+%3D+1+-+p_1%2C+%5Cqquad+q_2+%3D+1+-+q_1+&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='p_2 = 1 - p_1, &#92;qquad q_2 = 1 - q_1 ' title='p_2 = 1 - p_1, &#92;qquad q_2 = 1 - q_1 ' class='latex' />
</div>
<p>and write</p>
<div align="center">
<img src='https://s0.wp.com/latex.php?latex=p+%3D+%28p_1%2C+1+-+p_1%29+&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='p = (p_1, 1 - p_1) ' title='p = (p_1, 1 - p_1) ' class='latex' /><br />
<img src='https://s0.wp.com/latex.php?latex=q+%3D+%28q_1%2C+1+-+q_1%29+&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='q = (q_1, 1 - q_1) ' title='q = (q_1, 1 - q_1) ' class='latex' />
</div>
<p>Then we can calculate A&#8217;s expected payoff.  We start by computing <img src='https://s0.wp.com/latex.php?latex=A+q&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='A q' title='A q' class='latex' />:</p>
<div align="center">
<img src='https://s0.wp.com/latex.php?latex=%5Cbegin%7Barray%7D%7Bccl%7D+A+q+%26%3D%26+++%5Cleft%28+%5Cbegin%7Barray%7D%7Brr%7D+10+%26+-10+%5C%5C+-10+%26+20+%5Cend%7Barray%7D+%5Cright%29+%5Cleft%28+%5Cbegin%7Barray%7D%7Bc%7D+q_1+%5C%5C+1+-+q_1+%5Cend%7Barray%7D+%5Cright%29+%5C%5C++%5C%5C+%26%3D%26+%5Cleft%28+%5Cbegin%7Barray%7D%7Bc%7D+10+q_1+-+10%281-q_1%29+%5C%5C+-10+q_1+%2B+20%281+-+q_1%29+%5Cend%7Barray%7D+%5Cright%29+%5C%5C++%5C%5C+%26%3D%26+%5Cleft%28+%5Cbegin%7Barray%7D%7Bc%7D+20+q_1+-+10++%5C%5C+20+-+30+q_1++%5Cend%7Barray%7D+%5Cright%29+%5Cend%7Barray%7D+&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='&#92;begin{array}{ccl} A q &amp;=&amp;   &#92;left( &#92;begin{array}{rr} 10 &amp; -10 &#92;&#92; -10 &amp; 20 &#92;end{array} &#92;right) &#92;left( &#92;begin{array}{c} q_1 &#92;&#92; 1 - q_1 &#92;end{array} &#92;right) &#92;&#92;  &#92;&#92; &amp;=&amp; &#92;left( &#92;begin{array}{c} 10 q_1 - 10(1-q_1) &#92;&#92; -10 q_1 + 20(1 - q_1) &#92;end{array} &#92;right) &#92;&#92;  &#92;&#92; &amp;=&amp; &#92;left( &#92;begin{array}{c} 20 q_1 - 10  &#92;&#92; 20 - 30 q_1  &#92;end{array} &#92;right) &#92;end{array} ' title='&#92;begin{array}{ccl} A q &amp;=&amp;   &#92;left( &#92;begin{array}{rr} 10 &amp; -10 &#92;&#92; -10 &amp; 20 &#92;end{array} &#92;right) &#92;left( &#92;begin{array}{c} q_1 &#92;&#92; 1 - q_1 &#92;end{array} &#92;right) &#92;&#92;  &#92;&#92; &amp;=&amp; &#92;left( &#92;begin{array}{c} 10 q_1 - 10(1-q_1) &#92;&#92; -10 q_1 + 20(1 - q_1) &#92;end{array} &#92;right) &#92;&#92;  &#92;&#92; &amp;=&amp; &#92;left( &#92;begin{array}{c} 20 q_1 - 10  &#92;&#92; 20 - 30 q_1  &#92;end{array} &#92;right) &#92;end{array} ' class='latex' />
</div>
<p>This gives</p>
<div align="center">
<img src='https://s0.wp.com/latex.php?latex=%5Cbegin%7Barray%7D%7Bccl%7D+p+%5Ccdot+A+q+%26%3D%26+%28p_1+%2C+1+-+p_1%29+%5Ccdot+%2820+q_1+-+10++%2C++20+-+30+q_1%29+%5C%5C++%5C%5C++%26%3D%26+p_1%2820+q_1+-+10%29+%2B+%281-p_1%29%2820+-+30+q_1%29+%5C%5C+%5C%5C+%26%3D%26+20+-+30+p_1+-+30+q_1+%2B+50+p_1+q_1+%5Cend%7Barray%7D&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='&#92;begin{array}{ccl} p &#92;cdot A q &amp;=&amp; (p_1 , 1 - p_1) &#92;cdot (20 q_1 - 10  ,  20 - 30 q_1) &#92;&#92;  &#92;&#92;  &amp;=&amp; p_1(20 q_1 - 10) + (1-p_1)(20 - 30 q_1) &#92;&#92; &#92;&#92; &amp;=&amp; 20 - 30 p_1 - 30 q_1 + 50 p_1 q_1 &#92;end{array}' title='&#92;begin{array}{ccl} p &#92;cdot A q &amp;=&amp; (p_1 , 1 - p_1) &#92;cdot (20 q_1 - 10  ,  20 - 30 q_1) &#92;&#92;  &#92;&#92;  &amp;=&amp; p_1(20 q_1 - 10) + (1-p_1)(20 - 30 q_1) &#92;&#92; &#92;&#92; &amp;=&amp; 20 - 30 p_1 - 30 q_1 + 50 p_1 q_1 &#92;end{array}' class='latex' />
</div>
<p>This is a bit complicated, so let&#8217;s graph A&#8217;s expected payoff in the extreme cases where B either makes choice 1 with probability 100%, or choice 2 with probability 100%.  </p>
<p>If B makes choice 1 with probability 100%, then <img src='https://s0.wp.com/latex.php?latex=q_1+%3D+1.&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='q_1 = 1.' title='q_1 = 1.' class='latex' />  Put this in the formula above and we see A&#8217;s expected payoff is</p>
<div align="center">
<img src='https://s0.wp.com/latex.php?latex=p+%5Ccdot+A+q+%3D+20+p_1+-+10&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='p &#92;cdot A q = 20 p_1 - 10' title='p &#92;cdot A q = 20 p_1 - 10' class='latex' />
</div>
<p>If we graph this as a function of <img src='https://s0.wp.com/latex.php?latex=p_1&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='p_1' title='p_1' class='latex' /> we get a straight line:</p>
<div align="center"><img width="450" src="https://i2.wp.com/math.ucr.edu/home/baez/mathematical/nash_equilibrium_1a.jpg" /></div>
<p>On the other hand, if B makes choice 2 with probability 100%, then <img src='https://s0.wp.com/latex.php?latex=q_2+%3D+1&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='q_2 = 1' title='q_2 = 1' class='latex' /> so <img src='https://s0.wp.com/latex.php?latex=q_1+%3D+0.&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='q_1 = 0.' title='q_1 = 0.' class='latex' />  Now A&#8217;s expected payoff is</p>
<div align="center">
<img src='https://s0.wp.com/latex.php?latex=p+%5Ccdot+A+q+%3D+20+-+30+p_1&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='p &#92;cdot A q = 20 - 30 p_1' title='p &#92;cdot A q = 20 - 30 p_1' class='latex' />
</div>
<p>Graphing this, we get:</p>
<div align="center"><img width="450" src="https://i0.wp.com/math.ucr.edu/home/baez/mathematical/nash_equilibrium_1b.jpg" /></div>
<p>The point of these graphs becomes clearer if we draw them both together:</p>
<div align="center"><img width="450" src="https://i1.wp.com/math.ucr.edu/home/baez/mathematical/nash_equilibrium_1.jpg" /></div>
<p>Some interesting things happen where the lines cross!  We&#8217;ll get A&#8217;s maximin strategy by picking the value of <img src='https://s0.wp.com/latex.php?latex=p_1&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='p_1' title='p_1' class='latex' /> where these lines cross!  And in fact, there&#8217;s a <i>Nash equilibrium</i> where player A chooses this value of <img src='https://s0.wp.com/latex.php?latex=p_1%2C&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='p_1,' title='p_1,' class='latex' /> and B uses the same trick to choose his value of <img src='https://s0.wp.com/latex.php?latex=q_1.&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='q_1.' title='q_1.' class='latex' /></p>
<p>But we can already see something simpler.  We&#8217;ve drawn graphs of A&#8217;s expected payoff for two extreme cases of player B&#8217;s mixed strategy: <img src='https://s0.wp.com/latex.php?latex=q_1+%3D+1&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='q_1 = 1' title='q_1 = 1' class='latex' /> and <img src='https://s0.wp.com/latex.php?latex=q_1+%3D+0.&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='q_1 = 0.' title='q_1 = 0.' class='latex' />  Suppose B uses some other mixed strategy, say <img src='https://s0.wp.com/latex.php?latex=q_1+%3D+2%2F5&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='q_1 = 2/5' title='q_1 = 2/5' class='latex' /> for example.  Now A&#8217;s expected payoff will be something <i>between</i> the two lines we&#8217;ve drawn.  Let&#8217;s see what it is:</p>
<div align="center">
<img src='https://s0.wp.com/latex.php?latex=%5Cbegin%7Barray%7D%7Bccl%7D+p+%5Ccdot+A+q+%26%3D%26+20+-+30+p_1+-+30+q_1+%2B+50+p_1+q_1+%5C%5C++%5C%5C++%26%3D%26+20+-+30+p_1+-+30+%5Ccdot+%5Cfrac%7B2%7D%7B5%7D+%2B+50+p_1+%5Ccdot+%5Cfrac%7B2%7D%7B5%7D+%5C%5C++%5C%5C++%26%3D%26+8+-+10p_1++%5Cend%7Barray%7D&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='&#92;begin{array}{ccl} p &#92;cdot A q &amp;=&amp; 20 - 30 p_1 - 30 q_1 + 50 p_1 q_1 &#92;&#92;  &#92;&#92;  &amp;=&amp; 20 - 30 p_1 - 30 &#92;cdot &#92;frac{2}{5} + 50 p_1 &#92;cdot &#92;frac{2}{5} &#92;&#92;  &#92;&#92;  &amp;=&amp; 8 - 10p_1  &#92;end{array}' title='&#92;begin{array}{ccl} p &#92;cdot A q &amp;=&amp; 20 - 30 p_1 - 30 q_1 + 50 p_1 q_1 &#92;&#92;  &#92;&#92;  &amp;=&amp; 20 - 30 p_1 - 30 &#92;cdot &#92;frac{2}{5} + 50 p_1 &#92;cdot &#92;frac{2}{5} &#92;&#92;  &#92;&#92;  &amp;=&amp; 8 - 10p_1  &#92;end{array}' class='latex' />
</div>
<p>If we graph this along with our other two lines, we get this:</p>
<div align="center"><img width="450" src="https://i0.wp.com/math.ucr.edu/home/baez/mathematical/nash_equilibrium_1_intermediate.jpg" /></div>
<p>We get a line between the other two, as we expect.  But more importantly, <i>all three lines cross at the same point!</i>  </p>
<p>That&#8217;s not a coincidence, that&#8217;s how it always works.    If we draw lines for more different choices of B&#8217;s mixed strategy, they look like this: </p>
<div align="center"><img width="450" src="https://i0.wp.com/math.ucr.edu/home/baez/mathematical/nash_equilibrium_1_intermediates.jpg" /></div>
<p>The point where they all intersect looks important!  It is.  Soon we&#8217;ll see why.</p>
<h3> A&#8217;s maximin strategy </h3>
<p>Now we&#8217;ll find A&#8217;s maximin strategy.  Let me explain the idea a bit more.   The idea is that A is cautious, so he wants to choose <img src='https://s0.wp.com/latex.php?latex=p_1&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='p_1' title='p_1' class='latex' /> that maximizes his expected payoff <i>in the worst-case scenario</i>.   In other words, A wants to maximize his expected payoff <i>assuming that B is trying to minimize A&#8217;s expected payoff</i>.   </p>
<p>Read that last sentence a few times, because it&#8217;s confusing at first.  </p>
<p>Why would B try to minimize A&#8217;s expected payoff?  B isn&#8217;t nasty: he&#8217;s just a rational agent trying to maximize his own expected payoff!     But if you solved Puzzle 1, you know this game is a zero-sum game.  So A&#8217;s payoff is minus B&#8217;s payoff.  Thus, if B is trying to maximize his own expected payoff, he&#8217;s also minimizing A&#8217;s expected payoff.  </p>
<p>Given this, let&#8217;s figure out what A should do.  A should look at different mixed strategies B can use, and graph A&#8217;s payoff as a function of <img src='https://s0.wp.com/latex.php?latex=p_1.&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='p_1.' title='p_1.' class='latex' />  We did this:</p>
<div align="center"><img width="450" src="https://i0.wp.com/math.ucr.edu/home/baez/mathematical/nash_equilibrium_1_intermediates.jpg" /></div>
<p>Then, he should choose <img src='https://s0.wp.com/latex.php?latex=p_1&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='p_1' title='p_1' class='latex' /> that maximizes his expected payoff <i>in the worst-case scenario</i>.   To do this, he should focus attention on the lines that give him the smallest expected payoff:</p>
<div align="center"><img width="450" src="https://i2.wp.com/math.ucr.edu/home/baez/mathematical/nash_equilibrium_1_maximin.jpg" /></div>
<p>This is the dark curve.   It&#8217;s not very &#8216;curvy&#8217;, but mathematicians consider a broken line to be an example of a curve!</p>
<p>To find this dark curve, all that matters are extreme cases of B&#8217;s strategy: the case <img src='https://s0.wp.com/latex.php?latex=q_1+%3D+1&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='q_1 = 1' title='q_1 = 1' class='latex' /> and the case <img src='https://s0.wp.com/latex.php?latex=q_1+%3D+0.&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='q_1 = 0.' title='q_1 = 0.' class='latex' />  So we can ignore the intermediate cases, and simplify our picture:</p>
<div align="center"><img width="450" src="https://i1.wp.com/math.ucr.edu/home/baez/mathematical/nash_equilibrium_1_maximin_simple.jpg" /></div>
<p>The dark curve is highest where the two lines cross!  This happens when</p>
<div align="center">
<img src='https://s0.wp.com/latex.php?latex=-20+%2B+10+p_1+%3D+20+-+30+p_1&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='-20 + 10 p_1 = 20 - 30 p_1' title='-20 + 10 p_1 = 20 - 30 p_1' class='latex' />
</div>
<p>or in other words </p>
<div align="center">
<img src='https://s0.wp.com/latex.php?latex=p_1+%3D+3%2F5+&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='p_1 = 3/5 ' title='p_1 = 3/5 ' class='latex' />
</div>
<p>So, A&#8217;s maximin strategy is</p>
<div align="center">
<img src='https://s0.wp.com/latex.php?latex=p+%3D+%283%2F5%2C+2%2F5%29+&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='p = (3/5, 2/5) ' title='p = (3/5, 2/5) ' class='latex' />
</div>
<p>It&#8217;s the mixed strategy that maximizes A&#8217;s expected payoff <i>given that B is trying to minimize A&#8217;s expected payoff</i>.   </p>
<h3> B&#8217;s expected payoff </h3>
<p>Next let&#8217;s give the other guy a chance.  Let&#8217;s work out B&#8217;s expected payoff and maximin strategy.  The expected value of B&#8217;s payoff is</p>
<div align="center">
<img src='https://s0.wp.com/latex.php?latex=p+%5Ccdot+B+q+&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='p &#92;cdot B q ' title='p &#92;cdot B q ' class='latex' />
</div>
<p>We could calculate this just like we calculated <img src='https://s0.wp.com/latex.php?latex=p+%5Ccdot+A+q+&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='p &#92;cdot A q ' title='p &#92;cdot A q ' class='latex' />, but it&#8217;s quicker to remember that this is a zero-sum game:</p>
<div align="center">
<img src='https://s0.wp.com/latex.php?latex=B+%3D+-+A+&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='B = - A ' title='B = - A ' class='latex' />
</div>
<p>so that</p>
<div align="center">
<img src='https://s0.wp.com/latex.php?latex=p+%5Ccdot+B+q+%3D+-+p+%5Ccdot+A+q+&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='p &#92;cdot B q = - p &#92;cdot A q ' title='p &#92;cdot B q = - p &#92;cdot A q ' class='latex' />
</div>
<p>and since we already saw that</p>
<div align="center">
<img src='https://s0.wp.com/latex.php?latex=p+%5Ccdot+A+q+%3D+20+-+30+p_1+-+30+q_1+%2B+50+p_1+q_1+&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='p &#92;cdot A q = 20 - 30 p_1 - 30 q_1 + 50 p_1 q_1 ' title='p &#92;cdot A q = 20 - 30 p_1 - 30 q_1 + 50 p_1 q_1 ' class='latex' />
</div>
<p>now we have</p>
<div align="center">
<img src='https://s0.wp.com/latex.php?latex=p+%5Ccdot+B+q+%3D+-20+%2B+30+p_1+%2B+30+q_1+-+50+p_1+q_1+&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='p &#92;cdot B q = -20 + 30 p_1 + 30 q_1 - 50 p_1 q_1 ' title='p &#92;cdot B q = -20 + 30 p_1 + 30 q_1 - 50 p_1 q_1 ' class='latex' />
</div>
<h3> B&#8217;s maximin strategy </h3>
<p>To figure out B&#8217;s maximin strategy, we&#8217;ll copy what worked for player A.  First we&#8217;ll work out B&#8217;s expected payoff in two extreme cases:</p>
<p>&bull;  The case where A always makes choice 1: <img src='https://s0.wp.com/latex.php?latex=p_1+%3D+1.&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='p_1 = 1.' title='p_1 = 1.' class='latex' /></p>
<p>&bull;  The case where A always makes choice 2: <img src='https://s0.wp.com/latex.php?latex=p_1+%3D+0.&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='p_1 = 0.' title='p_1 = 0.' class='latex' /></p>
<p>We&#8217;ll get two functions of <img src='https://s0.wp.com/latex.php?latex=q_1&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='q_1' title='q_1' class='latex' /> whose graphs are lines.  Then we&#8217;ll find where these lines intersect!</p>
<p>Let&#8217;s get to work.  When <img src='https://s0.wp.com/latex.php?latex=p_1+%3D+1&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='p_1 = 1' title='p_1 = 1' class='latex' /> we get</p>
<div align="center">
<img src='https://s0.wp.com/latex.php?latex=%5Cbegin%7Barray%7D%7Bccl%7D+p+%5Ccdot+B+q+%26%3D%26+-20+%2B+30+p_1+%2B+30+q_1+-+50+p_1+q_1++%5C%5C++%5C%5C++%26%3D%26+10+-+20+p_1+%5Cend%7Barray%7D&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='&#92;begin{array}{ccl} p &#92;cdot B q &amp;=&amp; -20 + 30 p_1 + 30 q_1 - 50 p_1 q_1  &#92;&#92;  &#92;&#92;  &amp;=&amp; 10 - 20 p_1 &#92;end{array}' title='&#92;begin{array}{ccl} p &#92;cdot B q &amp;=&amp; -20 + 30 p_1 + 30 q_1 - 50 p_1 q_1  &#92;&#92;  &#92;&#92;  &amp;=&amp; 10 - 20 p_1 &#92;end{array}' class='latex' />
</div>
<p>When <img src='https://s0.wp.com/latex.php?latex=p_1+%3D+0&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='p_1 = 0' title='p_1 = 0' class='latex' /> we get</p>
<div align="center">
<img src='https://s0.wp.com/latex.php?latex=p+%5Ccdot+B+q+%3D+-20+%2B+30+q_1+&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='p &#92;cdot B q = -20 + 30 q_1 ' title='p &#92;cdot B q = -20 + 30 q_1 ' class='latex' />
</div>
<p>I won&#8217;t graph these two lines, but they intersect when</p>
<div align="center">
<img src='https://s0.wp.com/latex.php?latex=10+-+20+q_1+%3D+-20+%2B+30+q_1+&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='10 - 20 q_1 = -20 + 30 q_1 ' title='10 - 20 q_1 = -20 + 30 q_1 ' class='latex' />
</div>
<p>or </p>
<div align="center">
<img src='https://s0.wp.com/latex.php?latex=q_1+%3D+3%2F5&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='q_1 = 3/5' title='q_1 = 3/5' class='latex' />
</div>
<p>Hmm, it&#8217;s sort of a coincidence that we&#8217;re getting the same number that we got for <img src='https://s0.wp.com/latex.php?latex=p_1%3B&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='p_1;' title='p_1;' class='latex' /> it won&#8217;t always work this way!  But anyway, we see that B&#8217;s maximin strategy is</p>
<div align="center">
<img src='https://s0.wp.com/latex.php?latex=q+%3D+%283%2F5%2C+2%2F5%29&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='q = (3/5, 2/5)' title='q = (3/5, 2/5)' class='latex' />
</div>
<h3> A Nash equilibrium </h3>
<p>Now let&#8217;s put the pieces together.  What happens in a zero-sum game when player A and player B <i>both</i> choose a maximin strategy?  It&#8217;s not too surprising: we get a Nash equilibrium!  </p>
<p>Let&#8217;s see why in this example.  (We can do a general proof later.)  We have</p>
<div align="center">
<img src='https://s0.wp.com/latex.php?latex=p+%3D+%283%2F5%2C+2%2F5%29&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='p = (3/5, 2/5)' title='p = (3/5, 2/5)' class='latex' />
</div>
<p>and</p>
<div align="center">
<img src='https://s0.wp.com/latex.php?latex=q+%3D+%283%2F5%2C+2%2F5%29&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='q = (3/5, 2/5)' title='q = (3/5, 2/5)' class='latex' />
</div>
<p>To show that <img src='https://s0.wp.com/latex.php?latex=p&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='p' title='p' class='latex' /> and <img src='https://s0.wp.com/latex.php?latex=q&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='q' title='q' class='latex' /> form a Nash equilibrium, we need to check that neither player could improve their expected payoff by changing to a different mixed strategy.  Remember:</p>
<p><b>Definition.</b> Given a 2-player normal form game, a pair of mixed strategies <img src='https://s0.wp.com/latex.php?latex=%28p%2Cq%29%2C&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='(p,q),' title='(p,q),' class='latex' /> one for player A and one for player B, is a <b>Nash equilibrium</b> if:</p>
<p>1) For all mixed strategies <img src='https://s0.wp.com/latex.php?latex=p%27&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='p&#039;' title='p&#039;' class='latex' /> for player A, <img src='https://s0.wp.com/latex.php?latex=p%27+%5Ccdot+A+q+%5Cle+p+%5Ccdot+A+q.&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='p&#039; &#92;cdot A q &#92;le p &#92;cdot A q.' title='p&#039; &#92;cdot A q &#92;le p &#92;cdot A q.' class='latex' /></p>
<p>2) For all mixed strategies <img src='https://s0.wp.com/latex.php?latex=q%27&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='q&#039;' title='q&#039;' class='latex' /> for player B, <img src='https://s0.wp.com/latex.php?latex=p+%5Ccdot+B+q%27+%5Cle+p+%5Ccdot+B+q.&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='p &#92;cdot B q&#039; &#92;le p &#92;cdot B q.' title='p &#92;cdot B q&#039; &#92;le p &#92;cdot B q.' class='latex' /></p>
<p>I&#8217;ll check clause 1) and I&#8217;ll let you check clause 2), which is similar.  For clause 1) we need to check</p>
<div align="center">
<img src='https://s0.wp.com/latex.php?latex=p%27+%5Ccdot+A+q+%5Cle+p+%5Ccdot+A+q&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='p&#039; &#92;cdot A q &#92;le p &#92;cdot A q' title='p&#039; &#92;cdot A q &#92;le p &#92;cdot A q' class='latex' />
</div>
<p>for all mixed strategies <img src='https://s0.wp.com/latex.php?latex=p%27.&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='p&#039;.' title='p&#039;.' class='latex' />   Just like we did with <img src='https://s0.wp.com/latex.php?latex=p%2C&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='p,' title='p,' class='latex' /> we can write</p>
<div align="center">
<img src='https://s0.wp.com/latex.php?latex=p%27+%3D+%28p%27_1%2C+1+-+p%27_1%29&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='p&#039; = (p&#039;_1, 1 - p&#039;_1)' title='p&#039; = (p&#039;_1, 1 - p&#039;_1)' class='latex' />
</div>
<p>We can reuse one of our old calculations to see that</p>
<div align="center">
<img src='https://s0.wp.com/latex.php?latex=%5Cbegin%7Barray%7D%7Bccl%7D+p%27+%5Ccdot+A+q+%26%3D%26+20+-+30+p%27_1+-+30+q_1+%2B+50+p%27_1+q_1+%5C%5C+++%5C%5C++%26%3D%26+20+-+30+p%27_1+-+30+%5Ccdot+%5Cfrac%7B3%7D%7B5%7D+%2B+50+p%27_1+%5Ccdot+%5Cfrac%7B3%7D%7B5%7D+%5C%5C+++%5C%5C++%26%3D%26+2+%5Cend%7Barray%7D&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='&#92;begin{array}{ccl} p&#039; &#92;cdot A q &amp;=&amp; 20 - 30 p&#039;_1 - 30 q_1 + 50 p&#039;_1 q_1 &#92;&#92;   &#92;&#92;  &amp;=&amp; 20 - 30 p&#039;_1 - 30 &#92;cdot &#92;frac{3}{5} + 50 p&#039;_1 &#92;cdot &#92;frac{3}{5} &#92;&#92;   &#92;&#92;  &amp;=&amp; 2 &#92;end{array}' title='&#92;begin{array}{ccl} p&#039; &#92;cdot A q &amp;=&amp; 20 - 30 p&#039;_1 - 30 q_1 + 50 p&#039;_1 q_1 &#92;&#92;   &#92;&#92;  &amp;=&amp; 20 - 30 p&#039;_1 - 30 &#92;cdot &#92;frac{3}{5} + 50 p&#039;_1 &#92;cdot &#92;frac{3}{5} &#92;&#92;   &#92;&#92;  &amp;=&amp; 2 &#92;end{array}' class='latex' />
</div>
<p>Hmm, A&#8217;s expected payoff is always 2, <i>no matter what mixed strategy he uses,</i> as long as B uses his maximin strategy <img src='https://s0.wp.com/latex.php?latex=q%21&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='q!' title='q!' class='latex' />   So of course we have</p>
<div align="center">
<img src='https://s0.wp.com/latex.php?latex=p%27+%5Ccdot+A+q+%3D+p+%5Ccdot+A+q+%3D+2&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='p&#039; &#92;cdot A q = p &#92;cdot A q = 2' title='p&#039; &#92;cdot A q = p &#92;cdot A q = 2' class='latex' />
</div>
<p>which implies that</p>
<div align="center">
<img src='https://s0.wp.com/latex.php?latex=p%27+%5Ccdot+A+q+%5Cle+p+%5Ccdot+A+q&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='p&#039; &#92;cdot A q &#92;le p &#92;cdot A q' title='p&#039; &#92;cdot A q &#92;le p &#92;cdot A q' class='latex' />
</div>
<p>If you don&#8217;t believe me, we can calculate <img src='https://s0.wp.com/latex.php?latex=p+%5Ccdot+A+q&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='p &#92;cdot A q' title='p &#92;cdot A q' class='latex' /> and see it equals <img src='https://s0.wp.com/latex.php?latex=p%27+%5Ccdot+A+q%3A&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='p&#039; &#92;cdot A q:' title='p&#039; &#92;cdot A q:' class='latex' /></p>
<div align="center">
<img src='https://s0.wp.com/latex.php?latex=%5Cbegin%7Barray%7D%7Bccl%7D+p+%5Ccdot+A+q+%26%3D%26+20+-+30+p_1+-+30+q_1+%2B+50+p_1+q_1+%5C%5C+++%5C%5C++%26%3D%26+20+-+30+%5Ccdot+%5Cfrac%7B3%7D%7B5%7D+-+30+%5Ccdot+%5Cfrac%7B3%7D%7B5%7D+%2B+50+%5Ccdot+%5Cfrac%7B3%7D%7B5%7D+%5Ccdot+%5Cfrac%7B3%7D%7B5%7D+%5C%5C+++%5C%5C++%26%3D%26+2+%5Cend%7Barray%7D&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='&#92;begin{array}{ccl} p &#92;cdot A q &amp;=&amp; 20 - 30 p_1 - 30 q_1 + 50 p_1 q_1 &#92;&#92;   &#92;&#92;  &amp;=&amp; 20 - 30 &#92;cdot &#92;frac{3}{5} - 30 &#92;cdot &#92;frac{3}{5} + 50 &#92;cdot &#92;frac{3}{5} &#92;cdot &#92;frac{3}{5} &#92;&#92;   &#92;&#92;  &amp;=&amp; 2 &#92;end{array}' title='&#92;begin{array}{ccl} p &#92;cdot A q &amp;=&amp; 20 - 30 p_1 - 30 q_1 + 50 p_1 q_1 &#92;&#92;   &#92;&#92;  &amp;=&amp; 20 - 30 &#92;cdot &#92;frac{3}{5} - 30 &#92;cdot &#92;frac{3}{5} + 50 &#92;cdot &#92;frac{3}{5} &#92;cdot &#92;frac{3}{5} &#92;&#92;   &#92;&#92;  &amp;=&amp; 2 &#92;end{array}' class='latex' />
</div>
<p>Yup, it&#8217;s 2.  </p>
<p><b>Puzzle 5.</b>  Finish showing that <img src='https://s0.wp.com/latex.php?latex=%28p%2Cq%29&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='(p,q)' title='(p,q)' class='latex' /> is a Nash equilibrium by showing that for all mixed strategies <img src='https://s0.wp.com/latex.php?latex=q%27&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='q&#039;' title='q&#039;' class='latex' /> for player B, <img src='https://s0.wp.com/latex.php?latex=p+%5Ccdot+B+q%27+%5Cle+p+%5Ccdot+B+q.&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='p &#92;cdot B q&#039; &#92;le p &#92;cdot B q.' title='p &#92;cdot B q&#039; &#92;le p &#92;cdot B q.' class='latex' /></p>
<p><b>Puzzle 6.</b>  How high does this dark curve get?</p>
<div align="center"><img width="450" src="https://i1.wp.com/math.ucr.edu/home/baez/mathematical/nash_equilibrium_1_maximin_simple.jpg" /></div>
<p>You have the equations for the two lines, so you can figure this out.  Explain the meaning of your answer!</p>
]]></html><thumbnail_url><![CDATA[https://i2.wp.com/math.ucr.edu/home/baez/mathematical/nash_equilibrium_1a.jpg?fit=440%2C330]]></thumbnail_url><thumbnail_height><![CDATA[269]]></thumbnail_height><thumbnail_width><![CDATA[440]]></thumbnail_width></oembed>