Multi-Period Trading via Convex Optimization

Similar documents
Portfolio Management and Optimal Execution via Convex Optimization

arxiv: v1 [q-fin.pm] 29 Apr 2017

Heterogeneous Firm, Financial Market Integration and International Risk Sharing

Performance Bounds and Suboptimal Policies for Multi-Period Investment

Data-Driven Optimization for Portfolio Selection

Investment strategies and risk management for participating life insurance contracts

Robust Optimization Applied to a Currency Portfolio

Option-Implied Information in Asset Allocation Decisions

Portfolio Optimization. Prof. Daniel P. Palomar

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

Optimization Models for Quantitative Asset Management 1

Worst-Case Value-at-Risk of Non-Linear Portfolios

Optimal Portfolio Liquidation and Macro Hedging

Optimal Trading Strategy With Optimal Horizon

Multi-period mean variance asset allocation: Is it bad to win the lottery?

Interest rate models and Solvency II

PORTFOLIO THEORY. Master in Finance INVESTMENTS. Szabolcs Sebestyén

CSCI 1951-G Optimization Methods in Finance Part 07: Portfolio Optimization

Estimating Macroeconomic Models of Financial Crises: An Endogenous Regime-Switching Approach

Portfolio Management Under Epistemic Uncertainty Using Stochastic Dominance and Information-Gap Theory

A Robust Option Pricing Problem

Lecture IV Portfolio management: Efficient portfolios. Introduction to Finance Mathematics Fall Financial mathematics

A simple wealth model

Risk Management for Chemical Supply Chain Planning under Uncertainty

Dynamic Relative Valuation

Worst-Case Value-at-Risk of Derivative Portfolios

Earnings Inequality and the Minimum Wage: Evidence from Brazil

Applications of Linear Programming

Consumption and Portfolio Decisions When Expected Returns A

Energy Systems under Uncertainty: Modeling and Computations

Consumption- Savings, Portfolio Choice, and Asset Pricing

Idiosyncratic risk, insurance, and aggregate consumption dynamics: a likelihood perspective

Risks for the Long Run: A Potential Resolution of Asset Pricing Puzzles

Bank Risk Dynamics and Distance to Default

To apply SP models we need to generate scenarios which represent the uncertainty IN A SENSIBLE WAY, taking into account

Optimal Portfolio Selection Under the Estimation Risk in Mean Return

Portfolio Optimization with Alternative Risk Measures

Uninsured Unemployment Risk and Optimal Monetary Policy

5 th Annual CARISMA Conference MWB, Canada Square, Canary Wharf 2 nd February ialm. M A H Dempster & E A Medova. & Cambridge Systems Associates

Smart Beta: Managing Diversification of Minimum Variance Portfolios

Copulas? What copulas? R. Chicheportiche & J.P. Bouchaud, CFM

Log-Robust Portfolio Management

Optimizing the Omega Ratio using Linear Programming

Calculating VaR. There are several approaches for calculating the Value at Risk figure. The most popular are the

Financial Giffen Goods: Examples and Counterexamples

Dynamic Portfolio Choice with Frictions

MLEMVD: A R Package for Maximum Likelihood Estimation of Multivariate Diffusion Models

SOLVING ROBUST SUPPLY CHAIN PROBLEMS

The CAPM Strikes Back? An Investment Model with Disasters

Structural Models of Credit Risk and Some Applications

IMPA Commodities Course : Forward Price Models

Axioma Research Paper No. February 19, Multi-period portfolio optimization with alpha decay

All Investors are Risk-averse Expected Utility Maximizers. Carole Bernard (UW), Jit Seng Chen (GGY) and Steven Vanduffel (Vrije Universiteit Brussel)

LECTURE NOTES 10 ARIEL M. VIALE

The stochastic discount factor and the CAPM

Valuing volatility and variance swaps for a non-gaussian Ornstein-Uhlenbeck stochastic volatility model

Evaluation of proportional portfolio insurance strategies

Optimal Taxation Under Capital-Skill Complementarity

IEOR E4602: Quantitative Risk Management

u (x) < 0. and if you believe in diminishing return of the wealth, then you would require

Financial Mathematics III Theory summary

Application of Stochastic Calculus to Price a Quanto Spread

Sentiments and Aggregate Fluctuations

All Investors are Risk-averse Expected Utility Maximizers

Journal of Computational and Applied Mathematics. The mean-absolute deviation portfolio selection problem with interval-valued returns

