Keywords

These keywords were added by machine and not by the authors. This process is experimental and the keywords may be updated as the learning algorithm improves.

13.1 Introduction

Standard portfolio optimization problems are based on several distribution characteristics, such as mean, variance, and Conditional Value-at-Risk (CVaR) of return distribution. For instance, Markowitz [12] the mean-variance approach uses estimates of mean and covariance matrix of return distribution. Mean-variance portfolio theory works quite well when the return distributions re close to normal.

This chapter considers portfolio selection problem based on the stochastic dominance rule. Stochastic dominance takes into account the entire distribution of return, rather than some specific characteristics. Stochastic dominance produces a partial ordering of portfolio returns and identifies a portfolio dominating some other portfolios [11].

Hadar and Russell [8] demonstrated that a diversified portfolio can dominate a benchmark portfolio in the sense of the Second Order Stochastic Dominance (SSD). Several applications of stochastic dominance theory to portfolio selection are considered by Whitmore and Findlay [16]. Dentcheva and Ruszczynski [3] developed an efficient numerical approach for the portfolio optimization with SSD using partial moment constraints. Roman et al. [14] suggested a portfolio optimization algorithm for SSD efficient portfolios. They used SSD with a multi-objective representation of a problem with CVaR in objective. Kuosmanen [10] and Kopa and Chovanec [9] described SSD portfolio efficiency measure for diversification.

Rudolf and Ruszczynski [15] and Fabian et al. [5, 6] considered cutting plane method to solve optimization problem with SSD constraints. This chapter implemented an algorithm similar to the Rudolf and Ruszczynski [15]. We concentrated on numerical aspects of portfolio optimization with SSD constraints and conducted a case study showing that our algorithm works quite efficiently. We used Portfolio Safeguard (PSG) optimization package of AORDA.com, which has precoded functions for optimization with SSD constraints. We solved optimization problems for stocks in Dow Jones and DAX Indices and found portfolios which SSD dominate these indices. We also compared these portfolios with the Mean-Variance portfolios based on constant and time varying covariance matrices.

13.2 Second Order Stochastic Dominance (SSD)

Let denote by F X (t) the cumulative distribution function of a random variable X. For two integrable random variables X and Y, we say that X dominates Y in the second-order, if

$$\displaystyle{ \int _{-\infty }^{\eta }F_{ X}(t)dt \leq \int _{-\infty }^{\eta }F_{ Y }(t)dt,\quad \forall \eta \in \mathbb{R} }$$
(13.1)

In short we say that X dominates Y in SSD sense and denote it by \(X \succcurlyeq _{2}Y\) [7]. With the partial moment of a random variable X for a target value η, the SSD dominance is defined as follows

$$\displaystyle{ E([\eta -X]_{+}) \leq E([\eta -Y ]_{+}),\quad \forall \eta \in \mathbb{R} }$$
(13.2)

where, \([\eta -X]_{+} =\max (0,\eta -X)\) [13].

13.2.1 SSD Constraints for a Discrete Set of Scenarios

Suppose that Y has a discrete distribution with outcomes, y i , i = 1, 2, , N. Then the condition (13.2) can be reduced to the finite set of inequalities [13],

$$\displaystyle{ E([y_{i} - X]_{+}) \leq E([y_{i} - Y ]_{+}),\quad i = 1,,2,\ldots,N }$$
(13.3)

We use inequalities (13.3) for obtaining a portfolio X dominating benchmark Y.

13.2.2 Portfolio Optimization Problem with SSD Constraints

Let us denote:

  • w j  = portfolio weight of the instrument j, j = 1, , n.

  • p i  = probability of scenario i, i = 1, , N,

  • r ji  = return of instrument j on scenario i,

  • c j  = cost of investing in instrument j = 1, , n (estimated return of an instrument is interpreted as negative cost − c j ),

  • w = vector of portfolio weights, w = (w 1, w 2, , w n ),

  • r(w) = portfolio return as a function of portfolio weights w,

  • c(w) = portfolio cost as a function of portfolio weights w.

Portfolio return on scenario i equals:

$$\displaystyle{r_{i}(\mathbf{w}) =\sum _{ j=1}^{n}w_{ j}r_{ji},\quad i = 1,2,\ldots,N}$$

Portfolio cost equals:

$$\displaystyle{c(\mathbf{w}) =\sum _{ j=1}^{n}c_{ j}w_{j}}$$

The benchmark portfolio Y has a discrete distribution with scenarios y i , i = 1, 2, , N. We want to find a portfolio SSD dominating the benchmark portfolio Y and having minimum cost c(w). We do not allow for shorting of instruments. Let us denote by W the set of feasible portfolios:

