knitr::opts_chunk$set( message = FALSE, warning = FALSE, fig.width = 8, fig.height = 4.5, fig.align = 'center', out.width='95%', dpi = 100 ) # devtools::load_all() # Travis CI fails on load_all()
Anomaly detection is an important part of time series analysis:
In this short tutorial, we will cover the plot_anomaly_diagnostics()
and tk_anomaly_diagnostics()
functions for visualizing and automatically detecting anomalies at scale.
library(dplyr) library(purrr) library(timetk)
This tutorial will use the walmart_sales_weekly
dataset:
walmart_sales_weekly
Using the plot_anomaly_diagnostics()
function, we can interactively detect anomalies at scale.
walmart_sales_weekly %>% group_by(Store, Dept) %>% plot_anomaly_diagnostics(Date, Weekly_Sales, .facet_ncol = 2)
To get the data on the anomalies, we use tk_anomaly_diagnostics()
, the preprocessing function.
walmart_sales_weekly %>% group_by(Store, Dept) %>% tk_anomaly_diagnostics(Date, Weekly_Sales)
My Talk on High-Performance Time Series Forecasting
Time series is changing. Businesses now need 10,000+ time series forecasts every day. This is what I call a High-Performance Time Series Forecasting System (HPTSF) - Accurate, Robust, and Scalable Forecasting.
High-Performance Forecasting Systems will save companies MILLIONS of dollars. Imagine what will happen to your career if you can provide your organization a "High-Performance Time Series Forecasting System" (HPTSF System).
I teach how to build a HPTFS System in my High-Performance Time Series Forecasting Course. If interested in learning Scalable High-Performance Forecasting Strategies then take my course. You will learn:
Modeltime
- 30+ Models (Prophet, ARIMA, XGBoost, Random Forest, & many more)GluonTS
(Competition Winners)Unlock the High-Performance Time Series Forecasting Course
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.