Is the Maastricht debt limit safe enough for Slovakia?

Robust Portfolio Construction

Eco504 Spring 2010 C. Sims FINAL EXAM. β t 1 2 φτ2 t subject to (1)

Alternative VaR Models

Solving dynamic portfolio choice problems by recursing on optimized portfolio weights or on the value function?

2.1 Mathematical Basis: Risk-Neutral Pricing

Robust Portfolio Optimization with Derivative Insurance Guarantees

Sang-Wook (Stanley) Cho

Portfolio Optimization

Country Spreads and Emerging Countries: Who Drives Whom? Martin Uribe and Vivian Yue (JIE, 2006)

Convex-Cardinality Problems Part II

Problem Set 3. Thomas Philippon. April 19, Human Wealth, Financial Wealth and Consumption

A Structural Model of Continuous Workout Mortgages (Preliminary Do not cite)

Market risk measurement in practice

The Correlation Smile Recovery

The Life Cycle Model with Recursive Utility: Defined benefit vs defined contribution.

Optimization 101. Dan dibartolomeo Webinar (from Boston) October 22, 2013

1 Dynamic programming

SciBeta CoreShares South-Africa Multi-Beta Multi-Strategy Six-Factor EW

Can Financial Frictions Explain China s Current Account Puzzle: A Firm Level Analysis (Preliminary)

What is Cyclical in Credit Cycles?

Pakes (1986): Patents as Options: Some Estimates of the Value of Holding European Patent Stocks

. Social Security Actuarial Balance in General Equilibrium. S. İmrohoroğlu (USC) and S. Nishiyama (CBO)

Mean Variance Portfolio Theory

A Macroeconomic Framework for Quantifying Systemic Risk

Lecture 2: Fundamentals of meanvariance

In terms of covariance the Markowitz portfolio optimisation problem is:

Equity correlations implied by index options: estimation and model uncertainty analysis

PORTFOLIO OPTIMIZATION: ANALYTICAL TECHNIQUES

Optimization in Financial Engineering in the Post-Boom Market

An Introduction to Market Microstructure Invariance

Capital requirements and portfolio optimization under solvency constraints: a dynamical approach

PORTFOLIO OPTIMIZATION

Robust Portfolio Optimization Using a Simple Factor Model

The mean-variance portfolio choice framework and its generalizations

Transcription:

Multi-Period Trading via Convex Optimization Stephen Boyd Enzo Busseti Steven Diamond Ronald Kahn Kwangmoo Koh Peter Nystrup Jan Speth Stanford University & Blackrock City University of Hong Kong September 11, 2017 1

Outline Introduction Model Single-period optimization Multi-period optimization Introduction 2

Setting manage a portfolio of assets over multiple periods take into account market returns trading cost holding cost choose trades using forecasts updated each period respecting constraints on trades and positions goal is to achieve high (net) return, low risk Introduction 3

Some trading strategies traditional buy and hold hold and rebalance rank assets and long/short stat arb momentum/reversion academic stochastic control dynamic programming optimization based Introduction 4

Optimization based trading solve optimization problem to determine trades traces to Markowitz (1952) simple versions widely used trading policy is shaped by selection of objective terms, constraints, hyper-parameters topic of this talk Introduction 5

Why now? huge advances in computing power mature convex optimization technology growing availability of data, sophisticated forecasts can handle many practical aspects Introduction 6

Example: Traditional versus optimization-based S&P 500, daily realized returns/volumes, 2012 2016 initial allocation $100M uniform on S&P 500 simulated (noisy) market return forecasts rank ( long-short ) trading rank assets by return forecast buy top 10, sell bottom 10; 1% daily turnover single-period optimization (SPO) empirical factor risk model forecasts of transaction and holding cost hyper-parameters adjusted to match rank trading return Introduction 7

Example: Traditional versus optimization-based rank: return 16.78%, risk 13.91% SPO: return 16.25%, risk 9.08% Introduction 8

Outline Introduction Model Single-period optimization Multi-period optimization Model 9

Portfolio positions and weights portfolio of n assets, plus a cash account time periods t = 1,..., T (dollar) holdings or positions at time t: h t R n+1 net portfolio value is v t = 1 T h t we work with normalized portfolio or weights w t = h t /v t 1 T w t = 1 leverage is (w t ) 1:n 1 Model 10

