Showing posts with label game theory. Show all posts
Showing posts with label game theory. Show all posts

Sunday, November 22, 2009

Prime number monopoly



By popular request from an awesome teacher friend, here are directions for Prime Number Monopoly, a fun game that I taught to teachers attending the New York City Math Teacher Circle retreat last summer. This is also a great game for older students to teach their younger siblings. Three students makes a good-size group for this game, but you can play with two or four per group as well.

There's minimal equipment involved. Each group needs a set of deeds (see below), a pair of dice, and paper and pencil for keeping track of scores. That's it. No playing board is needed. No play money is needed either, because students keep track of their balances as a running account.

Start by creating a set of deeds for the prime numbers for each group of students. You can probably get your students to figure out my pricing scheme from the picture of the first three deeds shown above. Once they figure out my scheme, they'll know what the price should be for larger primes such as 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59, and 61. They can create create their own deeds using index cards and neatly lettering them.

I usually just use the primes from 2 to 11 in the games I run, and here is a nice PDF that creates two sets of professional-looking deeds for those numbers. The PDF is sized to print out cards on standard business card stock, which is pretty easy to get, or you can just print them out on regular paper, cut them out, and attach them to card stock for durability.

One student in each group needs to be the accountant, who will need to keep track of the running totals of money each student accumulates on a scoresheet, so the accountant should start by creating a column labeled with each student's name to track their winnings. Other students need to regularly "audit" his work by watching him to make sure he gets everything recorded properly. (Don't want any budding Bernard Madoffs!) You may want to rotate the job of accountant. Alternatively, each player can keep track of his own earnings--again audited by the other players!

At the beginning of the game, nobody has any money, so there should be a zero at the top of each column. Also, at the beginning of the game, nobody owns any prime numbers, so they should all be placed at the center of the table.

Each student takes turns rolling the two dice. Say he rolls a 5 and 4. Then, he has a choice of declaring his total winnings for that round to be $54 or $45. (You are probably wondering why anyone would choose to go for $45, but you'll see that will sometimes be a useful strategy in later rounds.) Whichever amount he chooses is the amount the accountant records in the books as his winnings for that round. He should keep a running tally, so players know how much money they have.

At the beginning of any turn, BEFORE he rolls the dice, if a player has accumulated enough money to buy a prime number that is in the center of the table, then the player may state, "I'd like to buy a prime," and specifies the one he wants to buy. At that point, the accountant subtracts the appropriate amount of money from his total, and the player takes control of that prime, moving it to his place to indicate his ownership. He then rolls the dice as usual on his turn, and records any winnings as usual. From then on, however, when any other player rolls and declares a multiple of his prime, the other player has to SPLIT his winnings with the owner of the prime.

Example:

Jane has bought the deed for 7. John later rolls a 4 and a 2 on his turn, so he has the choice to declare $42 or $24. If John declares "$42," then John has to split his earnings with Jane because 7 is a factor of 42. Each will get $21 recorded in their columns. On the other hand, if John declares "$24," then he doesn't have to split it--he'll keep the whole $24.

More complicated example:

Suppose Jane owns the deed for 2 and John owns the deed for 11, and Jimmy rolls a 4 and a 4. Then Jimmy has no choice but to declare 44. Since both 2 and 11 are factors of 44, then it's a three way split. Each player will get 1/3 of the $44. (Generally, I run this game by having the students round off to the nearest whole number, which results in $15 per student in this case, because it encourages fast mental arithmetic, but it's your decision how to run the game with your students.)

Even more complicated example:

Same facts as above except that assume that Jane is the one to roll the 44. She owns the 2 and John owns the 11. In that case, the split is 1/3 to John and 2/3 to herself.

I generally set a predetermined amount of time for the game to run. At the end of the game, all students can sell their deeds back to the bank for 90% of their original value (good opportunity to talk about asset depreciation!) and the student who has accumulated the most money wins.

After the students have played a game, it's a good idea to discuss strategies. Are some prime numbers better bargains than others? Should you buy the cheapest prime you can afford as soon as you have the money to do so, or should you save up your money and buy a somewhat more upscale prime? This question turns out to be a bit more complicated than people might initially think. Two seems like it would be a great deal (because half of all numbers are divisible by 2), but 3 has special advantages not available to 2.

