-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathREADME.html
57 lines (57 loc) · 2.67 KB
/
README.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
<div><h1 class="title mousetrap">README</h1><div class="content mousetrap"><h1 id="project-title">README</h1>
<p>Regime Switching<br><em>An UZH Asset Management: Advanced Portfolio Management FS17 Project</em></p>
<h2 id="getting-started">Author</h2>
<p>Kun Yu [email protected] 16-704-389<br>Luoyi Zou [email protected] 16-743-536</p>
<p>GitHub Repository <a href="https://github.com/DuPupu/Regime-Switching" target="_blank">DuPupu/Regime-Switching</a></p>
<h2 id="files">File List</h2>
<h3 id="prerequisites">Data Files</h3>
<h4 id="historical-return-data">Historical Return Data</h4>
<ul>
<li>data.xls<ul>
<li>The original data file with data retrieved from <strong>BenchmarkReturns_v2.xlsx</strong> <em>(provided by Dr. Rohner)</em> and Bloomberg</li>
</ul>
</li>
<li>dataCSV.csv<ul>
<li>Same set of data, <strong>data.xls</strong> cleaned for the purpose of being imported to MATLAB</li>
</ul>
</li>
<li>new.mat<ul>
<li>Same set of data stored in MATLAB-friendly .mat format</li>
</ul>
</li>
</ul>
<h4 id="estimation-results">Completed Estimation Results</h4>
<ul>
<li>est.mat<ul>
<li>It takes tens of minutes to run the <strong>mainEstimation.m</strong> script to estimate all parameters, so we stored the resulting variables that can be simply loaded by <strong>backTesting.m</strong> to process the remaining calculation & run backtest.</li>
<li>It is also possible to run the <strong>mainEstimation.m</strong> to go through from the beginning of the process.</li>
</ul>
</li>
</ul>
<h3 id="prerequisites">MATLAB Scripts & Functions</h3>
<ul>
<li>mainEstimation.m<ul>
<li>The entry point of the project. Estimate the P, Q and other regime-related parameters using the MS_Regress-MATLAB package.</li>
</ul>
</li>
<li>getBetas.m<ul>
<li>Called by <strong>mainEstimation.m</strong> to calculate the beta coefficients of assets for every observation windows.</li>
</ul>
</li>
<li>backTesting.m<ul>
<li>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.</li>
</ul>
</li>
<li>plotting.m<ul>
<li>Called by <strong>backTesting.m</strong> by the end of the script. Used to visualise the data estimated and calculated.</li>
</ul>
</li>
</ul>
<h2 id="authors">Acknowledgements</h2>
<ul>
<li>Used in <strong>mainEstimation.m</strong><ul>
<li><strong>Marcelo Perlin</strong> - <em>MS_Regress - The MATLAB Package for Markov Regime Switching Models</em> - <a href="https://papers.ssrn.com/sol3/papers.cfm?abstract_id=1714016" target="_blank">SSRN</a> - <a href="https://github.com/msperlin/MS_Regress-Matlab" target="_blank">GitHub Page</a></li>
</ul>
</li>
</ul>
</div></div>