CS计算机代考程序代写 python case study 1. This is an individual assessment. You MUST produce and submit your own work. You MUST view and sign the student declaration form.

1. This is an individual assessment. You MUST produce and submit your own work. You MUST view and sign the student declaration form.
2. Dataset: same company data and sample period as the one you have studied in Case Study Part I
3. Submission Deadline: 12th AUgust
4. A submission link for each ‘Member’ number will be available from Moodle
5. IMPORTANT. There are TWO problems. Each worth 35 points. Nominate (choose) ONE of the problems that will be fully marked. Your 30% of the marks will be based on this problem. The remaining 5% will be based on your ‘reasonable’ attempt at the remaining problem.
• Reasonable will be judged based on your general understanding of what needs to be done, and your understanding of the methodology and the theory and application. But we will NOT FULLY CHECK THE CODES AND THE COMPUTATIONS. Theoretical results will be checked.
6. Total marks: 70. This score will be weighted 35% for your total grade (30% for the nominated problem, 5% for the other).
7. Attach your PYTHON code and output as Appendix.
8. Show all the necessary derivations of the analytical results. Your discussion and answers should be to
the point.
9. No need to include the Python output in the answers. Only report the information required to answer the specific questions. The Python code and output should be put at the end as an Appendix.
GOOD LUCK!

Problem I. Computing application [Total 35 marks allocated as shown below]
In this application you will use daily data on your company returns together with the S&P500 returns over the same sample period as in PART I.
A. Setyourin-sampleorlearningperiodtostartfromthefirstobservationuptoandincludingFebruary28th2020.
Denote this sample size T1. Set the forecast (evaluation) period to be the remaining observations from March
1st, 2020 to the last observation. There are T T1 observations in this forecast period. Use the following —
methods to choose and estimate suitable forecasting models using the in-sample data only:
(i) Naive (Random walk model)
(ii) A Reg-AR(1): a regression with the lag 1 market index return added to a an AR(1) model for your company return.
(iii) A CAPM Model for the excess returns on your company stock.
(1) [3 Marks] Report and discuss the estimates from each model specification above.
(2) [5Marks]Generatemovingorigin(alsoknowsasstaticforecasts)horizon1-dayforecastsforeachobser- vation in the forecast sample (the remaining T—T1 of the sample) from all methods above. Assess the accuracy of these forecasting methods using plots, RMSFE and RMAFE.
Recall. The Root-mean-square-forecast-error (RMSFE) and the Root-mean-absolute-forecast-error (RMAFE): v
RMSFE = RMAFE =
t 1 T —1 uX
v s=T1
(fes,s+1)2, |fes,s+1|
t h
where h = T T1, T the sample size, and T1 is the last observation in the training sample. Here the last
s=T1
25% observations make the hold out sample T1 + 1 to T . The forecast error is the difference between
fes+1,s = ys+1 — ys+1|s, where s = T1, ·· · ,T — 1.
B. Given the Reg-AR(1) model in (A) for your company asset return series, assume Gaussian errors and fit the following conditional volatility models: (i) GARCH(1,1), (ii) GJR-GARCH(1,1) and (iii) EGARCH(1,0) using the first T1 of sample data.
(1) [7Marks]Reportthevarianceequationsestimatesanddrawthenewsimpactcurves(NIC)fromthethree conditional volatility models above. Comment on the shapes of the NICs.
(2) [6 Marks] Using a forecast origin of day T1, generate h-step-ahead forecasts of volatility, for h = T1 + 1,··,T , and for the volatility models (i), (ii) and (iii) in B. Comment and compare the plots of these vo·latility forecasts.
(3) [4 Marks] Using a forecast origin of day T1, generate h-step-ahead forecasts of volatility, for h = T1 + 1,··,T· , for the exponentially weighted moving average (EWMA) model with 1—Z = 0.94. Add the forecast series to your plot in B.(2). Compare the EWMA volatility forecasts series with the three forecast series in B.(2).
C. Conditionalvolatilityisunobservablewhichmakesadirectcomparisonbetweenforecastedvolatilityandactual volatility impossible. GARCH forecasts can be evaluated using observable proxies for conditional volatility.
(1) [5 Marks] Generate 1-step-ahead forecasts of volatility using two proxies: (1) sample standard deviation (all previous data) s(all past data), (2) sample standard deviation using the previous 25 observations s(25). Add all these forecasts to your plot from B.(3).
(2) [5 Marks] Assess the accuracy of each model’s forecasts using volatility proxies 1 and 2. Which models did best overall? Did the proxies agree on which were the best models over the whole data period and especially around financial periods?

the value of the return at time (s + 1) and its forecast ys+1|s made at time s
2
h
T —1 u1X

Problem II [Total of 35 marks allocated as shown below]
Suppose that your company returns, denoted {yt}, are generated by the following process:
yt ✏t | ⌦t — 1
a 2 t
= $0+$1yt—1+6at—1+✏t +✓1✏t—2+✓2✏t—4, where,|$1|<1,|✓1|+|✓2|<1, ⇠ W N ( 0 , a 2 ) , + I t —1 + Ø a 2 t —,1 = ↵ 0 + ↵ ✏ 2 t—1 μ✏2 t 1 ↵0>0 , ↵>0,Ø>0,μ>0,↵+Ø+2μ<1, t—1 where ⌦t—1 denotes information available at time t — 1. It—1 is a binary random variable: It—1 = 1 if ✏t—1 < 0, and It—1 = 0 if ✏t—1 ≤0 Divide the sample data, 1, ·· ·, T into an estimation sample, 1, ·· , T1 and an evaluation sample T1 + 1, ,T·. We are interested in comparing models pre- and post- Covid19. To do so, let T1 be the ·· observation corresponding to February 28th 2020. A. [4marks]Estimatethemodelaboveforyourreturnsseries,usingthesamplet=1,···,T1. B. [3 marks] Comment on the role of the GARCH component in the mean equation and its effect on the uncon- ditional mean and variance of the returns. C. [4 marks] Using the estimation results, compute a dynamic h-step ahead forecast for yT +h and a2 . Place 1 T1+h a 95% forecast interval around the point forecast of yT1+h, for h = 1,·· ·,T —T1. Plot the forecasts and their forecast bands. D. [4 marks] Using the estimation results, compute the static (one-step ahead) forecast for yt+1 and a2 t+1 over the evaluation period t = T1+ 1,·· ,T . Place a 95% forecast interval around these point forecasts. Plot the forecasts and their forecast bands.· E. [4 marks] Explain why the static and the dynamic forecasts differ? Do you see any mean reversion in these forecasts. Explain! F. Consider the Exponential GARCH model: ln(a2) = ↵0+↵1|⌫t—1|+μ⌫t—1+Øln(a2 ), t t—1 —1<Ø<1 , ⌫t—1=✏t—1/at—1. (i) [4marks]Repeattheestimationin(A.)ofthemodelbutnowwiththeEGARCHspecificationabovefor conditional volatility. (ii) [5 marks] As a market analyst, you are interested in measuring how long news travel and stay in the returns process and thus in the financial market. To understand this, you compute the Half-life time for both the GJR and the EGARCH. In your analysis, how long before the Covid19 negative shock, that hit the market on March 1st, 2020, dies out or at least halves its effect? G. [7 marks] Suppose a portfolio manager holds a position of ten million dollars ($10m) in the market portfolio given by your company stock. Calculate and plot the daily empirical 99% Conditional-Value-at- Risk of this portfoli·o·for T1 + 1, ,T for both GJR and EGARCH. Comment on the differences between · · these two series of VaRs and how the two have evolved over time since March 1st, 2020. 3