Some of the same sorts of considerations come up in the game of regular Monopoly. The value of a property depends in part on the amount of rent you can collect when someone lands on your property, but it also depends on the probability that someone will land there. It does little good to own a high rent property if people rarely land there! It turns out that someone named Philip Orbanes has exhaustively analyzed the probabilities of landing on all the different spaces on a Monopoly board. He wrote up his analysis in a great little book called The Monopoly Companion. The book is out of print now, but used copies are available very inexpensively.

Source: This game is loosely adapted from a game called "Pseudo-Monopoly," which I found in the book Family Math years ago, which also had other features, like an income tax, and you can of course adapt this game to incorporate additional features of your choosing as well.

Saturday, October 3, 2009

Good luck and best wishes to the new math circle starting up in Princeton NJ

A new math circle for middle school and high schools students is starting up today in Princeton, New Jersey! The legendary Professor John Conway is going to be giving a talk and Albany Area Math Circle founding member Alison Miller, now a math grad student at Princeton, will lead a problem session afterwards.

AAMC high school students who are leading middle school math circles may not be able to get John Conway to appear in person, but that doesn't mean you can't introduce the mathematical excitement of his work to your students.

Here's a video of John Conway talking about his work on cellular automata and The Game of Life:



If you don't know about his work on cellular automata and The Game of Life, you and your students are in for a treat. Visit this link to learn more about the concept and play an interactive version of the game.

Understanding the real world policy applications:

Conway's Game of Life relates very nicely to some extremely influential work done by economist Tom Schelling, who won a Nobel Prize for his work applying game theory to real life. Schelling's books are extremely well-written, lucid and thought-provoking. They don't require a lot of background. Micromotives and Macrobehavior is a good place to start. Schelling started working on models of racial segregation patterns in the 1950s and 1960s by creating simple cellular automata rules with pennies on a chessboard. Another great Schelling book has a title that I love and can (deeply!) relate to: Choices and Consequences: Perspectives of an Errant Economist. Here's a video from economist Tim Harford briefly presenting and discussing Schelling's model, using eggs to demonstrate cellular automata:



To explore the math more deeply:

Check out the links on this page at Wolfram demonstrations. The first page allows you to change parameters and visualize different ways that his Game of Life will play out, but make sure to check out the links on the right side of the page as well.

John Conway is co-author, along with Richard Guy and John Berlekamp, of a great series of books on mathematical game theory, called Winning Ways for Your Mathematical Plays. It's in the fun but deep and sometimes hard category--highly recommended for those who want to delve more deeply into this subject. Google Books also offers a limited preview of volume 2 of the series which I've linked below. If you follow the google books link, you can find what local libraries near you own the book.

Monday, August 17, 2009

Information cascades, herd instinct, and the wisdom (?) of crowds


Professor Orzel's coin estimation contest is now over, and the graph above shows his plot of the estimates submitted by people who entered the contest. The red vertical line shows the true correct value of $165.26. The median and mean of the guesses were $77.12 and $83.30, roughly half of the true value.

My own guess was based on a simple strategy: choose the middle of a large open interval that was on the high side of the 50 or so guesses already submitted by the time I entered. Why?

1) Stakes were low*, and it was rational for me not to spend a lot of time computing a complex estimate.

2) By the time I entered, a lot of people had already submitted guesses, most of which seemed grounded in plausible reasoning, so it was rational for me to "free ride" off their computational efforts.

3) I knew from the MBA study that, on average, people typically tend to underestimate the value of a bunch of coins, and Geeky Mom's recent post also reminded me of this tendency. On the other hand, the Bazerman-Samuelson experimental data also told me that there is usually at least one person who guesses too high.

4) So I wanted to guess high, but I didn't want to outflank the highest guesser.

5) And I wanted a large open interval so I could take the midpoint of that interval and hopefully "control" a large amount of numeric real estate. At the time I submitted my guess, I saw a large open interval on the highish side, running from $120.94 to $150.92, so I submitted a guess which was midway between those two points, which was $135.93. So, if nobody else had come along afterwards, I would have "controlled" the entire span between $128.43 and $143.43. (Of course, people did come along and poach on my real estate, but what can you do? It's a free country, as they say! Actually, if I'd been obsessive, I'd have waited until the last possible moment, in order to take all possible data from other people's guesses into account, but I'm not THAT obsessed!)

How did I do? Well, I didn't win. That honor went to Michael Day, who submitted a guess of $166.10. (At least he wasn't one of those folks poaching on my "turf.")

