Modern Portfolio Theory

1. Basic Measurement Formulas (Input Parameters)

  • Expected return of a single asset (expected rate of return):
    $$E(R_i)=\sum_{s=1}^{n}p_s \cdot R_{i,s}$$

    Where $p_s$ is the probability of scenario $s$ occurring, and $R_{i,s}$ is the rate of return under that scenario.

  • Risk of a single asset (variance/standard deviation):
    $$\sigma_i^2=\sum_{s=1}^{n}p_s \cdot [R_{i,s}-E(R_i)]^2$$
    $$\sigma_i=\sqrt{\sigma_i^2}$$

    Parameter description: $\sigma_i^2$ is the variance of asset $i$, measuring the square of volatility; $\sigma_i$ is the standard deviation, which is the more intuitive volatility.

    Detailed explanation: Variance measures the degree to which returns deviate from the mean, while standard deviation restores risk to the same dimension as the rate of return, so it is more often used directly as the representation of "risk."

  • Covariance between two assets:
    $$\mathrm{Cov}(R_i,R_j)=\sigma_{ij}=\sum_{s=1}^{n}p_s \cdot [R_{i,s}-E(R_i)] \cdot [R_{j,s}-E(R_j)]$$

    Parameter description: $\sigma_{ij}$ is the covariance between asset $i$ and asset $j$; when it is positive, the two tend to rise and fall together; when it is negative, they tend to move in opposite directions.

    Detailed explanation: Covariance is where portfolio diversification truly takes effect. Portfolio risk comes not only from each asset's own volatility, but also from whether the assets move in the same direction.

  • Correlation coefficient (standardized covariance):
    $$\rho_{ij}=\frac{\sigma_{ij}}{\sigma_i \cdot \sigma_j}, \quad -1 \le \rho_{ij} \le 1$$

    Parameter description: $\rho_{ij}$ is the correlation coefficient, with a value ranging from $-1$ to $1$; $\rho_{ij}=1$ indicates perfect positive co-movement, and $\rho_{ij}=-1$ indicates perfect inverse co-movement.

    Detailed explanation: The correlation coefficient converts covariance into a dimensionless indicator, making it convenient to directly compare the strength of co-movement between assets. It is also the core meaning of the correlation matrix on this page.

2. Return and Risk of a Portfolio (Equivalent Formulas Combined)

Assume the portfolio contains $N$ assets, with weights $w_i$, and $\sum_{i=1}^{N} w_i = 1$.

  • Portfolio expected return (linear weighted):
    $$E(R_p)=\sum_{i=1}^{N} w_i \cdot E(R_i)$$

    Parameter description: $E(R_p)$ is the portfolio expected return; $w_i$ is the weight of the $i$-th asset in the portfolio; $E(R_i)$ is the expected return of the $i$-th asset.

    Detailed explanation: Portfolio return is the weighted average of each asset's return, so the larger the weight slider, the more obvious that asset's contribution to the portfolio's total return.

  • Portfolio variance (the following formulations are completely equivalent):
    $$\sigma_p^2=\sum_{i=1}^{N}\sum_{j=1}^{N} w_i w_j \sigma_{ij}$$
    $$\sigma_p^2=\sum_{i=1}^{N} w_i^2 \sigma_i^2+\sum_{i=1}^{N}\sum_{\substack{j=1 \\ j \ne i}}^{N} w_i w_j \sigma_{ij}$$
    $$\sigma_p^2=\sum_{i=1}^{N}\sum_{j=1}^{N} w_i w_j \rho_{ij}\sigma_i\sigma_j$$
    $$\sigma_p^2=\mathbf{w}^{\mathsf{T}}\Sigma\mathbf{w}$$

    Parameter description: $\sigma_p^2$ is portfolio variance; $\sigma_{ij}$ is covariance; $\rho_{ij}$ is the correlation coefficient; $\sigma_i,\sigma_j$ are asset volatilities; $\Sigma$ is the covariance matrix; $\mathbf{w}$ is the weight vector.

    Detailed explanation: The first formulation most directly pairs all assets with each other; the second decomposes it into "own-volatility terms + asset-pair terms"; the third rewrites covariance as "correlation coefficient × the volatilities of the two assets"; the fourth is the matrix formulation, which is convenient for programmatic computation and financial theory expression. The real-time risk expansion on the page is the visualized version of the second formulation.

  • Portfolio standard deviation (total risk):
    $$\sigma_p=\sqrt{\sigma_p^2}=\sqrt{\mathbf{w}^{\mathsf{T}}\Sigma\mathbf{w}}$$

    Parameter description: $\sigma_p$ is the portfolio standard deviation, which is usually shown to users as portfolio volatility.

    Detailed explanation: Variance is the squared form of risk and is more suitable for derivation; standard deviation has the same dimension as the rate of return and is more suitable for direct comparison in charts and investment decisions.

