Kernel: Python 2
In [1]:
Parameters
Asset 1 is a bond (low Sharpe)
Asset 2 is equities (high Sharpe)
Bonds and equities are negatively correlated
In [2]:
Solving the constrained optimization program
In [3]:
Minimum variance portfolio
Tangent portfolio
In [4]:
Out[4]:
pi1 [ 0.79588336 0.20411664]
volpi1 0.0586737352153
pistar [ 0.46783626 0.53216374]
volpistar 0.0848939132423
shpistar 0.270030862434
rhostar 3.18080357143
Efficient frontier with no riskless asset
In [5]:
Out[5]:
Efficient frontier with a riskless asset
In [62]:
Out[62]:
Portfolio along the efficient frontier
In [63]:
Out[63]:
In [ ]: