Docsity
Docsity

Prepare for your exams
Prepare for your exams

Study with the several resources on Docsity


Earn points to download
Earn points to download

Earn points by helping other students or get them with a premium plan


Guidelines and tips
Guidelines and tips

Mathematics Game Theory - Assignment VIII Solved | MATH 0167, Assignments of Mathematics

Material Type: Assignment; Class: MATH GAME THEORY; Subject: Mathematics; University: University of California - Los Angeles; Term: Fall 2008;

Typology: Assignments

Pre 2010
On special offer
30 Points
Discount

Limited-time offer


Uploaded on 08/30/2009

koofers-user-e8f-1
koofers-user-e8f-1 🇺🇸

10 documents

1 / 11

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
Math 167
Homework 8
December 9, 2008
Game Theory
Thomas Ferguson
Section II.3.7
Problem 15. Battleship. The game of Battleship, sometimes called Salvo, is played on two square
boards, usually 10 by 10. Each player hides a fleet of ships on his own board and tries to sink the opponent’s
ships before the opponent sinks his. (For one set of rules, see http://www.kielack.de/games/destroya.htm,
and while you are there, have a game.)
For simplicity, consider a 3by 3board and suppose that Player I hides a destroyer (length 2 squares)
horizontally or vertically on this board. Then Player II shoots by calling out squares on the board, one at
a time. After each shot, Player I says whether the shot was a hit or a miss. Player II continues until
both squares of the destroyer have been hit. The payoff to Player I is the number of shots that Player II
has made. Let us label the squares from 1to 9as follows
123
456
789
The problem is invariant under rotations and reflections of the board. In fact, of the 12 possible positions
for the destroyer, there are only two distinct invariant choices available to Player I: the strategy, [1,2],
that chooses one of [1,2],[2,3],[3,6],[6,9],[8,9],[7,8],[4,7] and [1,4], at random with probability 1/8each,
and the strategy, [2,5], that chooses one of [2,5],[5,6],[5,8] and [4,5], at random with probability 1/4
each. This means that invariance reduces the game to a 2by ngame where nis the number of invariant
strategies of Player II. Domination may reduce it somewhat further. Solve the game. Consider the mis`ere
version of the take-away game of Section 1.1, where the last player to move loses. The object is to force
your opponent to take the last chip. Analyze this game. What are the target positions (P-positions)?
Solution
Ferguson II.5.9
Problem 1. The Silver Dollar. Player II chooses one of two rooms in which to hide a silver
dollar. Then, Player I, not knowing which room contains the dollar, selects one of the rooms to search.
However, the search is not always successful. In fact, if the dollar is in room #1 and I searches there,
then (by a chance move) he has only probability 1/2of finding it, and if the dollar is in room #2 and I
1
pf3
pf4
pf5
pf8
pf9
pfa
Discount

On special offer

Partial preview of the text

Download Mathematics Game Theory - Assignment VIII Solved | MATH 0167 and more Assignments Mathematics in PDF only on Docsity!

Math 167

Homework 8

December 9, 2008

Game Theory

Thomas Ferguson

Section II.3.

Problem 15. Battleship. The game of Battleship, sometimes called Salvo, is played on two square boards, usually 10 by 10. Each player hides a fleet of ships on his own board and tries to sink the opponent’s ships before the opponent sinks his. (For one set of rules, see http://www.kielack.de/games/destroya.htm, and while you are there, have a game.)

For simplicity, consider a 3 by 3 board and suppose that Player I hides a destroyer (length 2 squares) horizontally or vertically on this board. Then Player II shoots by calling out squares on the board, one at a time. After each shot, Player I says whether the shot was a hit or a miss. Player II continues until both squares of the destroyer have been hit. The payoff to Player I is the number of shots that Player II has made. Let us label the squares from 1 to 9 as follows

1 2 3 4 5 6 7 8 9

The problem is invariant under rotations and reflections of the board. In fact, of the 12 possible positions for the destroyer, there are only two distinct invariant choices available to Player I: the strategy, [1, 2]∗, that chooses one of [1, 2], [2, 3], [3, 6], [6, 9], [8, 9], [7, 8], [4, 7] and [1, 4], at random with probability 1 / 8 each, and the strategy, [2, 5]∗, that chooses one of [2, 5], [5, 6], [5, 8] and [4, 5], at random with probability 1 / 4 each. This means that invariance reduces the game to a 2 by n game where n is the number of invariant strategies of Player II. Domination may reduce it somewhat further. Solve the game. Consider the mis`ere version of the take-away game of Section 1.1, where the last player to move loses. The object is to force your opponent to take the last chip. Analyze this game. What are the target positions (P-positions)?

Solution

Ferguson II.5.

