SlideShare a Scribd company logo
1 of 50
Download to read offline
Mixed Integer Conditional Value-at-Risk Portfolio 
Optimization 
Multi Disciplinary Approaches 
M.Sc Defense 
Ahmed Ashmawy 
German University in Cairo 
September 2011
Outline 
Introduction 
Background 
Problem Description 
System 
Hybrid CP/LP Approaches 
Greedy Approach
Introduction 
I Stocks 
I Financial security (instrument) 
I Raise Capital to Corporations 
I Investment for traders 
I Liquidity 
I Pro
t = Sell price - Buy price 
An investor wants to invest $X in the stock market such that 
s1; s2; s3; s4 are the stocks available to choose from and their 
corresponding current prices are c1; c2; c3; c4 respectively. 
Question: 
How many shares should the investor buy per stock ?
Introduction 
I Decision criteria ? 
I Account for uncertainties (e.g: news, mergers, weather, prices, 
. . . etc) 
I Risk Measures: SDEV, MAD, VaR, CVaR, . . . etc 
I Stock performance measure ? 
I Monte-carlo 
I Historical simulation 
I . . . etc 
I Single investment vs. Multiple investments ? 
I Diversifying risk across a portfolio of stock investments (i.e: 
c1w1 + c2w2 + c3w3) 
I Number of solutions ? 
I Searching for the optimal combination of weights with respect 
to reward and/or risk
Introduction 
I Problems 
- Modeling weight variables as real variables 
- Hardness of solving mixed integer optimization problems 
- Gap between Linear & Integer optimization 
- Mislead investor by inaccurate solutions 
I Focus 
+ Model weight variables as integer variables 
+ Improving the time performance of the mixed integer 
optimization problem
Outline 
Introduction 
Background 
Integer Programming 
Value-at-Risk 
Conditional Value-at-Risk 
Portfolio Optimization 
Problem Description 
System 
Hybrid CP/LP Approaches 
Greedy Approach
Integer Programming 
De
nition (IP): An integer programming problem is an LP problem 
with integrality constraint on all variables 
De
nition (MIP): A mixed integer programming problem is an LP 
problem with integrality constraints on some variables 
Example 
v1  0 
v2  0 
v1 + v2  2 
v2  v1  1 
integers(v1; v2)
Value-at-Risk 
What is the amount of loss  such that the maximum loss of an 
investment is less than or equal to  with probability  ? 
Loss Frequency 
1% 16 
2% 18 
3% 20 
4% 22 
5% 17 
. . . . . . 
32% 7 
33% 6 
. . . . . . 
43% 2 
44% 1 
45% 1
Value-at-Risk 
What is the amount of loss  such that the maximum loss of an 
investment is less than or equal to  with probability  = 0.95 ? 
Loss Frequency 
1% 16 
2% 18 
3% 20 
4% 22 
5% 17 
. . . . . . 
32% 7 
33% 6 
. . . . . . 
43% 2 
44% 1 
45% 1
Value-at-Risk 
Let f (x, y) be the loss associated with the decision vector x and 
the vector y. 
The vector x 2 Rn can be interpreted as the investment portfolio 
and the vector y 2 Rm as the uncertainties involved in the 
portfolio (e.g: prices, weather, . . . etc). 
	(x; ) = 
Z 
f (x,y) 
p(y)d(y) (2.1)
Value-at-Risk 
De
nition (VaR): The Value-at-risk () is the lowest amount  
with con
dence level . 
 = minf 2 R : 	(x; )  g (2.2)
Conditional Value-at-Risk 
An alternative coherent risk measure that address the question: 
What is the expected loss incase the worst case 
with probability 1 -  occurred ? 
! Mean of the -tail distribution of loss
Conditional Value-at-Risk 
De
nition (CVaR): Rockafellar and Uryasev de
ned Conditional 
Value-at-Risk as the conditional expectation of the 
loss associated with x relative to that loss being 
greater than or equal to (x) 
(x) = E[f (x; y)jf (x; y)  (x)] (2.3) 
=  + (1 + )1 
XJ 
j=1 
j [f (x; yj )  ]+ (2.4) 
J and [t]+ = maxft,0g 
where j = 1
Conditional Value-at-Risk 
I Features 
I Accounts for risk beyond VaR 
I Convex function 
I Easy to optimize numerically 
I Coherent risk measure
Outline 
Introduction 
Background 
Problem Description 
System 
Hybrid CP/LP Approaches 
Greedy Approach
Problem Description 
I Let x0 = (x0 
1 ; x0 
2 ; :::; x0 
n )T be the number of shares of each 
stock in the initial portfolio, and let x = (x1; x2; :::; xn)T be 
the number of shares in the optimal portfolio 
I The current prices for the stocks are given by 
q = (q1; q2; :::; qn)T . The product qT x0 is thus the investor's 
capital (the initial portfolio value) 
I We follow a historical simulation scheme by using historical 
returns over a certain period of time such that yij = qi 
pi ;tj+t 
pi ;tj
Problem Description 
f (x; y) = yT x + qT x0 
(x) =  + (1 + )1 
XJ 
j=1 
j [f (x; yj )  ]+ 
J and [t]+ = maxft,0g 
where j = 1 
I Risk tolerance percentage (!) is a percentage of the initial 
portfolio value qT x0 allowed for risk exposure 
 + (1 + )1 
