Reading Material - Module-4 - Portfolio Optimization and Analytics
Reading Material - Module-4 - Portfolio Optimization and Analytics
FINANCIAL ANALYTICS
Curated by Kiran Kumar K V
Content Structure
If you bought a stock for Rs. 50, received Rs. 2 in dividends, and the stock price increased to
Rs. 60 during the holding period, the holding period return would be:
Suppose you have the following annual returns for a stock over a 5-year period: 10%, 5%, -
2%, 8%, and 12%. To calculate the average return, you would sum up these returns and divide
by the number of periods:
Keep in mind that these calculations provide simple measures of return and may not account
for factors such as taxes, transaction costs, or inflation. Additionally, when using price-based
returns, it's essential to adjust for stock splits, dividends, and other corporate actions that
affect the security's price.
Computing Risk Measures on a Security
To compute the variance and standard deviation of returns of a security, you'll need historical
data on the security's returns over a specific period.
1. Variance of Returns:
The variance of returns measures the dispersion or variability of the security's returns around
its mean return. It provides insights into the level of risk or volatility associated with the
security. The formula for calculating the variance of returns is:
Suppose you have the following annual returns for a security over a 5-year period: 10%, 5%,
-2%, 8%, and 12%. To calculate the variance and standard deviation of returns:
So, the variance of returns for the security is approximately 29.8% and the standard deviation
of returns is approximately 5.46%.
3. Beta of Returns:
To compute the beta of an individual security, you need historical data on the returns of the
security as well as the returns of a market index over the same time period. Beta measures
the sensitivity of a security's returns to the returns of the overall market.
Finally, calculate the beta of the security by dividing the covariance between the security and
the market index by the variance of the market returns. (Covariance of returns computation
is shown in the next section)
A beta greater than 1 indicates that the security tends to be more volatile than the market,
while a beta less than 1 indicates that the security tends to be less volatile than the market.
Given that the covariance and variance of market returns as below, let's compute the beta:
Covariance between Security and Market: 23.3%
Variance of Market Returns: 18.3%
2. Correlation of Returns:
Correlation measures the strength and direction of the linear relationship between the returns
of two securities. It is a standardized measure that ranges from -1 to 1, where -1 indicates a
perfect negative correlation, 0 indicates no correlation, and 1 indicates a perfect positive
correlation. The formula for calculating the correlation of returns between two securities 𝑋
and 𝑌 is:
Suppose you have the following annual returns for two securities, Security X and Security Y,
over a 5-year period:
Security X: 10%, 5%, -2%, 8%, and 12%
Security Y: 8%, 4%, -1%, 7%, and 10%
To calculate the covariance and correlation of returns between Security X and Security Y:
1. Portfolio Return
The portfolio return is the weighted average of the returns of the individual securities in the
portfolio. The formula to compute the portfolio return is:
3. Portfolio Beta
The portfolio beta measures the sensitivity of the portfolio's returns to the returns of the
market index. It is a weighted average of the betas of the individual securities in the portfolio.
The formula to compute the portfolio beta is:
Let's compute the portfolio return, standard deviation, and beta for the below example.
2. Treynor Ratio:
The Treynor ratio measures the excess return per unit of systematic risk, where systematic risk
is measured by the portfolio's beta. It's calculated as:
Jensen's alpha measures the risk-adjusted return of the portfolio after adjusting for systematic
risk. It's calculated as the difference between the actual portfolio return and the expected
return predicted by the Capital Asset Pricing Model (CAPM):
In an efficient frontier, inefficient portfolios refer to those that offer suboptimal risk-return
trade-offs compared to portfolios that lie on the frontier itself. These portfolios provide
inferior risk-return characteristics compared to portfolios on the efficient frontier. These
portfolios either offer lower expected returns for a given level of risk or higher risk for a given
level of expected return.
Inefficient Portfolios
The minimum variance portfolio represents the portfolio with the lowest level of risk or
volatility achievable within a given investment universe. It is characterized by the smallest
possible standard deviation or variance of returns among all portfolios on the efficient
frontier.
The efficient frontier represents the set of optimal portfolios that offer the highest expected
return for a given level of risk or the lowest risk for a given level of expected return. EF
illustrates the range of possible portfolios that maximize returns for a given level of risk, or
minimize risk for a given level of return.
Characteristics
Convex Shape - The efficient frontier typically exhibits a convex shape, indicating that as
an investor seeks higher expected returns, they must accept increasing levels of risk.
Optimal Portfolios - Portfolios lying on the efficient frontier are considered optimal
because they offer the best risk-return trade-offs available within the investment universe.
Diversification - The efficient frontier underscores the importance of diversification in
portfolio construction. By combining assets with different risk-return profiles, investors
can achieve portfolios that lie on or close to the efficient frontier, thereby maximizing
returns while minimizing risk.
Efficient Frontier
Multi-Objective Optimization
Extend portfolio optimization to consider multiple conflicting objectives simultaneously, such
as maximizing returns, minimizing risk, and achieving specific constraints. Employ multi-
objective optimization algorithms to identify Pareto-optimal solutions that represent trade-
offs between competing objectives.
Hierarchical Risk Parity (HRP)
Apply hierarchical clustering techniques to group assets into clusters based on their pairwise
correlations. Construct portfolios using the HRP framework, which allocates weights to
clusters rather than individual assets, promoting diversification and stability across different
market regimes.
Machine Learning-based Portfolio Construction
Leverage machine learning algorithms, such as neural networks, random forests, or deep
learning models, to extract complex patterns from historical data and generate optimized
portfolios. Explore techniques like reinforcement learning for portfolio allocation in dynamic
and non-linear environments.
Integration of Alternative Assets
Extend portfolio optimization to include alternative assets classes such as private equity,
hedge funds, real estate, or commodities. Develop custom optimization models that account
for illiquidity, non-normal return distributions, and unique risk factors associated with
alternative investments.
Economic Scenario Generation
Generate a comprehensive set of economic scenarios using Monte Carlo simulations,
historical bootstrapping, or scenario-based modeling techniques. Optimize portfolios to
perform well across a wide range of economic scenarios, including stress testing and scenario
analysis.
risk in exchange for the possibility of higher returns. They may prefer portfolios with higher
expected returns, even if they come with greater volatility.
Portfolio optimization involves selecting the portfolio that maximizes the investor's utility
function. This typically involves solving an optimization problem that considers the trade-off
between risk and return while taking into account the investor's utility function and
constraints such as budget constraints, asset class constraints, and regulatory constraints.
Case of Building an Efficient & Optimum Portfolio using Excel
Step-1. We considered 5 stocks Apar Industries, Oil India, Apollo Tyres, Tata Chemicals &
Narayana Hrudayalaya
Step-2. Collected the below inputs:
Step-5. Using the SOLVER pack in Excel, determined the optimal weights
Repeat the same process to either maximize Treynor’s Ratio or Jensen’s Alpha
~~~~~~~~~~