Problem 1. The Silver Dollar. Player II chooses one of two rooms in which to hide a silver dollar. Then, Player I, not knowing which room contains the dollar, selects one of the rooms to search. However, the search is not always successful. In fact, if the dollar is in room #1 and I searches there, then (by a chance move) he has only probability 1 / 2 of finding it, and if the dollar is in room #2 and I

searches there, then he has only probability 1 / 3 of finding it. Of course, if he searches the wrong room, he certainly won’t find it. If he does find the coin, he keeps it; otherwise the dollar is returned to Player II. Draw the game tree.

Solution

Problem 2. Two Guesses for the Silver Dollar. Draw the game tree for problem 1, if when I is unsuccessful in his first attempt to find the dollar, he is given a second chance to choose a room and search for it with the same probabilities of success, independent of his previous search. (Player II does not get to hide the dollar again.)

Solution

Problem 10 Find the equivalent strategic form and solve the game of

(a) Exercise 1.

(b) Exercise 2.

Ferguson III.2.

Problem 1. Strategic Equilibria Are Individually Rational. A payoff vector is said to be individually rational if each player receives at least his safety level. Show that if (p, q) is a strategic equilibrium for the game with matrices A and B, then pT^ Aq ≥ vI and pT^ Bq ≥ vII. Thus, the payoff vector for strategic equilibrium is individually rational.

Solution Since (p, q) is a strategic equilibrium, we have

∀p′^ g 1 (p, q) ≥ g 1 (p′, q), ∀q′^ g 2 (p, q) ≥ g 2 (p, q′).

Rewriting this in terms of matrices we have

∀p′^ pT^ Aq ≥ (p′)T^ Aq, ∀q′^ pT^ Bq ≥ pT^ Bq.

so

max p′^

(p′)T^ Aq = pT^ Aq,

max q′^ pT^ Bq′^ = pT^ Bq.

Now,

vI = max p min j

∑^ m

i=

piaij = max p min q pT^ Aq,

and

vII = max q min i

∑^ n

j=

bijqj = max q min p pT^ Bq,

But now, the inequalities are clear

min q′^ (p′)T^ Aq′^ ≤ p′Aq for all p′,

taking the max over p′^ of both sides gives

vI = max p′^ min q′^ (p′)T^ Aq′^ ≤ max p′^ (p′)T^ Aq = pT^ Aq.

Similarly min p′^

(p′)T^ Bq′^ ≤ pBq′^ for all q′,

taking the max over q′^ of both sides gives

vI = max q′^

min p′^

(p′)T^ Bq′^ ≤ max q′^

pT^ Bq′^ = pT^ Bq.

Problem 4. An extensive form non-zero-sum game. A coin with probability 2 / 3 of heads and 1 / 3 of tails is tossed and the outcome is shown to player I but not to player II. Player I then makes a claim which may be true or false that the coin turned up heads or that the coin turned up tails. Then, player II, hearing the claim, must guess whether the coin came up heads or tails. Player II wins $3 if his guess is correct, and nothing otherwise. Player I wins $3 if I has told the truth in his claim. In addition, player I wins an additional $6 if player II guesses heads.

(a) Draw the Kuhn tree.

(b) Put into strategic (bimatrix) form.

(c) Find all PSE’s.

Solution

(a)

gH

gT

cH

gH

gT

cT

H

gH

gT

cH

gH

gT

cT

T

(b) Player I has four strategies

HH:Call heads if the coin is heads, and call heads if the coin is tails HT :Call heads if the coin is heads, and call tails if the coin is tails T H:Call tails if the coin is heads, and call heads if the coin is tails T T :Call tails if the coin is heads, and call tails if the coin is tails

Similarly, Player II has four strategies

HH:Guess heads if Player I calls heads, and call heads if Player I calls tails HT :Guess heads if Player I calls heads, and call tails if Player I calls tails T H:Guess tails if Player I calls heads, and call heads if Player I calls tails T T :Guess tails if Player I calls heads, and call tails if Player I calls tails

Thus Player I’s equalizing strategy is (1/ 3 , 2 /3). For Player II, if he chooses column j with probability qj , equalizing gives

2 q 2 = q 2 + 2q 3.

Using the equation q 1 + q 2 + q 3 = 1, and 0 ≤ qj ≤ 1, we have the equalizing strategy (1 − 3 q, 2 q, q) for any q satisfies 0 ≤ q ≤ 1 /3. As q increases, so do I’s average payoffs, however, for any fixed value of q, Player I is indifferent between row 1 and row 2.

Additional Problems

Problem 1. For the matrix (^) ( 3 2 4 0 − 2 1 − 4 5

)

do the following:

(a) Write down the linear program that defines an optimal strategy of Player I.

(b) Each inequality in the program says that the value V has to be in a certain half-plane (on one side of a certain line). Draw those lines on the plane and mark the regions which are defined by the inequalities.

