Skip to content

Commit

Permalink
Added lab code for day 2
Browse files Browse the repository at this point in the history
  • Loading branch information
robjhyndman committed Sep 19, 2023
1 parent 4a48e02 commit 977f755
Show file tree
Hide file tree
Showing 7 changed files with 343 additions and 613 deletions.
5 changes: 5 additions & 0 deletions day2.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,9 @@ tbl-colwidths: [5,20,50,25]
editor: source
---


## Lab code

[Download](materials/labs_day1.R)

## Schedule
Binary file modified materials/6-fable.pdf
Binary file not shown.
4 changes: 2 additions & 2 deletions materials/6-fable.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ aligned_plots[[9]] +

- Thing to be forecast: $y_{T+h}$.
- What we know: $y_1,\dots,y_T$.
- Forecast distribution: ${y}_{T+h|t} = y_{T+h} \mid \{y_1,y_2,\dots,y_{T}\}$.
- Forecast distribution: ${y}_{T+h|T} = y_{T+h} \mid \{y_1,y_2,\dots,y_{T}\}$.
- Point forecast: $\hat{y}_{T+h|T} =\text{E}[y_{T+h} \mid y_1,\dots,y_T]$.
- Forecast variance: $\text{Var}[y_{t} \mid y_1,\dots,y_T]$
- Prediction interval is a range of values of $y_{T+h}$ with high probability.
Expand Down Expand Up @@ -644,7 +644,7 @@ where $\ell=$ max lag and $T=$ \# observations}

* If each $r_k$ close to zero, $Q$ will be **small**.
* If some $r_k$ values large ($+$ or $-$), $Q$ will be **large**.
* My preferences: $h=10$ for non-seasonal data, $h=2m$ for seasonal data.
* My preferences: $\ell=10$ for non-seasonal data, $\ell=2m$ for seasonal data.
* If data are WN and $T$ large, $Q \sim \chi^2$ with $\ell$ degrees of freedom.

