Portfolio Theory Dr. Andrea Rigamonti andrea.rigamonti@econ.muni.cz Lecture 6 Content: โ€ข Mean-variance utility maximization โ€ข Variance minimization with target mean return โ€ข Tangency portfolio Mean-variance utility maximization We can model an investorโ€™s behavior as an attempt to maximize a utility function. A very simple one is the linear utility function: ๐‘ˆ ๐‘‰ = ๐‘Ž + ๐‘๐‘‰, ๐‘ > 0 where ๐‘ˆ ๐‘‰ is the utility that the investor gets depending on the value ๐‘‰ of the portfolio. Only the mean is considered. Markowitz (1952) adds risk by assuming that the investor cares both about the mean and the variance of the portfolio returns, i.e. the investor has a mean-variance utility. Mean-variance utility maximization โ€ข Given a certain mean return, the utility increases as the variance (which quantifies risk) gets lower. โ€ข Equivalently, given a certain level of variance, the utility increases with a higher mean return. The decision in the trade-off between return and risk is quantified by a risk aversion parameter ๐›พ: a higher ๐›พ means that the investor is more risk averse and will therefore require a higher compensation for an increased risk. All else equal, the lower ๐›พ is, the more the investor will create a portfolio with a higher mean return but also a higher variance. Mean-variance utility maximization We model such preferences with a quadratic utility function: ๐‘ˆ ๐‘‰ = ๐‘‰ โˆ’ ๐›พ 2 ๐‘‰2, ๐›พ > 0 ๐›พ is assumed to be positive to have a concave utility function: Mean-variance utility maximization โ€ข ๐›พ > 0 The investor is risk-averse โ€ข ๐›พ = 0 The investor is indifferent to risk โ€ข ๐›พ < 0 The investor is risk-taker (i.e., prefers more risk with the same amount of wealth) For a portfolio we have ๐œ‡ ๐‘ƒ = ๐’˜โ€ฒ ๐ = ๐‘‰, where ๐’˜ is the vector of portfolio weights and ๐ is the vector of mean return of the single assets. Moreover, the variance is the expected value of the squared deviation from the mean. So, the mean-variance utility function is: ๐‘ˆ ๐’˜ = ๐’˜โ€ฒ๐ โˆ’ ๐›พ 2 ๐’˜โ€ฒโˆ‘๐’˜ Mean-variance utility maximization Given a risk-free asset and ๐‘ risky assets with mean returns ๐ and covariance matrix ๐œฎ, and a certain risk aversion coefficient ๐›พ, the investor wants to select the weights ๐’˜ in a way that maximizes the utility function: max ๐’˜ ๐’˜โ€ฒ๐ โˆ’ ๐›พ 2 ๐’˜โ€ฒโˆ‘๐’˜ We set the first-order condition, i.e., take the partial derivative with respect to ๐’˜ and set it equal to zero: ๐œ•๐‘ˆ(๐’˜) ๐œ•๐’˜ = ๐ โˆ’ 2๐›พ 2 โˆ‘๐’˜ = ๐ โˆ’ ๐›พโˆ‘๐’˜ = ๐ŸŽ Mean-variance utility maximization Solving for ๐’˜, we obtain the optimal weights for the risky assets: โˆ‘๐’˜ = 1 ๐›พ ๐ ๐’˜ ๐‘ผ = 1 ๐›พ โˆ‘โˆ’๐Ÿ ๐ The weight for the risk-free asset is equal to 1 โˆ’ ๐’˜ ๐‘ผโ€ฒ๐Ÿ, where ๐Ÿ is a vector of 1 with length equal to the number of risky assets. The resulting optimal expected utility is: ๐‘ˆ ๐’˜ ๐‘ผ = 1 2๐›พ ๐โ€ฒโˆ‘โˆ’๐Ÿ ๐ Mean-variance utility maximization What if we want to invest everything in the risky assets? ๐’˜ must sum up to 1. Therefore, we have to solve the following constrained optimization problem: max ๐’˜ ๐’˜โ€ฒ๐ โˆ’ ๐›พ 2 ๐’˜โ€ฒฦฉ๐’˜ subject to: ๐’˜โ€ฒ๐Ÿ = 1 We solve it with the method of Lagrange multipliers. Mean-variance utility maximization First we define the Lagrangian function, i.e., a modified version of the objective function that incorporates the constraint in this way: ๐ฟ ๐’˜, ๐œ† = ๐’˜โ€ฒ๐ โˆ’ ๐›พ 2 ๐’˜โ€ฒฦฉ๐’˜ + ๐œ† 1 โˆ’ ๐’˜โ€ฒ๐Ÿ where ๐œ† is the Lagrange multiplier. We can now solve an unconstrained problem instead of a constrained one by setting the first order conditions for the Lagrangian. The conditions involve two simultaneous equations, as we have to compute the partial derivative both with respect to ๐’˜ and to ๐œ†. Mean-variance utility maximization ๐œ•๐ฟ ๐œ•๐’˜ = ๐ โˆ’ 2๐›พ 2 ฦฉ๐’˜ โˆ’ ๐œ†๐Ÿ = ๐ โˆ’ ๐›พฦฉ๐’˜ โˆ’ ๐œ†๐Ÿ = ๐ŸŽ ๐œ•๐ฟ ๐œ•๐œ† = 1 โˆ’ ๐’˜โ€ฒ ๐Ÿ = 0 We start by solving the first equation for ๐’˜: ๐›พฦฉ๐’˜ = ๐ โˆ’ ๐œ†๐Ÿ ๐’˜ = ๐›พฦฉ โˆ’1 ๐ โˆ’ ๐œ†๐Ÿ Now we can plug this into the second equation: 1 โˆ’ ๐›พฦฉ โˆ’1 ๐ โˆ’ ๐œ†๐Ÿ โ€ฒ ๐Ÿ = 0 Mean-variance utility maximization Remember that ๐‘จ๐‘ฉ โ€ฒ = ๐‘ฉโ€ฒ๐‘จโ€ฒ, and therefore we have: ๐ โˆ’ ๐œ†๐Ÿ โ€ฒ ๐›พฦฉ โˆ’1 โ€ฒ ๐Ÿ = 1 (๐ โˆ’ ๐œ†๐Ÿ)โ€ฒ ฦฉโˆ’๐Ÿ ๐›พ โ€ฒ ๐Ÿ = 1 ฦฉโˆ’๐Ÿ is a symmetric matrix, so its transpose is still ฦฉโˆ’๐Ÿ (๐โ€ฒ โˆ’ ๐œ†๐Ÿโ€ฒ) ฦฉโˆ’๐Ÿ ๐›พ ๐Ÿ = 1 (๐โ€ฒ โˆ’ ๐œ†๐Ÿโ€ฒ)ฦฉโˆ’๐Ÿ ๐Ÿ = ๐›พ ๐โ€ฒฦฉโˆ’๐Ÿ ๐Ÿ โˆ’ ๐œ†๐Ÿโ€ฒฦฉโˆ’๐Ÿ ๐Ÿ = ๐›พ Mean-variance utility maximization So, we arrive at an expression for ๐›พ: ๐œ† = ๐โ€ฒ ฦฉโˆ’๐Ÿ ๐Ÿ โˆ’ ๐›พ ๐Ÿโ€ฒฦฉโˆ’๐Ÿ ๐Ÿ We plug it in the first equation ๐’˜ = ๐›พฦฉ โˆ’1(๐ โˆ’ ๐œ†๐Ÿ) obtaining the solution to the optimization problem: ๐’˜ ๐‘ผโˆ— = ฦฉโˆ’๐Ÿ ๐›พ ๐ + ๐›พ โˆ’ ๐โ€ฒฦฉโˆ’๐Ÿ ๐Ÿ ๐Ÿโ€ฒฦฉโˆ’๐Ÿ ๐Ÿ ๐Ÿ Mean-variance utility maximization Given a certain ๐ and ฦฉ, if ๐›พ changes: โ€ข optimal weights without a risk-free asset, ๐’˜ ๐‘ผโˆ—, change without keeping their proportions โ€ข optimal weights with a risk-free asset, ๐’˜ ๐‘ผ, scale up (if ๐›พ decreases) or down (if ๐›พ increases), keeping proportions With a risk-free asset, the only thing changing with different values of ๐›พ is how much wealth is allocated in risky assets. For example, if ๐›พ = 3 we have ๐’˜ ๐‘ผ โ€ฒ = 0.2 0.4 0.3 , with ๐›พ = 6 we will have ๐’˜ ๐‘ผ โ€ฒ = 0.1 0.2 0.15 . All the weights for risky assets were cut in half, and the amount invested in the risk-free asset doubled. Mean-variance utility maximization By computing optimized portfolios with different ๐›พ the efficient frontier, i.e., the set of portfolios with the highest mean-variance utility for each given value of ๐›พ Variance minimization with target mean return โ€ข Choosing a value for ๐›พ might be difficult for real investors โ€ข The value of the utility ๐‘ˆ is not very informative More intuitive approach: specify a desired mean return ๐‘…๐‘’ and minimize the variance. This is a constrained optimization problem: min ๐’˜ ๐’˜โ€ฒโˆ‘๐’˜ subject to: ๐’˜โ€ฒ ๐ + 1 โˆ’ ๐’˜โ€ฒ๐Ÿ ๐‘…๐‘“ = ๐‘…๐‘’ ๐’˜โ€ฒ ๐ is the return of the risky assets, and 1 โˆ’ ๐’˜โ€ฒ๐Ÿ ๐‘…๐‘“ is the return of the risk-free asset. Variance minimization with target mean return It is possible (and preferable) to work with excess returns instead of explicitly including the risk-free asset in the asset menu. In this case ๐‘…๐‘’ is the desired excess return, and the problem simplifies to: min ๐’˜ ๐’˜โ€ฒ โˆ‘๐’˜ subject to: ๐’˜โ€ฒ ๐ = ๐‘…๐‘’ The Lagrangian function is: ๐ฟ ๐’˜, ๐œ† = ๐’˜โ€ฒฦฉ๐’˜ + ๐œ† ๐‘…๐‘’ โˆ’ ๐’˜โ€ฒ ๐ Variance minimization with target mean return We can multiply the first term by 0.5, which does not alter the result (minimizing half the variance is equivalent to minimizing the variance). So, the Lagrangian becomes: ๐ฟ ๐’˜, ๐œ† = 1 2 ๐’˜โ€ฒ ฦฉ๐’˜ + ๐œ† ๐‘…๐‘’ โˆ’ ๐’˜โ€ฒ ๐ The first order conditions are: ๐œ•๐ฟ ๐œ•๐’˜ = ฦฉ๐’˜ โˆ’ ๐œ†๐ = ๐ŸŽ ๐œ•๐ฟ ๐œ•๐œ† = ๐‘…๐‘’ โˆ’ ๐’˜โ€ฒ ๐ = 0 Variance minimization with target mean return We start by solving for ๐’˜ in the first equation: ๐’˜ = ๐œ†ฦฉโˆ’๐Ÿ ๐ Then we plug it into the second equation and solve for ๐œ†: ๐‘…๐‘’ = ๐’˜โ€ฒ ๐ ๐‘…๐‘’ = ๐œ†ฦฉโˆ’๐Ÿ ๐ โ€ฒ ๐ = ๐œ†๐โ€ฒฦฉโˆ’๐Ÿ ๐ ๐œ† = ๐‘…๐‘’ ๐โ€ฒฦฉโˆ’๐Ÿ ๐ We can now substitute this back in the first equation and we get the solution we wanted: ๐’˜ ๐’Ž๐’— = ๐‘…๐‘’ ๐โ€ฒฦฉโˆ’๐Ÿ ๐ ฦฉโˆ’๐Ÿ ๐ Variance minimization with target mean return Obviously, it is also possible to specify a given level of variance and maximize the mean return: max ๐’˜ ๐’˜โ€ฒ ๐ subject to: ๐’˜โ€ฒฦฉ๐’˜ = ๐œŽ2 We write the Lagrangian and the first order conditions: ๐ฟ ๐’˜, ๐œ† = ๐’˜โ€ฒ ๐ + ๐œ† ๐œŽ2 โˆ’ ๐’˜โ€ฒ ฦฉ๐’˜ ๐œ•๐ฟ ๐œ•๐’˜ = ๐ โˆ’ 2๐œ†ฦฉ๐’˜ = ๐ŸŽ ๐œ•๐ฟ ๐œ•๐œ† = ๐œŽ2 โˆ’ ๐’˜โ€ฒฦฉ๐’˜ = 0 Variance minimization with target mean return We solve the first equation for ๐’˜: 2๐œ†ฦฉ๐’˜ = ๐ ๐’˜ = ฦฉโˆ’๐Ÿ ๐ 2๐œ† Now we plug into the second equation: ๐œŽ2 = ๐’˜โ€ฒฦฉ๐’˜ ๐œŽ2 = ฦฉโˆ’๐Ÿ ๐ 2๐œ† โ€ฒ ฦฉ ฦฉโˆ’๐Ÿ ๐ 2๐œ† = ๐โ€ฒฦฉโˆ’๐Ÿ 2๐œ† ฦฉ ฦฉโˆ’๐Ÿ ๐ 2๐œ† ๐œŽ2 = ๐โ€ฒ๐‘ฐ 2๐œ† ฦฉโˆ’๐Ÿ ๐ 2๐œ† = ๐โ€ฒฦฉโˆ’๐Ÿ ๐ 4๐œ†2 Variance minimization with target mean return ๐œŽ = ๐โ€ฒฦฉโˆ’๐Ÿ ๐ 2๐œ† ๐œ† = ๐โ€ฒฦฉโˆ’๐Ÿ ๐ 2๐œŽ We replace this in the first equation to get the solution: ๐’˜ = ฦฉโˆ’๐Ÿ ๐ 2๐œ† = ฦฉโˆ’๐Ÿ ๐ 2 ๐โ€ฒฦฉโˆ’๐Ÿ ๐ 2๐œŽ = ฦฉโˆ’๐Ÿ ๐ ๐โ€ฒฦฉโˆ’๐Ÿ ๐ ๐œŽ = ๐œŽ ๐โ€ฒฦฉโˆ’๐Ÿ ๐ ฦฉโˆ’๐Ÿ ๐ These are two equivalent optimization problems. However, it is more intuitive and more common to specify the desired mean and minimize the variance. Variance minimization with target mean return We can again add the additional constraint of weights for the risky assets summing up to 1: min ๐’˜ ๐’˜โ€ฒฦฉ๐’˜ subject to: ๐’˜โ€ฒ ๐ = ๐‘…๐‘’ ๐’˜โ€ฒ ๐Ÿ = 1 As there are two constraints, there are two Lagrange multipliers: ๐ฟ ๐’˜, ๐œ†1, ๐œ†2 = 1 2 ๐’˜โ€ฒ ฦฉ๐’˜ + ๐œ†1 ๐‘…๐‘’ โˆ’ ๐’˜โ€ฒ ๐ + ๐œ†2 1 โˆ’ ๐’˜โ€ฒ ๐Ÿ Variance minimization with target mean return The first order conditions are: ๐œ•๐ฟ ๐œ•๐’˜ = ฦฉ๐’˜ โˆ’ ๐œ†1 ๐ โˆ’ ๐œ†2 ๐Ÿ = ๐ŸŽ ๐œ•๐ฟ ๐œ•๐œ†1 = ๐‘…๐‘’ โˆ’ ๐’˜โ€ฒ ๐ = 0 ๐œ•๐ฟ ๐œ•๐œ†2 = 1 โˆ’ ๐’˜โ€ฒ ๐Ÿ = 0 We solve the first equation for ๐’˜: ฦฉ๐’˜ = ๐œ†1 ๐ + ๐œ†2 ๐Ÿ ๐’˜ = ฦฉโˆ’๐Ÿ ๐œ†1 ๐ + ๐œ†2 ๐Ÿ = ๐œ†1ฦฉโˆ’๐Ÿ ๐ + ๐œ†2ฦฉโˆ’๐Ÿ ๐Ÿ Variance minimization with target mean return We need to get a formula for ๐œ†1 and one for ๐œ†2 that do not contain each other among their terms. Notice that if we pre-multiply each side by ๐โ€ฒ we get ๐โ€ฒ๐’˜ = ๐œ†1 ๐โ€ฒฦฉโˆ’๐Ÿ ๐ + ๐œ†2 ๐โ€ฒฦฉโˆ’๐Ÿ ๐Ÿ ๐‘…๐‘’ = ๐œ†1 ๐โ€ฒฦฉโˆ’๐Ÿ ๐ + ๐œ†2 ๐โ€ฒฦฉโˆ’๐Ÿ ๐Ÿ Likewise, if we pre-multiply each side by ๐Ÿโ€ฒ we get ๐Ÿโ€ฒ๐’˜ = ๐œ†1 ๐Ÿโ€ฒฦฉโˆ’๐Ÿ ๐ + ๐œ†2 ๐Ÿโ€ฒฦฉโˆ’๐Ÿ ๐Ÿ 1 = ๐œ†1 ๐Ÿโ€ฒฦฉโˆ’๐Ÿ ๐ + ๐œ†2 ๐Ÿโ€ฒฦฉโˆ’๐Ÿ ๐Ÿ Variance minimization with target mean return Therefore, we get a system of two equations: ๐‘…๐‘’ = ๐œ†1 ๐โ€ฒฦฉโˆ’๐Ÿ ๐ + ๐œ†2 ๐โ€ฒฦฉโˆ’๐Ÿ ๐Ÿ 1 = ๐œ†1 ๐Ÿโ€ฒฦฉโˆ’๐Ÿ ๐ + ๐œ†2 ๐Ÿโ€ฒฦฉโˆ’๐Ÿ ๐Ÿ ๐โ€ฒฦฉโˆ’๐Ÿ ๐, ๐โ€ฒ ฦฉโˆ’๐Ÿ ๐Ÿ, ๐Ÿโ€ฒฦฉโˆ’๐Ÿ ๐ and ๐Ÿโ€ฒ ฦฉโˆ’๐Ÿ ๐Ÿ are scalars. We name them as ๐ด = ๐โ€ฒฦฉโˆ’๐Ÿ ๐ ๐ต = ๐โ€ฒ ฦฉโˆ’๐Ÿ ๐Ÿ = ๐Ÿโ€ฒ ฦฉโˆ’๐Ÿ ๐ ๐ถ = ๐Ÿโ€ฒ ฦฉโˆ’๐Ÿ ๐Ÿ So the system of two equations is: ๐œ†1 ๐ด + ๐œ†2 ๐ต = ๐‘…๐‘’ ๐œ†1 ๐ต + ๐œ†2 ๐ถ = 1 Variance minimization with target mean return In matrix form the system is ๐ด ๐ต ๐ต ๐ถ ๐œ†1 ๐œ†2 = ๐‘…๐‘’ 1 We solve the system for ๐œ†1 and ๐œ†2: ๐œ†1 ๐œ†2 = ๐ด ๐ต ๐ต ๐ถ โˆ’1 ๐‘…๐‘’ 1 The inverse of 2 ร— 2 matrix ๐‘ด = ๐‘Ž ๐‘ ๐‘ ๐‘‘ is : ๐‘ดโˆ’๐Ÿ = 1 ๐‘Ž๐‘‘ โˆ’ ๐‘๐‘ ๐‘‘ โˆ’๐‘ โˆ’๐‘ ๐‘Ž Variance minimization with target mean return Hence, our system becomes ๐œ†1 ๐œ†2 = 1 ๐ด๐ถ โˆ’ ๐ต2 ๐ถ โˆ’๐ต โˆ’๐ต ๐ด ๐‘…๐‘’ 1 ๐œ†1 ๐œ†2 = 1 ๐ด๐ถ โˆ’ ๐ต2 ๐ถ๐‘…๐‘’ โˆ’ ๐ต โˆ’๐ต๐‘…๐‘’ + ๐ด which are the formulas we were looking for: ๐œ†1 = ๐ถ๐‘…๐‘’ โˆ’ ๐ต ๐ด๐ถ โˆ’ ๐ต2 ๐œ†2 = ๐ด โˆ’ ๐ต๐‘…๐‘’ ๐ด๐ถ โˆ’ ๐ต2 Variance minimization with target mean return Finally we plug these terms back in the first equation: ๐’˜ = ๐œ†1ฦฉโˆ’๐Ÿ ๐ + ๐œ†2ฦฉโˆ’๐Ÿ ๐Ÿ ๐’˜ = ๐ถ๐‘…๐‘’ โˆ’ ๐ต ๐ด๐ถ โˆ’ ๐ต2 ฦฉโˆ’๐Ÿ ๐ + ๐ด โˆ’ ๐ต๐‘…๐‘’ ๐ด๐ถ โˆ’ ๐ต2 ฦฉโˆ’๐Ÿ ๐Ÿ ๐’˜ ๐’Ž๐’—โˆ— = ฦฉโˆ’๐Ÿ ๐ถ๐‘…๐‘’ โˆ’ ๐ต ๐ด๐ถ โˆ’ ๐ต2 ๐ + ๐ด โˆ’ ๐ต๐‘…๐‘’ ๐ด๐ถ โˆ’ ๐ต2 ๐Ÿ where ๐ด = ๐โ€ฒฦฉโˆ’๐Ÿ ๐, ๐ต = ๐Ÿโ€ฒฦฉโˆ’๐Ÿ ๐ and ๐ถ = ๐Ÿโ€ฒฦฉโˆ’๐Ÿ ๐Ÿ. Variance minimization with target mean return Given a certain ๐ and ฦฉ, if the target return changes: โ€ข optimal weights without a risk-free asset, ๐’˜ ๐’Ž๐’—โˆ—, change without keeping their proportions โ€ข optimal weights with a risk-free asset, ๐’˜ ๐’Ž๐’˜, scale up (if ๐‘…๐‘’ increases) or down (if ๐‘…๐‘’ decreases), keeping their proportions With a risk-free asset, the only thing changing with different values of ๐‘…๐‘’ is how much wealth is allocated in risky assets. Variance minimization with target mean return Minimizing the portfolio variance with different Re is another, equivalent, way to draw the efficient frontier. Variance minimization with target mean return The efficient allocations are those associated with a positive slope. Those associated with a negative slope, which are obtained with very low or even negative ๐‘…๐‘’, are frontier but inefficient allocations. In the approach where we maximize utility given ๐›พ, those inefficient frontier allocations are obtained with negative ๐›พ values (i.e., the investor is risk-seeking). Tangency portfolio There is a point at which the efficient frontiers with and without a risk-free asset touch each other. That corresponds to the mean and standard deviation of the tangency portfolio: the one portfolio of risky assets which has the highest possible Sharpe ratio. All the points on the efficient frontier with a risk-free asset have the same Sharpe ratio. Therefore, the highest Sharpe ratio can always be achieved with the optimal weights given by the optimization procedures with a risk-free asset: ๐’˜ ๐‘ผ and 1 โˆ’ ๐’˜ ๐‘ผโ€ฒ๐Ÿ, or ๐’˜ ๐’Ž๐’— and 1 โˆ’ ๐’˜ ๐’Ž๐’˜โ€ฒ๐Ÿ. Tangency portfolio Two-fund separation theorem: the combination of the tangency portfolio and a risk-free asset gives the highest utility for a given risk-aversion level. To compute the tangency portfolio, we have maximize the Sharpe ratio with full investment in risky assets. Working with excess returns, the problem is: max ๐’˜ ๐’˜โ€ฒ๐ ๐’˜โ€ฒฦฉ๐’˜ subject to: ๐’˜โ€ฒ ๐Ÿ = 1 Tangency portfolio Notice that ๐’˜ ๐‘ผ (and ๐’˜ ๐’Ž๐’—) are the tangency portfolio weights scaled according to the risk preferences of the investor. Therefore, we can simply take the formula for ๐’˜ ๐‘ผ and divide it by its own sum: ๐’˜ ๐’•๐’‚๐’ = 1 ๐›พ ฦฉโˆ’๐Ÿ ๐ ๐Ÿโ€ฒ 1 ๐›พ ฦฉโˆ’๐Ÿ ๐ = ฦฉโˆ’๐Ÿ ๐ ๐Ÿโ€ฒฦฉโˆ’๐Ÿ ๐ This portfolio is plotted in purple in the next graph. Tangency portfolio