ORF 307: Lecture 12. Linear Programming: Chapter 11: Game Theory

Similar documents
ORF 307 Lecture 3. Chapter 13, Section 1 Portfolio Optimization

ORF 307: Lecture 3. Linear Programming: Chapter 13, Section 1 Portfolio Optimization. Robert Vanderbei. February 13, 2016

LINEAR PROGRAMMING. Homework 7

ORF 307: Lecture 19. Linear Programming: Chapter 13, Section 2 Pricing American Options. Robert Vanderbei. May 1, 2018

Game Theory Tutorial 3 Answers

Outline for today. Stat155 Game Theory Lecture 13: General-Sum Games. General-sum games. General-sum games. Dominated pure strategies

Zero-sum games of two players. Zero-sum games of two players. Zero-sum games of two players. Zero-sum games of two players

TUFTS UNIVERSITY DEPARTMENT OF CIVIL AND ENVIRONMENTAL ENGINEERING ES 152 ENGINEERING SYSTEMS Spring Lesson 16 Introduction to Game Theory

Chapter 10: Mixed strategies Nash equilibria, reaction curves and the equality of payoffs theorem

6.896 Topics in Algorithmic Game Theory February 10, Lecture 3

Strategy Lines and Optimal Mixed Strategy for R

MAT 4250: Lecture 1 Eric Chung

m 11 m 12 Non-Zero Sum Games Matrix Form of Zero-Sum Games R&N Section 17.6

Yao s Minimax Principle

Using the Maximin Principle

Math 167: Mathematical Game Theory Instructor: Alpár R. Mészáros

Best counterstrategy for C

COS 511: Theoretical Machine Learning. Lecturer: Rob Schapire Lecture #24 Scribe: Jordan Ash May 1, 2014

Regret Minimization and Security Strategies

15.053/8 February 28, person 0-sum (or constant sum) game theory

ECE 586GT: Problem Set 1: Problems and Solutions Analysis of static games

1 Shapley-Shubik Model

Thursday, March 3

Comparative Study between Linear and Graphical Methods in Solving Optimization Problems

COMP331/557. Chapter 6: Optimisation in Finance: Cash-Flow. (Cornuejols & Tütüncü, Chapter 3)

Strategy -1- Strategy

CS711 Game Theory and Mechanism Design

ECE 586BH: Problem Set 5: Problems and Solutions Multistage games, including repeated games, with observed moves

CS 7180: Behavioral Modeling and Decision- making in AI

Iterated Dominance and Nash Equilibrium

Martingale Pricing Theory in Discrete-Time and Discrete-Space Models

(a) Describe the game in plain english and find its equivalent strategic form.

Stochastic Games and Bayesian Games

GAME THEORY. Game theory. The odds and evens game. Two person, zero sum game. Prototype example

Game Theory. Lecture Notes By Y. Narahari. Department of Computer Science and Automation Indian Institute of Science Bangalore, India October 2012

Sharpe-optimal SPDR portfolios

Commentary. CBOE Volatility Index (VIX) Brexit Election VIX

GAME THEORY. (Hillier & Lieberman Introduction to Operations Research, 8 th edition)

TTIC An Introduction to the Theory of Machine Learning. Learning and Game Theory. Avrim Blum 5/7/18, 5/9/18

Four Components Of A Successful Income Portfolio

The Defined Risk Strategy

56:171 Operations Research Midterm Exam Solutions October 22, 1993

Stochastic Programming and Financial Analysis IE447. Midterm Review. Dr. Ted Ralphs

Head Traders, Technical Contacts, Compliance Officers, Heads of ETF Trading, Structured Products Traders. Exchange-Traded Fund Symbol CUSIP #

6.254 : Game Theory with Engineering Applications Lecture 3: Strategic Form Games - Solution Concepts

Week 8: Basic concepts in game theory

S&P Day A/D Line

Case Study : Portfolio Theory

Outline for today. Stat155 Game Theory Lecture 19: Price of anarchy. Cooperative games. Price of anarchy. Price of anarchy

Solution to Tutorial 1

Game Theory. Lecture Notes By Y. Narahari. Department of Computer Science and Automation Indian Institute of Science Bangalore, India October 2012

Stochastic Games and Bayesian Games

Solution to Tutorial /2013 Semester I MA4264 Game Theory

Lecture 5: Iterative Combinatorial Auctions

Commentary. Forecasts usually tell us more about the forecaster than about the future. - Warren Buffett

MATH 210, PROBLEM SET 1 DUE IN LECTURE ON WEDNESDAY, JAN. 28

MATH 121 GAME THEORY REVIEW

Optimization in Finance

Introduction to game theory LECTURE 2

Commentary. Our greatest weakness lies in giving up. The most certain way to succeed is always to try just one more time.

Market Overview. Sector Overview

CSCI 1951-G Optimization Methods in Finance Part 00: Course Logistics Introduction to Finance Optimization Problems

Game Theory: Minimax, Maximin, and Iterated Removal Naima Hammoud

November 2006 LSE-CDAM

Econ 172A, W2002: Final Examination, Solutions

Commentary. Just because the river is quiet doesn't mean the crocodiles have left. Malay proverb

CHAPTER 14: REPEATED PRISONER S DILEMMA

Can we have no Nash Equilibria? Can you have more than one Nash Equilibrium? CS 430: Artificial Intelligence Game Theory II (Nash Equilibria)

Introduction to Industrial Organization Professor: Caixia Shen Fall 2014 Lecture Note 5 Games and Strategy (Ch. 4)

CMPSCI 240: Reasoning about Uncertainty

Algorithmic Game Theory (a primer) Depth Qualifying Exam for Ashish Rastogi (Ph.D. candidate)

Total Reward Stochastic Games and Sensitive Average Reward Strategies

Commentary. Things turn out best for the people who make the best of the way things turn out. - John Wooden

BRIEF INTRODUCTION TO GAME THEORY

The Assignment Problem

Commentary. Patience and perseverance have a magical effect before which difficulties disappear and obstacles vanish. - John Quincy Adams

Interactive Brokers Webcast. Options on ETFs. February 13, 2013 Presented by Russell Rhoads, CFA

Introduction to Game Theory

Best-Reply Sets. Jonathan Weinstein Washington University in St. Louis. This version: May 2015

Strategies and Nash Equilibrium. A Whirlwind Tour of Game Theory

56:171 Operations Research Midterm Examination Solutions PART ONE

Integer Programming Models

56:171 Operations Research Midterm Examination Solutions PART ONE

Game theory for. Leonardo Badia.

SCHOOL OF BUSINESS, ECONOMICS AND MANAGEMENT. BF360 Operations Research

Econ 172A - Slides from Lecture 7

February 23, An Application in Industrial Organization

Expectations & Randomization Normal Form Games Dominance Iterated Dominance. Normal Form Games & Dominance

Their opponent will play intelligently and wishes to maximize their own payoff.

Chapter 2 Linear programming... 2 Chapter 3 Simplex... 4 Chapter 4 Sensitivity Analysis and duality... 5 Chapter 5 Network... 8 Chapter 6 Integer

CS 331: Artificial Intelligence Game Theory I. Prisoner s Dilemma

Commentary. Without deviation from the norm, progress is not possible. Frank Zappa

( 0) ,...,S N ,S 2 ( 0)... S N S 2. N and a portfolio is created that way, the value of the portfolio at time 0 is: (0) N S N ( 1, ) +...

56:171 Operations Research Midterm Examination October 28, 1997 PART ONE

Lecture 5 Leadership and Reputation

Optimization Models in Financial Mathematics

Solutions of Bimatrix Coalitional Games

Math 135: Answers to Practice Problems

Robust Optimization Applied to a Currency Portfolio

Mixed Strategies. Samuel Alizon and Daniel Cownden February 4, 2009

Transcription:

ORF 307: Lecture 12 Linear Programming: Chapter 11: Game Theory Robert J. Vanderbei April 3, 2018 Slides last edited on April 3, 2018 http://www.princeton.edu/ rvdb

Game Theory John Nash = A Beautiful Mind 1

Game Theory The other John Nash 2

Rock-Paper-Scissors A two person game. Rules. At the count of three declare one of: Rock Paper Scissors Winner Selection. Identical selection is a draw. Otherwise: Rock dulls Scissors Paper covers Rock Scissors cuts Paper Check out Sam Kass version: Rock, Paper, Scissors, Lizard, Spock It was featured on The Big Bang Theory. 3

Payoff Matrix Payoffs are from row player to column player: A = R P S R P S 0 1 1 1 0 1 1 1 0 Note: Any deterministic strategy employed by either player can be defeated systematically by the other player. 4

Two-Person Zero-Sum Games Given: m n matrix A. Row player selects a strategy i {1,..., m}. Column player selects a strategy j {1,..., n}. Row player pays column player a ij dollars. Note: The rows of A represent deterministic strategies for row player, while columns of A represent deterministic strategies for column player. Deterministic strategies can be (and usually are) bad. 5

Randomized Strategies. Suppose row player picks i with probability y i. Suppose column player picks j with probability x j. Throughout, x = [ x 1 x 2 ] T x n and y = [ y 1 y 2 ] T y m will denote stochastic vectors: x j 0, j = 1, 2,..., n x j = 1 j y i 0, i = 1, 2,..., m y i = 1 i If row player uses random strategy y and column player uses x, then expected payoff from row player to column player is y i a ij x j = y T Ax i j 6

Column Player s Analysis Suppose column player were to adopt strategy x. Then, row player s best defense is to use strategy y that minimizes y T Ax: min y y T Ax And so column player should choose that x which maximizes these possibilities: max x min y y T Ax 7

Quiz What s the solution to this problem: minimize 3y 1 + 6y 2 + 2y 3 + 18y 4 + 7y 5 subject to: y 1 + y 2 + y 3 + y 4 + y 5 = 1 y i 0, i = 1, 2, 3, 4, 5 8

Solving Max-Min Problems as LPs Inner optimization is easy: min y y T Ax = min i e T i Ax (e i denotes the vector that s all zeros except for a one in the i-th position that is, deterministic strategy i). Note: Reduced a minimization over a continuum to one over a finite set. We have: max (min i x j = 1, j e T i Ax) x j 0, j = 1, 2,..., n. 9

Reduction to a Linear Programming Problem Introduce a scalar variable v representing the value of the inner minimization: max v v e T i Ax, i = 1, 2,..., m, x j = 1, j x j 0, j = 1, 2,..., n. Writing in pure matrix-vector notation: max v ve Ax 0 e T x = 1 x 0 (e without a subscript denotes the vector of all ones). 10

Finally, in Block Matrix Form [ ] T [ ] 0 x max 1 v [ A e e T 0 ] [ x v ] = [ 0 1 ] x 0 v free 11

Row Player s Perspective Similarly, row player seeks y attaining: min y max x y T Ax which is equivalent to: min u ue A T y 0 e T y = 1 y 0 12

Row Player s Problem in Block-Matrix Form [ ] T [ ] 0 y min 1 u [ A T e e T 0 ] [ y u ] = [ 0 1 ] y 0 u free Note: Row player s problem is dual to column player s: [ 0 max 1 ] T [ x v ] [ 0 min 1 ] T [ y u ] [ A e e T 0 ] [ x v ] = [ 0 1 ] [ A T e e T 0 ] [ y u ] = [ 0 1 ] x 0 v free y 0 u free 13

MiniMax Theorem Theorem. Let x denote column player s solution to her max min problem. Let y denote row player s solution to his min max problem. Then max x Proof. From Strong Duality Theorem, we have Also, y T Ax = min y y T Ax. u = v. v u = min i = max j e T i Ax = min y y T Ae j = max x y T Ax y T Ax QED 14

AMPL Model set ROWS; set COLS; param A {ROWS,COLS} default 0; var x{cols} >= 0; var v; maximize zot: v; subject to ineqs {i in ROWS}: sum{j in COLS} -A[i,j] * x[j] + v <= 0; subject to equal: sum{j in COLS} x[j] = 1; 15

AMPL Data data; set ROWS := P S R; set COLS := P S R; param A: P S R:= P 0 1-2 S -3 0 4 R 5-6 0 ; solve; printf {j in COLS}: " %3s %10.7f \n", j, 102*x[j]; printf {i in ROWS}: " %3s %10.7f \n", i, 102*ineqs[i]; printf: "Value = %10.7f \n", 102*v; 16

AMPL Output ampl gamethy.mod LOQO: optimal solution (12 iterations) primal objective -0.1568627451 dual objective -0.1568627451 P 40.0000000 S 36.0000000 R 26.0000000 P 62.0000000 S 27.0000000 R 13.0000000 Value = -16.0000000 17

Dual of Problems in General Form (Review) Consider: max c T x Ax = b x 0 Rewrite equality constraints as pairs of inequalities: max c T x Ax b Ax b x 0 Put into block-matrix form: [ max ct ] x A x [ A x 0 b b ] Dual is: [ ] T [ ] b y + min b y [ ] [ ] A T A T y + y Which is equivalent to: c y +, y 0 min b T (y + y ) A T (y + y ) c y +, y 0 Finally, letting y = y + y, we get min b T y A T y c y free. 18

Summary Equality constraints = free variables in dual. Inequality constraints = nonnegative variables in dual. Corollary: Free variables = equality constraints in dual. Nonnegative variables = inequality constraints in dual. 19

A Real-World Example As before, we can let let R t,j = S j (t)/s j (t 1) and view R as a payoff matrix in a game 20 between Fate and the Investor. The Ultra-Conservative Investor Consider again some historical investment data (S j (t)): 4 3.5 3 XLU-utilities XLB-materials XLI-industrials XLV-healthcare XLF-financial XLE-energy MDY-midcap XLK-technology XLY-discretionary XLP-staples QQQ SPY-S&P500 XLY QQQ XLV MDY XLK 2.5 XLI SPY XLP XLB Share Price 2 XLF XLU XLE 1.5 1 0.5 0 2009 2010 2011 2012 2013 2014 2015 2016 Date

Fate s Conspiracy The columns represent pure strategies for our conservative investor. The rows represent how history might repeat itself. Of course, for tomorrow, Fate won t just repeat a previous day s outcome but, rather, will present some mixture of these previous days. Likewise, the investor won t put all of her money into one asset. Instead she will put a certain fraction into each. Using this data in the game-theory ampl model, we get the following mixed-strategy percentages for Fate and for the investor. Investor s Optimal Asset Mix: XLP 98.4 XLU 1.6 Mean Old Fate s Mix: 2011-08-08 55.9 = Black Monday (2011) 2011-08-10 44.1 The value of the game is the investor s expected return, 96.2%, which is actually a loss of 3.8%. The data can be download from here: http://finance.yahoo.com/q/hp?s=xlu Here, xlu is just one of the funds of interest. 21

Starting From 2012... To Ignore Black Monday (2011) 2.4 2.2 2 XLU-utilities XLB-materials XLI-industrials XLV-healthcare XLF-financial XLE-energy MDY-midcap XLK-technology XLY-discretionary XLP-staples QQQ SPY-S&P500 XLV XLY XLF QQQ Share Price 1.8 1.6 1.4 MDY XLI SPY XLK XLP XLB XLU 1.2 XLE 1 0.8 2012 2012.5 2013 2013.5 2014 2014.5 2015 2015.5 Date 22

Fate s Conspiracy Investor s Optimal Asset Mix: XLK 75.5 XLV 15.9 XLU 6.2 XLB 2.2 XLI 0.2 Mean Old Fate s Mix: 2015-03-25 3.9 2014-04-10 1.7 2013-06-20 68.9 2012-11-07 13.9 2012-06-01 11.5 The value of the game is the investor s expected return, 97.7%, which is actually a loss of 2.3%. 23

Giving Fate Fewer Options Thousands seemed unfair How about 20... 1.04 1.02 XLU-utilities XLB-materials XLI-industrials XLV-healthcare XLF-financial XLE-energy MDY-midcap XLK-technology XLY-discretionary XLP-staples QQQ SPY-S&P500 XLV 1 XLU MDY Share Price 0.98 XLE XLY XLP XLF SPY 0.96 QQQ XLI XLK 0.94 XLB 0.92 0 2 4 6 8 10 12 14 16 18 20 Day in March 2015 24

Fate s Conspiracy Investor s Optimal Asset Mix: MDY 83.7 XLE 13.2 XLF 3.2 Mean Old Fate s Mix: 2015-03-25 11.5 2015-03-10 33.5 2015-03-06 55.0 The value of the game is the investor s expected return, 98.7%, which is actually a loss of 1.3%. 25