Trades and post-trade portfolio u t R n+1 is (dollar value) trades, including cash assumed made at start of period t post-trade portfolio is h t + u t we work with normalized trades z t = u t /v t turnover is (z t ) 1:n 1 /2 Model 11

Transaction and holding cost normalized transaction cost (dollar cost/v t ) is φ trade t (z t ) normalized holding cost (dollar cost/v t ) is φ hold t (z t ) these are separable across assets, zero for cash account self-financing condition: 1 T z t + φ trade t (z t ) + φ hold t (w t + z t ) = 0 this determines cash trade (z t ) n+1 in terms of asset holdings and trades (w t ) 1:n, (z t ) 1:n Model 12

Single asset transaction cost model trading dollar amount x in an asset incurs cost a x + bσ x 3/2 + cx V 1/2 a, b, c are transaction cost model parameters σ is one-period volatility V is one-period volume a standard model used by practitioners variations: quadratic term, piecewise-linear,... same formula for normalized trades, with V V /v t Model 13

Single asset holding cost model holding x costs s(x) = s max{ x, 0} s > 0 is shorting cost rate variations: quadratic term, piecewise-linear,... same formula for normalized portfolio (weights) Model 14

Investment hold post-trade portfolio for one period h t+1 = (1 + r t ) (h t + u t ) r t R n+1 are asset (and cash) returns is elementwise multiplication portfolio return in terms of normalized positions, trades: R p t = v t+1 v t v t = rt T (w t + z t ) φ trade t (z t ) φ hold t (w t + z t ) Model 15

Simulation simulation: for t = 1,..., T, (arbitrary) trading policy chooses asset trades (z t ) 1:n determine cash trade (zt ) n+1 from self-financing condition update portfolio weights and value backtest use realized past returns, volumes evaluate candidate trading policies stress test use challenging (but plausible) data model calibration adjust model parameters so simulation tracks real portfolio Model 16

Outline Introduction Model Single-period optimization Multi-period optimization Single-period optimization 17

Estimated portfolio return ˆR p t = ˆr t T (w t + z t ) ˆφ trade t (z t ) ˆφ hold t (w t + z t ) quantities with ˆ are estimates or forecasts (based on data available at time t) asset return forecast ˆr t is most important transaction cost estimates depend on estimates of bid-ask spread, volume, volatility holding cost is typically known Single-period optimization 18

Single-period optimization problem maximize ˆR t p γ risk ψ t (w t + z t ) subject to z t Z t, w t + z t W t, 1 T z t + ˆφ trade t (z t ) + ˆφ hold t (w t + z t ) = 0 z t is variable; w t is known ψ t is risk measure, γ risk > 0 risk aversion parameter objective is risk-adjusted estimated net return Z t are trade constraints, W t hold constraints Single-period optimization 19

Single-period optimization problem self-financing constraint can be approximated as 1 T z t = 0 (slightly over-estimates updated cash balance) maximize ˆr t T (w t + z t ) γ risk ψ t (w t + z t ) ˆφ trade t (z t ) ˆφ hold t (w t + z t ) subject to 1 T z t = 0, z t Z t, w t + z t W t a convex optimization problem provided risk, trade, and hold functions/constraints are Single-period optimization 20

Traditional quadratic risk measure ψ t (x) = x T Σ t x Σ t is an estimate of return covariance factor model risk Σ t = F t Σ f tft T + D t Ft R n k is factor exposure matrix F T t w t are factor exposures Σ f t is factor covariance D t is diagonal ( idiosyncratic ) asset returns variation: ψ t (x) = ( x T Σ t x (σ tar ) 2) + (σ tar ) 2 is target risk Single-period optimization 21

Robust risk measures worst case quadratic risk: ψ t (x) = max i=1,...,m Σ (i) are scenario or market regime covariances x T Σ (i) t x worst case over correlation changes: ψ t (x) = max x T (Σ + )x, ij κ (Σ ii Σ jj ) 1/2 κ [0, 1) is a parameter, say κ = 0.05 can express as ( ) ψ t (x) = x T Σx + κ Σ 1/2 11 x 1 + + Σnn 1/2 2 x n Single-period optimization 22

Return forecast risk forecast uncertainty: any return forecast of form ˆr + δ, δ ρ R n+1 is plausible; ρ i is forecast return spread for asset i worst case return forecast is min (ˆr t + δ) T (w t + z t ) = ˆr t T (w t + z t ) ρ T w t + z t δ ρ same as using nominal return forecast, with a return forecast risk term ψ t (x) = ρ T x Single-period optimization 23

