这是一份 Australian National University澳洲国立大学EMET3007/8012作业代写的成功案例
Instructions:
This assignment is worth either $20 \%$ or $25 \%$ of the final grade, and is worth a total of 75 points. All working must be shown for all questions. For questions which ask you to write a program, you must provide the code you used. If you have found code and then modified it, then the original source must be cited. The assignment is due by $5 \mathrm{pm}$ Friday $1 \mathrm{st}$ of October (Friday of Week 8), using Turnitin on Wattle. Late submissions will only be accepted with prior written approval. Good luck.
[10 marks] In this exercise we will consider four different specifications for forecasting monthly Australian total retail sales. The dataset (available on Wattle) AUSRetail2021. csv contains three columns; the first column contains the date; the second contains the sales figures for that month, and the third contains Australian GDP for that month $\mathbb{1}$ The data runs from January 1992 to January 2021 .
Let $M_{i t}$ be a dummy variable that denotes the month of the year. Let $D_{i t}$ be a dummy variable which denotes the quarter of the year. The four specifications we consider are
$$
\begin{aligned}
&s_{1}: y_{t}=a_{0}+a_{1} t+\alpha_{4} D_{4 t}+\epsilon_{t} \
&S_{2}: y_{t}=a_{1} t+\sum_{i=1}^{4} \alpha_{i} D_{i t}+\epsilon_{t} \
&S_{3}: y_{t}=a_{0}+a_{1} t+\beta_{12} M_{12, t}+\epsilon_{t} \
&S_{4}: y_{t}=a_{1} t+\sum_{i=1}^{12} \beta_{i} M_{i t}+\epsilon_{t}
\end{aligned}
$$
where $\mathbb{E} \epsilon_{t}=0$ for all $t$
a) For each specification, describe this specification in words.
b) For each specification, estimate the values of the parameters, and compute the MSE, AIC, and BIC. If you make any changes to the csv file, please describe the changes you make. As always, you must include your code.
c) For each specification, compute the MSFE for the 1-step and 3 -step ahead forecasts, with the out-of-sample forecasting exercise beginning at $T_{0}=60$.
d) For each specification, plot the out-of-sample forecasts and comment on the results.
[10 marks] Now add to Question 1 the additional assumption that $\epsilon_{t} \sim \mathcal{N}\left(0, \sigma^{2}\right)$. One estimator for $\sigma^{2}$ is
$$
\hat{\sigma}^{2}=\frac{1}{T-k} \sum_{t=1}^{T}\left(y_{t}-\hat{y}{t}\right)^{2} $$ where $\hat{y}{t}$ is the estimated value of $y_{t}$ in the model and $k$ is the number of regressors in the specification.
a) For each specification $\left(S_{1}, \ldots, S_{4}\right)$, compute $\hat{\sigma}^{2}$.
b) For each specification, make a $95 \%$ probability forecast for the sales in April 2021 .
c) For each specification, compute the probability that the retail sales in April 2021 will be greater than $\$ 31 \mathrm{bn}$. According to the FRED series AUSSARTMDSMEI, what was the actual retail sales value for that month.
d) Do you think the assumption that $\epsilon_{t}$ is iid is a reasonable assumption for this data series.
[10 marks] Here we investigate whether adding GDP as a predictor can improve our forecasts. Consider the following modified specifications:
$$
\begin{aligned}
&S_{1}^{\prime}: y_{t}=a_{0}+a_{1} t+\alpha_{4} D_{4 t}+\gamma x_{t-h}+\epsilon_{t} \
&S_{2}^{\prime}: y_{t}=a_{1} t+\sum_{i=1}^{4} \alpha_{i} D_{i t}+\gamma x_{t-h}+\epsilon_{t} \
&S_{3}^{\prime}: y_{t}=a_{0}+a_{1} t+\beta_{12} M_{12, t}+\gamma x_{t-h}+\epsilon_{t} \
&S_{4}^{\prime}: y_{t}=a_{1} t+\sum_{i=1}^{12} \beta_{i} M_{i t}+\gamma x_{t-h}+\epsilon_{t}
\end{aligned}
$$
where $\mathbb{E} \epsilon_{t}=0$ for all $t$, and $x_{t-h}$ is GDP at time $t-h$. For each specification, compute the MSFE for the 1-step ahead, and the 3-step ahead forecasts, with the out-of-sample forecasting exercise beginning at $T_{0}=60$. For each specification, plot the out-of-sample forecasts and comment on the results.
[15 marks] Here we investigate whether Holt-Winters smoothing can improve our forecasts. Use a Holt-Winters smoothing method with seasonality, to produce 1-step ahead and 3-step ahead forecasts and compute the MSFE for these forecasts. You should use smoothing parameters $\alpha=\beta=\gamma=0.4$ and start the out-of-sample forecasting exercise at $T_{0}=50$. Plot these out-of-sample forecasts and comment on the results.
Additionally, estimate the values for $\alpha, \beta$, and $\gamma$ which minimise the MSFE. Find the MSFE for these parameter vales and compare it to the baseline $\alpha=\beta=\gamma=0.4$
[5 marks] Questions 1, 3 and 4 each provided alternative models for forecasting Australian Retail Sales. Compare the efficacy of these forecasts. Your comparison should include discussions of MSFE, but must also make qualitative observations (typically based on your graphs).
[10 marks] Develop another model, either based on material from class or otherwise, to forecast Australian Retail Sales. Your new model must perform better (have a lower MSFE or MAFE) than all models from Questions 1,3, and $4 .$ As part of your response to this question you must provide:
a) a brief written explanation of what your model is doing,
b) a brief statement on why you think your new model will perform better,
c) any relevant equations or mathematics/statistics to describe the model,
d) the code to run the model, and
e) the MSFE and/or MAFE error found by your model, and a brief discussion of how this compares to previous cases.
[15 marks] Consider the AR(2) process with drift
$$
y_{t}=\mu+\rho_{1} y_{t-1}+\rho_{2} t_{t-2}+\epsilon_{t}
$$
where the errors follow an $\mathrm{AR}(1)$ process
$$
\epsilon_{t}=\phi \epsilon_{t-1}+u_{t}, \quad \mathbf{u} \sim \mathcal{N}\left(0, \sigma^{2} I\right)
$$
for $t=1, \ldots, T$ and $e_{0}=0 .$ Suppose $\phi$ is known. Find (analytically) the maximum likelihood estimators for $\mu, \rho_{1}, \rho_{2}$, and $\sigma^{2}$
[Hint: First write $y$ and $\epsilon$ in vector/matrix form. You may wish to use different looking forms for each. Find the distribution of $\epsilon$ and $y .$ Then apply some appropriate calculus.]
matlab代写请认准UprivateTA™. UprivateTA™为您的留学生涯保驾护航。