If you have not already seen The Dark Knight, then you should read this post at a later time as to avoid spoilers after the jump. Otherwise, follow the jump for a game theoretic discussion derived from the movie that has already broken two box office records for both best midnight opening and top first day revenue. I personally enjoyed the movie immensely, but that discussion does not follow.
So, officially, consider this a spoiler alert for what follows.
I am sure there were plenty of other individuals who immediately conceptualized parts of the movie in game theoretic terms as one's mind is prone to do after sufficient indoctrination; however, after discussing the scenario with Julie for a bit, it seemed to be appropriate blog material and worth formalizing. Without further introduction (as I am assuming you have already seen the movie), we can begin:
The Story
The Joker's final act as criminal mastermind and agent of nihilism (or, seemingly, to show Gotham city that we are all Homo Economicus when the structure of the game forces us to be) involves two ferries filled with people. The first ferry is filled with normal, law abiding citizens while the second ferry is filled with the population of Gotham Prison. The Joker, doing so without prior knowledge of the passengers and city officials, wired the ships with powerful explosives such that their explosion would destroy the entire ship and everyone aboard. No single individual is allowed to escape. Each ship is given a detonator for the other ferry. The use of the detonator saves the ship while killing everyone aboard the opposing ship. Thus, if any member of Ship A pushes the detonator, then Ship B is destroyed and all of Ship A is saved. Additionally, if either ship fails to use the detonator to destroy its opponent, then both ships will be destroyed by the Joker. Assuming that the actors must make their decision simultaneously, this would lead to the following game:
Solving this game is pretty straightforward and (detonation, detonation) becomes the dominant strategy as, at best, cooperation is weakly dominated. Thus, homo economicus and politicus have a very clear strategy to, without fail, destroy their opponents, and in so doing, both will ships will be destroyed.
However, in Gotham City, this does not happen - nor would it necessarily happen in a laboratory experiment either as a few more complications are introduced into the game. First, the game appears to be pseudo-sequential or, perhaps, a series of simultaneous game with a finite end. The Joker gives both ferries 30 minutes in which they can detonate the other side. Even with this complication, the outcome should be the same and both actors ought to choose detonation at the first node (that is, t =1 or when the first move is available). Using backwards deduction, both players recognize that their opponent will choose to detonate in the final iteration even if there are some gains to short-term cooperation. This effect cascades backwards to the initial decision node and mutual detonation occurs to prevent receiving the sucker's payout of cooperating while the opponent defects.
Decision Rules
Beyond this, it appears that the decision making process for both ships is different. In the ship containing prisoners, the decision to detonate becomes decentralized and any one actor willing to grab the detonator could do so. While the armed guards gives the opposite impression of clear authoritarianism, Decentralization becomes apparent as the time moves on. Thus, decentralized decision making should lead to the optimal play as any single individual among the 500 or more sub-actors should have a preference for survival.
On the civilian ship, the decision mechanism becomes a simple majority vote. When the votes are aggregated, the decision to detonate the other ferry is chosen at a rate of almost 3 to 1. Yet, there is no executive to carry out the decision and the majority will does not prevail as no single sub-actor is willing to push the button. This psychological separation between deference of active responsibility (voting to kill others) versus carrying out the task, has been illuminated in some experimental settings as shown in the video Julie blogged about previously.
The civilians act rationally as long as they, individually, are not too involved in carrying out a potentially morally reprehensible act.
Morality?
Perhaps social norms mattered for the actors in the game? In the second game, we can assume that there are some social benefits from being a moral agent; however, being moral is not as beneficial as being alive. Since survival trumps morality, we get the second game:

As Yev Kirpichevsky notes in his comment, the pure strategy equilibria are {cooperate-detonate} and {detonate-cooperate} with a Mixed Nash Equilibrium of playing cooperation and detonation with a probability of .5 for both players with this specification (this would change depending on how we parametrize the value for being moral and the value for surviving). Perhaps, then, we saw the cooperate, cooperate cell (with probability .25) in the movie and if we watched the movie infinite more times, we would see a nice distribution where cooperate-cooperate occurs 25% of the time, both ships defect 25% of the time, and only one ship explodes 50% of the time. I plan on seeing the movie again, and I will let you know if the outcome of this scene changes.
However, this is not the full specification of the game, let's assume that the parameters allow for morality to trump survival:
The pure strategy Nash equilibrium is to never detonate as cooperation is always more beneficial than destroying the other ship. While both specifications may be able to explain the movie, I think there might be a fourth game that explains the game the best.
The Joker Misspecified his Game?
While not the moral of the story that Batman wants the Joker or Gotham City to learn (he tells the audience and the Joker that people are not all evil - there is some good in Gotham), adding an additional parameter to the game can easily induce a cooperation solution. If the people aboard both ships believe that the cost of dying is probabilistic, then they would cooperate as long as the benefit to cooperating trumped both the probabilistic chance of punishment and the likelihood that the other ship decides to detonate. Thus, each ship has to calculate the value for morality (m) minus the cost of punishment P(c) and the cost of the other ship defecting P(dx)(d) where x is the other actor. The cost of opponent defection and punishment are the same (the value of survival), so the equation reduces to:
U(Ship A) = M - (Pc + P(dB))*(S)
U(Ship B) = M - (Pc + P(dA))*(S)
Each equation must still be greater than the value of Survival Minus the Cost of morality such that for Ship A (or B with appropriate substitution):
S - M < M - (Pc + P(dB))*S
![]()
If M = S, then the joint probability of punishment and opponent detonation must be less than 1 for cooperation to be preferred, else defection dominates. As M and S vary in relation to each then, the threshold for the joint probabilities to make a preference in strategy changes. Note, if the value for M is zero for the observed actor and survival is infinitesimal greater than 0, detonation dominates. Likewise, if we build in opponent morality into the probability of opponent detonation, and opponent morality is zero, then the cost of morality becomes too high. Obviously, the game becomes increasingly complicated as parameters are made endogenous.
The actors must determine a subjective probability of the game being false: that is, the probability of punishment is not 1. The probability of punishment could go down from 100% if the passengers believe that the Joker is lying about the deadline, if they think there is a chance of technological failure, that their detonator may indeed destroy their own ship (adding a hidden cost to detonation), or if they live in a world with Batman. I would venture forth the assumption that the probability of punishment is inversely proportional to the probability that Batman exists with some modification based on his likelihood of failing to save people -- but that is just me.
There are a few other situations in this movie that are prone to game theoretic applications and I have not exhausted the ways in which this game could be modeled. However, I think this calls for a new villian in the third movie of the trilogy: The Game Theorist. Much like the riddler, but deadlier and requiring Batman to use mathematics to fight crime.
Here are some further complications to consider.
The audience actually has a lot more information at hand than any of the individuals on either boat, and most of the rest of the cast of the movie period.
It is important to note that the outcome of the Joker's actions appeared to be pre-set. By that, I mean to say that the Joker's plans were designed to be carried out in a specific way regardless of what actions were taken by any of his games' "players".
Consider first the dilemma he sets up with Dent and Dawes. The two are placed in separate places and their demise is set to a timer. The Joker wouldn't have a reasonable way to know that the police force would recognize Dent's or Dawes' disappearance before that timer blew up. (In fact, through context you can see that they didn't even realize Dawes was missing.) The timer was set to blow that very night, which really didn't give the police much time to realize Dent and Dawes as missing. The Joker clearly didn't volunteer the information until he was questioned by Gordon and later Batman. So, had Dent's status not become readily apparent, neither Gordon nor Batman would have ever questioned him and both Dent and Dawes would have died.
Now look at the dilemma he presents with the hospital and Reese. The Joker gave a 60-minute time frame for this dilemma and had no clear feedback mechanism to determine whether or not Reese had been killed. He could have potentially used the news, but such a short time frame doesn't really allow for a robust feedback loop. Second, the level of destruction the Joker caused to the hospital requires significant prior planning, planning which undoubtedly occured long before Reese made his statement on the news. This would indicate that the Joker had every intention to blow that particular hospital apart regardless of Reese, and simply used his already laid plan to destroy the hospital in such a way that it would cause additional chaos, not to mention keep the police sufficiently busy to aid in his continued evasion of them.
So, where does this leave us when examining the Joker? I would argue that the Joker is not actually making any attempt to create a closed-system moral dilemma. Rather, much like the opening moves in a chess game, he creates conditions that give him as many options as possible to impose false dilemmas onto Gotham in order to force the citizens into actions they would ordinarilly find repugnant (" . . .they'll eat each other.")
So, if he follows a similar pattern with the boats, then he has again created a false dilemma. It is false in that he may very well destroy both boats regardless of the decisions of their passengers. Although, due to excellent acting on his part, Ledger does display a genuine, if fleeting, sign of disappointment when the passengers do not "eat each other".
-R
Posted by: Random11235 | August 17, 2008 at 11:21 PM
I immediately assumed it was a test of morality as the Joker had commented earlier in the movie: "You’ll see, I’ll show you, that when the chips are down, these uh… civilized people, they’ll eat each other." So, as soon as I heard the "rules" to the game, I also assumed that as punishment for failing the test (pushing the detonator), it would actually blow up their own ship.
Unfortunately, I wrongly assumed that one of the ships would push the detonator. I was sure that the ferry with the "good citizens" would be the one to fail the test, and thus they would die. When no one did, I almost immediately cried foul and figured the studio had edited the film because perhaps test audiences had found it too grim (for an entire ferry of "good people" to have died...and by actually "killing" themselves with their own detonator). In any case, including that ending to the "game" would have been so fitting.
Thoughts?
Posted by: Julia | August 18, 2008 at 05:38 AM
I stumbled upon this post while idly googling for the dark knight ferry scene. This is very very well explained from all sides of motivation and a great thought exercise for anyone who has learned about the game theory. Great post :)
Posted by: Goran, Croatia | August 28, 2008 at 10:15 AM
Another factor which plays here (kinda destroys the dilemma) is that if you are blown you might not get the chance to blow the other. IT is not like the prisoner's dilemma where you can defect, if the other defected). The blow could be fast enough for you to die before you could trigger the detonator. Also the dilemma in the movie was not a dilemma as such as the Joker said that you will die by midnight anyway, so there was no benefit by not exploding the other boat (no benefit to cooperate).
Posted by: Charles Brown | August 28, 2008 at 02:58 PM
Correct me if I'm wrong, but shouldn't the payoff for the player who dies be negative infinity, as opposed to just 0? I realize a dominated strategy is a dominated strategy, but when you start getting into equations that might allow for morality to outweigh death, I think the value for death becomes quite a bit more important.
I suppose this is akin to the prisoner's dilemma, but in the nuclear war application. The classic prisoner's dilemma I learned in game theory class had significantly different payouts compared with the nuclear war game I learned in poli sci class. When we stop talking increased prison sentences and bring the discussion round to life or death, I'm not sure that 0 payout holds anymore.
Side note - I understand some people are willing to die for their beliefs, and that this would change the payouts somehow, but I'm not sure I not see how this would play out mathematically. Furthermore, wouldn't just one person's "infinite" loss due to death outweigh the entire boat's moral preferences? Any clarification on all that would be helpful.
Posted by: Erik | December 14, 2008 at 11:13 PM
Im a 17 year old who's just been introduced to the game theory. im not all that good at it.
so people are not allowed to jump off the boat - then the boat explodes.
but does throwing the detonators away influence our result in anyway?
ofcourse - if both the boats don't explode, then they will explode together ..
Posted by: Sunil | January 01, 2009 at 12:16 PM
It becomes way too complicated, because the Joker could make each detonator blow up both boats as well, just because he feels like it.
Posted by: Ryan | January 09, 2009 at 03:50 PM
wow... great post...
but, I need more once time to can understand it, he he he :D
Posted by: Tukang Nggame | April 12, 2009 at 07:07 AM
thanks, good article. I bookmark it
Posted by: tukang nggame | June 04, 2009 at 10:53 PM
that a goo article and useful
Posted by: tukang nggame | June 07, 2009 at 11:43 PM
I agree with David Choi... Thanks David
Posted by: Term Paper | September 05, 2009 at 05:50 AM
The Dark Knight absolutely stunned me. Not since Dr. Strangelove has a movie contained so much game theory. A lot of people have focused on a scene near the end of the movie. But there is so much more to see.
Web Design | Logo Design | Multimedia Design
Posted by: John Canady | October 12, 2009 at 08:48 AM
Great Movie. I wish they made more movies like Batman The Dark Knight.
Posted by: Salvync | May 28, 2010 at 02:52 PM
thnk you for sharing
Posted by: travesti | June 22, 2010 at 07:49 PM
this is an amazing blog, i will definitely return here for more updates on this post, hopefully there will be something new, i just bookdmarked this
Posted by: motoculteur | July 06, 2010 at 10:50 PM
Very useful! thanks
http://www.filecatch.com/trends/kz/14-09-2010.html
Posted by: Maggie | September 15, 2010 at 09:08 AM