## Ljung-Box test
Expand Down
4 changes: 2 additions & 2 deletions materials/_freeze/6-fable/execute-results/tex.json

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions materials/_targets/meta/meta
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
name|type|data|command|depend|seed|path|time|size|bytes|format|repository|iteration|parent|children|seconds|warnings|error
.Random.seed|object|268bc7e6c78f328e|||||||||||||||
.Random.seed|object|35b9a04bbb7667d2|||||||||||||||
ch0|stem|ab9de72200d709e8|3e5f52ce657c5b11|ef46db3751d8e999|-2100252922|0-intro.pdf*0-intro.qmd*_quarto.yml*beamercolorthememonashwhite.sty*beamerthememonash.sty*header.tex*setup.R|t19616.8869910992s|8c010f4d90932d6e|1045918|file|local|vector|||10.425||
ch1|stem|a5319f2beac3a7df|c64453376fc54f83|ef46db3751d8e999|-1860219997|1-tsibbles_files*1-tsibbles.pdf*1-tsibbles.qmd*_quarto.yml*beamercolorthememonashwhite.sty*beamerthememonash.sty*header.tex*setup.R|t19616.8690634459s|ece6ac707f7b0f60|2403330|file|local|vector|||19.651||
ch10|stem|721642041fd67c81|180f0314a458982d|ef46db3751d8e999|-1569770068|10-reconciliation_files*10-reconciliation.pdf*10-reconciliation.qmd*_quarto.yml*beamercolorthememonashwhite.sty*beamerthememonash.sty*header.tex*setup.R|t19616.8909667342s|b2f7573510d2ffce|3904970|file|local|vector|||10.545||
ch10|stem|721642041fd67c81|180f0314a458982d|ef46db3751d8e999|-1569770068|10-reconciliation_files*10-reconciliation.pdf*10-reconciliation.qmd*_quarto.yml*beamercolorthememonashwhite.sty*beamerthememonash.sty*header.tex*setup.R|t19616.8909687712s|c25ea02213e68373|2514742|file|local|vector|||10.545||
ch2|stem|902fc2f0ccacd257|baeba193c2d52af8|ef46db3751d8e999|876515811|2-graphics_files*2-graphics.pdf*2-graphics.qmd*_quarto.yml*beamercolorthememonashwhite.sty*beamerthememonash.sty*header.tex*setup.R|t19616.8695397928s|450012ee5002fe80|2284532|file|local|vector|||41.142||
ch3|stem|283e4732605a5dc4|62e21b20b1562e58|ef46db3751d8e999|1234484367|3-transformations_files*3-transformations.pdf*3-transformations.qmd*_quarto.yml*beamercolorthememonashwhite.sty*beamerthememonash.sty*header.tex*setup.R|t19616.8702026691s|49b7ee386e892889|1950236|file|local|vector|||57.26||
ch4|stem|43a9fe894205c5ed|714cdedd9a51c6a7|ef46db3751d8e999|-908837616|4-decompositions_files*4-decompositions.pdf*4-decompositions.qmd*_quarto.yml*beamercolorthememonashwhite.sty*beamerthememonash.sty*header.tex*setup.R|t19616.8882059704s|48b529fa5a22c94e|4398600|file|local|vector|||11.419||
ch5|stem|f75e7967b395b8a8|e52a5fbe26d33273|ef46db3751d8e999|-666445323|5-feasts_files*5-feasts.pdf*5-feasts.qmd*_quarto.yml*beamercolorthememonashwhite.sty*beamerthememonash.sty*header.tex*setup.R|t19616.8714599488s|248934d61f4fc24d|747153|file|local|vector|||12.824||
ch6|stem|df6f90478372cceb|12a8fce82f8edcca|ef46db3751d8e999|-564074967|6-fable_files*6-fable.pdf*6-fable.qmd*_quarto.yml*beamercolorthememonashwhite.sty*beamerthememonash.sty*header.tex*setup.R|t19616.8883524531s|6cc77f2ecb84e757|5760936|file|local|vector|||12.636||
ch6|stem|3ecd75c9fdb7b004|12a8fce82f8edcca|ef46db3751d8e999|-564074967|6-fable_files*6-fable.pdf*6-fable.qmd*_quarto.yml*beamercolorthememonashwhite.sty*beamerthememonash.sty*header.tex*setup.R|t19619.5365924189s|e8b84ad75b0d6dff|6241316|file|local|vector|||13.318||
ch7|stem|0f6a8b59d444cc55|564d993f7fcaa013|ef46db3751d8e999|1823179452|7-ets_files*7-ets.pdf*7-ets.qmd*_quarto.yml*beamercolorthememonashwhite.sty*beamerthememonash.sty*header.tex*setup.R|t19616.888483195s|a49ca301bb88f02a|1891012|file|local|vector|||11.301||
ch8|stem|311000fe274be69c|295fb32fd3a36f96|ef46db3751d8e999|92484717|8-arima_files*8-arima.pdf*8-arima.qmd*_quarto.yml*beamercolorthememonashwhite.sty*beamerthememonash.sty*header.tex*setup.R|t19616.8886032423s|d6d8b4420ecd9bd1|866759|file|local|vector|||10.339||
ch9|stem|3fdd538fbc115c1a|447811e8b1c66e6e|ef46db3751d8e999|330879192|9-dynamic-regression_files*9-dynamic-regression.pdf*9-dynamic-regression.qmd*_quarto.yml*beamercolorthememonashwhite.sty*beamerthememonash.sty*header.tex*setup.R|t19616.8908443257s|c0d744df4e1cbeb8|1445741|file|local|vector|||10.404||
ch9|stem|3fdd538fbc115c1a|447811e8b1c66e6e|ef46db3751d8e999|330879192|9-dynamic-regression_files*9-dynamic-regression.pdf*9-dynamic-regression.qmd*_quarto.yml*beamercolorthememonashwhite.sty*beamerthememonash.sty*header.tex*setup.R|t19616.8908465943s|766f5953efe32858|1064367|file|local|vector|||10.404||
extra_files|object|b9b0d6f828720468|||||||||||||||
Loading

0 comments on commit 977f755

Please sign in to comment.