Joker’s game: An extended game of hope and paranoia

September 15, 2008

I am sure that there have already been a number of game theorists who have commented on Joker’s ship game in the Dark Knight. For example, the following link analyzes the game while factoring in human desires to survive and to obey morality. Also, it introduces a probability that batman will intervene and save the ship.

However, one shortcoming of this model is that the ship game is treated as a one-shot game, which does not take into account the changes that may occur in human thought and behavior over time. For example, suppose that Joker started the game at 6pm, and the ships are set to detonate at midnight. You are aboard one ship, and you know that the other ship has no intention to blow you up. However, you feel morally obligated to keep the other ship alive as long as possible, in case batman does intervene successfully. Would you end up blowing the other ship up? Well, if you ultimately want to live, you would probably want to blow the other ship up a few seconds before midnight, granted that batman has not yet succeeded. However, at 8pm, you may want to hold onto your remote and wait to see the outcome.

In this entry, I will use a simple mathematical model to predict the change in human behavior over time as a function of their sense of urgency.

Partition the game into T discrete time periods (not necessarily equal) during which Batman has a fixed, independent probability Z of intervening successfully. Call the value of life X, and the value of obeying ones conscience Y. (In our game matrix, we will use 0 for clear conscience, and -Y for a guilty conscience.) If batman successfully intervenes with Joker’s plan first, then the game ends, and both ships survive with clear consciences. The game also ends if one ship destroys the other ship, or vice versa, but the surviving ship is left with a guilty conscience. Finally, we will also assume that if both ships flip the switch during the same time interval, then both ships are annihilated, but no moral consequences are felt.

Some Trivial Cases:

Case X > Y, Z = 0. Suppose that batman does not exist, and people do not have a conscience, or a conscience that is worth less than life. Then Joker’s repeated game has a dominant strategy: blow the other ship up as soon as you get the trigger.

Case Y > X, Z = 0. Suppose that batman does not exist, and people have a collective conscience greater than life. If the penalty of violating the conscience exceeds that of dying, then the dominant strategy is to wait until midnight, and let Joker blow them up.

A more interesting case, the game of hope:

Case X > Y, Z > 0. Here batman has a chance Z during each time interval of saving both ships. Hence, at the beginning of the game, the value of the game is a geometric sum from t = 0 to T-1 of Z(1-Z)^t. Provided that batman defeats joker, the resulting utility derived by both ships is X, since both conscience and life are satisfied. Hence, at each time interval t between 0 and T-1, the matrix is given by:

blow ship not blow ship
blow ship 0, 0 X -Y, 0
not blow ship 0, X -Y (1-(1-Z)^(T-t))*X, (1-(1-Z)^(T-t))*X

where the bottom right entry is the expected value derived if both ships decide never to pull the trigger.

When t becomes large enough, the value of not blowing the other ship may become less than X – Y, which leads to a weakly dominant strategy of blowing up the other ship. Note that in the very last interval T-1 (right before midnight), the game reduces to:

blow ship not blow ship
blow ship 0, 0 X -Y, 0
not blow ship 0, X -Y Z*X, Z*X

Hence, if the chance of batman’s intervention is greater than (X-Y)/X, the dominant strategy throughout the entire game is to not blow the other ship. However, if the chance of batman is smaller than (X-Y)/X, somewhere along the way, maybe at 10pm, or 11pm, or 11:30pm, the expected value of not pulling the trigger will become less than pulling the trigger. The best strategy then becomes to blow the other ship up, because it is time to give up hope on Batman.

The game of paranoia

However, this game can be extended once more! Suppose that you also know that the other ship is also reasoning using the same selfish game theoretic principles as you are. You know that at 10pm, both of you are going to give up hope on Batman, and hence blow each other up. In this case, your real deadline is not midnight, but rather 10pm! What happens then? Should you try to blow the other ship up at 9:59pm, knowing that if you do not, then you will die?

However, the other ship also knows that you are thinking this, and hence decides that it would be better to blow you up at 9:58pm. I mean, 1 minute is not enough for Batman to intervene right?

Using this argument recursively, we see that this game becomes one of paranoia, and a dismal game this is! Each ship comes to the conclusion that it is best to press the trigger upon getting it, to minimize the chance of the other ship pressing it first!

The game of mutual trust or cooperation

