Giter VIP home page Giter VIP logo

regime-switching's Introduction

README

Regime Switching An UZH Asset Management: Advanced Portfolio Management FS17 Project

Author

Kun Yu [email protected] 16-704-389 Luoyi Zou [email protected] 16-743-536

File List

Data Files

Historical Return Data
  • data.xls
  • The original data file with data retrieved from BenchmarkReturns_v2.xlsx (provided by Dr. Rohner) and Bloomberg
  • dataCSV.csv
  • Same set of data, data.xls cleaned for the purpose of being imported to MATLAB
  • new.mat
  • Same set of data stored in MATLAB-friendly .mat format
Completed Estimation Results
  • est.mat
  • It takes tens of minutes to run the mainEstimation.m script to estimate all parameters, so we stored the resulting variables that can be simply loaded by backTesting.m to process the remaining calculation & run backtest.
  • It is also possible to run the mainEstimation.m to go through from the beginning of the process.

MATLAB Scripts & Functions

  • mainEstimation.m
  • The entry point of the project. Estimate the P, Q and other regime-related parameters using the MS_Regress-MATLAB package.
  • getBetas.m
  • Called by mainEstimation.m to calculate the beta coefficients of assets for every observation windows.
  • backTesting.m
  • The script that calculates asset-and-regime-specific expected returns and volatilities. It also computes the optimal weights of assets across months, and calculate the overall portfolio return of the strategy.
  • plotting.m
  • Called by backTesting.m by the end of the script. Used to visualise the data estimated and calculated.

Acknowledgements

  • Used in mainEstimation.m
  • Marcelo Perlin - MS_Regress - The MATLAB Package for Markov Regime Switching Models - SSRN - GitHub Page

regime-switching's People

Contributors

sheep-farming avatar

Watchers

 avatar

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.