Git Product home page Git Product logo

cvar_portfolio_optim's Introduction

Worst Case Mixture-Copula Mean-CVaR Portfolio Optimization: An Implementation for Brazilian Indexes

This repository implements the code used for my B.Sc. in Economics completion paper. The purpose of the work is to implement a CVaR minimization portfolio optimization, where marginals (stocks) are modelled as a ARMA(p,q)-GARCH(1,1) process and the multivariate dist is modelled using a mixture of Clayton-t-Gumbel Copula.

  • Module 1 is used for ARMA-GARCH fitting on provided log-returns.
  • Module 2 transforms our ARMA-GARCH data into (0,1) CDF data, using ECDF or parametric CDF.
  • Module 3 uses (0,1) transformed data to estimate a linear combination of Clayton, t and Gumbel copula parameters, as well as a gaussian one. This is a nonlinear SQP optimization.
  • Module 4 simulate log-returns using ARMA-GARCH fit and copula parameters, and optimizes a mean-CVaR portfolio.
  • Module 5 calculates out-of-sample performance of optimized weights and several plots and risk/returns benchmarks.
  • Main simply loads log-returns data and calls for module's functions.

More information can be found at the complete paper in Sabi UFRGS or at a concise PPT presentation. The code in this repo is an updated version of the code presented in my paper. Because resulting files are big, each module loads and saves information in local files.

cvar_portfolio_optim's People

Contributors

gustavoalovisi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

cvar_portfolio_optim's Issues

request for the dataset of this code

Hello, I have been looking at this code of yours recently, and it is very good. But I had a problem running it and would like to see the data set you used for this code

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.