We have introduced various functions for time series graphics including
autoplot()
,gg_season()
,gg_subseries()
,gg_lag()
andACF
. Use these functions to explore the quarterly tourism data for the Snowy Mountains.<- tourism |> filter(Region == "Snowy Mountains") snowy
What do you learn?
Which time plot corresponds to which ACF plot?
- You can compute the daily changes in the Google stock price in 2018 using the code below. Do the daily changes look like white noise?
<- gafa_stock |>
dgoog filter(Symbol == "GOOG", year(Date) >= 2018) |>
mutate(trading_day = row_number()) |>
update_tsibble(index=trading_day, regular=TRUE) |>
mutate(diff = difference(Close))