The Prisoner's Dilemma

Two suspects, A and B, are taken into custody by the police. The police do not have sufficient evidence for a conviction so they separate the prisoners and visit them individually to offer them the same deal. If one confesses and will testify against the other while the other still stays silent, the one who testifies will go free while the other will serve a very long time in jail. However, if both confess, then both will spend a medium time in jail. Finally, if both stay silent they will serve a very short period of time in jail.
Each prisoner thus has to chose to betray the other or to remain silent. The Pareto optimal case is that both stay silent. However, each player's dominant strategy is to confess.
This Demonstration illustrates a very common game theory concept, that the Pareto optimal strategy is not always the dominant strategy. The initial settings of the sliders , , (.5 , 5 , and 10) are very common values used in the prisoner's dilemma problem to show this. As a matter of fact, any setting where and will similarly lead to the same situation. However, you can set the sliders so that the dominant strategy of both prisoners is not to confess.


  • [Snapshot]
  • [Snapshot]
  • [Snapshot]


An outcome of a game is Pareto optimal if no other outcome makes every player at least as well off and at least one player better off.
A dominant strategy occurs when one strategy is better than any other for one player regardless of the other players' actions.
    • Share:

Embed Interactive Demonstration New!

Just copy and paste this snippet of JavaScript code into your website or blog to put the live Demonstration on your site. More details »

Files require Wolfram CDF Player or Mathematica.

Mathematica »
The #1 tool for creating Demonstrations
and anything technical.
Wolfram|Alpha »
Explore anything with the first
computational knowledge engine.
MathWorld »
The web's most extensive
mathematics resource.
Course Assistant Apps »
An app for every course—
right in the palm of your hand.
Wolfram Blog »
Read our views on math,
science, and technology.
Computable Document Format »
The format that makes Demonstrations
(and any information) easy to share and
interact with.
STEM Initiative »
Programs & resources for
educators, schools & students.
Computerbasedmath.org »
Join the initiative for modernizing
math education.
Step-by-Step Solutions »
Walk through homework problems one step at a time, with hints to help along the way.
Wolfram Problem Generator »
Unlimited random practice problems and answers with built-in step-by-step solutions. Practice online or make a printable study sheet.
Wolfram Language »
Knowledge-based programming for everyone.
Powered by Wolfram Mathematica © 2018 Wolfram Demonstrations Project & Contributors  |  Terms of Use  |  Privacy Policy  |  RSS Give us your feedback
Note: To run this Demonstration you need Mathematica 7+ or the free Mathematica Player 7EX
Download or upgrade to Mathematica Player 7EX
I already have Mathematica Player or Mathematica 7+