library(fpp3)
── Attaching packages ──────────────────────────────────────────────── fpp3 0.3 ──
✓ lubridate   1.7.9.2     ✓ feasts      0.1.6  
✓ tsibble     0.9.3       ✓ fable       0.2.1  
✓ tsibbledata 0.2.0       
── Conflicts ─────────────────────────────────────────────────── fpp3_conflicts ──
x lubridate::date()   masks base::date()
x dplyr::filter()     masks stats::filter()
x tsibble::interval() masks lubridate::interval()
x dplyr::lag()        masks stats::lag()

White noise

Random normal with mean 0 and variance 1.

Moving average model.

yt = wn + phi * lag(wn)

phi1 <- -0.9
phi2 <-  0.9

y_ma <- y %>% mutate(wn_lag = lag(wn),
                     yt_ma1 = wn + phi1*wn_lag,
                     yt_ma2 = wn + phi2*wn_lag)
y_ma

y_ma %>% autoplot(wn)

y_ma %>% autoplot(yt_ma1)

y_ma %>% autoplot(yt_ma2)

y_ma %>% ACF(wn) %>% autoplot()

y_ma %>% ACF(yt_ma1) %>% autoplot()

y_ma %>% ACF(yt_ma2) %>% autoplot()

LS0tCnRpdGxlOiAiUiBOb3RlYm9vayIKb3V0cHV0OiBodG1sX25vdGVib29rCi0tLQoKCgpgYGB7cn0KbGlicmFyeSh0aWR5dmVyc2UpCmxpYnJhcnkoZnBwMykKYGBgCgojIFdoaXRlIG5vaXNlCgpSYW5kb20gbm9ybWFsIHdpdGggbWVhbiAwIGFuZCB2YXJpYW5jZSAxLgoKYGBge3J9CnNldC5zZWVkKDMwKQoKeSA8LSB0c2liYmxlKAogIHNhbXBsZSA9IDE6NTAsIAogIHduID0gcm5vcm0oNTApLAogIGluZGV4ID0gc2FtcGxlKQp5Cgp5ICU+JSBhdXRvcGxvdCh3bikgKyBsYWJzKHRpdGxlID0gIldoaXRlIG5vaXNlIikKYGBgCgojIE1vdmluZyBhdmVyYWdlIG1vZGVsLgoKeXQgPSB3biArIHBoaSAqIGxhZyh3bikKCmBgYHtyfQpwaGkxIDwtIC0wLjkKcGhpMiA8LSAgMC45Cgp5X21hIDwtIHkgJT4lIG11dGF0ZSh3bl9sYWcgPSBsYWcod24pLAogICAgICAgICAgICAgICAgICAgICB5dF9tYTEgPSB3biArIHBoaTEqd25fbGFnLAogICAgICAgICAgICAgICAgICAgICB5dF9tYTIgPSB3biArIHBoaTIqd25fbGFnKQp5X21hCgp5X21hICU+JSBhdXRvcGxvdCh3bikKeV9tYSAlPiUgYXV0b3Bsb3QoeXRfbWExKQp5X21hICU+JSBhdXRvcGxvdCh5dF9tYTIpCmBgYAoKYGBge3J9CnlfbWEgJT4lIEFDRih3bikgJT4lIGF1dG9wbG90KCkKeV9tYSAlPiUgQUNGKHl0X21hMSkgJT4lIGF1dG9wbG90KCkKeV9tYSAlPiUgQUNGKHl0X21hMikgJT4lIGF1dG9wbG90KCkKYGBgCgoKCg==