(c) Find the solution V for your linear program.

(d) Explain why the procedure above is precisely what you would have done in order to solve this 2 × 4 game.

Solution

(a) Suppose Player I chooses row 1 with probability p, then the linear program becomes maximize v such that:

v ≤ 3 p − 2(1 − p) = 5p − 2 v ≤ 2 p + (1 − p) = p + 1 v ≤ 4 p − 4(1 − p) = 8p − 4 v ≤ 5(1 − p) = − 5 p + 5 p ≥ 0 p ≤ 1.

While the book suggests using p 1 , p 2 ,... , pm for the probabilities of the rows, when there are only two rows it seems more natural to call the probabilities p and 1 − p instead of p 1 and p 2.

(b)

(c) The maximum point in the intersection of all the half-planes is at the intersection of 5p − 2 and − 5 p + 5, which occurs at (7/ 10 , 3 /2). Thus p = 7/10, v = 3/2.

(d) To solve the 2 × 4 game by using the method outlined in the book, we would have drawn these lines and found the maximal point on the lower envelope. But this is exactly what we have just done.

Problem 2. For the same matrix ( 3 2 4 0 − 2 1 − 4 5

)

do the following:

(a) Write down the linear program that defines an optimal strategy of Player II. (b) What kind of a region does each inequality define?

(c) Explain why I am not asking you to draw the graphs and mark the regions defined by the inequalities. (d) Does the solution V you’ve found in the previous problem equal the solution W for this linear program? Why?

Solution

(a) Maximize w such that w ≤ 3 q 1 + 2q 2 + 4q 3 w ≤ − 2 q 1 + q 2 − 4 q 3 + 5q 4 q 1 + q 2 + q 3 + q 4 = 1 qi ≥ 0.

This matrix is still invariant under a permutation that swaps the first two rows, and a permutation that swaps the last two rows, hence it is invariant under the composition permutation that swaps the first two and the last two. This permutation leaves no rows fixed, but clearly any strategy that gives positive weight to row 3 or row 4 cannot be optimal.

Problem 6. True or false: if a matrix A is invariant under a “cyclic shift” of the rows (see below), then there is an optimal strategy in which all the rows get equal probabilities? A cyclic shift puts the first row in place of the second one, the second in place of the third, etc, and the last one in place of the first.

Solution True. If a “cyclic shift” of the rows is in the invariant group, then by composing it with itself k times, we have an invariant permutation that takes row i to row i + k mod m. Since we can map row i to any row j in this manner, the action is transitive, i.e. there is exactly one orbit, so there is a strategy for Player I giving equal weight to all of the rows.

Problem 7. Show that if a bimatrix AB represents a 0-sum game (what does this mean?), then an entry (a, b) is a PSE if and only if it is a saddle point of the appropriate A′^ matrix representing the same game (how do you get A′^ from AB?).

Solution If a bimatrix AB represents a zero-sum game, than every entry (a, b) has b = −a. Thus if AB = ((aij , bij )), then A′^ = (aij ). Now, the i∗th row and j∗th column represents a PSE in the game AB. if and only if ai∗j∗^ ≥ aij∗^ ∀j,

and bi∗j∗ ≥ bi∗j ∀i,

since bij = −aij , multiplying the previous equation by −1 gives

ai∗j∗ ≤ ai∗j ∀j.

But these are exactly the criteria for a saddle point.

Problem 8. True or false: in every bimatrix 1 × n there is a PSE.

Solution True. Since Player I has no choice, the PSE is just where Player II chooses the column where his payoff is maximized.

Problem 9. True or false: in every bimatrix m × 1 there is a PSE.

Solution True. Since Player II has no choice, the PSE is just where Player I chooses the row where his payoff is maximized.

Problem 10. True or false: in every bimatrix 2 × 2 there is a PSE.

Solution False. Consider (^) ( (0, 1) (1, 0) (1, 0) (0, 1)

Problem 11. Prove (assuming Nash’s Equilibrium Theorem) the Minimax Theorem. Recall that the precise statement of the Minimax Theorem appears at the end of II.4.2, and Nash’s Theorem appears at the end of III.2.1.

Solution Suppose A is a matrix for a zero-sum game. Nash’s Theorem tells us that there is a strategic equilibrium given by strategies p∗, q∗. Strategic equilibria satisfy

(p∗)T^ Aq∗^ = max p pT^ Aq∗,

and (p∗)T^ Aq∗^ = min q (p∗)T^ Aq.

This gives us

(p∗)T^ Aq∗^ = min q (p∗)T^ Aq ≤ max p min q pT^ Aq = V ≤ V = min q max p pT^ Aq ≤ max p pT^ Aq∗^ = (p∗)T^ Aq∗.

Thus V = V which is the minimax theorem.