XJ 
j=1 
jzj  ! 
Xn 
k=1 
qkx0 
k (3.1) 
zj  
Xn 
i=1 
(yijxi + qi x0 
i )  ; zj  0; j = 1; :::; J (3.2)
Problem Description 
I Max value allowed per stock 
qixi  vi 
Xn 
k=1 
qkxk; i = 1; :::; n (3.3) 
I Reward 
R(x) = E[yT x] = 
Xn 
i=1 
E[yi ]xi where E[yi ] = 
1 
J 
XJ 
j=1 
yij (3.4) 
I Minimum reward rate 
Xn 
i=1 
E[yi ]xi   
Xn 
k=1 
qkx0 
k ; i = 1; :::; n (3.5)
Problem Description 
minfR(x); (x); (x)  R(x)g 
 + (1 + )1 
XJ 
j=1 
jzj  ! 
Xn 
k=1 
qkx0 
k 
zj  
Xn 
i=1 
(yijxi+qi x0 
i )  ; zj  0 
qixi  vi 
Xn 
k=1 
qkxk 
Xn 
i=1 
E[yi ]xi  
Xn 
k=1 
qkx0 
k 
xi  0; integer(xi)
Outline 
Introduction 
Background 
Problem Description 
System 
Hybrid CP/LP Approaches 
Greedy Approach
System
Outline 
Introduction 
Background 
Problem Description 
System 
Hybrid CP/LP Approaches 
Hybrid Models 
Proposed Constraints 
Sequential Hybrid Model 
Integrated Hybrid Model 
Greedy Approach
Hybrid Models 
I Hybridization is the process of solving problems using multiple 
solvers that co-operate together 
I Why use multiple solvers ? 
I Dierent solvers/algorithms suit dierent types of problems 
I Solvers complement each other
Hybrid Models 
CP 
+ Rich set of constraints 
+ Tackle highly combinatorial problems 
+ Inference mechanism 
- Optimization 
- Large scale 
LP 
+ Large scale 
+ Optimization 
- Linear constraints only 
- reals
Proposed Constraints 
I Shares Constraint 
Xn 
i=1 
qixi  Capital (5.1) 
I Max Value Constraint 
qixi  vi 
Xn 
k=1 
qkxk (5.2) 
I Min Reward Rate Constraint 
Xn 
i=1 
E[yi ]xi   
Xn 
k=1 
qkx0 
k (5.3)
Sequential Hybrid Model 
I Prune the variable domains using constraint reasoning and 
then invoke the external branch  cut solver using the synced 
bounds.
Sequential Hybrid Model 
Figure: Sequential Hybrid Model Performance, 30 Scenarios
Integrated Hybrid Model 
I Branch and Bound algorithm 
I Co-operating ic and LP solver 
I Nearest integer
rst heuristic 
I Synchronized shared variables
Integrated Hybrid Model 
I Slow Convergence
Outline 
Introduction 
Background 
Problem Description 
System 
Hybrid CP/LP Approaches 
Greedy Approach
Greedy Approach: Overview 
I Motivation 
I Complex mixed integer optimization problem 
I Abandon proof of optimality 
I Seek near optimum 
I Idea 
I Utilize the sparse nature that portfolio optimization problems 
exhibit to improve the time performance.
Greedy Approach: Idea
Greedy Approach: Notations 
Stock sets I Relaxed stock set: The stock set considered in 
the relaxed problem 
I Proposed stock set: The stock set extracted 
from the relaxed solution having relaxed weight 
values greater than zero 
I Integer stock set: The stock set considered in 
the mixed integer problem 
Termination Condition is reached if the LP solver fail to contribute 
to the mixed integer objective function cost (i.e: 2 
equal subsequent iterations)
Greedy Approach: Algorithm 
Algorithm 1 
1: L   U 
2: Iy, Wy, R, V    
3: Cy 
int , C 
lin    
4: repeat 
5: tmp   Cy 
int 
6: L, C 
lin  solveLP(Q; Y, OCj;;!;;, L) 
7: L   L n L 
8: Iy   Iy [ L 
9: Cy 
int , Wy, R, V   solveMIP(Q; Y, OCj;;!;;, Iy) 
10: until Cy 
int = tmp or C 
lin =
Greedy Approach: Example 
Line L Iy tmp Cy 
int C 
lin 
1-4 f1,2,3,4,5,6g     
6 f1,2,3,4,5,6g    125.32 
7 f2,4,5,6g    125.32 
8 f2,4,5,6g f1,3g   125.32 
9 f2,4,5,6g f1,3g  121.22 125.32 
10 f2,4,5,6g f1,3g  121.22 125.32 
5 f2,4,5,6g f1,3g 121.22 121.22 125.32 
6 f2,4,5,6g f1,3g 121.22 121.22 57.32 
7 f2,4,6g f1,3g 121.22 121.22 57.32 
8 f2,4,6g f1,3,5g 121.22 121.22 57.32 
9 f2,4,6g f1,3,5g 121.22 121.22 57.32 
10 f2,4,6g f1,3,5g 121.22 121.22 57.32
Greedy Approach: Properties 
Li 
 Lj 
=  if i6= j (6.1) 
[i 
k=0 
Lk 
 Iy (6.2) 
C 
lin;i op C 
lin;i+1 (6.3) 
Cy 
int;i+1 op Cy 
int;i (6.4) 
op = 
( 
 if min 
 if max
Greedy Approach: Experiment Parameters 
# Scenarios 30 
# Stocks 500, 1000, 2000, 5000, 7000, 9000 
# Variables 1000, 2000, 4000, 10000, 14000, 18000 
Models IPg , IPbc , IPr 
Optimized measure Both 
Capital 10,000 
Con
dence 95% 
Risk tolerance 3% 
Minimum reward 100% 
Maximum value 20% 
Period From 2008-01-01 till 2008-07-29 
Table: Experiment Parameters
Greedy Approach: Time Performance 
Figure: Time Comparison between IPg , IPbc and IPr , Maximizing both 
reward and CVaR, 30 Scenarios
Greedy Approach: Share Distribution 
Ticker IPbc IPr IPg 
0606 360 360 360 
0990 991 993 991 
502 4347 4348 4347 
5HT 176 178 176 
5IH 631 629 631 
ADK.W 876 893 875 
ADL 8895 9103 8906 
AOM 85830 86986 85809 
ARW X X 6 
ARX 5853 5298 5853 
B08 109 110 109 
B18 1 X 4 
CII 91 71 91 
CMO 1657 1680 1657 
E3S 22 25 22 
ERNO 11193 1142 11202 
128W 99 X 71 
L09 2342 2364 2342 
MMZ 2 X X 
Table: Share Distribution, 7000 Stocks
Greedy Approach: Solution Quality 
Figure: Objective function cost dierence between IPg and IPbc , 
Maximizing both reward and CVaR, 30 Scenarios
Greedy Approach: Ecient Frontier 
Figure: IPbc and IPg Ecient frontiers, 9000 Stocks, 30 Scenarios

More Related Content

What's hot

Risk and Risk Aversion FM
Risk and Risk Aversion FMRisk and Risk Aversion FM
Risk and Risk Aversion FMFellowBuddy.com
 
Intro to Quantitative Investment (Lecture 6 of 6)
Intro to Quantitative Investment (Lecture 6 of 6)Intro to Quantitative Investment (Lecture 6 of 6)
Intro to Quantitative Investment (Lecture 6 of 6)Adrian Aley
 
Amazon_Logistic_Abbey_Chaver_Ben_LeRoy
Amazon_Logistic_Abbey_Chaver_Ben_LeRoyAmazon_Logistic_Abbey_Chaver_Ben_LeRoy
Amazon_Logistic_Abbey_Chaver_Ben_LeRoyBenjamin LeRoy
 
Black-Scholes overview
Black-Scholes overviewBlack-Scholes overview
Black-Scholes overviewInon Sharony
 
AML_030607.ppt
AML_030607.pptAML_030607.ppt
AML_030607.pptbutest
 
Intro to Quantitative Investment (Lecture 1 of 6)
Intro to Quantitative Investment (Lecture 1 of 6)Intro to Quantitative Investment (Lecture 1 of 6)
Intro to Quantitative Investment (Lecture 1 of 6)Adrian Aley
 
4 greedy methodnew
4 greedy methodnew4 greedy methodnew
4 greedy methodnewabhinav108
 
A Maximum Entropy Approach to the Loss Data Aggregation Problem
A Maximum Entropy Approach to the Loss Data Aggregation ProblemA Maximum Entropy Approach to the Loss Data Aggregation Problem
A Maximum Entropy Approach to the Loss Data Aggregation ProblemErika G. G.
 
Value of options presentation
Value of options presentationValue of options presentation
Value of options presentationTrevor Ruwa
 
Amazon_Collider_Project
Amazon_Collider_ProjectAmazon_Collider_Project
Amazon_Collider_ProjectAbbey Chaver
 
Reoptimization techniques for solving hard problems
Reoptimization techniques for solving hard problemsReoptimization techniques for solving hard problems
Reoptimization techniques for solving hard problemsJhoirene Clemente
 
Intro to Quant Trading Strategies (Lecture 8 of 10)
Intro to Quant Trading Strategies (Lecture 8 of 10)Intro to Quant Trading Strategies (Lecture 8 of 10)
Intro to Quant Trading Strategies (Lecture 8 of 10)Adrian Aley
 
Integer Linear Programming
Integer Linear ProgrammingInteger Linear Programming
Integer Linear ProgrammingSukhpalRamanand
 
Intro to Quant Trading Strategies (Lecture 10 of 10)
Intro to Quant Trading Strategies (Lecture 10 of 10)Intro to Quant Trading Strategies (Lecture 10 of 10)
Intro to Quant Trading Strategies (Lecture 10 of 10)Adrian Aley
 
5.1 greedyyy 02
5.1 greedyyy 025.1 greedyyy 02
5.1 greedyyy 02Krish_ver2
 
Intro to Quant Trading Strategies (Lecture 1 of 10)
Intro to Quant Trading Strategies (Lecture 1 of 10)Intro to Quant Trading Strategies (Lecture 1 of 10)
Intro to Quant Trading Strategies (Lecture 1 of 10)Adrian Aley
 
Intro to Quant Trading Strategies (Lecture 4 of 10)
Intro to Quant Trading Strategies (Lecture 4 of 10)Intro to Quant Trading Strategies (Lecture 4 of 10)
Intro to Quant Trading Strategies (Lecture 4 of 10)Adrian Aley
 

What's hot (20)

Risk and Risk Aversion FM
Risk and Risk Aversion FMRisk and Risk Aversion FM
Risk and Risk Aversion FM
 
Dias Da Cruz Steve - Seminar
Dias Da Cruz Steve - SeminarDias Da Cruz Steve - Seminar
Dias Da Cruz Steve - Seminar
 
Intro to Quantitative Investment (Lecture 6 of 6)
Intro to Quantitative Investment (Lecture 6 of 6)Intro to Quantitative Investment (Lecture 6 of 6)
Intro to Quantitative Investment (Lecture 6 of 6)
 
Amazon_Logistic_Abbey_Chaver_Ben_LeRoy
Amazon_Logistic_Abbey_Chaver_Ben_LeRoyAmazon_Logistic_Abbey_Chaver_Ben_LeRoy
Amazon_Logistic_Abbey_Chaver_Ben_LeRoy
 
Black-Scholes overview
Black-Scholes overviewBlack-Scholes overview
Black-Scholes overview
 
12 Greeddy Method
12 Greeddy Method12 Greeddy Method
12 Greeddy Method
 
AML_030607.ppt
AML_030607.pptAML_030607.ppt
AML_030607.ppt
 
Intro to Quantitative Investment (Lecture 1 of 6)
Intro to Quantitative Investment (Lecture 1 of 6)Intro to Quantitative Investment (Lecture 1 of 6)
Intro to Quantitative Investment (Lecture 1 of 6)
 
4 greedy methodnew
4 greedy methodnew4 greedy methodnew
4 greedy methodnew
 
A Maximum Entropy Approach to the Loss Data Aggregation Problem
A Maximum Entropy Approach to the Loss Data Aggregation ProblemA Maximum Entropy Approach to the Loss Data Aggregation Problem
A Maximum Entropy Approach to the Loss Data Aggregation Problem
 
Value of options presentation
Value of options presentationValue of options presentation
Value of options presentation
 
Amazon_Collider_Project
Amazon_Collider_ProjectAmazon_Collider_Project
Amazon_Collider_Project
 
Reoptimization techniques for solving hard problems
Reoptimization techniques for solving hard problemsReoptimization techniques for solving hard problems
Reoptimization techniques for solving hard problems
 
Intro to Quant Trading Strategies (Lecture 8 of 10)
Intro to Quant Trading Strategies (Lecture 8 of 10)Intro to Quant Trading Strategies (Lecture 8 of 10)
Intro to Quant Trading Strategies (Lecture 8 of 10)
 
Integer Linear Programming
Integer Linear ProgrammingInteger Linear Programming
Integer Linear Programming
 
Intro to Quant Trading Strategies (Lecture 10 of 10)
Intro to Quant Trading Strategies (Lecture 10 of 10)Intro to Quant Trading Strategies (Lecture 10 of 10)
Intro to Quant Trading Strategies (Lecture 10 of 10)
 
5.1 greedyyy 02
5.1 greedyyy 025.1 greedyyy 02
5.1 greedyyy 02
 
Pertemuan 9 risk return trade off
Pertemuan 9 risk return trade offPertemuan 9 risk return trade off
Pertemuan 9 risk return trade off
 
Intro to Quant Trading Strategies (Lecture 1 of 10)
Intro to Quant Trading Strategies (Lecture 1 of 10)Intro to Quant Trading Strategies (Lecture 1 of 10)
Intro to Quant Trading Strategies (Lecture 1 of 10)
 
Intro to Quant Trading Strategies (Lecture 4 of 10)
Intro to Quant Trading Strategies (Lecture 4 of 10)Intro to Quant Trading Strategies (Lecture 4 of 10)
Intro to Quant Trading Strategies (Lecture 4 of 10)
 

Viewers also liked

CD Review -- The Mars Volta
CD Review -- The Mars VoltaCD Review -- The Mars Volta
CD Review -- The Mars VoltaMattFranj
 
Tarix 9 151_rustemov namiq rustam
Tarix 9 151_rustemov namiq rustamTarix 9 151_rustemov namiq rustam
Tarix 9 151_rustemov namiq rustammimio_azerbaijan
 
3i mind-open mind-web
3i mind-open mind-web3i mind-open mind-web
3i mind-open mind-webDeepDude
 
Παρουσίαση του ΕΚΕΦΕ ΔΗΜΟΚΡΙΤΟΣ από την συμμετοχή του στο MWC'15
Παρουσίαση του ΕΚΕΦΕ ΔΗΜΟΚΡΙΤΟΣ από την συμμετοχή του στο MWC'15Παρουσίαση του ΕΚΕΦΕ ΔΗΜΟΚΡΙΤΟΣ από την συμμετοχή του στο MWC'15
Παρουσίαση του ΕΚΕΦΕ ΔΗΜΟΚΡΙΤΟΣ από την συμμετοχή του στο MWC'15Starttech Ventures
 
Group – questions 4 5
Group – questions 4 5Group – questions 4 5
Group – questions 4 5thataussielad
 
Innovation in marketing by @bdr_Alsaad - الابداعات التسويقية من قبل بدر السعد
Innovation in marketing by @bdr_Alsaad - الابداعات التسويقية من قبل بدر السعدInnovation in marketing by @bdr_Alsaad - الابداعات التسويقية من قبل بدر السعد
Innovation in marketing by @bdr_Alsaad - الابداعات التسويقية من قبل بدر السعدNoura Alandas
 

Viewers also liked (16)

CD Review -- The Mars Volta
CD Review -- The Mars VoltaCD Review -- The Mars Volta
CD Review -- The Mars Volta
 
Tarix 9 151_rustemov namiq rustam
Tarix 9 151_rustemov namiq rustamTarix 9 151_rustemov namiq rustam
Tarix 9 151_rustemov namiq rustam
 
La vite
La viteLa vite
La vite
 
3i mind-open mind-web
3i mind-open mind-web3i mind-open mind-web
3i mind-open mind-web
 
Ergonomia
ErgonomiaErgonomia
Ergonomia
 
Resumo (1)
Resumo (1)Resumo (1)
Resumo (1)
 
Un amore che perdona il passato
Un amore che perdona il passatoUn amore che perdona il passato
Un amore che perdona il passato
 
School magazine analysis
School magazine analysisSchool magazine analysis
School magazine analysis
 
Παρουσίαση του ΕΚΕΦΕ ΔΗΜΟΚΡΙΤΟΣ από την συμμετοχή του στο MWC'15
Παρουσίαση του ΕΚΕΦΕ ΔΗΜΟΚΡΙΤΟΣ από την συμμετοχή του στο MWC'15Παρουσίαση του ΕΚΕΦΕ ΔΗΜΟΚΡΙΤΟΣ από την συμμετοχή του στο MWC'15
Παρουσίαση του ΕΚΕΦΕ ΔΗΜΟΚΡΙΤΟΣ από την συμμετοχή του στο MWC'15
 
Banner concept art
Banner concept art Banner concept art
Banner concept art
 
Steve
SteveSteve
Steve
 
Commercial 2 print
Commercial 2 printCommercial 2 print
Commercial 2 print
 
Group – questions 4 5
Group – questions 4 5Group – questions 4 5
Group – questions 4 5
 
Innovation in marketing by @bdr_Alsaad - الابداعات التسويقية من قبل بدر السعد
Innovation in marketing by @bdr_Alsaad - الابداعات التسويقية من قبل بدر السعدInnovation in marketing by @bdr_Alsaad - الابداعات التسويقية من قبل بدر السعد
Innovation in marketing by @bdr_Alsaad - الابداعات التسويقية من قبل بدر السعد
 
Harrison Ketek (OFAC)
Harrison Ketek (OFAC)Harrison Ketek (OFAC)
Harrison Ketek (OFAC)
 
Evaluation 6
Evaluation 6Evaluation 6
Evaluation 6
 

Similar to presentation

A few solvers for portfolio selection
A few solvers for portfolio selectionA few solvers for portfolio selection
A few solvers for portfolio selectionBogusz Jelinski
 
Fair valuation of participating life insurance contracts with jump risk
Fair valuation of participating life insurance contracts with jump riskFair valuation of participating life insurance contracts with jump risk
Fair valuation of participating life insurance contracts with jump riskAlex Kouam
 
Data-Driven Recommender Systems
Data-Driven Recommender SystemsData-Driven Recommender Systems
Data-Driven Recommender Systemsrecsysfr
 
Bayesian Experimental Design for Stochastic Kinetic Models
Bayesian Experimental Design for Stochastic Kinetic ModelsBayesian Experimental Design for Stochastic Kinetic Models
Bayesian Experimental Design for Stochastic Kinetic ModelsColin Gillespie
 
isabelle_webinar_jan..
isabelle_webinar_jan..isabelle_webinar_jan..
isabelle_webinar_jan..butest
 
Logistic Modeling with Applications to Marketing and Credit Risk in the Autom...
Logistic Modeling with Applications to Marketing and Credit Risk in the Autom...Logistic Modeling with Applications to Marketing and Credit Risk in the Autom...
Logistic Modeling with Applications to Marketing and Credit Risk in the Autom...Magnify Analytic Solutions
 
Biosight: Quantitative Methods for Policy Analysis - Introduction to GAMS, Li...
Biosight: Quantitative Methods for Policy Analysis - Introduction to GAMS, Li...Biosight: Quantitative Methods for Policy Analysis - Introduction to GAMS, Li...
Biosight: Quantitative Methods for Policy Analysis - Introduction to GAMS, Li...IFPRI-EPTD
 
Options Portfolio Selection
Options Portfolio SelectionOptions Portfolio Selection
Options Portfolio Selectionguasoni
 
H2O World - Consensus Optimization and Machine Learning - Stephen Boyd
H2O World - Consensus Optimization and Machine Learning - Stephen BoydH2O World - Consensus Optimization and Machine Learning - Stephen Boyd
H2O World - Consensus Optimization and Machine Learning - Stephen BoydSri Ambati
 
Adauctions
AdauctionsAdauctions
Adauctions超 刘
 
Research internship on optimal stochastic theory with financial application u...
Research internship on optimal stochastic theory with financial application u...Research internship on optimal stochastic theory with financial application u...
Research internship on optimal stochastic theory with financial application u...Asma Ben Slimene
 
Presentation on stochastic control problem with financial applications (Merto...
Presentation on stochastic control problem with financial applications (Merto...Presentation on stochastic control problem with financial applications (Merto...
Presentation on stochastic control problem with financial applications (Merto...Asma Ben Slimene
 
Time-Series Analysis on Multiperiodic Conditional Correlation by Sparse Covar...
Time-Series Analysis on Multiperiodic Conditional Correlation by Sparse Covar...Time-Series Analysis on Multiperiodic Conditional Correlation by Sparse Covar...
Time-Series Analysis on Multiperiodic Conditional Correlation by Sparse Covar...Michael Lie
 
A kernel-free particle method: Smile Problem Resolved
A kernel-free particle method: Smile Problem ResolvedA kernel-free particle method: Smile Problem Resolved
A kernel-free particle method: Smile Problem ResolvedKaiju Capital Management
 
S9 10 risk return contd (1)
S9  10 risk  return contd (1)S9  10 risk  return contd (1)
S9 10 risk return contd (1)nasheefa
 
Inria Tech Talk - La classification de données complexes avec MASSICCC
Inria Tech Talk - La classification de données complexes avec MASSICCCInria Tech Talk - La classification de données complexes avec MASSICCC
Inria Tech Talk - La classification de données complexes avec MASSICCCStéphanie Roger
 
Introduction
IntroductionIntroduction
Introductionbutest
 

Similar to presentation (20)

ML unit-1.pptx
ML unit-1.pptxML unit-1.pptx
ML unit-1.pptx
 
A few solvers for portfolio selection
A few solvers for portfolio selectionA few solvers for portfolio selection
A few solvers for portfolio selection
 
Fair valuation of participating life insurance contracts with jump risk
Fair valuation of participating life insurance contracts with jump riskFair valuation of participating life insurance contracts with jump risk
Fair valuation of participating life insurance contracts with jump risk
 
Data-Driven Recommender Systems
Data-Driven Recommender SystemsData-Driven Recommender Systems
Data-Driven Recommender Systems
 
Bayesian Experimental Design for Stochastic Kinetic Models
Bayesian Experimental Design for Stochastic Kinetic ModelsBayesian Experimental Design for Stochastic Kinetic Models
Bayesian Experimental Design for Stochastic Kinetic Models
 
Presentation socg
Presentation socgPresentation socg
Presentation socg
 
isabelle_webinar_jan..
isabelle_webinar_jan..isabelle_webinar_jan..
isabelle_webinar_jan..
 
Logistic Modeling with Applications to Marketing and Credit Risk in the Autom...
Logistic Modeling with Applications to Marketing and Credit Risk in the Autom...Logistic Modeling with Applications to Marketing and Credit Risk in the Autom...
Logistic Modeling with Applications to Marketing and Credit Risk in the Autom...
 
Slides ensae-2016-9
Slides ensae-2016-9Slides ensae-2016-9
Slides ensae-2016-9
 
Biosight: Quantitative Methods for Policy Analysis - Introduction to GAMS, Li...
Biosight: Quantitative Methods for Policy Analysis - Introduction to GAMS, Li...Biosight: Quantitative Methods for Policy Analysis - Introduction to GAMS, Li...
Biosight: Quantitative Methods for Policy Analysis - Introduction to GAMS, Li...
 
Options Portfolio Selection
Options Portfolio SelectionOptions Portfolio Selection
Options Portfolio Selection
 
H2O World - Consensus Optimization and Machine Learning - Stephen Boyd
H2O World - Consensus Optimization and Machine Learning - Stephen BoydH2O World - Consensus Optimization and Machine Learning - Stephen Boyd
H2O World - Consensus Optimization and Machine Learning - Stephen Boyd
 
Adauctions
AdauctionsAdauctions
Adauctions
 
Research internship on optimal stochastic theory with financial application u...
Research internship on optimal stochastic theory with financial application u...Research internship on optimal stochastic theory with financial application u...
Research internship on optimal stochastic theory with financial application u...
 
Presentation on stochastic control problem with financial applications (Merto...
Presentation on stochastic control problem with financial applications (Merto...Presentation on stochastic control problem with financial applications (Merto...
Presentation on stochastic control problem with financial applications (Merto...
 
Time-Series Analysis on Multiperiodic Conditional Correlation by Sparse Covar...
Time-Series Analysis on Multiperiodic Conditional Correlation by Sparse Covar...Time-Series Analysis on Multiperiodic Conditional Correlation by Sparse Covar...
Time-Series Analysis on Multiperiodic Conditional Correlation by Sparse Covar...
 
A kernel-free particle method: Smile Problem Resolved
A kernel-free particle method: Smile Problem ResolvedA kernel-free particle method: Smile Problem Resolved
A kernel-free particle method: Smile Problem Resolved
 
S9 10 risk return contd (1)
S9  10 risk  return contd (1)S9  10 risk  return contd (1)
S9 10 risk return contd (1)
 
Inria Tech Talk - La classification de données complexes avec MASSICCC
Inria Tech Talk - La classification de données complexes avec MASSICCCInria Tech Talk - La classification de données complexes avec MASSICCC
Inria Tech Talk - La classification de données complexes avec MASSICCC
 
Introduction
IntroductionIntroduction
Introduction
 

presentation

  • 1. Mixed Integer Conditional Value-at-Risk Portfolio Optimization Multi Disciplinary Approaches M.Sc Defense Ahmed Ashmawy German University in Cairo September 2011
  • 2. Outline Introduction Background Problem Description System Hybrid CP/LP Approaches Greedy Approach
  • 3. Introduction I Stocks I Financial security (instrument) I Raise Capital to Corporations I Investment for traders I Liquidity I Pro
  • 4. t = Sell price - Buy price An investor wants to invest $X in the stock market such that s1; s2; s3; s4 are the stocks available to choose from and their corresponding current prices are c1; c2; c3; c4 respectively. Question: How many shares should the investor buy per stock ?
  • 5. Introduction I Decision criteria ? I Account for uncertainties (e.g: news, mergers, weather, prices, . . . etc) I Risk Measures: SDEV, MAD, VaR, CVaR, . . . etc I Stock performance measure ? I Monte-carlo I Historical simulation I . . . etc I Single investment vs. Multiple investments ? I Diversifying risk across a portfolio of stock investments (i.e: c1w1 + c2w2 + c3w3) I Number of solutions ? I Searching for the optimal combination of weights with respect to reward and/or risk
  • 6. Introduction I Problems - Modeling weight variables as real variables - Hardness of solving mixed integer optimization problems - Gap between Linear & Integer optimization - Mislead investor by inaccurate solutions I Focus + Model weight variables as integer variables + Improving the time performance of the mixed integer optimization problem
  • 7. Outline Introduction Background Integer Programming Value-at-Risk Conditional Value-at-Risk Portfolio Optimization Problem Description System Hybrid CP/LP Approaches Greedy Approach
  • 9. nition (IP): An integer programming problem is an LP problem with integrality constraint on all variables De
  • 10. nition (MIP): A mixed integer programming problem is an LP problem with integrality constraints on some variables Example v1 0 v2 0 v1 + v2 2 v2 v1 1 integers(v1; v2)
  • 11. Value-at-Risk What is the amount of loss such that the maximum loss of an investment is less than or equal to with probability ? Loss Frequency 1% 16 2% 18 3% 20 4% 22 5% 17 . . . . . . 32% 7 33% 6 . . . . . . 43% 2 44% 1 45% 1
  • 12. Value-at-Risk What is the amount of loss such that the maximum loss of an investment is less than or equal to with probability = 0.95 ? Loss Frequency 1% 16 2% 18 3% 20 4% 22 5% 17 . . . . . . 32% 7 33% 6 . . . . . . 43% 2 44% 1 45% 1
  • 13. Value-at-Risk Let f (x, y) be the loss associated with the decision vector x and the vector y. The vector x 2 Rn can be interpreted as the investment portfolio and the vector y 2 Rm as the uncertainties involved in the portfolio (e.g: prices, weather, . . . etc). (x; ) = Z f (x,y) p(y)d(y) (2.1)
  • 15. nition (VaR): The Value-at-risk () is the lowest amount with con
  • 16. dence level . = minf 2 R : (x; ) g (2.2)
  • 17. Conditional Value-at-Risk An alternative coherent risk measure that address the question: What is the expected loss incase the worst case with probability 1 - occurred ? ! Mean of the -tail distribution of loss
  • 19. nition (CVaR): Rockafellar and Uryasev de
  • 20. ned Conditional Value-at-Risk as the conditional expectation of the loss associated with x relative to that loss being greater than or equal to (x) (x) = E[f (x; y)jf (x; y) (x)] (2.3) = + (1 + )1 XJ j=1 j [f (x; yj ) ]+ (2.4) J and [t]+ = maxft,0g where j = 1
  • 21. Conditional Value-at-Risk I Features I Accounts for risk beyond VaR I Convex function I Easy to optimize numerically I Coherent risk measure
  • 22. Outline Introduction Background Problem Description System Hybrid CP/LP Approaches Greedy Approach
  • 23. Problem Description I Let x0 = (x0 1 ; x0 2 ; :::; x0 n )T be the number of shares of each stock in the initial portfolio, and let x = (x1; x2; :::; xn)T be the number of shares in the optimal portfolio I The current prices for the stocks are given by q = (q1; q2; :::; qn)T . The product qT x0 is thus the investor's capital (the initial portfolio value) I We follow a historical simulation scheme by using historical returns over a certain period of time such that yij = qi pi ;tj+t pi ;tj
  • 24. Problem Description f (x; y) = yT x + qT x0 (x) = + (1 + )1 XJ j=1 j [f (x; yj ) ]+ J and [t]+ = maxft,0g where j = 1 I Risk tolerance percentage (!) is a percentage of the initial portfolio value qT x0 allowed for risk exposure + (1 + )1 XJ j=1 jzj ! Xn k=1 qkx0 k (3.1) zj Xn i=1 (yijxi + qi x0 i ) ; zj 0; j = 1; :::; J (3.2)
  • 25. Problem Description I Max value allowed per stock qixi vi Xn k=1 qkxk; i = 1; :::; n (3.3) I Reward R(x) = E[yT x] = Xn i=1 E[yi ]xi where E[yi ] = 1 J XJ j=1 yij (3.4) I Minimum reward rate Xn i=1 E[yi ]xi Xn k=1 qkx0 k ; i = 1; :::; n (3.5)
  • 26. Problem Description minfR(x); (x); (x) R(x)g + (1 + )1 XJ j=1 jzj ! Xn k=1 qkx0 k zj Xn i=1 (yijxi+qi x0 i ) ; zj 0 qixi vi Xn k=1 qkxk Xn i=1 E[yi ]xi Xn k=1 qkx0 k xi 0; integer(xi)
  • 27. Outline Introduction Background Problem Description System Hybrid CP/LP Approaches Greedy Approach
  • 29. Outline Introduction Background Problem Description System Hybrid CP/LP Approaches Hybrid Models Proposed Constraints Sequential Hybrid Model Integrated Hybrid Model Greedy Approach
  • 30. Hybrid Models I Hybridization is the process of solving problems using multiple solvers that co-operate together I Why use multiple solvers ? I Dierent solvers/algorithms suit dierent types of problems I Solvers complement each other
  • 31. Hybrid Models CP + Rich set of constraints + Tackle highly combinatorial problems + Inference mechanism - Optimization - Large scale LP + Large scale + Optimization - Linear constraints only - reals
  • 32. Proposed Constraints I Shares Constraint Xn i=1 qixi Capital (5.1) I Max Value Constraint qixi vi Xn k=1 qkxk (5.2) I Min Reward Rate Constraint Xn i=1 E[yi ]xi Xn k=1 qkx0 k (5.3)
  • 33. Sequential Hybrid Model I Prune the variable domains using constraint reasoning and then invoke the external branch cut solver using the synced bounds.
  • 34. Sequential Hybrid Model Figure: Sequential Hybrid Model Performance, 30 Scenarios
  • 35. Integrated Hybrid Model I Branch and Bound algorithm I Co-operating ic and LP solver I Nearest integer
  • 36. rst heuristic I Synchronized shared variables
  • 37. Integrated Hybrid Model I Slow Convergence
  • 38. Outline Introduction Background Problem Description System Hybrid CP/LP Approaches Greedy Approach
  • 39. Greedy Approach: Overview I Motivation I Complex mixed integer optimization problem I Abandon proof of optimality I Seek near optimum I Idea I Utilize the sparse nature that portfolio optimization problems exhibit to improve the time performance.
  • 41. Greedy Approach: Notations Stock sets I Relaxed stock set: The stock set considered in the relaxed problem I Proposed stock set: The stock set extracted from the relaxed solution having relaxed weight values greater than zero I Integer stock set: The stock set considered in the mixed integer problem Termination Condition is reached if the LP solver fail to contribute to the mixed integer objective function cost (i.e: 2 equal subsequent iterations)
  • 42. Greedy Approach: Algorithm Algorithm 1 1: L U 2: Iy, Wy, R, V 3: Cy int , C lin 4: repeat 5: tmp Cy int 6: L, C lin solveLP(Q; Y, OCj;;!;;, L) 7: L L n L 8: Iy Iy [ L 9: Cy int , Wy, R, V solveMIP(Q; Y, OCj;;!;;, Iy) 10: until Cy int = tmp or C lin =
  • 43. Greedy Approach: Example Line L Iy tmp Cy int C lin 1-4 f1,2,3,4,5,6g 6 f1,2,3,4,5,6g 125.32 7 f2,4,5,6g 125.32 8 f2,4,5,6g f1,3g 125.32 9 f2,4,5,6g f1,3g 121.22 125.32 10 f2,4,5,6g f1,3g 121.22 125.32 5 f2,4,5,6g f1,3g 121.22 121.22 125.32 6 f2,4,5,6g f1,3g 121.22 121.22 57.32 7 f2,4,6g f1,3g 121.22 121.22 57.32 8 f2,4,6g f1,3,5g 121.22 121.22 57.32 9 f2,4,6g f1,3,5g 121.22 121.22 57.32 10 f2,4,6g f1,3,5g 121.22 121.22 57.32
  • 44. Greedy Approach: Properties Li Lj = if i6= j (6.1) [i k=0 Lk Iy (6.2) C lin;i op C lin;i+1 (6.3) Cy int;i+1 op Cy int;i (6.4) op = ( if min if max
  • 45. Greedy Approach: Experiment Parameters # Scenarios 30 # Stocks 500, 1000, 2000, 5000, 7000, 9000 # Variables 1000, 2000, 4000, 10000, 14000, 18000 Models IPg , IPbc , IPr Optimized measure Both Capital 10,000 Con
  • 46. dence 95% Risk tolerance 3% Minimum reward 100% Maximum value 20% Period From 2008-01-01 till 2008-07-29 Table: Experiment Parameters
  • 47. Greedy Approach: Time Performance Figure: Time Comparison between IPg , IPbc and IPr , Maximizing both reward and CVaR, 30 Scenarios
  • 48. Greedy Approach: Share Distribution Ticker IPbc IPr IPg 0606 360 360 360 0990 991 993 991 502 4347 4348 4347 5HT 176 178 176 5IH 631 629 631 ADK.W 876 893 875 ADL 8895 9103 8906 AOM 85830 86986 85809 ARW X X 6 ARX 5853 5298 5853 B08 109 110 109 B18 1 X 4 CII 91 71 91 CMO 1657 1680 1657 E3S 22 25 22 ERNO 11193 1142 11202 128W 99 X 71 L09 2342 2364 2342 MMZ 2 X X Table: Share Distribution, 7000 Stocks
  • 49. Greedy Approach: Solution Quality Figure: Objective function cost dierence between IPg and IPbc , Maximizing both reward and CVaR, 30 Scenarios
  • 50. Greedy Approach: Ecient Frontier Figure: IPbc and IPg Ecient frontiers, 9000 Stocks, 30 Scenarios
  • 51. Greedy Approach: Ecient Frontier Figure: IPbc and IPg Ecient frontiers, time performance, 9000 Stocks, 30 Scenarios
  • 52. Conclusion I Hybrid CP/LP Approach I Proposing constraints that successfully pruned the search space of the portfolio optimization problem I Researching the use of hybrid CP/LP models in improving the time performance of the problem I Greedy Approach I Designing a greedy algorithm which exploit the sparse nature of portfolio optimization problems with focus on improving the time performance I Saving 9.86 hours using our proposed greedy algorithm over 15 problem instances with respect to solution quality I Experimental Studies I Performing experimental studies on real data sets
  • 54. Constraint Programming I Model the problem as a constraint satisfaction problem including variables, their domains and constraints I Solve using constraint solvers I Features I Generally known as an ecient inference mechanism I Adequate for solving a wide range of hard combinatorial problems I Elegant design framework for developers by separating problem modeling and solving
  • 55. Linear Programming min/max cT x s.t. Ax b A = 0 B@ a1;1 a1;n .... . . ... an;1 an;n 1 CA Example max 4x1 + 7x2 + 2x3 12x1 3x2 + 5x3 24 6x1 + 8x2 + 11x3 7
  • 56. Simplex max 5v1 + 7v2 v1 0; v2 0 v1 1; v1 + v2 2
  • 58. nition (IP): An integer programming problem is an LP problem with integrality constraint on all variables De
  • 59. nition (MIP): A mixed integer programming problem is an LP problem with integrality constraints on some variables Example v1 0 v2 0 v1 + v2 2 v2 v1 1 integers(v1; v2)
  • 61. Branch and Cut (BC) I BC ! BB + Cutting plane algorithm I Cutting Planes are linear inequalities derived from the constraint set to remove infeasible linear regions Example v1 0 v2 0 v1 + v2 2 v2 v1 1 ! v1 1