代做Assignment 2 Analyzing the Mean-Variance Efficient Frontier 代写留学生Python语言

Assignment 2 (due October 20)

Part I: Analyzing the Mean-Variance Efficient Frontier

The first exercise asks you to analyze the monthly returns data on the 12 industry portfolios in the industry returns.xlsx file in the Assignment 2 folder on Canvas. The data were downloaded from Ken French’s website and cover the period 1926:07 – 2025:07. You can assume that the risk-free rate is 4% per annum or 0.333% per month. All returns are in percent per month.

1. Using returns on the 12 industry portfolios in columns B-M, construct and plot the efficient frontier for a reasonable range of expected return values (e.g., 0 - 1.5% per month) [Hint: you can do this using the formulas in the lecture handout which are coded up in the Assignment_2_sample_code.py python code. Be careful that all return series, the risk-free rate and the target mean return are on the same scale, i.e., in decimals and per month. It is common practice to convert percentage returns into decimals by dividing all stock return series, the risk-free rate and the target mean return by 100.]

2. Report the weights of the tangency portfolio (12 by 1 vector). How large is this portfolio’s Sharpe ratio?

3. Suppose we constrain the weights on each of the industries to lie between zero and 20%. Compute the optimal weights and the associated Sharpe ratio of the portfolio that is subject to these limits on the portfolio weights. (Again, you can use the python code to get started).

4. Using data up to 2009:12, compute the portfolio weights on the 12 industries which maximize the Sharpe ratio for this data sample. Then, using these weights, compute the actual Sharpe ratio on returns data for the remaining sample, 2010:01-2025:07. Also compute the Sharpe ratio for 2010:01-2025:07 for an equal-weighted portfolio that puts a weight of 1/12 in each industry. How do the two strategies (optimal Sharpe ratio weights vs. equal weights) compare in terms of out-of-sample performance?

Part II: Back-Testing the Momentum Effect with Industry Portfolios

Momentum in individual stocks’ return performance has been linked to industry effects, the notion that certain industries’ returns go through “hot” and “cold” spells. We will conduct a back test to see how a momentum investment strategy of going long in “Winner” industries (industries with high past returns), and shorting “Loser” industries (industries with poor past returns), would have performed if implemented in “real time”.

To address this question, we will again use the monthly returns data for the 12 industry portfolios in the Canvas file industry_returns.xlsx.

You are asked to compute an estimate of the momentum in month t as the average return, within a given industry, from month t-12 through month t-2 (i.e., using 11 monthly observations). We skip one month to account for liquidity and price effects. This estimate needs to be updated each month and so industry rankings may change frequently.

Using the ‘skip one month’ average returns over the past 12 months, rank each of the 12 industries. Then form. a Winner portfolio of the top ranked industry (the industry with the highest past mean return) and a Loser portfolio of the bottom ranked industry (lowest past mean return). Repeat this procedure every month in the sample, starting in 1950:01.

1. Compute the average returns of the Winner (W) and Loser (L) portfolios as well as that of the WML (winner minus loser) portfolio that goes long in winners and shorts losers. Also compute the standard deviation of the W, L, WML portfolios. What do you conclude?

2. Plot the time-series of rolling 3- and 10-year average returns on the industry Winner minus Loser (WML) portfolio. Comment on what you see, in particular, has the performance of the WML portfolio deteriorated over time?

3. Which industries are most often included in the Winner portfolio?

4. Which industries are most often included in the Loser portfolio?

5. How large is the ‘turnover’ on the WML portfolio, i.e., how often are different industries rotated in and out of the WML portfolio?

6. Discuss if the WML portfolio is a desirable portfolio that can be implemented in practice. Use different measures of its risk such as volatility, skew and maximum drawdown as well as the expected return to support your conclusion.

7. Regress the WML returns on an intercept and the Mkt-RF, SMB and HML Fama-French risk factors in columns O, P, and Q to obtain the WML portfolio’s alpha (risk-adjusted abnormal return). How large is the alpha and is it statistically significant? Is the alpha coming from the Winner or Loser portfolio returns or both?

Part III: Replicating HML via double sorts

Using the financial ratios suite in WRDS, download data on individual firms’ book to market ratios. Also download data on the associated stock returns. To do this, refer to the additional document “Instructions for WRDS Access”. With all this data in hand, merge the two dataframes so you have a single dataframe. with columns consisting of returns, accrual ratio, and market cap for each firm (identified by PERMNO) across time.