But at least I did better than the median or mean, and I also came closer than Professor Orzel himself, who said he would have guessed $130. And, of course, he had some informational advantages (what the SEC would call "insider information," if this were a marketable security.)

Professor Orzel asks:

Now, why were the rest of the guesses so far off? Isn't the "wisdom of crowds" effect supposed to make an average of a large number of estimates better than any individual guess?


As I mentioned in my last post, winner's curse is not a factor in this contest, because it's not an auction situation. In an auction, you would expect sophisticated bidders to bid somewhat on the low side, because they are worried about the winner's curse phenomenon.

However, as I pointed out before, Professor Orzel's contest isn't an auction, so there's no winner's curse involved. (If there HAD been an auction of the coin jar, it would most likely have been won by that person on the far right of the histogram, who thought the coins were worth $327. If everyone were rational, and took winner's curse into account, they would likely have bid less than their estimates. The question is whether they would have adjusted their bids ENOUGH.)

But the question remains: why is the average of the estimates in this case so far below the true value? (Even worse than the estimates of those Bazerman/Samuelson MBA students, whose estimates averaged about 65% of the true value.) At least they were better than Geeky Mom's estimate. (It would be interesting to see the data from her bank, which runs an estimation contest.)

A few possibilities include the phenomena known as information cascades or herd instinct.

Basically, what it comes down to is this: when people were submitting their guesses, they were using the information they had about other people's guesses in formulating their own guesses. That means that our guesses were not independent of one another. You see this sort of thing all the time in financial bubbles and panics. Of course, the stakes here were much lower* than in the global financial markets.

Now, it was entirely rational for us to use all the information we had available in formulating our own guesses, including the guesses submitted by other people, especially those of us who were sophisticated in how we used the data. (I like to think that I was reasonably sophisticated in my use of the information, even if I didn't win the contest!) But other people might have used the early information in more naive ways, because they didn't take into account the fact that people have a tendency to underestimate values of coin containers, which led to an unfortunately inaccurate information cascade.

*No offense intended with the "low stakes" remark, Prof. Orzel, but all of us losers will just have to wait a little while until your book hits the bookstore shelves. Having to wait a little to read your book is a lot less painful than what the information cascades have done to the world economy in past year.

Friday, August 14, 2009

Coin estimation contest and winner's curse

Union College Physics Professor Chad Orzel has a book coming out this fall, How to Explain Physics to Your Dog, which looks great, from what I have seen of the previews on his blog, Uncertain Principles.

You can win a free galley proof copy of his forthcoming book if you can correctly guess the dollar value of the change in his loose change box.



Details of his contest and a better picture are here.

Professor Orzel's contest reminded me of the famous coin-jar auction experiments that a psychologist and an economist conducted with their MBA students to illustrate the winner's curse phenomenon, an important concept in game theory, a branch of applied mathematics.

Robert Frank's Behavioral Economics text describes those experiments as follows:

[When] psychologist Max Bazerman was teaching at Boston University some years back, he and his colleague William Samuelson performed the following experiment in their microeconomics classes. First they placed $8 worth of coins in a clear jar. After giving their students a chance to examine the jar carefully, they then auctioned it off--coins and all--to the highest bidder. They also asked each student to submit a written estimate of the value of the coins in the jar.

On the average, students behaved conservatively, both with respect to their bids and to the estimates they submitted. Indeed, the average estimate was only $5.13, about one-third less than the actual value of the coins. Similarly, most students dropped out of the bidding well before the auction price reached $8.

Yet the size of the winning bid in any auction depends not on the behavior of the average bidder, but on the behavior of the highest bidder. In 48 repetitions of this experiment, the top bid averaged $10.01, more than 20 percent more than the coins were worth.

Professor Frank goes on to note that: "Bazerman and Samuelson thus made almost $100 profit at the collective expense of their winning bidders. At that price, the winners may consider it an important lesson learned cheaply." Why? Because the winner's curse phenomenon can occur in real world situations with far greater stakes, for example, in oil lease auctions and corporate takeovers. For more information, see here and here.

However, as I noted above, Professor Orzel teaches physics, not psychology or economics, so there's no "winner's curse" risk in his contest, but you can still have fun thinking about your strategy for coming up with a guess.