$$\displaystyle{W =\{ \mathbf{w} \in \mathbb{R}^{n}: w_{ j} \geq 0,\,\,j = 1,2,\ldots,n\}}$$

The optimization problem is formulated as follows:

$$\displaystyle{ \begin{array}{ll} \mbox{ minimize}_{\mathbf{w}}&c(\mathbf{w}) \\ \mbox{ subject to:}&\mathbf{r}(\mathbf{w})\succeq _{2}Y \\ &\mathbf{w} \in W\end{array} }$$
(13.4)

Since the benchmark portfolio has a discrete distribution, with (13.3) we reduce the portfolio optimization problem (13.4) to:

$$\displaystyle{ \begin{array}{lll} \mbox{ minimize}_{\mathbf{w}}&\sum _{j=1}^{n}c_{ j}w_{j} \\ \mbox{ subject to:}&E([y_{i} - r(\mathbf{w})]_{+}) \leq E([y_{i} - Y ]_{+}),&i = 1,\ldots,N \\ &w_{j} \geq 0, &j = 1,\ldots,n\end{array} }$$
(13.5)

A solution of the optimization problem (13.5) yields a portfolio dominating Y. The number of scenarios (which can be quite large) determines the number of SSD constraints in this optimization problem. Further, we suggest a procedure for elimination redundant constraints in (13.5).

13.3 Algorithm for Portfolio Optimization Problem with SSD Constraints

This section describes cutting plane algorithm for solving problems with SSD constraints in this study. An overview of the cutting-plane methods for SSD problems can be found in [5, 6, 15]. We start the description of the algorithm with the procedure for removing redundant constraints.

13.3.1 Removing Redundant Constraints

Let us consider benchmark scenarios \(y_{i_{1}}\) and \(y_{i_{2}}\) with indices i 1 and i 2 and denote the right hand side values of the constraints for scenarios in problem (13.5) by \(C_{i_{1}} = E([y_{i_{1}} - Y ]_{+})\) and \(C_{i_{2}} = E([y_{i_{2}} - Y ]_{+})\). If \(y_{i_{1}} \leq y_{i_{2}}\) and \(C_{i_{1}} \geq C_{i_{2}}\), for scenarios i 1 and i 2, then constraint i 1 is redundant and it can be removed from the constraint set. This procedure dramatically reduces the number of constraints in the optimization problem (13.5).

13.3.2 Cutting Plane Algorithm

Here are the steps of the algorithm for solving optimization problem (13.5). We denote by s the iteration number.

Step 1.:

Initialization: s = 0. Assign an initial feasible set

$$\displaystyle{W_{0} =\{ \mathbf{w} \in \mathbb{R}^{n}: w_{ j} \geq 0,\,\,j = 1,2,\ldots,n\}}$$

Assign an initial verification set

$$\displaystyle{V _{0} =\{ \mathbf{w} \in \mathbb{R}^{n}: E([y_{ i} - r(\mathbf{w})]_{+}) \leq E([y_{i} - Y ]_{+}),\,\,i = 1,2,\ldots,N\}}$$
Step 2.:

Solve the optimization problem

$$\displaystyle{ \begin{array}{lll} \mbox{ minimize}_{\mathbf{w}}&\sum _{j=1}^{n}c_{ j}w_{j} \\ \mbox{ subject to:}&\mathbf{w} \in W_{s}\end{array} }$$
(13.6)

If all constraints defining the set V s are satisfied, then the obtained point is optimal to problem (13.5). Otherwise, go to Step 3.

Step 3.:

Find constraint in V s with the largest violation and remove it from V s . Denote this new set of constraints by V s+1 (after removing the constraint with the largest violation). Add removed constraint to the constraints defining set W s and denote it by W S+1. Increase the iteration counter \(s = s + 1\) and go back to Step 2.

13.3.3 PSG Code for Optimization with SSD Constraints

The problem (13.5) can be directly solved with the Portfolio Safeguard (PSG) without any additional coding. Here is the code, which can be downloaded from this link.Footnote 1

maximize

avg_g(matrix_sde)

Constraint: = 1

linear(matrix_budget)

MultiConstraint: < = vector_ubound_sd

pm_pen (vector_benchmark_sd, matrix_sde)

Box: > = 0, < = 1

We have done the case study in PSG MATLAB Environment running many optimizations iteratively. However, here we provided just one code in PSG Run-File format to show that the SSD constrained problems can be easily coded and solved.

13.4 Case Study

