Skip to content

A Python implementation of Modern Portfolio Theory, with applications to philanthropy

Notifications You must be signed in to change notification settings

psthomas/efficient-frontier

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

The Efficient Frontier of Philanthropy

The concept of an efficient frontier for investment portfolios originated with Harry Markowitz's Modern Portfolio Theory. Markowitz's main insight was that you can minimize the risk you take for any level of return by diversifying a portfolio. The end result is a hyperbola, often called the Markowitz Bullet, that demonstrates that greater returns are associated with higher risk. Although this approach to porfolio optimization has theoretical challenges and is less popular today, modified versions of MPT still underly many robo-advisors currently on the market (Wealthfront, WiseBanyan, Betterment).

frontier image

The following code implements this concept in Python, and is based on a blog post from Quantopian. Their original code returns an optimal portfolio for any given level of risk when given a list of historic returns for a group of assets. I then extend the concept of an efficient frontier to the area charitable giving, and refactor the code to take a list of charitable returns (in DALYs) and a covariance matrix as an input. The final output is a philanthropic efficient frontier.

See the jupyter notebook for further explanation, and visit this project on the Jupyter nbviewer to see the interactive plots. This code is a rough sketch of my concept, feel free to critique and contribute!

About

A Python implementation of Modern Portfolio Theory, with applications to philanthropy

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published