For each quarter (at the end of the quarter) in the dataset, form. a “high” portfolio of the top 50% of stocks with the highest market capitalization and a “low” portfolio comprising the 50% of stocks with the lowest market capitalization. Then sort firms on their book to market ratios and form. a “high-value” portfolio consisting of the firms with the highest 30% of book to market ratios within the “high” market capitalization stocks. Also, form. a portfolio of “high-growth” where you take the bottom 30% of book to market ratios within the “high” market capitalization stocks. Repeat this but with the “low” market capitalization stocks to get “low-value” and “low-growth”. In total you now have four groupings of stocks. Note that which firms are in these four groups changes each quarter.

With these grouped firms, form. portfolio returns by using value weights calculated at the end of the quarter for the next three months. Portfolio weights and portfolio composition should be updated every quarter based on firms’ market cap and book to market ratio, respectively. Returns must be measured at the monthly frequency. Do this for the whole sample specified in the “Instructions for WRDS Access” document (1970-01 to 2024-12), and answer the following questions:

1. What are the average returns of these portfolios?

2. What is the standard deviation of returns of these portfolios?

3. Construct a zero dollar portfolio by going long on  “low-value” and short on “high-growth”. Compute and report the average and standard deviation of returns on this portfolio.

4. Download the Fama French 3-factors from Ken French’s website. What is the correlation between your zero-dollar factor and the HML factor you downloaded?

5. Plot the return of one dollar invested in your zero-dollar portfolio against another dollar invested in the Fama French HML factor. Are there any significant deviations from one another? What might cause such deviations? Consider the differences between the way you constructed the factor versus how Fama French construct it.


热门主题

课程名

mktg2509 csci 2600 38170 lng302 csse3010 phas3226 77938 arch1162 engn4536/engn6536 acx5903 comp151101 phl245 cse12 comp9312 stat3016/6016 phas0038 comp2140 6qqmb312 xjco3011 rest0005 ematm0051 5qqmn219 lubs5062m eee8155 cege0100 eap033 artd1109 mat246 etc3430 ecmm462 mis102 inft6800 ddes9903 comp6521 comp9517 comp3331/9331 comp4337 comp6008 comp9414 bu.231.790.81 man00150m csb352h math1041 eengm4100 isys1002 08 6057cem mktg3504 mthm036 mtrx1701 mth3241 eeee3086 cmp-7038b cmp-7000a ints4010 econ2151 infs5710 fins5516 fin3309 fins5510 gsoe9340 math2007 math2036 soee5010 mark3088 infs3605 elec9714 comp2271 ma214 comp2211 infs3604 600426 sit254 acct3091 bbt405 msin0116 com107/com113 mark5826 sit120 comp9021 eco2101 eeen40700 cs253 ece3114 ecmm447 chns3000 math377 itd102 comp9444 comp(2041|9044) econ0060 econ7230 mgt001371 ecs-323 cs6250 mgdi60012 mdia2012 comm221001 comm5000 ma1008 engl642 econ241 com333 math367 mis201 nbs-7041x meek16104 econ2003 comm1190 mbas902 comp-1027 dpst1091 comp7315 eppd1033 m06 ee3025 msci231 bb113/bbs1063 fc709 comp3425 comp9417 econ42915 cb9101 math1102e chme0017 fc307 mkt60104 5522usst litr1-uc6201.200 ee1102 cosc2803 math39512 omp9727 int2067/int5051 bsb151 mgt253 fc021 babs2202 mis2002s phya21 18-213 cege0012 mdia1002 math38032 mech5125 07 cisc102 mgx3110 cs240 11175 fin3020s eco3420 ictten622 comp9727 cpt111 de114102d mgm320h5s bafi1019 math21112 efim20036 mn-3503 fins5568 110.807 bcpm000028 info6030 bma0092 bcpm0054 math20212 ce335 cs365 cenv6141 ftec5580 math2010 ec3450 comm1170 ecmt1010 csci-ua.0480-003 econ12-200 ib3960 ectb60h3f cs247—assignment tk3163 ics3u ib3j80 comp20008 comp9334 eppd1063 acct2343 cct109 isys1055/3412 math350-real math2014 eec180 stat141b econ2101 msinm014/msing014/msing014b fit2004 comp643 bu1002 cm2030
联系我们
EMail: 99515681@qq.com
QQ: 99515681
留学生作业帮-留学生的知心伴侣!
工作时间:08:00-21:00
python代写
微信客服:codinghelp
站长地图