What is game theory anyway ?
Wed Aug 29, 2018 · 1700 words

There was a time when I thought game theory was a theoretical approach to designing computer games. What can I say, I was young and dumb. At least now I’m older ¯\_(ツ)_/¯.

Anyways, I’m no expert in game theory, so I won’t attempt to teach you what it is. Instead I’ll spend most of my precious blog space explaining something else - the prisoner’s dilemma. The idea is not really to give you the basic lessons in game theory (sorry) but to give a brief overview of what it is and to convince you why it makes sense to have it as a theory in the first place. The prisoner’s dilemma is perfect for this. At the end of the article you won’t learn your first lesson in game theory, but hopefully, you’ll want to learn your first lesson. I’ll share a few resources for that as well.

The Dilemma

The prisoner’s dilemma is one of the standard problems in game theory and it is presented as follows (source: Wikipedia)

Two members of a criminal gang are arrested and imprisoned. Each prisoner is in solitary confinement with no means of communicating with the other. The prosecutors lack sufficient evidence to convict the pair on the principal charge, but they have enough to convict both on a lesser charge. Simultaneously, the prosecutors offer each prisoner a bargain. Each prisoner is given the opportunity either to betray the other by testifying that the other committed the crime, or to cooperate with the other by remaining silent. The offer is:

Now, here is the principal question

What is the best decision that either of these prisoners can take? To betray or not to betray?

Take a break and think 🧠 (not Google) about this.

The Betrayal 🔪

It might seem like a hard choice (it is, but we’ll come to that later) but we can simplify it for now. Let’s draw a table as shown below. The rows represent the potential decisions that can be made by your partner and the columns represent your choices. The values in the table are the number of years you get sentenced to.

You betray You stay silent
He betrays 2 3
He stays silent 0 1

Draw this table, and then take a pen and circle the best outcome that you can get for each of the other guy’s choices ie for the case where he betrays you and the case where he doesn’t. What do you get ?

If he decides to betray you, your best option is to betray him, because you get 2 years compared to 3 years. And if he decides to stay silent ? Your best option is still to betray him because you get to go free instead of spending an year in prison. In either case, your best outcome is produced by the decision to betray him, which is cool, right? I mean, you can take a decision irrespective of what the other guy does. But here’s the catch. A reasonable assumption in game theory suggests that the people involved will act in a rational and self-interested manner. So the prisoners aren’t going to flip a coin to decide and neither are they willing to go to prison for the other guy(self-interested). This means that the other guy is going to be as rational as you are, and that he is going through the exact logical decision making steps you went through to arrive at his final decision. In the end, he will reach the same conclusion as you, betray 🙇🏻‍♂

You’re starting to see the dilemma aren’t you ?

  1. As explained above, both prisoners, thinking rationally will arrive at the same choice; to betray their partner
  2. If both prisoners betray each other they both get a sentence of 2 years in prison
  3. But there is an outcome where both of them get away with something better, 1 year in prison.
  4. What is the decision to be taken so that this outcome will be produced ? Do not betray 🤯

Ladies and gents, I give you the prisoner’s dilemma. Both prisoners know the best rational decision that they can take. But if they assume that the other prisoner also takes decisions as rational as themselves, their rationally best choice is no longer the best choice. This is the crux of game theory. The outcomes we desire are not just based on the choices available to us but also on our prediction of other peoples choices. This is were a simple decision problem transitions into the waters of game theory.

The two scenarios we discussed here are actually two core concepts in game theory:

Nash equilibrium: An outcome where each party is doing the best they can, provided the other party’s choices. So the Nash equillibrium in our problem would be both prisoners betraying each other.

and

Pareto optimality: An outcome in which both players incur minimum possible harm. More formally, deviating from a Pareto optimal solution cannot be possible without harming at least one of the parties more than the others. This is acheived when both prisoners stay silent.

The reason why Prisoners’ dilemma is such a dilemma is that both Pareto optimal and Nash equilibrium are different. If they had overlapped, the dilemma wouldn’t have been such a dilemma and the choices would’ve been obvious

It’s not just theory

Game theory and the prisoner’s dilemma we just discussed are not just theoretical concepts, it allows us to some extent model our decision making process. Earlier today I was complaining to one of my friends, how corrupt some of the goverment offices where in India. And like a proper hypocrite, I blamed the society (of which I’m part of🤦🏽‍) for nurturing this culture. I mean if everyone stops paying bribes this country would be a much better place, wouldn’t it ?. But we all know that it hasn’t happened and also know that it will not happen easily in the near future. Now, there are a lot of complex reasons as to why it is difficult for an entire society to suddenly stop paying bribes, but if you look at it from a game theory perspective it makes a lot of sense. I must tell you that I’m not suggesting to use game theory as a solution for fighting corruption but rather providing an example to illustrate how game theory abstracts certain situations like these.

As I mentioned earlier, the society as a whole is responsible for encouraging corruption in our country. But the primary fallacy in blaming the “society” for any problem is that “society” is not a single entity, it is composed of its individual players, you, I and everyone else. And each of these players act to achieve their self-interests. Let’s take an example. Imagine you’re building a new house and to start the construction you have to get the plans approved by the local government authorities. So you collect the required documents and go to the village office. But when you submit the documents to the officer, he simply shoves the file into the heap of similar documents on his desk and asks you to come 3 weeks later. As you leave the office though, one his assistants comes running to you whispers to you that there is a way to get the documents processed faster, that is to give him a small bribe.

Now, you have two options, to give the bribe or not. In the ideal case, a responsible citizen should do the right thing and refuse to pay the official. You weigh your personal need vs doing the right thing. A lot of us, believe it or not, would pick the latter. But unfortunately, it is not as simple as that. The question is, what is the “outcome” that you are trying to control with your choices ? And are your choices sufficient to control that outcome ? The answer is when you refuse to pay the bribe, even though you are trying to control corruption (this is your prison sentence) it is not just dependent on your choices. It depends on other people (the other prisoner) that have submitted and are yet to submit their documents for approval. Even if one of them decides to pay a bribe you lose control of your desired outcome. To make it worse, if someone after you decides to pay, you might have to wait longer than you had to !

The above scenario is not exactly the prisoner’s dilemma but it should give you an idea of how game theory could be significant in real life as well. The main take away from scenarios like this is the dependence of the outcome not just on your choice but on others as well. This is what makes game theory interesting and useful in many situations. In fact, game theory has one of it’s biggest applications in nuclear warfare (find out how). And I, personally, would like to see it’s applications in AI. I think true AI, that interacts with humans and other AI agents will have to have some notion of game theory within it. But we won’t go there now. Any discussion of AI will easily go out of the scope of this article. I hope this appetizer was good enough to picque your interest in game theory. As I mentioned earlier in the introduction, I haven’t even scratched the surface here. I have links to a few resources in case you want to dig deeper (I hope you do).

Thank for reading, do leave some feedback on my email or DM me on twitter (be blunt, I can take it !) and stay curious !

Resources


back · home · blog · projects · research · who am I ?