Skip to content

Blake Rayvid

Menu
  • About
  • Portfolio
Menu

Efficient Portfolio Construction

Posted on December 7, 2020May 22, 2025 by Blake

This is a Python implementation of Robert C. Merton’s efficient or minimum-variance portfolio algorithm from the paper An Analytic Derivation of the Efficient Portfolio Frontier (1972). Building on the work of Harry Markowitz, Merton describes a way to assign weights to a list of securities to make a portfolio that has the lowest variance in returns for a given level of expected returns, based on historical returns data. Each weight may be positive or negative corresponding to long and short positions, or zero when no position should be taken, and sum to 100%.

Open in Colab

View on GitHub


Tags:
NumPy, Pandas, Python
Categories: Finance, Optimization

Post navigation

← Boolean Network Animation
RouteCat →

Categories

  • Apps
  • Data Science
  • Exploration
  • Finance
  • Health
  • Interactive
  • Optimization

Tags

D3 Desmos Dotenv JavaScript LLMs MATLAB Matplotlib Netlify NLTK Node NumPy Pandas PostgreSQL Python QuantConnect Scikit-Learn SciPy Streamlit Vader

© 2025 Blake Rayvid