---
title: "ETF3231/5231 Individual Assignment 2"
author: "Your name and Student ID"
format: pdf
editor_options: 
  chunk_output_type: console
---

```{r}
#| label: setup
#| include: false

knitr::opts_chunk$set(echo = TRUE, eval=TRUE, error=TRUE, cache=FALSE)
library(fpp3)
library(readr)
```

```{r}
#| eval: false
#| message: false
#| include: false

# Read in and tidy up your data

# First three rows contain metadata, read them in separately
meta <- read_csv("IA_data.csv", col_names = TRUE, n_max = 3)
# meta

# The data follows after the third row, we skip the metadata and read the data. 
# Note: Skipping the first row skips the column names, we add them back from the
#       metadata.
dat <- read_csv("IA_data.csv", 
                # use column names from the metadata
                col_names = colnames(meta),
                # skip 4 rows as we also skip column names, specified above
                skip = 4)

# Feel free to rename your series appropriately
my_series <- dat %>% 
  # Make sure you select the column with your student ID 
  # Replace 12345678 below with your student ID
  rename(Month = "Student ID", y ="12345678") %>%
  select(Month, y) %>% 
  mutate(Month=yearmonth(Month)) %>% 
  as_tsibble(index = Month)
```

## Question 1

*What is your data about (no more than 50 words)? Produce appropriate plots in order to become familiar with your data. Make sure you label your axes and plots appropriately. Comment on these. What do you see? (no more than 50 words per plot). (14 marks)*

```{r}

```

\newpage
## Question 2

*Would transforming your data be useful (no more than 50 words)? Compare different transformations graphically. Choose the best transformation if you think a transformation is needed. Justify your choice (no more than 50 words). (5 marks)*

```{r}

```


\newpage
## Question 3

*Split your data into training and test sets. Leave the last two years’ worth of observations as the test set. Plot these on the same graph to make sure you have done this properly. (3 marks)*

```{r}

```
\newpage
## Question 4

*Apply the two most appropriate benchmark methods on the training set. Generate forecasts for the test set and plot them on the same graph. Compare their forecasting performance on the test set. Which method would you choose as the appropriate benchmark? Justify your answer (no more 100 words). (Hint: it will be useful to tabulate your results.) (12 marks)*

```{r}

```
\newpage
## Question 5

*For the best method, do a residual analysis. Comment on these. What did your forecasting method miss?  (no more than 150 words) (8 marks)*

```{r}

```
\newpage
## Question 6

*Generate point forecasts for the next 2 years (future) from the benchmark method you considered best and plot them. Comment on these.(4 marks)*

```{r}

```
