The energy associated with a stretched spring is called _____.
Blog
The R Markdown and Jupyter Notebook files include the questi…
The R Markdown and Jupyter Notebook files include the questions, the empty code chunk sections for your code, and the text blocks for your responses. Answer the questions below by completing either the R Markdown or the Jupyter Notebook file. You will submit a html file using either the R Markdown or the Jupyter Notebook file. You may make slight adjustments to get the file to knit/convert but otherwise keep the formatting the same. Once you’ve finished answering the questions, submit your responses in a single knitted file (just like the homework data analysis assessments). There are three Data Analysis questions for this section. You will only submit your responses for the Data Analysis questions in the knitted file. Partial credit may be given depending on your response. Next Steps: Save the .Rmd file/Jupyter Notebook in your R working directory – the same directory where you will download the data file for this midterm exam. Having both files in the same directory will help in reading the .csv file. Read the question and create the R code necessary within the code chunk section immediately below each question. Knitting this file will generate the output and insert it into the section below the code chunk. Type your answer to the questions in RMD file/Jupyter Notebook within each question section. Once you’ve finished answering all questions, knit this file and submit the knitted file as HTML on Canvas. Ready? Let’s begin. We wish you the best of luck! Data Set (Click the link to open in new window/tab) cpi.csv gdp.csv interest rate.csv unemployment rate.csv R Markdown Starter Template Midterm 2 Fall 2024 Template.Rmd Jupyter Notebook Starter Template Midterm 2 Fall 2024Template-1.ipynb
Part I: ARIMA and GARCH Modelling 1a. Plot the time series…
Part I: ARIMA and GARCH Modelling 1a. Plot the time series and the ACF for all variables and their differenced data (4 plots total for each time series) and comment on their stationarity properties and how it would affect the use of the VAR model. 1b. Divide the data in training and testing sets, using the period January 1980 to October 2022 to train and the last 4 observations for testing, i.e. January 2023 to October 2023. Using the Interest Rate differenced data, apply the iterative BIC selection process to find the best, *non-trivial* ARIMA-GARCH model order using the ARIMA max orders given by pmax = 5, qmax = 5, d order of max =0 (you are already using differenced data), and max orders given by m=2, n=2 for the GARCH model. Explain how the selected model captures features of the time series. 1c. Evaluate the Box-Ljung test results and the ACF on the residuals and squared residuals from the model you chose in Question 1b. Comment on your results. 1d. Apply the selected model in (1b) and obtain the rolling forecasts for the 4 months of data for 2023. Visualize the predictions versus the observed data and derive the MAPE and PM for each time series. What can you say about the accuracy of the predictions over the two year period? Note: If your model uses the differenced data, you will have to get the predictions for the actual time series data from your forecast outcome. Part II: Multivariate Modeling 2a. Fit a VAR(p) model for p up to an order equal to 8 using the training data. Use the BIC as the order selection criterion. Display the model summary of the selected VAR model. What is the selected order? Is the fitted model stable? Comment on the model results in terms of the significance (at 95% of confidence) of the estimated coefficients and interpret it. 2b. Using the model in Question 2a, evaluate the model’s assumptions to ensure its validity, i.e. serial correlation, heteroscedasticity and normality of the residuals. 2c. For the equation that corresponds to Interest Rate, comment on any potential relationships with the other variables. Use a significance level of
Which of the following is a limitation of ARCH models (selec…
Which of the following is a limitation of ARCH models (select all correct responses):
When the p-value of the Ljung-Box test performed on the squa…
When the p-value of the Ljung-Box test performed on the squared residuals is lower than 0.05, we reject the null hypothesis of uncorrelated variance with a 95% confidence level.
A hypothesis test is used to assess the significance of indi…
A hypothesis test is used to assess the significance of individual coefficients in a regression model by comparing the estimated parameter to its hypothesized value. Which of the options below is the correct test?
Assume we have a multivariate time series with n individual…
Assume we have a multivariate time series with n individual time series. If the AR(2) applied to each of the n time series in the multivariate time series is causal, we can infer that:
The BIC criterion is preferred in the order selection in bo…
The BIC criterion is preferred in the order selection in both ARMA-GARCH and VAR models when the objective is prediction since it selects less complex models (lesser overfitting).
In a stationary multivariate time series, the individual var…
In a stationary multivariate time series, the individual variances of each time series and cross-variances between different series must remain constant over time.
The ARCH model assumes positive and negative shocks have the…
The ARCH model assumes positive and negative shocks have the same effect on volatility because it depends on the log of the previous shocks