Skip to content

Commit

Permalink
Recompiled
Browse files Browse the repository at this point in the history
  • Loading branch information
robjhyndman committed Jan 29, 2025
1 parent 21e08a3 commit cebb498
Show file tree
Hide file tree
Showing 22 changed files with 10 additions and 18 deletions.
4 changes: 1 addition & 3 deletions _freeze/assignments/A1/execute-results/html.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@
"result": {
"engine": "knitr",
"markdown": "---\ntitle: Assignment 1\n---\n\nThis assignment will use the same data that you will use in the [retail project](Project.qmd) later in the semester. Each student will use a different time series, selected using their student ID number as follows.\n\n```r\nlibrary(fpp3)\nget_my_data <- function(student_id) {\n set.seed(student_id)\n all_data <- readr::read_rds(\"https://bit.ly/monashretaildata\")\n while(TRUE) {\n retail <- filter(all_data, `Series ID` == sample(`Series ID`, 1))\n if(!any(is.na(fill_gaps(retail)$Turnover))) return(retail)\n }\n}\n# Replace the argument with your student ID\nretail <- get_my_data(12345678)\n```\n\n 1. Plot your time series using the `autoplot()` command. What do you learn from the plot?\n 2. Plot your time series using the `gg_season()` command. What do you learn from the plot?\n 3. Plot your time series using the `gg_subseries()` command. What do you learn from the plot?\n 4. Find an appropriate Box-Cox transformation for your data and explain why you have chosen the particular transformation parameter $\\lambda$.\n 5. Produce a plot of an STL decomposition of the transformed data. What do you learn from the plot?\n\nFor all plots, please use appropriate axis labels and titles.\n\nYou need to submit one Quarto (`qmd`) file which implements all steps above. You may use <a href=\"https://github.com/numbats/af/raw/main/assignments/Assignment_template.qmd\">this file</a> as a starting point.\n\nTo receive full marks, the `qmd` file must compile without errors.\n\n<br><br><hr><b>Due: 28 March 2025</b><br><a href=https://learning.monash.edu/mod/assign/view.php?id=3444030 class = 'badge badge-large badge-blue'><font size='+2'>&nbsp;&nbsp;<b>Submit</b>&nbsp;&nbsp;</font><br></a>\n",
"supporting": [
"A1_files"
],
"supporting": [],
"filters": [
"rmarkdown/pagebreak.lua"
],
Expand Down
4 changes: 1 addition & 3 deletions _freeze/assignments/A2/execute-results/html.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@
"result": {
"engine": "knitr",
"markdown": "---\ntitle: Assignment 2\n---\n\nThis assignment will use the same data that you will use in the [retail project](Project.qmd) later in the semester. Each student will use a different time series, selected using their student ID number as follows.\n\n```r\nlibrary(fpp3)\nget_my_data <- function(student_id) {\n set.seed(student_id)\n all_data <- readr::read_rds(\"https://bit.ly/monashretaildata\")\n while(TRUE) {\n retail <- filter(all_data, `Series ID` == sample(`Series ID`, 1))\n if(!any(is.na(fill_gaps(retail)$Turnover))) return(retail)\n }\n}\n# Replace the argument with your student ID\nretail <- get_my_data(12345678)\n```\n\n1. Using a test set of 2019--2022, fit an ETS model chosen automatically, and three benchmark methods to the training data. Which gives the best forecasts on the test set, based on RMSE?\n2. Check the residuals from the best model using an ACF plot and a Ljung-Box test. Do the residuals appear to be white noise?\n3. Now use time-series cross-validation with a minimum sample size of 15 years, a step size of 1 year, and a forecast horizon of 5 years. Calculate the RMSE of the results. Does it change the conclusion you reach based on the test set?\n4. Which of these two methods of evaluating accuracy is more reliable? Why?\n\nSubmit a Quarto (`qmd`) file which carries out the above analysis. You need to submit one file which implements all steps above. You may use <a href=\"https://github.com/numbats/af/raw/main/assignments/Assignment_template.qmd\">this file</a> as a starting point.\n\nTo receive full marks, the `qmd` file must compile without errors.\n\n<br><br><hr><b>Due: 18 April 2025</b><br><a href=https://learning.monash.edu/mod/assign/view.php?id=3444031 class = 'badge badge-large badge-blue'><font size='+2'>&nbsp;&nbsp;<b>Submit</b>&nbsp;&nbsp;</font><br></a>\n",
"supporting": [
"A2_files"
],
"supporting": [],
"filters": [
"rmarkdown/pagebreak.lua"
],
Expand Down
4 changes: 1 addition & 3 deletions _freeze/assignments/A3/execute-results/html.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@
"result": {
"engine": "knitr",
"markdown": "---\ntitle: Assignment 3\n---\n\nThis assignment will use the same data that you will use in the [retail project](Project.qmd) later in the semester. Each student will use a different time series, selected using their student ID number as follows.\n\n```r\nlibrary(fpp3)\nget_my_data <- function(student_id) {\n set.seed(student_id)\n all_data <- readr::read_rds(\"https://bit.ly/monashretaildata\")\n while(TRUE) {\n retail <- filter(all_data, `Series ID` == sample(`Series ID`, 1))\n if(!any(is.na(fill_gaps(retail)$Turnover))) return(retail)\n }\n}\n# Replace the argument with your student ID\nretail <- get_my_data(12345678)\n```\n\nUse a training set up to and including 2018.\n\n* What transformations (Box-Cox and/or differencing) would be required to make the data stationary? You should use a unit-root test as part of the discussion.\n* Use a plot of the ACF and PACF of the (possibly differenced) data to determine two plausible models for this data set.\n* Fit both models, along with an automatically chosen model, and produce forecasts for 2019--2022.\n* Which model is best based on AIC? Which model is best based on the test set RMSE? Which do you think is best to use for future forecasts? Why?\n* Check the residuals from your preferred model, using an ACF plot and a Ljung-Box test. Do the residuals appear to be white noise?\n\nSubmit a Quarto (`qmd`) file which carries out the above analysis. You need to submit one file which implements all steps above. You may use <a href=\"https://github.com/numbats/af/raw/main/assignments/Assignment_template.qmd\">this file</a> as a starting point.\n\n<br><br><hr><b>Due: 16 May 2025</b><br><a href=https://learning.monash.edu/mod/assign/view.php?id=3444032 class = 'badge badge-large badge-blue'><font size='+2'>&nbsp;&nbsp;<b>Submit</b>&nbsp;&nbsp;</font><br></a>\n",
"supporting": [
"A3_files"
],
"supporting": [],
"filters": [
"rmarkdown/pagebreak.lua"
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@
"result": {
"engine": "knitr",
"markdown": "---\ntitle: \"Title of your assignment\"\nauthor: Your Name\nstudent_id: 123456789 # Your student ID\nformat: html\nexecute:\n echo: true\n---\n\n::: {.cell}\n\n```{.r .cell-code}\nlibrary(fpp3)\nget_my_data <- function(student_id) {\n set.seed(student_id)\n all_data <- readr::read_rds(\"https://bit.ly/monashretaildata\")\n while(TRUE) {\n retail <- filter(all_data, `Series ID` == sample(`Series ID`, 1))\n if(!any(is.na(fill_gaps(retail)$Turnover))) return(retail)\n }\n}\nretail <- get_my_data(rmarkdown::metadata$student_id)\n```\n:::\n",
"supporting": [
"Assignment_template_files"
],
"supporting": [],
"filters": [
"rmarkdown/pagebreak.lua"
],
Expand Down
4 changes: 2 additions & 2 deletions _freeze/week1/index/execute-results/html.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"hash": "8da1d32c93f7ac64930a30714a9cb8bb",
"hash": "b71c92dee2605ca18bba7260a68f4196",
"result": {
"engine": "knitr",
"markdown": "---\ntitle: \"Week 1: What is forecasting?\"\n---\n\n::: {.cell}\n\n:::\n\n## What you will learn this week\n\n* How to think about forecasting from a statistical perspective\n* What makes something easy or hard to forecast?\n* Using the `tsibble` package in R\n\n## Pre-class activities\n\n* Install R and RStudio on your personal computer. Instructions are provided at [https://otexts.com/fpp3/appendix-using-r.html](https://otexts.com/fpp3/appendix-using-r.html).\n* Read [Chapter 1 of the textbook](http://otexts.com/fpp3/intro.html) and watch all embedded videos\n* Watch this video\n\n<iframe width=\"100%\" height=\"415\" src=\"https://www.youtube.com/embed/HNJYRf0mvxg?si=k0wfI3Sq68TPm4Ek\" title=\"YouTube video player\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" allowfullscreen></iframe>\n\n## Exercises (on your own or in tutorial)\n\nYour task this week is to make sure you are familiar with R, RStudio and the tidyverse packages. If you've already done ETC1010, then you may not need to do anything! But if you're new to R and the tidyverse, then you will need to get yourself up-to-speed.\n\nWork through the first five modules of the **StartR** tutorial at [startr.numbat.space](https://startr.numbat.space). Do as much of it as you think you need. For those students new to R, it is strongly recommended that you do all five modules. For those who have previously used R, concentrate on the parts where you feel you are weakest.\n\n[**Check your understanding quiz**](https://learning.monash.edu/mod/quiz/view.php?id=3444034)\n\n## Slides for seminar\n\n<iframe src='https://docs.google.com/gview?url=https://af.numbat.space/week1/slides.pdf&embedded=true' width='100%' height=465></iframe>\n<a href=https://af.numbat.space/week1/slides.pdf class='badge badge-small badge-red'>Download pdf</a>\n\n## Seminar activities\n\n\n1. Download `tourism.xlsx` from [`http://robjhyndman.com/data/tourism.xlsx`](http://robjhyndman.com/data/tourism.xlsx), and read it into R using `read_excel()` from the `readxl` package.\n2. Create a tsibble which is identical to the `tourism` tsibble from the `tsibble` package.\n3. Find what combination of `Region` and `Purpose` had the maximum number of overnight trips on average.\n4. Create a new tsibble which combines the Purposes and Regions, and just has total trips by State.\n\n\n\n## Assignments\n\n* [Forecasting Competition](../assignments/competition.qmd) is due on Friday 14 March.\n",
"markdown": "---\ntitle: \"Week 1: What is forecasting?\"\n---\n\n::: {.cell}\n\n:::\n\n## What you will learn this week\n\n* How to think about forecasting from a statistical perspective\n* What makes something easy or hard to forecast?\n* Using the `tsibble` package in R\n\n## Pre-class activities\n\n* Before we start classes, make sure that are familiar with R, RStudio and the tidyverse packages. If you've already done ETC1010, then you may not need to do anything! But if you're new to R and the tidyverse, then you will need to get yourself up-to-speed. Work through the first five modules of the **StartR** tutorial at [startr.numbat.space](https://startr.numbat.space). Do as much of it as you think you need. For those students new to R, it is strongly recommended that you do all five modules. For those who have previously used R, concentrate on the parts where you feel you are weakest.\n\n* Install R and RStudio on your personal computer. Instructions are provided at [https://otexts.com/fpp3/appendix-using-r.html](https://otexts.com/fpp3/appendix-using-r.html).\n\n* Read [Chapter 1 of the textbook](http://otexts.com/fpp3/intro.html) and watch all embedded videos\n\n* Watch this video\n\n<iframe width=\"100%\" height=\"415\" src=\"https://www.youtube.com/embed/HNJYRf0mvxg?si=k0wfI3Sq68TPm4Ek\" title=\"YouTube video player\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" allowfullscreen></iframe>\n\n## Slides for Monday lecture\n\n<iframe src='https://docs.google.com/gview?url=https://af.numbat.space/week1/slides.pdf&embedded=true' width='100%' height=465></iframe>\n<a href=https://af.numbat.space/week1/slides.pdf class='badge badge-small badge-red'>Download pdf</a>\n\n## [Activities for Tuesday workshop](activities.qmd)\n\n## [Check your understanding](https://learning.monash.edu/mod/quiz/view.php?id=3444034)\n\n\n## Assignments\n\n* [Forecasting Competition](../assignments/competition.qmd) is due on Friday 14 March.\n",
"supporting": [],
"filters": [
"rmarkdown/pagebreak.lua"
Expand Down
Loading

0 comments on commit cebb498

Please sign in to comment.