MIE 1621 Computational Project Winter

- 首页 >> 其他
MIE 1621 Computational Project Winter 2019 Instructions: You can use MATLAB or Python to do the following assign- ment. Hand in your report (hardcopy) to MC 320 (slide under the door if I am not there) and e-mail report and all code and data (soft copy) to Paz (pazinski.hong@mail.utoronto.ca) and me (rkwon@mie.utoronto.ca) by April 12th 5PM. Consider the following …nancial optimization model: We assume there are n …nancial assets (e.g. stocks) such that future prices (returns) of each asset is random and so each asset i has associated with it an expected return i and a variance of returns 2i . Also, asset returns are pairwise correlated as embodied in the covariance quantities ij for i 6= j.This model seeks to determine a portfolio of asset weights xi (where xi is the proportion of investment in asset i ) such that the portfolio maximizes risk-adjusted expected return (the second term is a measure of risk of a portfolio x). The quantity  > 0 is a parameter that controls risk aversion (degree of risk that is tolerable for an investor). The larger  is the more risk averse an investor is. The constraint of the model ensures that the xi variables are proportions. PART 1 (1) Formulate the model above as an unconstrained problem. (2) Apply Newton’s method, the steepest decent method, and the BFGS quasi-newton method using a step length of one at each iteration for all three methods to solve the unconstrained problem in (1) using the data below. Report on how smoothly the methods ran e.g. how many iterations and how long? was convergence even observed or did the methods just stop. Note that you will have freedom as to how you will design your stopping conditions as well as deciding how to perform the computations required in each iteration. You may want to put a maximum iterations limit on your methods. (3) Repeat (2) but use backtracking (see class lecture notes) to get an ap- proximate step length at each iteration for each of the three methods. Report on your computational experiments as in part (2). Data for the Model 1 Asset 1 2 3 Expected return 1 = 10:73% 2 = 7:37% 3 = 6:27% ij 1 2 3 1 0.02778 0.00387 0.00021 2 0.00387 0.01112 -0.00020 3 0.00021 -0.00020 0.00115 Choose  to be between 3.5 and 4.5. (4) Bonus (This part is OPTIONAL and worth up to an extra 15% on this assignment) Scaling up: Collect data for n > 3 stocks e.g. Google, Apple, etc... (see Yahoo or Google …nance) and get the daily adjusted closing prices and estimate the required parameters (expected returns, standard deviations, and covariances) for the model above using your n assets and run your methods to solve this new model. You choose n: If you can get your methods to work properly for larger the n the better. It is up to you to determine what period of historial data to use to estimate the parameters but the period should be at least 6 months. Be sure to specify the time period you used and the technique of estimation of the parameters (you do not have to show the computations for these estimations but describe clearly how you estimated them). PART 2 Now consider the version of the …nancial problem where short selling is prohibited:maximize Using the same data for PART 1 for the three assets implement a primal-dual interior point method to solve this …nancial model. Deliverable: You must write up a brief report which details the methods that you developed as well as providing the computational results and analysis of the methods. You must provide the actual code in an appendix of the report. The code you provide in the appendix must be commented and easy to follow. You must also print out in the appendix the actual reported computational results from running your code for the various methods. Finally, the code and data must be sent to Paz (cc me as well). You MUST make sure that your code is easy to execute so that results can be validated. If it is not easy to get your code running than marks will be lost! Make sure that your report is well written, concise and to the point. We do not want too many pages in a report including the appendix. For example, it su¢ ces to just give the parameter estimations needed for part (4) and do NOT include in the report the historical prices of the n assets you chose.