Sub topic 1
Measuring Return and Risk
Prerequisites
This chapter assumes you can use a financial calculator, understand the mean and standard deviation of a data set, and know the basic time value of money. You should also know what stocks, bonds, and the risk-free rate are.
Measuring Return
The holding period return (HPR) is the total gain or loss over one period, expressed as a fraction of the starting value. For a period with a return of 10%, the growth factor is 1.10.
Over several periods, the arithmetic mean averages the period returns. The geometric mean gives the compound annual rate that would produce the same ending value. Use the geometric mean for multi-period performance.
Measuring Risk: Variance and Standard Deviation
Variance is the average squared deviation of returns from their mean. Standard deviation is its square root, which returns the measure to the same units as the returns.
Covariance and Correlation
Covariance measures how two assets move together. Correlation rescales covariance to a value between -1 and +1:
correlation = covariance / (sd1 x sd2)
Risk Aversion and Utility
Investors who prefer less risk for the same expected return are risk averse. Utility is a score that ranks outcomes by how much an investor values them. A risk-averse investor's utility rises with return and falls with variance.
Expected Return and Risk of a Portfolio
A portfolio's expected return is the weighted average of its assets' expected returns. Its variance also depends on the correlation between the assets.
from math import sqrt
def portfolio_stats(w1, r1, r2, s1, s2, rho):
w2 = 1 - w1
exp_return = w1 * r1 + w2 * r2
variance = (w1 * s1) ** 2 + (w2 * s2) ** 2 + 2 * w1 * w2 * s1 * s2 * rho
return exp_return, sqrt(variance)
# 60% in asset 1 (E[R]=10%, sd=20%), 40% in asset 2 (E[R]=6%, sd=10%)
for rho in (1.0, 0.3, -1.0):
ret, sd = portfolio_stats(0.6, 0.10, 0.06, 0.20, 0.10, rho)
print(f"rho={rho:+.1f} E[R]={ret:.2%} sd={sd:.2%}")The expected return stays at 8.40% for every correlation. The standard deviation falls from 16.00% at rho = +1 to 8.00% at rho = -1.
Exercise
A portfolio holds 50% in asset 1 (sd = 20%) and 50% in asset 2 (sd = 10%). If the correlation is 0, what is the portfolio standard deviation?
Show answer
Variance = (0.5 x 0.20)^2 + (0.5 x 0.10)^2 = 0.01 + 0.0025 = 0.0125. Standard deviation = sqrt(0.0125) = 11.18%.