Two-Asset Special Case:
$$\sigma_p=\sqrt{w_1^2\sigma_1^2+w_2^2\sigma_2^2+2w_1w_2\sigma_{12}}$$

Parameter description: $w_1,w_2$ are the weights of the two assets, $\sigma_1,\sigma_2$ are their respective volatilities, and $\sigma_{12}$ is their covariance.

Detailed explanation: This special case most intuitively demonstrates the source of diversification: if the covariance is sufficiently low, or even negative, total portfolio risk will be less than the risk of holding either asset alone; when $\rho=-1$, in theory risk can even be compressed to an extremely low level, or close to zero, through appropriate weights.

3. Risk-Adjusted Return Metrics

  • Sharpe Ratio:
    $$\text{Sharpe Ratio}=\frac{E(R_p)-R_f}{\sigma_p}$$

    Parameter description: $E(R_p)$ is the portfolio expected return; $R_f$ is the risk-free rate; $\sigma_p$ is the portfolio standard deviation.

    Detailed explanation: The Sharpe ratio measures "how much excess return can be obtained for each unit of risk borne." The higher the value, the more efficient the portfolio is at the same level of risk; if returns are similar, a portfolio with a higher Sharpe ratio means better risk control.

Formula Parameter Interaction

Adjust the following parameters to observe the dynamic changes in formula calculation results and charts:

Asset Expected Returns (%)

Real-Time Expansion: Portfolio Expected Return

Each slider corresponds to one term $w_i \\times E(R_i)$. Below is the actual calculation expression for the weighted sum of the 5 assets.

Asset Volatilities (%)

Real-Time Expansion: Portfolio Variance

Here the complete 5×5 covariance summation is expanded, so you can directly see how each term $w_i w_j \\rho_{ij}\\sigma_i\\sigma_j$ accumulates into portfolio risk.

Risk-Free Rate (%)

%

Real-Time Formula Calculation

Portfolio Expected Return:0.00%
Portfolio Variance:0.00
Portfolio Volatility:0.00%
Sharpe Ratio:0.00

Formula Visualization

The following charts intuitively display the calculation process and results of the three core formulas:

Portfolio Expected Return

$E(R_p) = \sum_{i} w_i E(R_i)$

Portfolio Variance (Risk)

$\sigma_p^2 = \sum\sum w_i w_j \rho_{ij} \sigma_i \sigma_j$

Sharpe Ratio

$\text{Sharpe} = \frac{E(R_p) - R_f}{\sigma_p}$

Expected Annualized Return8.00%
Expected Volatility12.00%
Sharpe Ratio0.50

Introduction to Modern Portfolio Theory

Standard Introduction: In the context of SimLabs, asset allocation is not about first picking the single most promising asset, but about first discussing what happens when several types of assets are put together. Expected return, volatility, and correlation are the three most important buttons in this framework: together they determine whether the portfolio is smoother, more resilient, or quietly concentrates risk in one place. The meaning of the efficient frontier is also not to give a single correct answer, but to help users see the trade-offs among different risk-return combinations.

What Problem Does It Solve?

Core Problem Traditional investing relies excessively on a single asset or stock-picking ability and ignores systematic risk. MPT solves the optimization problem of how to maximize expected return for a given level of risk, or minimize risk for a given return target. It quantifies the benefits of diversification and proves the mathematical rationality of "don't put all your eggs in one basket."

Why Is It Important?

Importance MPT is the foundational work of modern portfolio theory and won the Nobel Prize in Economics. It revolutionized the inclusion of risk in the investment decision framework and proved that asset allocation, rather than individual stock selection, is the key factor determining long-term returns (research shows asset allocation contributes more than 90% of portfolio return volatility). It provides quantitative tools for rational investing and helps avoid blindly following trends and excessive concentration.

Application Scenarios

• Personal portfolio construction: determine the stock-bond ratio according to risk preference
• Pension fund management: optimize asset allocation under long-term liability constraints
• Insurance company asset-liability management: match the duration and risk of assets and liabilities
• Fund product design: build target-date funds with different risk levels
• Wealth management: customize personalized investment plans for high-net-worth clients

Deficiencies and Limitations

• Parameter sensitivity Expected returns, volatilities, and correlation coefficients depend on historical data estimates and may change in the future
• Normal distribution assumption Actual market returns have fat-tail characteristics, and the probability of extreme events is underestimated
• Static allocation The theory assumes allocation remains unchanged during the holding period and does not consider dynamic rebalancing needs
• Ignoring transaction costs Frequent rebalancing generates costs that erode returns
• Over-optimization risk The optimal allocation based on historical data may perform poorly in the future

Theoretical Sources / Further Reading

• Harry Markowitz: Portfolio Selection (1952)
• William F. Sharpe: Portfolio Theory and Capital Markets
• Zvi Bodie, Alex Kane, Alan J. Marcus: Investments

Instructions for Use

This page is a theoretical explanation and interactive simulation for educational purposes and does not constitute investment advice.