game theory tree latex two stage draw only one outcome

Last week instead of writing a post on game theory I ended up writing some code related to game theory. The most commonly described games are 2×2 matrix games, and in an effort to make game theory easier to understand, I developed a website that can solve any 2×2 matrix game.

Here is a thumbnail preview to the solver:

http://mindyourdecisions.com/GameSolver.html

game-theory-solver-thumbnail

The solver is presented as a game between Rose and Colin. I came across this pragmatic naming convention in the book Game Theory and Strategy by Philip D. Straffin. The player Rose selects between the rows "Up" and "Down" while the player Colin selects one of the columns "Left" or "Right."

The rest of the solver is self-explanatory. Just enter the payoffs and the program will automatically solve for the game's Nash equilibrium in pure and mixed strategies. You can edit the matrix payouts and the solver will update the results, or you might want to start over and reset the payoffs by clicking the button.

In this post, I'll illustrate how the solver operates for the most famous 2×2 matrix games.

.
.

"All will be well if you use your mind for your decisions, and mind only your decisions." Since 2007, I have devoted my life to sharing the joy of game theory and mathematics. MindYourDecisions now has over 1,000 free articles with no ads thanks to community support! Help out and get early access to posts with a pledge on Patreon.

.
.

A Video Explanation

For those that prefer, I have also made a video that previews how the solver works.

The Game Theory Solver: Solve Any 2×2 Matrix Game Automatically

As ever, you can view more videos on math and game theory on my YouTube channel.

The Prisoner's Dilemma

We'll start out with the most famous problem in game theory. Although this game is logically counter-intuitive, it is mathematically one of the easiest examples to solve!

Let's say players get 2 when both cooperate, 3 when only one defects or 0 when only one cooperates, and 1 when both defect. We enter those payouts.

game-theory-solver-prisoners-dilemma

And the solver identifies there is a unique Nash equilibrium where both defect and end up with 1.

Matching Pennies

In matching pennies, each of two players shows "heads" or "tails." Rose gets +1 if the two choices match and -1 if the two choices do not match. Colin gets the opposite payouts.

If we think about the labels "Up" = "Left" = "Heads", and "Right" = "Down" = "Tails," then we can write the payouts in our solver.

The 2×2 matrix has Rose getting +1 in the upper left and lower right entries, -1 in the other two, and Colin getting the opposite payout of Rose. We enter those payouts.

game-theory-solver-matching-pennies
Instantly the solver identifies there is no Nash equilibrium in pure strategies and it also solves for the unique Nash equilibrium in mixed strategies.

Battle of The Sexes

We'll skip the narration on this game. The payouts are (3, 2) is the payout for (Up, Left), (2, 3) is the payout for (Down, Right), and the rest are 0's, which we input.

game-theory-solver-battle-sexes

The solver explains there are 2 pure Nash equilibrium and a unique mixed strategy.

Game of Chicken

This is a similar game to the battle of the sexes mathematically. We'll enter the payouts.

game-theory-solver-game-of-chicken

The solver again identifies the two pure strategy Nash equilibrium and the unique mixed strategy equilibrium.

(There are some rounding issues as the solver works numerically. So you should recognize the mixed strategies are 1/3 and 2/3 with an expected payout of 4.7).

Anything Goes

Let's say that Rose and Colin get 2 a piece no matter what each chooses.

game-theory-solver-anything-goes

Now everything is a pure strategy Nash equilibrium and there are infinitely many mixed strategy Nash equilibrium too, both identified by the solver!

Anything Goes for one player

What happens when one player has a dominant strategy, but the other player is indifferent between two choices? The player with the dominant strategy picks it, and the other player can choose any level of mixing.

Inputting such a game:

game-theory-solver-anything-goes-one-player
The solver identifies Rose has a dominant strategy of "Up" and Colin can mix Left and Right in any proportion.

Game with exactly 2 equilibria

Let's say (Up, Left) has the payout (1, 1) and everything else has a payout of 0.

game-theory-solver-even-number-equilibria

The solver explains there are exactly 2 pure strategy Nash equilibria. The interesting part of this game is there are an even number of equilibria, and most games have an odd number.

The Game Theory Solver for 2×2 Games

I hope you find the 2×2 game theory solver useful. Here is a link to the website. I hope you'll find it useful to share with your economics teacher (or teachers to your students).

game-theory-solver-thumbnail2

MY BOOKS

If you purchase through these links, I may be compensated for purchases made on Amazon. As an Amazon Associate I earn from qualifying purchases. This does not affect the price you pay.

Book ratings are from January 2022.

(US and worldwide links)
https://mindyourdecisions.com/blog/my-books

Mind Your Decisions is a compilation of 5 books:

(1) The Joy of Game Theory: An Introduction to Strategic Thinking
(2) 40 Paradoxes in Logic, Probability, and Game Theory
(3) The Irrationality Illusion: How To Make Smart Decisions And Overcome Bias
(4) The Best Mental Math Tricks
(5) Multiply Numbers By Drawing Lines

The Joy of Game Theory shows how you can use math to out-think your competition. (rated 4.2/5 stars on 224 reviews)

40 Paradoxes in Logic, Probability, and Game Theory contains thought-provoking and counter-intuitive results. (rated 4.1/5 stars on 38 reviews)

The Irrationality Illusion: How To Make Smart Decisions And Overcome Bias is a handbook that explains the many ways we are biased about decision-making and offers techniques to make smart decisions. (rated 4/5 stars on 24 reviews)

The Best Mental Math Tricks teaches how you can look like a math genius by solving problems in your head (rated 4.2/5 stars on 76 reviews)

Multiply Numbers By Drawing Lines This book is a reference guide for my video that has over 1 million views on a geometric method to multiply numbers. (rated 4.3/5 stars on 30 reviews)

Mind Your Puzzles is a collection of the three "Math Puzzles" books, volumes 1, 2, and 3. The puzzles topics include the mathematical subjects including geometry, probability, logic, and game theory.

Math Puzzles Volume 1 features classic brain teasers and riddles with complete solutions for problems in counting, geometry, probability, and game theory. Volume 1 is rated 4.4/5 stars on 87 reviews.

Math Puzzles Volume 2 is a sequel book with more great problems. (rated 4.1/5 stars on 24 reviews)

Math Puzzles Volume 3 is the third in the series. (rated 4.2/5 stars on 22 reviews)

KINDLE UNLIMITED

Teachers and students around the world often email me about the books. Since education can have such a huge impact, I try to make the ebooks available as widely as possible at as low a price as possible.

Currently you can read most of my ebooks through Amazon's "Kindle Unlimited" program. Included in the subscription you will get access to millions of ebooks. You don't need a Kindle device: you can install the Kindle app on any smartphone/tablet/computer/etc. I have compiled links to programs in some countries below. Please check your local Amazon website for availability and program terms.

US, list of my books (US)
UK, list of my books (UK)
Canada, book results (CA)
Germany, list of my books (DE)
France, list of my books (FR)
India, list of my books (IN)
Australia, book results (AU)
Italy, list of my books (IT)
Spain, list of my books (ES)
Japan, list of my books (JP)
Brazil, book results (BR)
Mexico, book results (MX)

MERCHANDISE

Grab a mug, tshirt, and more at the official site for merchandise: Mind Your Decisions at Teespring.

joneslork1956.blogspot.com

Source: https://mindyourdecisions.com/blog/2014/09/30/game-theory-tuesdays-2x2-matrix-game-solver/

0 Response to "game theory tree latex two stage draw only one outcome"

Post a Comment

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel