Mathematical finance and linear programming (optimization)



Similar documents
4.6 Linear Programming duality

1 Solving LPs: The Simplex Algorithm of George Dantzig

Linear Programming Notes V Problem Transformations

Practical Guide to the Simplex Method of Linear Programming

1 Introduction. Linear Programming. Questions. A general optimization problem is of the form: choose x to. max f(x) subject to x S. where.

LECTURE 5: DUALITY AND SENSITIVITY ANALYSIS. 1. Dual linear program 2. Duality theory 3. Sensitivity analysis 4. Dual simplex method

What is Linear Programming?

Proximal mapping via network optimization

Linear Programming: Chapter 11 Game Theory

EXCEL SOLVER TUTORIAL

Linear Programming. March 14, 2014

Inner Product Spaces

Linear Programming for Optimization. Mark A. Schulze, Ph.D. Perceptive Scientific Instruments, Inc.

IEOR 4404 Homework #2 Intro OR: Deterministic Models February 14, 2011 Prof. Jay Sethuraman Page 1 of 5. Homework #2

Linear Programming I

2.3 Convex Constrained Optimization Problems

3. Linear Programming and Polyhedral Combinatorics

Notes on Determinant

Introduction to Linear Programming (LP) Mathematical Programming (MP) Concept

International Doctoral School Algorithmic Decision Theory: MCDA and MOO

Numerical methods for American options

Two-Stage Stochastic Linear Programs

Lecture 5 Principal Minors and the Hessian

Nonlinear Programming Methods.S2 Quadratic Programming

Linear Programming in Matrix Form

Solving Systems of Linear Equations

6.207/14.15: Networks Lecture 15: Repeated Games and Cooperation

Linear Programming. Widget Factory Example. Linear Programming: Standard Form. Widget Factory Example: Continued.

Modern Optimization Methods for Big Data Problems MATH11146 The University of Edinburgh

Duality in General Programs. Ryan Tibshirani Convex Optimization /36-725

An interval linear programming contractor

Lecture 2: August 29. Linear Programming (part I)

Optimization in R n Introduction

Lecture 3. Linear Programming. 3B1B Optimization Michaelmas 2015 A. Zisserman. Extreme solutions. Simplex method. Interior point method

26 Linear Programming

24. The Branch and Bound Method

NOTES ON LINEAR TRANSFORMATIONS

160 CHAPTER 4. VECTOR SPACES

Advanced Lecture on Mathematical Science and Information Science I. Optimization in Finance

Continued Fractions and the Euclidean Algorithm

Duality of linear conic problems

Linear Programming. April 12, 2005

LECTURE: INTRO TO LINEAR PROGRAMMING AND THE SIMPLEX METHOD, KEVIN ROSS MARCH 31, 2005

1 Review of Least Squares Solutions to Overdetermined Systems

K 1 < K 2 = P (K 1 ) P (K 2 ) (6) This holds for both American and European Options.

Systems of Linear Equations

1.2 Solving a System of Linear Equations

Convex Programming Tools for Disjunctive Programs

Duality in Linear Programming

This exposition of linear programming

1 Norms and Vector Spaces

Chapter 6. Linear Programming: The Simplex Method. Introduction to the Big M Method. Section 4 Maximization and Minimization with Problem Constraints

THE FUNDAMENTAL THEOREM OF ARBITRAGE PRICING

ALMOST COMMON PRIORS 1. INTRODUCTION

THE DIMENSION OF A VECTOR SPACE

Solving Linear Programs

Lecture 3: Finding integer solutions to systems of linear equations

7 Gaussian Elimination and LU Factorization

Recovery of primal solutions from dual subgradient methods for mixed binary linear programming; a branch-and-bound approach

A Branch and Bound Algorithm for Solving the Binary Bi-level Linear Programming Problem

MATH APPLIED MATRIX THEORY

Inner product. Definition of inner product

Linear Algebra Notes for Marsden and Tromba Vector Calculus

6. Cholesky factorization

Chapter 4. Duality. 4.1 A Graphical Example

Math 215 HW #6 Solutions

Question 2: How do you solve a matrix equation using the matrix inverse?

Can linear programs solve NP-hard problems?

Several Views of Support Vector Machines

Support Vector Machines with Clustering for Training with Very Large Datasets

Equilibrium computation: Part 1

Some representability and duality results for convex mixed-integer programs.

MATH 304 Linear Algebra Lecture 18: Rank and nullity of a matrix.

Linear Algebra Notes

Online Adwords Allocation

BANACH AND HILBERT SPACE REVIEW

Definition and Properties of the Production Function: Lecture

Transportation Polytopes: a Twenty year Update

MATH10212 Linear Algebra. Systems of Linear Equations. Definition. An n-dimensional vector is a row or a column of n numbers (or letters): a 1.

10.2 ITERATIVE METHODS FOR SOLVING LINEAR SYSTEMS. The Jacobi Method

! Solve problem to optimality. ! Solve problem in poly-time. ! Solve arbitrary instances of the problem. #-approximation algorithm.

MA107 Precalculus Algebra Exam 2 Review Solutions

CHAPTER 9. Integer Programming

. P. 4.3 Basic feasible solutions and vertices of polyhedra. x 1. x 2

3. Evaluate the objective function at each vertex. Put the vertices into a table: Vertex P=3x+2y (0, 0) 0 min (0, 5) 10 (15, 0) 45 (12, 2) 40 Max

FRACTIONAL COLORINGS AND THE MYCIELSKI GRAPHS

Sensitivity Analysis 3.1 AN EXAMPLE FOR ANALYSIS

Row Echelon Form and Reduced Row Echelon Form

Arrangements And Duality

A short note on American option prices

MATRIX ALGEBRA AND SYSTEMS OF EQUATIONS. + + x 2. x n. a 11 a 12 a 1n b 1 a 21 a 22 a 2n b 2 a 31 a 32 a 3n b 3. a m1 a m2 a mn b m

LS.6 Solution Matrices

Solutions to Math 51 First Exam January 29, 2015

3. INNER PRODUCT SPACES

Module1. x y 800.

Largest Fixed-Aspect, Axis-Aligned Rectangle

Linear Programming: Theory and Applications

Linearly Independent Sets and Linearly Dependent Sets

5.1 Bipartite Matching

A numerically adaptive implementation of the simplex method

Transcription:

Mathematical finance and linear programming (optimization) Geir Dahl September 15, 2009 1 Introduction The purpose of this short note is to explain how linear programming (LP) (=linear optimization) may be used to solve two basic problems in mathematical finance concerning arbitrage and dominant trading strategies, respectively. We focus on the discrete one-step model. What we obtain are (i) new proofs based on LP duality, and (ii) an efficient computational approach to these problems. The idea here is to start with some natural LP problems describing the investors problem. This note supplements the presentation in [2]. (The proofs in [2], see (1.9) and (1.16), are related, but different.) Thanks to Kenneth H. Karlsen for some valuable suggestions. 2 The setup Recall that LP is to maximize a linear function (in n variables) subject to linear constraints. These constraints may be linear equations and linear inequalities. A recommended book in LP is [3]. Notation K: number of states (scenarios), n: number of assets P =[p ij ]: payoff matrix of size K n where p ij is payoff under state i for asset j (this is S j (ω i) in Pliska s notation) h IR n : a trading strategy, we buy h j units of asset j x IR K : the payoff, i.e., outcome of some trading strategy under different states, e, I: the zero vector (or zero matrix), the all ones vector e and the identity matrix I (of suitable size). We treat vectors as column vectors. Nul(A), Col(A): nullspace and columnspace of a matrix A Center of Mathematics for Applications, Dept. of Informatics and Dept. of Mathematics, University of slo, P.. Box 1053 Blindern, N-0316 slo, Norway. geird@math.uio.no 1

3 Warming up: a crash course in LP The LP duality theorem (see [1], [3]) says in general that ( ) max{c T x : Ax b} = min{b T y : A T y = c, y } where A is a matrix, b, c are vectors (of suitable dimension) and means componentwise inequality (holds for all components). We call the maximization problem the primal problem and the minimization problem is the dual problem. Actually, for the equality ( ) to hold one needs only assume that the primal problem is feasible; this means that there is an x satisfying Ax b. Then there are only two possibilities: (i) the maximum is finite: then both problems have an optimal solution, and the corresponding optimal values are equal (ii) the maximum (actually, supremum) is, and then the dual has no feasible solution (i.e., no y satisfies A T y = c, y ). Note the special case where b = : then the function to be minimized in the dual is constant equal to 0. Thus, the problem is simply to determine if there are any feasible solutions to the dual. This special case will be useful below. 4 The results A risk-neutral probability measure is a vector y with positive components that sum to 1 such that the dot product of y and each column of P is zero (meaning that expected payoff of each asset is zero). The first LP model: find an arbitrage Consider the LP problem max subject to K i=1 x i x = Ph x Here x = Ph relates payoff x and trading strategy h; the linear equation says that x is a linear combination of the columns in P. The nonnegativity of x is very desirable: we will not loose money under any state. The objective (goal) is to maximize the sum of the payoffs, where we sum over all states. It should be a reasonable goal and can (if you like) be given a probabilistic interpretation. The main point is that it reflects that we look for positive payoffs for at least one scenario, i.e., an arbitrage possibility. So: an arbitrage exists if and only if the optimal value of the LP problem (1) is positive. Since LP problems can be solved very fast using different algorithms (e.g. the simplex algorithm), we can find an arbitrage, or prove that it does not exist, efficiently, even if K and n are very large. For instance, even with some thousands of assets and several hundreds of states it should only take a couple of seconds to solve the problem assuming you have a good LP code. Moreover, we may obtain an important theoretical result from this LP viewpoint. (1) 2

Theorem 1 (The arbitrage theorem) There is no arbitrage if and only if there is a risk-neutral probability measure. Proof. We prove the arbitrage theorem by applying duality theory to our LP above, and doing some matrix calculations for partitioned matrices. You may check that the LP problem (1) may be written in the form of the primal problem in ( ) as follows: [ ] T [ ] h max { : P I [ ] P I h } e x x I Here we used that Ph = x is equivalent to Ph x, Ph+ x. The dual of this problem (confer ( )) is min { T y 1 y 2 y 3 : [ P T P T I I I ] y 1 y 2 y 3 [ = e ],y 1,y 2,y 3 } Note that the objective function is simply 0! By using the substitution y = y 2 y 1, z = y 3 the dual problem becomes min {0 :P T y =, y = z + e, z }. Check this! This problem has a feasible solution y if and only if there is a vector y Nul(P T ) = Col(P ) such that y e. This, again, must be equivalent to the existence of an y Nul(P T ) with y i > 0(i K) and i y i = 1; this follows by suitable scaling of y. Summing up, we have verified that the following statements are equivalent: there is no arbitrage the optimal value in the LP problem (1) is zero there is a strictly positive vector y Nul(P T ) with i y i = 1; this is precisely a risk-neutral probability measure. So the proof is complete. We now turn to the second theorem; it concerns dominant trading strategies. The second LP model: find a dominant trading strategy This problem is very similar to (1) but it contains an extra variable ɛ IR: max subject to ɛ x = Ph x ɛe The final constraints means that x j ɛ for each j n, and the goal is to find a trading strategy which maximizes the minimum outcome (the optimal ɛ)! Note that (2) has feasible solutions (e.g., the zero vector). (2) 3

So: a dominant trading strategy exists if and only if the optimal value of the LP problem (2) is positive. Recall that a linear pricing measure is just like a risk-neutral probability measure, except that some probabilities may be zero. Theorem 2 (Dominant trading strategy/linear pricing measure) There is no dominant dominant trading strategy if and only if there is a linear pricing measure. Proof. The proof is very similar to the previous one. First, we write the LP problem (2) in the form of the primal problem in ( ): T h P I h max { x : P I x } 1 ɛ I e ɛ The dual of this problem is (see ( ) and do a calculation as before): min{0 :P T (y 1 y 2 )=0, y 1 + y 2 y 3 =0,e T y 3 =1,y 1,y 2,y 3 }. With the substitution y = y 2 y 1 and π = y 3 we see that we can eliminate y (!), and the problem simplifies to min{0 :P T π =0, j π j =1,π }. A feasible solution in this problem is precisely a linear pricing measure. This proves that the following statements are equivalent: there exists a linear pricing measure the optimal value in the LP problem (2) is zero there is no dominant trading strategy That s it! Final comments: 1. Using LP problems (1) and (2) you may solve efficiently arbitrage and dominant trading strategy problems. Note that any (good) LP solver solves both the primal and the dual. So, e.g., if a linear pricing measure exist, you will get it! 2. The LP approach above may be extended in different ways. For instance, in (1), you may add the constraint h (no short-selling), and add an upper bound on the components of h, or further linear constraints on the payoff vector x. Well, the problem then gets more complex, but it is still an LP problem, and should be easy to solve computationally. 3. Perhaps this motivates you to learn more about LP. Take a look at the course page for INF-MAT3370 Linear optimization http://www.uio.no/studier/emner/matnat/ifi/inf-mat3370/v09/ There is also a Master course (INF-MAT5360) where you can learn more about optimization and convexity (see [1]), both useful areas for mathematical finance. 4

References [1] G. Dahl. An Introduction to Convexity. Lecture notes, University of slo, 2009 (may be downloaded from http://folk.uio.no/geird/) [2] S.R. Pliska. Introduction to Mathematical Finance: Discrete Time Models. Blackwell Publishers, 1997. [3] R. Vanderbei. Linear programming: foundations and extensions. Springer, Third edition, 2008. 5