Topic1 2 EfficientPortfolios VarCov
1. Foundations of risk return tradeoff and portfolio volatility
This section summarizes the foundational concepts governing the relationship between expected return and risk (volatility) in investments, focusing on measures like the Sharpe ratio and the role of diversification in portfolio construction via covariance and correlation.
1.1 Measuring return and risk
Risk in finance is defined as the uncertainty associated with future outcomes, often summarized quantitatively using standard deviation (σ), which measures the dispersion of returns around the expected value. Expected returns are calculated based on forecasts, while the quantity of risk is encapsulated by volatility 4.
1.1.1 The Sharpe Ratio
The Sharpe Ratio (SR) is the primary metric used to quantify the tradeoff between expected return and risk, indicating how much expected excess return is achieved per unit of standard deviation (the price of risk).
The formula is: SR=σ^R−Rf [https://ixscdoswnqhohheqmami.supabase.co/storage/v1/object/public/documents/83751f0e-aca9-471d-bbab-d788ea0fa762/courses/912979d1-b55a-43f1-a618-27d180efcac9/figures/37c8e7ff-694e-4a2e-88f7-ee83cc5802e3/fig_005_01_975ff000d5dc.jpg Key components of the Sharpe Ratio:
- The numerator, R−Rf, is the expected excess return, where R is the expected portfolio return and Rf is the risk-free rate.
- The denominator, σ^, represents the standard deviation of the portfolio's excess return.
Tip: A higher Sharpe Ratio implies a better risk-adjusted return, making it a crucial tool for comparing different investment opportunities 5.
1.2 The volatility of a two-stock portfolio
Combining multiple stocks into a portfolio allows for risk reduction through diversification. The extent of this risk reduction depends directly on the degree to which the assets' prices move together, which is captured by their covariance.
1.2.1 Covariance and Correlation
Covariance measures the degree to which two assets' returns move together: a positive covariance implies they tend to move in the same direction, while a negative covariance suggests they move in opposite directions.
The correlation coefficient refines this concept by measuring the strength and direction of the co-movement, always ranging between −1 and +1. A correlation of 0 indicates that the returns are uncorrelated 6 7.
1.2.2 Portfolio Variance Calculation
The standard deviation (volatility) of a portfolio is generally not a weighted average of the individual asset volatilities, except in the special case where assets are perfectly positively correlated (ρ=+1) 8.
The portfolio variance, Var(Rp), is calculated as the covariance of the portfolio return with itself, Cov(Rp,Rp). For a two-stock portfolio with weights x1 and x2: Var(Rp)=x12Cov(R1,R1)+x1x2Cov(R1,R2)+x2x1Cov(R2,R1)+x22Cov(R2,R2) [https://ixscdoswnqhohheqmami.supabase.co/storage/v1/object/public/documents/83751f0e-aca9-471d-bbab-d788ea0fa762/courses/912979d1-b55a-43f1-a618-27d180efcac9/figures/37c8e7ff-694e-4a2e-88f7-ee83cc5802e3/fig_009_01_73b11a4f44ef.jpg Since Cov(Ri,Ri)=Var(Ri) and Cov(R1,R2)=Cov(R2,R1), the expanded form is: Var(Rp)=x12σ12+x22σ22+2x1x2Cov(R1,R2) The covariance term can also be expressed using correlation (ρ12): 2x1x2ρ12σ1σ2. A crucial insight is that lower covariance (or correlation) leads to smaller portfolio variance 9.
1.3 Portfolio choice and the efficient frontier
The core problem in asset allocation is mean-variance portfolio optimization: determining the best portfolio mix that yields the highest possible expected return for a given acceptable level of volatility. This process involves two steps: first, optimizing the portfolio of risky assets, and second, deciding how to allocate between this optimal risky portfolio and the risk-free asset (the separation property) 11 12.
1.3.1 Defining efficient and inefficient portfolios
When considering portfolios made of two stocks, such as Intel (I) and Coca-Cola (C):
-
Inefficient Portfolios: A portfolio is inefficient if another attainable portfolio exists that offers a higher expected return for the same level of volatility, or the same expected return with lower volatility. For instance, solely investing 100% in Coca-Cola might be inefficient if a mixed portfolio yields a higher return with lower risk14.
-
Efficient Portfolios: An efficient portfolio is one where it is impossible to reduce the portfolio's volatility without consequently lowering its expected return 13.
1.3.2 The Efficient Frontier with Two Assets
When plotting Expected Return against Volatility for all possible combinations of two assets, the set of efficient portfolios forms the Efficient Frontier, typically represented by the upper boundary curve.
[https://ixscdoswnqhohheqmami.supabase.co/storage/v1/object/public/documents/83751f0e-aca9-471d-bbab-d788ea0fa762/courses/912979d1-b55a-43f1-a618-27d180efcac9/figures/37c8e7ff-694e-4a2e-88f7-ee83cc5802e3/fig_015_01_4dad6538ad7d.jpg The endpoints of the curve represent the single-asset portfolios (e.g., 100% Intel or 100% Coca-Cola). All portfolios lying below this frontier (the blue curve in the illustration) are inefficient because a portfolio on the red line offers a superior risk-return profile for the same risk level 15.
1.3.3 The Role of Correlation in Diversification
Correlation critically affects portfolio volatility but has no impact on the portfolio's expected return for any given set of weights.
- As the correlation between the two assets decreases, the resulting portfolio volatility falls, demonstrating increased diversification benefits.
- The lowest possible volatility for a combination of two assets is achieved when correlation is −1 17.
1.3.4 Incorporating Short Sales
Allowing for short positions (negative portfolio weights) means selling borrowed securities to profit from anticipated price declines. While shorting one stock (e.g., Intel) to invest more heavily in another (Coca-Cola) changes the set of possible portfolios, combinations involving detrimental shorting may still result in inefficient frontiers (represented by lower dashed curves) 18 19.
1.4 Extending to Many Assets
The principles derived from two assets generalize to N risky assets. Diversification benefits continue as more stocks are added to the portfolio. Even if a new stock (like Bore Industries) has a lower return and the same volatility as an existing holding (Coca-Cola), adding it can still be beneficial due to its unique diversification benefits derived from its covariance structure with the existing portfolio 20 22.
[https://ixscdoswnqhohheqmami.supabase.co/storage/v1/object/public/documents/83751f0e-aca9-471d-bbab-d788ea0fa762/courses/912979d1-b55a-43f1-a618-27d180efcac9/figures/37c8e7ff-694e-4a2e-88f7-ee83cc5802e3/fig_021_01_7d0dd68a20ab.jpg When three stocks (Intel, Coca-Cola, and Bore Industries) are combined, the resulting set of attainable portfolios forms a shaded region, and the upper boundary is the Efficient Frontier for three stocks. In this case, none of the individual stocks lies on this frontier, meaning a diversified portfolio is superior to holding any single asset 23.
[https://ixscdoswnqhohheqmami.supabase.co/storage/v1/object/public/documents/83751f0e-aca9-471d-bbab-d788ea0fa762/courses/912979d1-b55a-43f1-a618-27d180efcac9/figures/37c8e7ff-694e-4a2e-88f7-ee83cc5802e3/fig_022_01_bc4472cbb55b.jpg [https://ixscdoswnqhohheqmami.supabase.co/storage/v1/object/public/documents/83751f0e-aca9-471d-bbab-d788ea0fa762/courses/912979d1-b55a-43f1-a618-27d180efcac9/figures/37c8e7ff-694e-4a2e-88f7-ee83cc5802e3/fig_023_01_d2ad935dbb6c.jpg As the number of assets in the portfolio increases (e.g., moving from three to ten stocks), the effect of diversification causes the efficient frontier to shift consistently to the left (lower volatility) for any given level of expected return 24.
1.4.1 Global Minimum-Variance Portfolio (GMVP)
The Global Minimum-Variance Portfolio (GMVP) is a specific point on the efficient frontier identified as the portfolio achieving the absolute lowest possible variance (the far-left point) 26.
The GMVP is always an efficient portfolio, as it dominates all interior portfolios by offering the lowest risk. However, the GMVP is not necessarily the optimal portfolio for every investor, as an investor might prefer a higher expected return even if it requires slightly higher volatility than the GMVP. The efficient frontier itself comprises the set of portfolios starting from the GMVP and moving upward along the minimum-variance frontier 27.
2. Incorporating the risk-free asset and the capital allocation line
The introduction of a risk-free asset fundamentally alters the investment opportunity set by allowing investors to combine this asset with any risky portfolio, creating the Capital Allocation Line (CAL), which leads to the identification of the single optimal risky portfolio.
Mixing risky assets with a risk-free asset
Historically, analysis focused solely on combining risky investments to achieve diversification and map out the efficient frontier. The next step involves allowing investors to mix their chosen risky portfolio with a risk-free asset, such as Treasury Bills (T-Bills). While adding a risk-free asset generally reduces the portfolio's overall volatility (standard deviation), it is expected to lower the portfolio's expected return unless the risky portfolio itself is risk-free 29.
When an investor combines a fraction of funds in a risky portfolio P and the remaining in a risk-free asset, both the expected return E(Rc) and the standard deviation σc of the combined portfolio c are linear functions of y, the fraction invested in the risky portfolio P: E(Rc)=rf+y(E(Rp)−rf) σc=yσp where rf is the risk-free rate and E(Rp) and σp are the expected return and standard deviation of the risky portfolio P, respectively. This linear relationship dictates the formation of the Capital Allocation Line (CAL).

The Capital Allocation Line (CAL)
The Capital Allocation Line (CAL) represents all possible risk-return combinations achieved by mixing a single risky portfolio with the risk-free asset. If we consider two different risky portfolios, A and B, the CAL drawn through A, denoted CAL(A), will be distinct from the CAL drawn through B, CAL(B).
Tip: The CAL is always a straight line originating from the risk-free rate (which has zero standard deviation) and passing through the specific risky portfolio chosen for combination. Different risky portfolios generate different CALs 32.

Identifying the Optimal Risky Portfolio (ORP) through the Sharpe Ratio
When a risk-free asset is available, the investor seeks the CAL that offers the best risk-return trade-off, meaning the steepest possible line connecting rf to the efficient frontier of risky assets.
The slope of any CAL connecting the risk-free asset to a risky portfolio P is the Sharpe Ratio (SR) of portfolio P: Sharpe Ratio=Portfolio VolatilityPortfolio Excess Return=σ(Rp)E(Rp)−rf The Sharpe Ratio serves as a reward-to-risk measure, where a higher value indicates a more attractive portfolio 35.
The Optimal Risky Portfolio (ORP), also known as the tangency portfolio (P), is the unique portfolio on the efficient frontier of risky assets that yields the highest possible Sharpe Ratio. Geometrically, this corresponds to the point where the CAL is tangent to the efficient frontier of risky investments 36 37.
Example: If an investor combines the risk-free asset with a risky portfolio P, the resulting CAL has a constant slope equal to the Sharpe Ratio of P. Therefore, to maximize the return compensation per unit of standard deviation, the investor must select the portfolio P that maximizes this slope 38.

The Separation Property
The solution to maximizing the Sharpe Ratio yields the unique ORP, which is the tangency portfolio. This finding leads to the powerful Separation Property 33:
- Security Selection is Universal: All investors, regardless of their individual risk aversion, will choose to hold the exact same portfolio of risky assets—the tangency portfolio P. This portfolio P offers the best possible risk-return trade-off available from the risky asset universe.
- Capital Allocation is Personalized: An individual investor's risk aversion determines the final optimal allocation between the risk-free asset and the ORP P.
The overall security selection process, incorporating the risk-free asset, follows these steps:
- Determine the risk-return opportunities by establishing the efficient frontier of risky assets (the upper boundary of the minimum-variance frontier).
- Search for the CAL with the highest Sharpe Ratio (the steepest slope), identifying the tangency portfolio P.
- The individual investor selects the optimal mix between P and T-bills based on their personal risk aversion 40.


3. Matrix notation and implementation of mean-variance analysis in Excel
This section summarizes the formalization of portfolio theory using matrix algebra and details the step-by-step process for implementing key calculations, such as the Global Minimum-Variance Portfolio (GMVP) and the Mean-Variance Frontier, using Microsoft Excel tools like Solver.
3.1 Matrix Notation for Portfolio Characteristics
Portfolio analysis relies on representing expected returns and the relationships between assets using matrix notation. For N risky assets, the required inputs are the vector of expected returns and the variance-covariance matrix (S).
The vector of expected returns, R, is defined as:
R=E(R1)E(R2)⋮E(RN)
The variance-covariance matrix, S, captures the risk structure, where diagonal elements represent individual asset variances (σii) and off-diagonal elements represent covariances (σij):
S=σ11σ21⋮σN1σ12σ22⋮σN2⋯⋯⋱⋯σ1Nσ2N⋮σNN

A portfolio is defined by a vector of weights x=[x1,x2,…,xN]T, where the sum of weights must equal one: ∑i=1Nxi=1. The expected return of the portfolio, E(RP), is the dot product of the transposed weight vector and the expected return vector:
E(RP)≡xTR=∑i=1NxiE(Ri)
The portfolio variance, σP2, is calculated using the following quadratic form:
σP2=xTSx=∑i=1N∑j=1Nxixjσij
In Excel, this matrix multiplication is implemented using the MMult array function: =MMult(MMult(x\_as\_row, VarCov), x\_as\_column) 44.
3.2 Excel Implementation Steps for Generic Portfolio Evaluation
Implementing portfolio construction involves a sequential process in Excel, starting from data preparation to calculating portfolio statistics. The initial steps focus on estimating parameters and setting up the weight vector 47.
Overview of 5 Implementation Steps:
- Estimate Statistics: Calculate expected returns E(Ri) and the variance-covariance matrix SVarCov.
- Set Weights: Establish a column for portfolio weights (x vector), often starting with an equally-weighted portfolio.
- Calculate Variance: Construct the portfolio variance using the formula xTSVarCovx.
- Calculate Expected Return: Determine the portfolio expected return. If there is no risk-free asset, this is ∑xiE(Ri). If a risk-free rate (rf) is involved, the excess return formulation is often used: ∑xi(E(Ri)−rf) 52.
- Summation: Sum the individual weighted returns across all assets to yield the final portfolio expected return.
Step 1 Detail: Estimating Statistics Data typically involves downloading historical price data, which must then be converted into returns. The variance-covariance matrix S is calculated from demeaned returns (R~) using the formula S=M−1R~TR~, where M is the number of observations 49.

Step 2 Detail: Setting Weights
If an equally-weighted portfolio is set up, all assets receive the same proportion, 1/N. This is often achieved in Excel using functions like =1/COUNTA(...) applied across the weight column 50.
Steps 3, 4, and 5: Constructing Portfolio Metrics Steps 3, 4, and 5 aggregate the inputs. Portfolio variance is calculated using the matrix approach derived earlier. Expected portfolio return is found by summing the weighted individual returns (Step 5) 51 53.
3.3 Implementation of the Global Minimum-Variance Portfolio (GMVP)
The GMVP represents the portfolio on the efficient frontier with the lowest possible risk, irrespective of return targets. Finding its weights xGMVP relies solely on the variance-covariance matrix S.
The weight vector for the GMVP is derived using the inverse of the variance-covariance matrix (S−1): xGMVP=1TS−11S−11 where 1 is a column vector of ones 54.

Once the GMVP weights are determined (Step 2), the portfolio variance (Step 3) and expected return (Steps 4 and 5) are calculated using the standard matrix formulas established previously. The calculation of the GMVP variance in Excel involves matrix multiplication based on these specific weights. The resulting returns associated with the GMVP construction are then cataloged for plotting the frontier 55 56.
3.4 Mean-Variance Frontier and Optimization
The mean-variance frontier maps out all portfolios offering the highest expected return for a given level of risk (or the lowest risk for a given return). This involves solving constrained optimization problems.
3.4.1 Frontier Derivation in the N-Asset Case
For the general N-asset case, constructing the frontier requires minimizing portfolio variance subject to two key constraints:
- The sum of weights equals one: ∑i=1Nxi=1.
- The expected portfolio return must equal a specific target return, R∗: ∑i=1NxiE(Ri)=R∗.
The objective function to minimize is the portfolio variance:
minxi,…,xnVar(RP)=minxi,…,xn∑i=1N∑j=1NxixjCov(Ri,Rj)

The frontier is typically constructed by re-running this optimization procedure for various target return levels (R∗).
3.4.2 Optimal Risky Portfolio (ORP)
The ORP is the specific portfolio on the frontier that maximizes the Sharpe Ratio (SRP): maxxi,…,xnSRP=maxxi,…,xnVar(RP)E(RP)−rf This maximization is subject only to the constraint that the weights sum to one, ∑i=1Nxi=1 60.
Tip: Constructing the full mean-variance analysis involves forecasting parameters (Step 1), imposing necessary constraints like regulatory limits or no short sales (Step 2), finding the minimum variance portfolio (Step 3), computing the frontier by iterating on target returns (Step 4), and finally maximizing the Sharpe Ratio to find the ORP (Step 5).
3.5 Utilizing Excel Solver for Optimization
For complex optimization problems, especially as the number of assets increases, specialized optimization software is necessary. In Excel, the Solver add-in is utilized for these tasks 61.
Solver can be configured to execute several critical mean-variance objectives:
- Find the global minimum variance (GMVP).
- Minimize portfolio variance subject to a required portfolio expected return (R∗).
- Maximize expected return subject to a maximum allowable portfolio variance or standard deviation.
- Maximize the investor's utility function, often expressed as: Maximize{E(RP)−2A1×Var(RP)}, where A is the risk aversion coefficient.
Solver also allows the imposition of practical constraints, such as ensuring no short sales (i.e., xi≥0) or setting minimum and maximum holding limits for specific assets.
Example: To find the GMVP in Excel using Solver, the objective cell would be the portfolio variance calculation (Step 3 output), the goal would be set to "Min," and the constraints would include the sum of weights equaling one, and potentially non-negativity constraints if short sales are prohibited 62.
Common mistakes to avoid
- Review all topics thoroughly before exams
- Pay attention to formulas and key definitions
- Practice with examples provided in each section
- Don't memorize without understanding the underlying concepts
© 2026 Maeve. All rights reserved. This content is protected by copyright.