Friday’s class was hopefully helpful: we spent some time working on drawing linear functions for best response calculations.
A recording of that class is available here: cardiff.cloud.panopto.eu/Panopto/Pages/Viewer.aspx?id=8d77c214-cc1e-4e66-928b-afa000c67cb1.
We took at look at calculating the best response \(\sigma_c*\) against the strategy \(\sigma_r=(x, 1-x)\).
We saw that depending on the value of \(x\) we had 3 possible best responses:
This leads to the concepts described in this section of the notes: nashpy.readthedocs.io/en/stable/text-book/best-responses.html#generic-best-responses-in-2-by-2-games
Which is that we could write down a generic form of \(\sigma_c^*\):
\[
\sigma_c^*=
\begin{cases}
(0, 1),&\text{ if } x > 1/3\\
(1, 0),&\text{ if } x < 1/3\\
\text{indifferent},&\text{ if } x = 1/3
\end{cases}
\]
I left as an exercise to repeat the procedure for \(\sigma_r^*\) which gives:
\[
\sigma_r^* =
\begin{cases}
(1, 0),&\text{ if } y > 1/2\\
(0, 1),&\text{ if } y < 1/2\\
\text{indifferent},&\text{ if } y = 1/2
\end{cases}
\]
(where \(y\) is the probability of being in the first column).
I then passed briefly over the remaining sections of the notes:
I did not use this in class but here is a Jupyter notebook with some of the above in Python.
Source code: @drvinceknight Powered by: Jekyll Github pages Bootsrap css