We solved problem (13.5) with two data sets. The first dataset includes stocks from the Dow Jones (DJ) index and DJ index is considered as a benchmark. Similar, the second dataset includes stocks from the DAX index and the DAX index is used as a benchmark. The data were downloaded from the Yahoo Finance (http://finance.yahoo.com) and include 2500 historical daily returns of stocks from March 24, 2005 to Feb 27, 2015 for DJ index and from April 25, 2005 to Feb 27, 2015 for DAX index. The lists of stocks in indices are taken on March 2, 2015. Therefore, we considered only 29 stocks from the DJ index and 26 stocks from the DAX Index (the appendix contains the list of the stocks selected for this chapter). The stock returns on daily basis (r ji ) were calculated using logarithm of ratio of the stock adjusted closing prices (f i ),

$$\displaystyle{r_{ji} =\ln (f_{i}/f_{i-1})}$$

We adjusted the stocks prices of four companies from DAX Index.Footnote 2 Daily returns are considered as equally probable scenarios in the study.

The optimization problem with SSD constraint (in this case study) finds a portfolio SSD dominating the benchmark and having maximum expected portfolio return. Shorting is not allowed. The sum of portfolio weights is equal to 1,

$$\displaystyle{\sum _{j=1}^{n}w_{ j} = 1,\quad w_{j} \geq 0,\quad j = 1,2,\ldots,n}$$

We compared performance of the SSD based portfolios with Equally Weighted, Minimum Variance and Mean-Variance portfolios with the constant and time-varying covariance matrices. Here is a brief description of portfolios:

  1. 1.

    Equally Weighted (EW): All stocks in the portfolio are equally weighted. Every stock has same weight (1∕n), where n is the number of stocks in the portfolio.

  2. 2.

    Minimum Variance (MinVar): Minimum Variance portfolio has minimum variance without any constraint on portfolio return. Shorting is not allowed and the sum of the portfolio weights is equal to 1.

  3. 3.

    Mean-Variance (Mean-Var): Mean-variance portfolio [12] uses mean return and the variance of the stock returns. The approach finds efficient portfolios having minimum variance for a desired level of portfolio return or equivalently having maximum portfolio return for a given variance. We considered Mean-Var problems having variance in the objective function and the expected portfolio return 12 % per year in the constraint, and 0.2 upper bound constraint on the positions. Shorting is not allowed and the sum of the portfolio weights is equal to 1.

The classical Mean-Variance model considers the constant covariance matrix. We also considered the time dependent covariance matrix using DCC-GARCH model in MinVar and Mean-Var approaches. Further, we briefly describe the estimation procedure for the time-dependent covariance matrix.

13.4.1 Estimation of Time-Varying Covariance Matrix

We considered a dynamic conditional correlation DCC-GARCH (DCC) model for the estimation of large time-dependent covariance matrices [4]. We estimated the time dependent covariance matrix using DCC-GARCH model (assuming that correlations may change over time). The time-dependent covariance matrix H t is extracted from the DCC-GARCH model, where H t  = D t R t D t . Here, D t is the diagonal matrix from a univariate GARCH model and R t is the time dependent correlation matrix. This chapter assumes the simplest conditional mean return equation where \(\overline{r}_{j} = N^{-1}\sum _{i=1}^{N}r_{ji}\) is the sample mean and the deviation of returns \((r_{t} -\overline{r})\) is conditionally normal with zero mean and time-dependent covariance matrix H t [2]. We consider the time-dependent covariance matrix H t in a simple DCC(1,1)-GARCH model. We used H t in MinVar and Mean-Var problems.

The next Sect. 13.4.2 compares SSD constrained optimization with the MinVar and the Mean-Var approaches for all available historical data in a static setting. The code was implemented with MATLAB R2012b. We have used PSG riskprog function in MATLAB environment to solve MinVar and Mean-Variance portfolio problems. For the estimation of the time-dependent covariance matrix we have used MFE ToolboxFootnote 3. The Sect. 13.4.3 we compares out-of-sample performance of portfolios in time series framework. The calculations were performed on a computer having 3.4 GHz CPU and 8 GB of RAM.

13.4.2 Comparing Numerical Performance of Various Portfolio Settings

We benchmarked the cutting plane algorithm described in Sect. 13.3.2 with the direct PSG code described in Sect. 13.3.3. We got the same results with both approaches. Further in tables we report performance of the direct PSG code. The dataset includes 2500 historical daily stock returns. Firstly we optimized portfolios with all approaches using available 2500 historical daily returns.

Table 13.1 shows the expected yearly returns of portfolios for all considered approaches.

Table 13.1 Expected yearly returns of portfolios

The SSD dominating portfolios can be used for actual investments. At least in the past, these portfolios SSD dominated the corresponding indices. Moreover, the expected yearly return of the portfolio SSD dominating the DJ index equals 0.10029 and significantly exceeds the DJ index return in this period. Similar observations are valid for the portfolio of DAX index; the expected yearly return of portfolio SSD dominating the benchmark equals 0.14894.

We compared solving times of SSD constraint optimization problem (using direct PSG optimization) with the MinVar and Mean-Var approaches (using PSG riskprog subroutine). Data loading and solving times are given in Table 13.2. The optimization is done almost instantaneously and data loading takes some fraction of a second. The time-dependent covariance matrix estimation with MFE Toolbox additionally takes about 30 s (for MinVar and Mean-Var optimization).

Table 13.2 Loading and solving times (in seconds) with PSG in MATLAB Environment

13.4.3 Out-of-Sample Simulation

Secondly, we have evaluated the out-of-sample performance of considered approaches. We considered a time series framework where the estimation period (750 and 1000 days) is rolled over time. Portfolios are re-optimized on every first business day of the month using the recent historical daily returns (750 or 1000). We kept constant positions during the month. Regarding the return constraint in the Mean-Var problem, if the expected return 12 % per year is not feasible (in the beginning of the month), than we set 6 % expected return constraint and if we still do not have feasibility, we reduce the expected return to 3 %, and then to 0 %. A difficulty in estimation of the covariance matrices with DCC model is that the time-dependent conditional correlation matrix has to be positive definite for all time moments [1]. We observe that with a small in-sample time intervals (such as 250 days) the variance-covariance matrix may not be positive-definite. Therefore, we have used 750 and 1000 days in-sample periods.

Table 13.3 shows out-of-sample total compounded returns of considered portfolios. In particular, we observe that the SSD constrained portfolio for DJ stocks with 750 days in-sample and DAX stocks with 1000 days in-sample, have highest compounded returns among all portfolios.

Table 13.3 Out-of-sample total compounded returns of the portfolios

Figures 13.1, 13.2, 13.3, and 13.4 show the out-of-sample compounded daily returns of the portfolios.

Fig. 13.1
figure 1

Compounded (on daily basis) returns of portfolios including DJ stocks, t = 750

Fig. 13.2
figure 2

Compounded (on daily basis) returns of portfolios including DJ stocks, t = 1000

Fig. 13.3
figure 3

Compounded (on daily basis) returns of portfolios including DAX stocks, t = 750

Fig. 13.4
figure 4

Compounded (on daily basis) returns of portfolios including DAX stocks, t = 1000

The out-of-sample performances of portfolios are represented in Tables 13.4, 13.5, 13.6, and 13.7. The tables include yearly compounded portfolio returns for 2009–2014 years, the total compounded portfolio return (T R ) and Sharpe Ratio (Sh R ).

  • Table 13.4 (DJ stocks, t = 750). SSD constrained portfolio has the highest Total Compounded Return (1.8817) and Sharpe Ratio (0.7906).

  • Table 13.5 (DJ stocks, t = 1000). SSD constrained portfolio has Sharpe Ratio (1.2771) higher than the all considered portfolios except Equally Weighted portfolio.

  • Table 13.6 (DAX stocks, t = 750). SSD constrained portfolio has Sharpe Ratio (0.2732) and Total Compounded Return (1.3987) higher than the Benchmark and Equally Weighted portfolios.

  • Table 13.7 (DAX stocks, t = 1000). SSD constrained portfolio has the highest Total Return (2.8827) and Sharpe Ratio (1.3523).

Table 13.4 Yearly compounded returns, total compounded return (T R ), Sharpe ratio (Sh R ) for DJ stocks (t = 750)
Table 13.5 Yearly compounded returns, total compounded return (T R ), Sharpe ratio (Sh R ) for DJ stocks (t = 1000)
Table 13.6 Yearly compounded returns, total compounded return (T R ), Sharpe ratio (Sh R ) for DAX stocks (t = 750)
Table 13.7 Yearly compounded returns, total compounded return (T R ), Sharpe ratio (Sh R ) for DAX stocks (t = 100)

Table 13.8 shows weights of SSD constrained portfolios at the last month of the out-of-sample period. Also, the table shows SSD dominating portfolios over all in-sample 2500 days. The table shows only stocks with non-zero positions.

Table 13.8 SSD constrained portfolios (table shows only selected stocks)

13.5 Conclusions

In this chapter we tested algorithms for portfolio optimization with SSD constraints. The algorithms are very efficient and solve optimization problems nearly instantaneously (solution times less than 0.01 s for the considered cases).

We have done out-of-sample simulations and compared SSD constrained portfolios with the minimum variance and mean-variance portfolios. The portfolios were constructed from the stocks of DJ and DAX indices. SSD constrained portfolio demonstrated quite good out-of-sample performance and in some cases had highest compounded return and Sharpe ratio (among all considered portfolios).