FE5214 Assignment 2, Due: Monday, 18 March 2024
Submit your answers to Canvas. Word and PDF files are acceptable. Please include your name (family name first) at the beginning of the filename.
In this assignment, you will construct an alpha factor based on the prior 5-day returns and evaluate the effectiveness of the factor.
1. Consider the US market and the years 2006 to 2023 (you will also need some data in 2005 to calculate the alpha factor). The universe used will be based on the universe from the start of the year (defined in the univ_h.csv file).
2. To construct the factor,
a) calculate the volatility σi (t) using the prior 21 days of daily returns (use the log return ri(t') = In , t' = t − 20, … , t , the return is set to 0 if there is an “NA” in the adjusted prices). If σi (t) obtained is less than 0.005, set it to 0.005
b) calculate the prior 5-day return; you can use the log return vi(t) = In (again, the return is set to 0 if the prices are not available)
c) normalize the variable by dividing the volatility σi (t) obtained in step a), vi (t) ← vi (t)/σi (t)
d) subtract out the industry component, vi (t) ← vi (t) − vI (t) , where vI (t) is the average of vi (t) (after step c) overall stocks in the industry that the stock i belongs to.
3. Do a cross-sectional regression
Ri (t + 1) = β(t)vi (t) + Ei (t), i = 1, … , N
on everyday t (except for the last day of the available data) and get a time series of β(t) and a time series of R2 (t) . Here the industry return is removed from ri (t + 1): Ri (t + 1) = ri (t + 1) − rI (t + 1)
For this simple one-variable regression, you can calculate β(t) and R2 (t) directly:
4. For the years 2006 to 2023, calculate and list the average of β(t) for each year and the corresponding t-stat, √T ×(the average of β(t))/(the standard deviation of β(t)), where T is the number of β values obtained for the year. Comment on your results.
5. For the years 2006 to 2023, calculate and list the average R2 (t) for each year. Comment on your results.
6. Repeat the calculation (Steps 3-5) using a ranked variable, by adding a sub-step in the construction of the factor:
rank the normalized variable after step 2c) from the largest (rank 1) to the smallest (rank N) and redefine the factor in terms of the rank, k,
v = (N+1-2k)/(N-1),
N is the number of stocks in the universe on the day Then proceed to step 2d)
Describe the main steps of your calculation process to obtain the results.
版权所有:留学生编程辅导网 2020 All Rights Reserved 联系方式:QQ:99515681 微信:codinghelp 电子信箱:99515681@qq.com
免责声明:本站部分内容从网络整理而来,只供参考!如有版权问题可联系本站删除。