Holding constraints long only w t + z t 0 leverage limit (w t + z t ) 1:n 1 L max capitalization limit (w t + z t ) δc t /v t weight limits w min w t + z t w max minimum cash balance (w t + z t ) n+1 c min /v t factor/sector neutrality (F t ) T i (w t + z t ) = 0 liquidation loss limit T liq ˆφ trade t ((w t + z t )/T liq ) δ concentration limit K i=1 (w t + z t ) [i] ω Single-period optimization 24

Trading constraints turnover limit (z t ) 1:n 1 /2 δ limit to trading volume (z t ) 1:n δ( ˆV T /v t ) transaction cost limit ˆφtrade (z t ) δ Single-period optimization 25

Convexity objective terms and constraints above are convex, as are many others consequences of convexity: we can (globally) solve, reliably and fast add many objective terms and constraints rapidly develop using domain-specific languages nonconvexities are not needed or easily handled, e.g., quantized positions minimum trade sizes target leverage (e.g., (x t + w t ) 1:n 1 = L tar ) Single-period optimization 26

Using single-period optimization constraints and objective terms are inspired by estimates of the real values, e.g., of transaction or hold costs we add positive (hyper) parameters that scale the terms, e.g., γ trade, γ hold these are knobs we turn to get what we want absolute value term in ˆφ trade discourages small trades 3/2-power term in ˆφ trade discourages large trades shorting cost discourages holding short positions liquidation cost discourages holding illiquid positions we simulate/back-test to choose hyper-parameter values exact same (meta-) story in control, machine learning,... Single-period optimization 27

Example S&P 500, daily realized returns, volumes, 2012 2016 initial allocation $100M uniform on S&P 500 simulated (noisy) market return forecasts risk model: empirical factor model with 15 factors volume, volatility estimated as average of last 10 values vary hyper-parameters γ risk, γ trade, γ hold over ranges Single-period optimization 28

Example: Risk-return trade-off Single-period optimization 29

Example: Pareto optimal frontier grid search over 410 hyper-parameter combinations Single-period optimization 30

Example: Timing execution time, generic CVXPY, single-thread ECOS solver Single-period optimization 31

Outline Introduction Model Single-period optimization Multi-period optimization Multi-period optimization 32

Idea at period t, optimize over sequence of portfolio weights w t+1,..., w t+h 1 subject to 1 T w τ = 1, τ = t + 1,..., t + H 1 H is the (planning) horizon execute trades z t = w t+1 w t need forecasts over the horizon, e.g., ˆr τ t, τ = t,..., t + H 1 forecast of market return in period τ made at period t can exploit differing short- and long-term forecasts Multi-period optimization 33

Multi-period optimization ( maximize t+h τ=t+1 ˆr τ t T w τ γ risk ψ τ (w τ ) γhold ˆφhold τ (w τ ) ) γ trade ˆφ trade τ (w τ w τ 1 ) subject to 1 T w τ = 1, w τ w τ 1 Z τ, w τ W τ, τ = t + 1,..., t + H reduces to single-period optimization for H = 1 computational cost scales linearly in horizon H same idea widely used in model predictive control Multi-period optimization 34

Example same data as single-period example H = 2, so we have forecasts for current and next periods grid search over 390 hyper-parameter combinations Multi-period optimization 35

Example: Pareto frontier Multi-period optimization 36

Example: Multi- and single-period comparison Multi-period optimization 37

Conclusions convex optimization to choose trades idea traces to Markowitz (1952), model predictive control gives an organized way to parametrize good trading strategies works with any forecasts handles a wide variety of practical constraints and costs Multi-period optimization 38

Is it optimal? if we assume (say) log(1 + r t ) N (µ, Σ) are independent, the multi-period trading problem is a convex stochastic control problem multi-period optimization is almost an optimal strategy (Boyd, Mueller, O Donoghue, Wang, 2014) but real returns are not log-normal, or independent, or stationary, or even a stochastic process Multi-period optimization 39

References Active Portfolio Management: A Quantitative Approach, Grinold & Kahn Convex Optimization, Boyd & Vandenberghe Multi-Period Trading via Convex Optimization, Boyd et al., Foundations & Trends in Optimization github.com/cvxgrp/cvxportfolio Multi-period optimization 40