Portfolio optimization with Python
Abstract
Motivation: The goal of a rational investor is to maximize portfolio return and minimize portfolio risk. Methodology: Markowitz portfolio optimization theory is used to obtain by the Python programming language the optimal portfolio on the efficient frontier. This optimal portfolio corresponds to the point with the highest Sharpe ratio. To generate the efficient frontier with the feasible portfolios, multiple investment portfolios are simulated by implementing a code in Python with Jupyter Notebook. Results: The optimal composition of a portfolio constructed with Mexico Government Bonds, ETF’s, and shares of Wal-Mart Inc’s Mexico, is determined by a Sharpe ratio of 0.85; the portfolio has an expected return of 9.53% with a volatility of 6.55%.
Downloads
References
Banda Ortiz, H., González García, L. M., & Gómez Hernández, D., (2014). Una aproximación de la teoría de portafolio a las SIEFORES en México. Revista científica Pensamiento y Gestión 36, 28–55.
DOI: 10.14482/pege.36.5565
Bernstein, P. L., 2005. Capital ideas: The improbable origins of modern Wall Street. John Wiley & Sons, Hoboken, New Jersey.
Carles, P. G., (2014). Risk-Adjusted performance measurement. In: Editor (Ed.), Investment risk management. Oxford University Press, New York, NY, Ch. 19, pp. 365–386.
CFA Institute, (2009). 2010 Level 2 Book 5: Derivatives and portfolio management. Kaplan Schweser, United States of America.
Dolci, P. C., & Maçada, A. C. G., (2012). Portfolio theory: The contribution of Markowitz’s theory to information system area. In: Editor (Ed.), Information systems theory: Explaining and predicting our digital society. Vol. 1. Springer Science & Business Media, Heidelberg, New York, Dordrecht, London, Ch. 10, pp. 199–211.
DOI: 10.1007/978-1-4419-6108-2
Herrera, F. L., (1999). Aplicación del enfoque de Markowitz al cálculo del Valor en Riesgo (VaR) a un portafolio de divisas. Revista Contaduría y Administración 193(2), 53–60.
Markowitz, H., (1952). Portfolio selection. The Journal of Finance 7(1), 77–91.
DOI: 10.1111/j.1540-6261.1952.tb01525.x
Maringer, D. G., 2006. Portfolio management with heuristic optimization. Vol. 8. Springer Science & Business Media, Dordrecht, The Netherlands.
Román, C. P., Pérez, J. L. C., & Estévez, P. G., (2012). Aplicación de la teoría de carteras con activos numismáticos y metales preciosos. Cuadernos de Gestión 12(1), 123–143.
DOI: 10.5295/cdg.100201cp
Rojas, O., (2018). Frontera eficiente en Python. LinkedIn. Recuperado de https://www.linkedin.com/pulse/frontera-eficiente-en-python-oscar-rojas-cfa
Sharpe, W. F., (1963). A simplified model for portfolio analysis. Management science 9(2), 277–293.
DOI: 10.1287/mnsc.9.2.277