Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Game Theory for Software Developers at Boulder JUG

Game Theory for Software Developers at Boulder JUG

Game Theory, a segment of economics, can effectively be applied to software development for achieving better financial and decision making outcomes.

Matthew McCullough

October 13, 2011
Tweet

More Decks by Matthew McCullough

Other Decks in Programming

Transcript

  1. C:1 Red 1/2 1:1 Raise 2:1 Meet 2 -2 Pass

    1 -1 Fold 1 -1 Black 1/2 1:2 Raise 2:1 Meet -2 2 Pass 1 -1 Fold -1 1
  2. C:1 Red 1/2 1:1 Raise 2:1 Meet 2 -2 Pass

    1 -1 Fold 1 -1 Black 1/2 1:2 Raise 2:1 Meet -2 2 Pass 1 -1 Fold -1 1
  3. C:1 Red 1/2 1:1 Raise 2:1 Meet 2 -2 Pass

    1 -1 Fold 1 -1 Black 1/2 1:2 Raise 2:1 Meet -2 2 Pass 1 -1 Fold -1 1
  4. C:1 Red 1/2 1:1 Raise 2:1 Meet 2 -2 Pass

    1 -1 Fold 1 -1 Black 1/2 1:2 Raise 2:1 Meet -2 2 Pass 1 -1 Fold -1 1
  5. Beauty Contest Rules  Guess between 1 and 100 

    Winner has the number at 70% of the average guess
  6. The $2 Button: Rules  Gather 100 friends  Everyone

    starts with a $100 prize  Everyone gets a button  If you push, it deletes $2 from everyone else's prize  Everyone gets one button push
  7. The $2 Button: New Rules  Gather 100 random players

     Everyone starts with a $100 prize  Everyone gets a button  If you push, it deletes $2 from everyone else's prize  Everyone gets one button push  If you push, you cut your losses in half
  8.  What if everyone had a meet and greet in

    advance?  What if everyone knew each other?  What if everyone was a family member? Red Button Coalitions?
  9. Unintended Consequences  Some quantity of rules are what make

    a game playable  Don't capriciously create new rules at the last moment
  10. Scoring for the other Team  1994: Barbados vs. Grenada

     Must win by 2 goals to advance  B2:G1  Goals count double in overtime  Grenada began defending Barbados' goal
  11. Ultimatum Game Rules  The purse is provided by a

    bank  Players are not allowed to communicate  There is only one decision to be made  There are 100 strategies
  12. Ultimatum Offer 100 Accept 100,0 Decline 0,0 Offer 99 Offer

    98 Offer 30 Offer 10 Accept Decline Accept Decline Accept Decline Accept Decline 99,1 0,0 0,0 10,90 0,0 30,70 0,0 98,2 Alice Bob
  13. Birthday Attack  With 26 people in the room, what

    is the chance that someone has January 1st as their birthday?
  14. Birthday Attack  With 26 people in the room, what

    is the chance that any two share a birthday?
  15. Red/Black Negotiations  23 Red Cards with instructor  23

    Cards with students  What kind of deal do you hold out for?
  16. Red/Black Negotiations  20 Red Cards with instructor  23

    Cards with students  What kind of deal do you hold out for?
  17. No!

  18. What is it?  Playing at high stakes  By

    not offering any small response, scaring the other player of the consequences of the big response
  19. Chicken  Best way to play is to throw out

    the steering wheel  But the other player must visibly take notice of that action
  20. Schelling Points  Grand Central Station in New York 

    99¢ on the App Store  $39.95 for FPS games  DVD releases on Tuesday  Comic books releases on Wednesday  Theater film releases on Friday
  21. Schelling Number  Write down an two-digit odd number in

    which both the digits are different
  22. What would you bid if you only had a 50%

    chance of getting the other shoe?
  23. References: Research  The Teaching Company: Game Theory Video Course

     http://www.thegreatcourses.com/tgc/courses/Course_Detail.aspx?cid=1426  Professor Scott P. Stevens, Ph.D. The Pennsylvania State University James Madison University  Bookmarks  http://www.delicious.com/matthew.mccullough/gametheory  Range Voting  http://rangevoting.org/TBlecture.html  Market for Lemons  http://en.wikipedia.org/wiki/Market_for_lemons  http://nobelprize.org/nobel_prizes/economics/laureates/2001/akerlof-article.html  http://www.springerlink.com/content/h3h8530156276515/  http://hydrogen.its.ucdavis.edu/eec/education/EEC-classes/eeclimate/class- readings/akerlof-the%20market%20for%20lemons.pdf
  24. References: Blogs  Mind Your Decisions  http://mindyourdecisions.com/blog/  Game

    Theory Strategies  http://www.gametheorystrategies.com/  Twitter, Barry Hughes  https://twitter.com/#!/gamethry
  25. References: Books  Theory of Games and Economic Behavior 

    http://en.wikipedia.org/wiki/Theory_of_Games_and_Economic_Behavior  http://press.princeton.edu/titles/7802.html  http://www.amazon.com/Economic-Behavior-Commemorative-Princeton-Editions/ dp/0691130612/ref=sr_1_1?ie=UTF8&qid=1310015156&sr=8-1  Rock, Paper, Scissors: Game Theory in Everyday Life  http://www.amazon.com/Rock-Paper-Scissors-Theory-Everyday/dp/0465009387/ ref=sr_1_2?ie=UTF8&qid=1310490759&sr=8-2  The Art of Strategy: A Game Theorist's Guide to Success in Business and Life  http://www.amazon.com/Art-Strategy-Theorists-Success-Business/dp/0393337170/ ref=pd_bxgy_b_text_c  Co-Opetition : A Revolution Mindset That Combines Competition and Cooperation : The Game Theory Strategy That's Changing the Game of Business  http://www.amazon.com/Co-Opetition-Revolution-Combines-Competition- Cooperation/dp/0385479506/ref=pd_sim_b_1
  26. References: People  John von Neumann  http://en.wikipedia.org/wiki/John_von_neumann  Thomas

    Schelling  http://en.wikipedia.org/wiki/Thomas_Schelling  John Forbes Nash  http://en.wikipedia.org/wiki/John_Forbes_Nash  John Harsanyi  http://en.wikipedia.org/wiki/John_Harsanyi
  27. Photo Credits  100 Dollar Bill Roll  http://www.flickr.com/photos/85473033@N00/3367543296 

    Pennies  http://flic.kr/p/6ucLDE  http://flic.kr/p/6u8BEa  Earth  http://flic.kr/p/9DTDXi  Dice  http://flic.kr/p/9g1aZc  Cards  http://flic.kr/p/4UwZc6  http://flic.kr/p/6FKnGu  http://flic.kr/p/4V67rx  Happy Hour  http://www.flickr.com/photos/beleaveme/3276175127/  Prison  http://flic.kr/p/38wBWq
  28. Other Ideas  Bounded Rationality  2-3 event horizon 

    Typing  Pooling or separating equilibria  Prisoner's Dilemma with an Arbiter  Tragedy of the Commons  Air pollution  Mass transit tickets  Overfishing  Volunteer's Dilemma  Witnessing a crime