Thursday, July 9, 2009

Uneasy Alliances II: Why Two-Face Loses by Flipping a Coin

Reprinted from filmschoolrejects.com


Earlier we began a discussion of Harvey Dent and James Gordon's alliance to clean up the streets of Gotham. We concluded that cooperation did make sense in the scenario portrayed by the film The Dark Knight. The cooperation game, or the Stag Hunt game, produced two pure strategy Nash Equilibria -- both players would cooperate or both players would work on their own.

Now, suppose that we take the same situation but introduce randomization. That is, suppose Harvey decides he wants to randomize his actions so that Gordon could not predict what he would do. Note that this is extremely unlikely; people usually intentionally randomize when they are working against another player. But for the sake of argument, suppose that it applies here.

The idea of assigning a certain probability towards an action is known as a mixed strategy. In this game, we can actually find a third, mixed-strategy equilibrium in addition to the two pure strategy ones we had found in the previous post.

So, here is the matrix from last time:

Harvey Dent -->>
James Gordon ↓

Cooperate

Don’t Cooperate

Cooperate

(4,4)

(1,3)

Don’t Cooperate

(3,1)

(3,3)


Suppose that Harvey assigns a probability, p, to cooperating and (1-p) to not cooperating. Then we could perform an expected utility calculation to deduce Gordon's optimal strategy.

Recall that Expected Utility (EU) of a given action is equal to the sum of the utility values (U) or outcomes weighted by the probabilities (p) of receiving each. Therefore:

EU = p * U(Cooperate) + (1-p) * U(Don't Cooperate)

Then the expected utility if Gordon cooperates is:
EU(Gordon Cooperates) = p * 4 + (1-p) * 1
=4p + 1 - p
=3p + 1

The expected utility if Gordon does not cooperate is:
EU(Gordon Does Not Cooperate) = p * 3 + (1-p) * 3
= 3p + 3 - 3p
= 3

We know that Gordon will choose whichever action gives yields the greatest expected utility. So setting the two equations equal to each other, we have:

EU(Gordon Cooperates) = EU(Gordon Does Not Cooperate)
3p + 1 = 3
3p = 2
p = 2/3

Therefore, Gordon will cooperate only if the probability that Harvey cooperates is greater than 2/3. Otherwise, he will not cooperate. We can perform the exact same analysis by assigning a probability, q, to Gordon's actions and calculating expected utilities for Harvey. It will yield the same answer, namely that q = 2/3.

So p = q = 2/3 and we have a new, mixed strategy equilibrium where each player chooses to cooperate 2/3 of the time and does not cooperate 1/3 of the time. If Harvey decides to randomize this way, then Gordon cannot benefit by deviating from this strategy alone.

This result is interesting for several reasons. First, each player's expected payoff under mixed strategies is 3. Therefore, the mixed strategy equilibrium outcome is no better than either of the pure strategy ones. Therefore, Dent and Gordon would be just as well off choosing not to cooperate with each other 100% of the time. They would each be strictly better off choosing to cooperate 100% of the time.

Second, I had mentioned before that we were supposing Harvey intentionally randomized his actions, but the truth is that this mixed strategy exists whether he wants to or not. The reason is that these mixed strategies can be interpreted to reflect one individual's beliefs about the other's actions. In other words, Harvey choosing cooperate 2/3 of the time and choosing to work on his own 1/3 of the time can be seen as Gordon's views on what Harvey will do given his uncertainty in the matter. If he believes Harvey will cooperate 2/3 of the time, then he will cooperate 2/3 of the time.

Now suppose that Harvey decides to flip a coin instead. And what's more, suppose that Gordon knows that Harvey will flip a coin. What will Gordon do? And will this be an equilibrium?

If Harvey flips a coin to decide, this means that he will cooperate 50% of the time and work on his own 50% of the time. So, Gordon's expected payoff will be:

EU(Gordon Cooperates) = (1/2 * 4) + (1/2 * 1) = 2.5
EU (Gordon Does Not Cooperate) = (1/2 * 3) + (1/2 * 3) = 3

Therefore, Gordon will derive a larger expected utility from not cooperating and will choose to work on his own all of the time.

This, however, is not an equilibrium. We already know that if Gordon chooses to work alone 100% of the time, then Harvey would be strictly better off by also choosing not to cooperate 100% of the time. By sticking to the coin strategy, Harvey is actually losing some utility.

Of course, there are certain situations where flipping a coin could work. Suppose that Two-Face and the Penguin are facing off against each other by driving their cars towards one another in a bizarre game of chicken. Each can choose to go left or go right. The only thing is that they have to make their decisions at the same time, so nobody gains any utility by turning first. All we know is that each wants to live. So, if they both turn left, they each receive a utility of 10 for being alive. If they each turn right, they will also receive a utility of 10. If one turns left and the other turns right, both will die in the car crash and receive a utility 0f 0. The matrix then looks like this:

Two Face -->>
Penguin ↓

Left

Right

Left

(10,10)

(0,0)

Right

(0,0)

(10,10)


Here if we perform the same utility calculations as above, assigning a probability of p to Two-Face turning left, we will arrive at p=1/2. Therefore, if Two-Face chooses to flip a coin intentionally, the Penguin should do the same and this would be a mixed-strategy Nash equilibrium.

Now, this sort of situation does not happen often. And this is why Two-Face's gimmick of flipping a coin to make every decision is usually a costly one. First of all, he gives away his strategy, making it easy for his opponents to predict their best actions. Second, it is not always the case that choosing one action 50% of the time and another 50% of the time is a mixed-strategy equilibrium, as we saw above. If Two-Face continues to adhere strictly to this strategy, he will be losing in the long-run.

And this is why Batman will always win. He knows his economics.

17 comments:

Bobbit said...

Your analysis seems to assume that Two Face's payoff matrix would remain the same as Dent's, whereas it seems fairly obvious (at least to me) that it would be drastically different. Given that one of Two Face's primary motivations is increasing chaos, I think it might be entirely possible to come up with a payoff matrix where he wins by choosing a %50 probability of playing cooperatively.

ShadowBanker said...

Bobbit - I think you might be confusing the Joker's worldview with Two-Face's. The Joker wants to maximize chaos. I don't think Two-Face flips a coin just to see the disastrous effects that his actions would have on the world -- I think he does it because it is the only psychological way he is able to balance himself. I view his coin flipping as his way of maintaining normalcy, not causing chaos.

Bobbit said...

True enough, I haven't read Batman for over six years, I've been focusing more on independent comics, so it's entirely possible that I could be confusing the two. Although I think it depends what era of Two-Face you're looking at. Earlier Two Face was a lot more of a gimmicky criminal than the modern (more interesting) one.

Either way, My point was more that Two Face's payoff matrix would look different than that of Harvey Dent than trying to actually determine what the new payoff matrix would be.

Of course that's assuming rationality...

Tom said...

Interesting take. What would the matrices look like if the coin flip happened prior to the decision as Bobbit postulates, i.e. "Heads, I'll decide things as Harvey Dent" and "Tails, I'll decide things as Two-Face"

I don't think that's actually how the character operates, but it might be an interesting wrinkle in the analysis.

-t

Bobbit said...

You're right, interesting wrinkle, but:

"What would the matrices look like if the coin flip happened prior to the decision as Bobbit postulates"

Isn't the coin flip how he makes the decision?

I wasn't suggesting that he switches matrices based on the flip, since Two Face is the one who uses the 50/50 mixed strategy and Dent doesn't (or at least, not as much, see the foreshadowing in The Dark Knight). I was just suggesting that Two Face may have a payoff matrix where the mixed strategy is the one that produces the optimal result. Even when does cooperate, he's cooperating as Two Face, not Harvey Dent.

sim so dep said...

This has been very helpful understanding a lot of things. I'm sure a lot of other people will i agree with me, too.

quality backlinks said...

Wonderful learn, I simply handed this onto a colleague who was doing a little analysis on that. And he really purchased me lunch as a result of I discovered it for him smile So let me rephrase that: Thanks for lunch! Anyway, in my language, there usually are not much good source like this.

linkwheel said...

Can I make a suggestion? I think youve got something good here. But what if you happen to added a couple links to a page that backs up what youre saying? Or perhaps you could possibly give us something to take a look at, something that might join what youre saying to one thing tangible? Just a suggestion. Anyway, in my language, there will not be much good supply like this.

link wheel said...

Your weblog is fine. I simply need to comment on the design. Its too loud. Its doing method too much and it takes away from what youve got to say --which I feel is admittedly important. I dont know if you happen to didnt suppose that your phrases may hold everyones attention, however you have been wrong. Anyway, in my language, there usually are not much good source like this.

Your Escort Agency said...

Your Escort Agency offers exclusive and most beautiful London escort girls of various nationalities.

London Escorts said...

Your Mademoiselle escorts agency is select the most charming, friendly and the finest London escorts for our Escort gallery and provide the best escort services in London.

Escorts London said...

London escort agency which provides genuine female escort models in Central London area

London escorts said...

If you are looking for European escorts Bestescort4U is the best place in London

Elite London escorts said...

Bentley's International Models is a London escort agency providing elite top class

Elite escorts said...

Beautiful escorts can be found at Elite Club International. Elite Club International is an elite escort agency operating mostly in Dubai and London.

Porn Star Escorts said...

Bunny Planet is an Exclusive Online Gentlemen's Club filled with Adult Stars, Adult Entertainers, Centerfolds and Erotic Models who want to meet you in person now!

Hugh said...

this site | check this | here | this page | therecheck this | this site
check this | there | this site | here | this pagethere | check this | this site
this page | here | there | check this | this sitehere | this page | there