Code
<- rio::import("https://byuistats.github.io/timeseries/data/outputgap_and_cyclical_unemp.xlsx")
okuns
<- rio::import("https://byuistats.github.io/timeseries/data/nightstand-sweat.csv") gs_night
Please_put_your_name_here
<- rio::import("https://byuistats.github.io/timeseries/data/outputgap_and_cyclical_unemp.xlsx")
okuns
<- rio::import("https://byuistats.github.io/timeseries/data/nightstand-sweat.csv") gs_night
The first step of any time series analysis is gathering context. You cannot properly analyze data without knowing what the data is measuring. Without context, the most simple features of data can be obscure and inscrutable. This homework assignment will center around the series below.
Please research the time series. In the spaces below, give the data collection process, unit of analysis, and meaning of each observation for the series.
https://chat.openai.com/share/122aaad9-2be6-43ec-b58a-e1858305b401
https://chat.openai.com/share/7d6bf187-41d0-42c3-98bc-d02ea1bd5b80
Okun’s Law is an empirical relationship defined as a negative correlation between the Output Gap and Cyclical Unemployment. If the economy is expanding, businesses are producing more, and unemployment tends to decrease. Conversely, during economic contractions or recessions, output shrinks, leading to an increase in unemployment.
Please use the data okuns to test whether Okun’s Law applies to the US from 1960 to 2021.
“Every single person who confuses correlation and causation ends up dying.”
Hannah Fry
Please use the data gs_night to evaluate the empirical relationship between the Google search terms for night sweats and nightstand.
Criteria | Ratings |
Complete (10) | |
Question 1: Context and Measurement | The student demonstrates a clear understanding of the context for each data series. The explanation includes details about the data collection process, unit of analysis, and the meaning of each observation. |
Complete (5) | |
Question 2a: Scatter Plot | The scatter plot is appropriately titled, and all elements, including the plot itself, axis labels, and title, are clearly labeled. The scatter plot matches or exceeds the quality of the scatter plots shown in lecture. |
Complete (5) | |
Question 2b: Covariance and Correlation Calculation | The student effectively utilizes R to correctly calculate covariance and correlation. |
Complete (10) | |
Question 2c:Interpretation and Evaluation | The student provides a clear and accurate interpretation of the correlation between the variables. The response demostrates understanding of how the correlation coefficient quantifies the strength and direction of the relationship between the variables. |
Complete (10) | |
Question 2c: Okun’s Law | The discussion of Okun’s law makes clear the student understands how to use statistical evidence to evaluate scientific claims in the context of an academic field. |
Complete (5) | |
Question 3a: Scatter Plot | The scatter plot is appropriately titled, and all elements, including the plot itself, axis labels, and title, are clearly labeled. The scatter plot matches or exceeds the quality of the scatter plots shown in lecture. |
Complete (5) | |
Question 3b: Covariance and Correlation Calculation | The student effectively utilizes R to correctly calculate covariance and correlation. |
Complete (10) | |
Question 3(c,d,e):Scenarios | The scenarios suggested are clear and concise. The responses show an honest attempt at thinking of a connection between the variables according to the prompt. |
Complete (10) | |
Question 3: Plausiblity | The student provides a critical evaluation is provided regarding the plausibility of the suggested scenarios and events. The evaluation includes a clear and comprehensive explanation on the difference between correlation and causation. |
Total Points | 70 |