I do not have a nice rigorous argument for this, but: If there were such a thing as a game of cooperation, it seems likely that the two ships will talk to one another at t=0 and decide to throw out the triggers, even if each ship values life over morality. (Of course, the movie suggests that they did so for moral reasons.) By tossing out the triggers on each ship at time 0, granted that Batman has a sufficiently high probability of intervening, they play a one-shot game based on the expectation that Batman will successfully intervene before midnight. Furthermore, by preventing an extended game, they avoid the terrible equilibrium induced by paranoia.

Of course, because the ships are unable to talk to each other, this decision can only be reached based on some form of “mutual trust” or “faith in humanity”.

—-

Other notes:

In reality, each human has a different weight attached to life and morality, but here I simplified the problem into a symmetric game assuming that the law of large numbers reduces the variance of each ship’s collective value system, such that the utilities are nearly identical.

Also, Joker could have been lying, just for the heck of it. But such a game would not be meaningful to play, would it?


Decoupling

August 23, 2007

The below is slightly paraphrased…

Me: There are a lot of cute classy women in NY.
Mod: :OOO
Me: but it looks like most ppl are couples already
Me: So most of the cute womens have a bf standing beside them =[
Mod: you’ll just have to decouple some of them
Me: omg
Mod: LOL
Me: Yes, I don’t like their inflexibility. I would like to recouple them with my own class.

http://en.wikipedia.org/wiki/Decoupling Also, in computer science, highly coupled code refers to code so intricately intertwined that neither can exist without the other. This inflexibility is usually the result of poor design.

Me: “i would like to uh… rearrange your system of equations so that you are independent from your bf”


I should be shot if I ever use any of these pickup lines.

August 21, 2007

“If you were sin^2(x), I would want to be cos^2(x) so that together we could be 1.”

“Are you singular? I find that hard to believe since you rank so high on my scale.”

“Hi, my memory is faulty and I seem to be lost. Can you allocate me a pointer to your address?”

Do you mind if we research each other a little? If we’re lucky, we might yield some good results that will eventually lead to a proposal.”

Yep, they came up during random conversations, and they’re not all mine. Please don’t look at me weird.  =[


Happy Pi day!

March 15, 2007


Dating in parallel = less resistance

February 15, 2007

As an obligatory vday post, here’s a nice tip for engineers. Then again, some of us don’t really meet enough women to parallel date. *grumpy face*

http://www.bitquabit.com/2007/02/14/smart-guys-date-in-parallel/


Too geeky or not too geeky

November 30, 2006

If you could choose to be very geeky or to be totally non-geek, what would you choose?

For me, this is a very tough question.

My favorite pastime as a toddler (i.e. 3 years old) was doing arithmetic. Since I could not write at the time, I would literally ask my parents to write for me while I solved addition and subtraction problems for fun. I could do long multiplication and division and understand decimals at the age of 5. Today, I dream graphical pictures of optimization and game theoretical problems. It would be a waste, as some people say, for me not to pursue a lifestyle of pure geekhood, which is, of course, the path of academia or research. I am not saying that academia is an easy path; no, it is a path far more grueling than a phd. You have to LOVE what you are doing, or you will never survive. You have to ENJOY being a geek.

But I never chose to be a geek; I was born one. And for me, it’s a path of comfort and security. Since very few people can do what I do, companies will always want me. I will never be low on demand.

The downside of being genetically disposed toward geekiness, however, is if you wish you could be something else. I, for one, would like to live as a non-geek for a few years. I could learn useful business and communications skills. Perhaps if I had the courage to confront my weaknesses, I could make more friends, be more social, have more fun, find a girlfriend, etc. But it’s a far bigger jump for me than for others, which makes that non-geek lifestyle all the more appealing. Of course, I’m sure some people who do not have my uncanny (dis)abilities would envy me for excelling in what I do.

After all, do we not all want what we can not have?

Actually, I’m not as bad as I made myself to be above. I try my best to balance my life with sports and “real world” contact over the weekends. I can’t live forever inside a theory box.


Want some pi?

November 29, 2006

I love pi, but not nearly as much as this guy…


Weird Al — White and Nerdy

October 3, 2006

Pwahaha, Weird Al never ceases to amaze me with his creative parodies! Thanks insaneyang.