Here's a simplified example incorporating the Markowitz Model for portfolio optimization, along with calculations for entropy and mutual information. To keep it focused, we'll work with a specific, simplified case involving just two assets.
Case Specifications:
- Assets: 2 (e.g., Stocks)
- Asset 1: AAPL (Apple Inc.)
- Asset 2: GOOG (Alphabet Inc.)
- Time Frame for Analysis: 1 Year (for simplicity, we'll use a single time frame for all calculations)
- Given Data (Simplified):
- Expected Returns:
- AAPL: ( \mu_{AAPL} = 8% ) or (0.08)
- GOOG: ( \mu_{GOOG} = 10% ) or (0.10)
- Covariance Matrix (Simplified for Illustration):
- ( \sigma_{AAPL}^2 = 0.04 ) (Variance of AAPL)
- ( \sigma_{GOOG}^2 = 0.09 ) (Variance of GOOG)
- ( \sigma_{AAPL, GOOG} = 0.02 ) (Covariance between AAPL and GOOG)
Markowitz Model for Portfolio Optimization:
The Markowitz model aims to minimize portfolio risk (measured by the standard deviation of the portfolio's returns) for a given level of expected return, or maximize the expected return for a given level of risk.
-
Portfolio Expected Return ((E(R_p))):
[ E(R_p) = w_{AAPL}\mu_{AAPL} + w_{GOOG}\mu_{GOOG} ]
- Where (w_{AAPL}) and (w_{GOOG}) are the weights (proportions) of AAPL and GOOG in the portfolio, respectively, with (w_{AAPL} + w_{GOOG} = 1).
-
Portfolio Variance ((\sigma_p^2)):
[ \sigma_p^2 = w_{AAPL}^2\sigma_{AAPL}^2 + w_{GOOG}^2\sigma_{GOOG}^2 + 2w_{AAPL}w_{GOOG}\sigma_{AAPL, GOOG} ]
Optimization Example (Simplified):
For simplicity, let's find the portfolio with the minimum risk (variance) that achieves an expected return of at least 9%.
- Given (E(R_p) = 0.09), solve for (w_{AAPL}) and (w_{GOOG}) that minimizes (\sigma_p^2).
- Constraint: (0.08w_{AAPL} + 0.10w_{GOOG} = 0.09)
- Solving for Weights (Highly Simplified for Illustration):
- Let's assume after solving the optimization problem (typically requiring quadratic programming), we find:
- (w_{AAPL} = 0.5)
- (w_{GOOG} = 0.5)
To derive these weights in practice, you would use optimization techniques, such as quadratic programming, to minimize the portfolio variance under the given return constraint. This involves setting up the optimization problem as follows:
- Minimize (\sigma_p^2 = w_{AAPL}^2\sigma_{AAPL}^2 + w_{GOOG}^2\sigma_{GOOG}^2 + 2w_{AAPL}w_{GOOG}\sigma_{AAPL, GOOG})
- Subject to: (0.08w_{AAPL} + 0.10w_{GOOG} = 0.09) and (w_{AAPL} + w_{GOOG} = 1)
Solving this system of equations yields the optimal weights that achieve the desired return with the lowest possible risk.
Calculating Portfolio Variance with Given Weights:
[ \sigma_p^2 = (0.5)^2(0.04) + (0.5)^2(0.09) + 2(0.5)(0.5)(0.02) ]
[ \sigma_p^2 = 0.01 + 0.0225 + 0.02 ]
[ \sigma_p^2 = 0.0525 ]
[ \sigma_p = \sqrt{0.0525} \approx 0.229 , \text{or} , 22.9% ]
Entropy Calculation:
Entropy measures the uncertainty or randomness in a probability distribution. For financial returns, we can conceptualize entropy as a measure of the uncertainty in the distribution of returns. Here, we'll calculate the entropy for a discrete distribution of returns for simplicity, assuming we have only the expected returns and variances as proxies for the distribution's characteristics. In practice, you'd typically have a histogram of returns or a more detailed distribution.
Given the simplicity, let's calculate the entropy for a binary outcome (e.g., return above or below expected return) for each asset, acknowledging this is a vast simplification.
- Entropy Formula (for a binary distribution): (H(X) = -[p\log_2(p) + (1-p)\log_2(1-p)])
- Assuming (p) (probability of exceeding expected return) is 0.5 for simplicity for both assets (acknowledging this is a significant simplification):
- (H(AAPL) = H(GOOG) = -[0.5\log_2(0.5) + 0.5\log_2(0.5)])
- (H(AAPL) = H(GOOG) = 1 , \text{bit})
For a more realistic scenario, consider using historical return data to estimate probabilities. For instance, if AAPL's returns were above its mean 60% of the time, you could use (p = 0.6) for a more informed calculation.
Mutual Information Calculation:
Mutual information measures the dependence between two variables. Here, we calculate it between the returns of AAPL and GOOG, again with significant simplifications.
-
Mutual Information Formula: (I(X;Y) = H(X) + H(Y) - H(X,Y))
-
To calculate (H(X,Y)), the joint entropy, you need the joint probability distribution of the returns, (P(X,Y)). For a simple example, assume:
- (P(\text{AAPL above mean, GOOG above mean}) = 0.4)
- (P(\text{AAPL above mean, GOOG below mean}) = 0.2)
- (P(\text{AAPL below mean, GOOG above mean}) = 0.1)
- (P(\text{AAPL below mean, GOOG below mean}) = 0.3)
-
Joint Entropy (H(X,Y)) Calculation:
[H(X,Y) = -\sum_{x,y} P(x,y) \log_2 P(x,y)]
[H(X,Y) = -[0.4\log_2(0.4) + 0.2\log_2(0.2) + 0.1\log_2(0.1) + 0.3\log_2(0.3)]]
[H(X,Y) \approx -[0.4(-1.32) + 0.2(-2.32) + 0.1(-3.32) + 0.3(-1.74)]]
[H(X,Y) \approx -[-0.528 - 0.464 - 0.332 - 0.522]]
[H(X,Y) \approx 1.846 , \text{bits}]
-
Mutual Information:
[I(AAPL;GOOG) = H(AAPL) + H(GOOG) - H(AAPL, GOOG)]
[I(AAPL;GOOG) = 1 + 1 - 1.846]
[I(AAPL;GOOG) \approx 0.154 , \text{bits}]
This non-zero mutual information indicates a dependence between AAPL and GOOG returns, which is more realistic than assuming independence.
Summary:
- Portfolio Optimization (Simplified):
- Weights: AAPL=0.5, GOOG=0.5
- Expected Return: 9%
- Portfolio Variance: 0.0525, Standard Deviation: ≈22.9%
- Entropy (Simplified with Binary Outcomes):
- Mutual Information (with Joint Probability Distribution):
- (I(AAPL;GOOG) \approx 0.154) bits, indicating some dependence between the assets.
Important Note: This example is highly simplified for educational purposes. Real-world applications involve:
- More assets
- Detailed historical return data
- More accurate distribution assumptions
- Quadratic programming for optimization
- Actual joint probability distributions for entropy and mutual information calculations.