
Welcome to the course. I tried to create the hottest Time Series Forecasting Model course, and I hope that you feel the same way at the end. Before we start, I want to relay important information to you about the course.
In this video's resource section, you will find the zip folder with the case study we will solve throughout the course. It contains as well the code templates for you to keep and use in your future problems. Please download and store it in an accessible part of your computer. I have stored mine, for instance, on the desktop.
In the introduction of each section, you will find a downloadable pdf that contains the slides that I will go through. The goal is to keep them and refer to them if you need them in the future.
Now, about what you will learn. This section aims at dealing with all bureaucracy. Making sure you get the resources needed or that you get R installed on your computer. Sections two and three set the stage for the course. We will go through the very basics of forecasting models and time series. We will get our hands dirty as fast as possible, creating a script for us to use in all the course sections. In sections four until eight, we will learn five forecasting models: Holt-Winters, SARIMAX, TBATS, Facebook Prophet, Neural Networks Autoregression. The course finishes with the Ensemble approach - an intuitive and straightforward method that yields excellent accuracy.
Learn to access and organize course materials for forecasting models and time series analysis in R, including downloading the data set and navigating four folders with scripts and cheat sheets.
You will learn how to install R and Rstudio for Windows. I will also show the steps to install them in macOS.
Meet Diogo, a data-driven founder with a master’s in management, who uses analytics to tackle big business challenges—from sales planning to menu optimization and pricing insights—while guiding your learning path.
I talk about reviews and how you can contribute to Time Series Forecasting Models in R.
Hi, welcome to the „Introduction to Forecasting“ section. We are just starting; thus, I want us to set the stage for the course, yet I would like us to be bold in your learning process. I will introduce the forecasting topic, arguing why it is so relevant for companies. On top, you also be briefed on the case study you will solve throughout the course.
From a practical perspective, we will prepare the data, so it is ready to be consumed during the forecasting models‘ sections. Moreover, I will try to give you the tools required to be autonomous when working on a dataset of yours. I will close the practice part provide simple to use visualization of the data.
I show you how relevant Forecasting is for Companies, and why you should use analytics driven methodologies rather than gut based predictions. We also talk about Time Series data.
Explore time series data used in forecasting, illustrated by NYC daily shelter demand from 2014–2020. Recognize time-ordered, equally spaced observations (daily, weekly, monthly, yearly) and patterns in one-dimensional time data.
We talk about the characteristics of Time Series data. You also get briefed on the Case Study we will solve.
Learn how to install and load libraries in R, set a working directory, and navigate the RStudio interface for scripts, console, plots, and data frames.
We load our Time Series Data into RStudio.
We transform the Date Variable of our Time Series data into the most common format.
We prepare the final dataset of our time series data.
We rename the dependent variable to y.
Visualization is key in time series analysis to get to know our data. The lecture is dedicated to plotting the time series data.
Diogo explains learning to program in R and Python through project-based, goal-driven practice, starting with Stata in business studies, replicating R techniques in Python, and seeking colleague support.
Hello and welcome to the „Seasonal decomposition“ section. It will be the last building block before we go deep into the first forecasting model. The goal is to talk about how decomposing time series data into trend and seasonality.
Have you noticed how airplane tickets are ridiculously high around the holidays? Or public transport companies offering cheaper fares for those not traveling during rush hours? These are two examples of companies trying to make the most out of seasonality! Another important fact is that seasonality does not only have to do with seasons. We can find seasonal patterns in monthly, weekly, daily, and hourly data.
We will go through in detail both seasonality and trend in our case study. On top, you will learn about other concepts like additive and multiplicative seasonalities or trends. The best part, the practice application is as easy as it can be.
The most common time series data has trend and seasonality. On top, seasonal patterns is where Forecasting models excel. The goal of the lecture is to talk about trend and seasonality in time series data and forecasting models.
Prepare and run a seasonal decomposition workflow in R using the forecast package, building on a prior script, setting the working directory, loading data, and examining multiplicative seasonality.
Learn to transform data into time series objects in R using RTS, set start and frequency, handle daily and seasonal cycles, and plot the results.
Explore how to create a seasonality plot in R with the DG Season Plot function, mapping X and Y to reveal monthly patterns and potential COVID impacts.
We learn about Additive and multiplicative, which are types of time series data, and essential for forecasting models.
We prepare the script to apply Seasonal Decompostition to our time series data.
Explore multiplicative decomposition of a time series in R to separate trend, seasonality, and error, and see how removing them clarifies the forecast error as the key.
Explore how error modelling and regression help you capture trend and seasonality in stock data, considering events, temperature, and other drivers, while judging data representativeness.
Provide feedback to shape the remaining half of the course on forecasting models and time series analysis for business in R and share what's exciting you and what's missing.
Welcome to a fascinating section of the course. Holt-Winters is a particular form of Exponential Smoothing. It will be our first Forecasting Model in which we will go from zero to hero.
On top, there are still some concepts that we do need to master—knowing about training and test in time series data. As well, we need to understand how to measure success when it comes to forecasting models. Of course, all this complements the learning about exponential smoothing. In the last video, we will go through the Pros and Cons of Holt-Winters.
In the practice parts, we will continue to build a master script that will be useful in any forecasting model that you employ.
We learn about the concepts behind Exponential Smoothing.
Explore a case study using google trends data to build, train, test, and visualize a time series in R, applying Holt Winters triple exponential smoothing to forecast 10 weeks.
Learn to load libraries and data in R, set a working directory, read a CSV, and prepare a time series object for exponential smoothing and cold winters forecasting.
Transform a data frame into a time series object in R using the time series function, setting start and a weekly frequency of 52 for weekly data and season plots.
Explore time series plotting in R with plots and seasonal plots, revealing year-end peaks around Christmas in Brazil and a 2020 pandemic drop, plus training and test sets for forecasting.
We talk about the relevance of splitting the time series data into training and test to assess our Forecasting models and the specificities of doing it for time series.
We take the first preparatory step to use the Holt-Winters Forecasting model and split the time series data into training and test set.
We perform our first Forecasting model, Holt-Winters.
We use our first forecasting model, Holt-Winters, to predict.
We learn about how to measure the accuracy of forecasting models.
We assess the accuracy of the Holt-Winters Forecasting Model.
We learn about the pros and cons of the Holt-Winters Forecasting Model.
Forecast air miles with Holt-Winters in R by visualizing data, splitting training and test sets (last 12 months), forecasting 12 months, and measuring accuracy with the TSA package.
Apply Holt-Winters forecasting in R to air miles time series, visualize trends and seasonality, and compare additive and multiplicative models using train-test splits and accuracy metrics.
Develop stakeholder management by involving them early, ensuring they are heard, and sharing updates on what you do that concerns them, as shown in a fashion e-commerce project.
Motivate the building of a reusable forecasting product by ensembleing three models to address model selection uncertainty and reduce flaws, and showcase parameter tuning for Facebook profit and neural networks.
Hello and welcome to the section where you will learn about the second forecasting model. Sarimax is an advanced form of ARIMA. It has all of the ARIMA power, combines with a seasonality component, and allows external regressors.
ARIMA has been the go-to Forecasting Model since the ’60s. An old mathematical algorithm that has not decayed in time. Either or of ARIMA, SARIMA or SARIMAX is indispensable in any companies Forecasting Models portfolio.
Again, we have several concepts that we need to master to grasp SARIMAX fully.
Explore arima forecasting in r, focusing on auto regressive, integrated, and moving average components, seasonality, and exogenous regressors for accurate forecasts.
Learn to prepare an R forecasting script: set the working directory, load forecast libraries, transform dates, select time series and regressors, and inspect seasonal patterns for accurate forecasts.
Learn to split data into training and test sets for forecasting 31 days in R, using a filter-based approach to define date-based training up to a cutoff and test afterward.
Learn to create a time series object in R using the ts function, specifying data and a frequency to capture seasonality, such as weekly or monthly patterns.
Explore Pearson correlation as a metric for strength and direction between variables in data. Values range from -1 to 1, indicating positive or negative relationships, and causation is not implied.
Explore auto correlation plots to assess how past values inform current observations in time series, using lagged correlations that decay toward zero.
Generate and interpret auto-correlation plots in R with the acf function to assess past dependence. See strong autocorrelation near one and decay over lag to gauge time series predictability.
The autoregressive component is essential to understand ARIMA, SARIMA and SARIMAX, the second forecasting model.
Integrated and stationarity is the second part of ARIMA, SARIMA, and SARIMAX, our second Forecasting Model.
We learn how to test for stationarity in R. An important second to learn the second forecasting model, SARIMAX.
The last part to close the loop on ARIMA, SARIMA, and SARIMAX, the second forecasting model.
We learn about the optimizations factors to apply ARIMA, SARIMA, and SARIMAX, the second forecasting model.
We learn about AIC and BIC, two ways of determining the optimization factors of ARIMA, SARIMA, and SARIMAX, the second forecasting model.
We learn the peculiarities of Sarima or Seasonal Arima. We also understand the importance of external regressors and why SARIMAX is the best model at your disposal.
We isolate the regressors, an important step to apply SARIMAX, the third forecasting model.
We create the SARIMAX forecasting model, which optimizes automatically the factors for SARIMA and for the external regressors.
We use the forecasting model to predict, plot, and measure the accuracy of SARIMAX.
We close the loop on the Arima, Sarima, and Sarimax practice tutorial, creating the final forecasts and storing them for the ensemble section.
We look at the pros and cons of SARIMAX; the second forecasting model.
Set the frequency to 365 in the R-based forecasting workflow, inspect autocorrelation, and determine that seasonality is not detected, yielding a non seasonal model with similar predictions.
Explore the SARIMAX forecasting challenge in R by loading a 261-observation time series, creating training and test sets, and forecasting 10 weeks with a SARIMAX model, visualizing and assessing results.
Explore sarimax forecasting in R by building training and test splits, incorporating exogenous variables like Easter, Carnival, and Republic, and evaluating forecast accuracy for a ten-step ahead horizon.
Apply a product-minded forecasting approach: interview stakeholders, define success, plan backward, map external events and controllable factors, ensure exogenous regressions are significant, and iterate to drive demand.
Welcome to the third forecasting model. Facebook Prophet is one of the most exciting techniques out there. It provides us with the ability to make time-series predictions with good accuracy using intuitive and straightforward parameters. Furthermore, it supports including the impact of custom seasonality and holidays.
From a concept perspective, there will not be anything particularly new. In the intuition tutorials, we will see the characteristics that make Facebook Prophet stand out. The practice videos will be a bit trickier, however. The forecasting model has different programming steps. Thus, it will take some work, but you will have a template at the end of this section.
Identify how structural time series decomposes data into trend, seasonality, exogenous impact, and error, and learn to balance explanation with the risk of overfitting.
We introduce the fourth forecasting model for time series, Facebook Prophet.
This lecture shows how to set up the workspace, load Facebook profit and forecast, prepare a 16-variable data set, rename the date column, and create and combine three forecasts.
We learn about dynamic regressors / holidays, one of the characteristics that make Facebook Prophet a fantastic forecasting technique for time series analysis.
We learn how to code the holidays for the fourth forecasting model, Facebook Prophet.
We finish the holiday preparation for Facebook Prophet, the fourth forecasting model.
We prepare the Data Frame the way Facebook Prophet requires in order to create forecasts.
Create training and test sets in R by filtering the time series to December 2020, excluding Easter and Thanksgiving, and selecting Y, Christmas, and temperature for a Facebook profit model.
Explore the Facebook Prophet model parameters, including holidays, dates, lower and upper windows, seasonality modes (multiplicative or additive), and prior scales to tune trend flexibility.
We create a Facebook Prophet forecasting model for time series.
Review regressor coefficients in a multiplicative forecasting model and read them as percent; temperature lowers demand per degree, while Christmas has a tiny effect, and events will be analyzed next.
Learn to create a future data frame with daily periods using make_future_data_frame, include regressors, then forecast with predict, and analyze holiday and seasonal effects in visualization.
Explore how to inspect event impacts in R using a forecast data frame. Filter for Easter and Thanksgiving dates, and interpret absolute values and negative Easter effects.
We plot the Facebook Prophet forecasting model and visualize the time series components.
We measure the accuracy of our Facebook Prophet forecasting model.
We look at the pros and cons of using Facebook Prophet to model time series data.
Forecast daily Udemy Wikipedia visits using Facebook Prophet in R, incorporating Easter and Christmas as events and Black Friday, then visualize results and assess 31-day forecast accuracy.
Explore how to prepare time series data in R for Facebook Prophet, including date formatting, holiday creation (Easter, Christmas), and training versus test set construction.
Build a Facebook Prophet model in R with yearly and weekly seasonality, holy days, and a Black Friday regressor; forecast future demand and evaluate accuracy with MAE, RMSE, and MAPE.
Tune prophet parameters to optimize forecasts, moving beyond default values with a careful, code-by-code approach. Follow slow, hands-on practice, review questions in the Q&A, and repeat steps in the challenge.
Explore parameter tuning for forecasting models, beginner friendly yet advanced, by defining parameter options, testing adaptive and multiplicative seasonality, and selecting the lowest-error settings.
Explore cross-validation to boost forecasting credibility by iterating multiple training and test splits, moving the test set into training and testing across different seasonality, such as December and June.
Prepare an R script for a Facebook Prophet forecasting model, tune parameters, clean the template, merge holidays, and build a two-regressor model ready for cross-validation.
Apply time series cross-validation in R to set horizon, units, and period, then measure model accuracy with MAPE, MAE, and RMSE.
Explore how parameter tuning tailors forecasting models for accuracy by adjusting seasonality, prior scale, holiday prior scale, change point scale, and seasonality mode (multiplicative or additive).
Create a parameter grid and results vector to tune a Prophet-based forecast. Generate all combinations and perform 24 cross-validations to find best settings.
Learn to tune forecasting models in R by building a parameter grid, configuring seasonality and regressors, and validating results with cross validation to improve accuracy.
Practice parameter tuning by using a grid to link results, identify the minimum, and select best additive seasonality, change points prior scale, and holidays prior scale.
Begin the challenge for forecasting models and time series analysis in R by tuning parameters through cross validation, using a prepared template, with no dataset provided for now.
Demonstrates parameter tuning for time series forecasting in R using Prophet, building a grid, running cross-validation, and selecting best change point and seasonality priors.
Uber employs spatial-temporal and marketplace forecasting to predict demand, supply, revenue, goods to be ordered, and staffing, while comparing statistical and machine learning methods for robust, data-driven decisions.
Welcome to the 4thforecasting model. Neural Networks AutoRegression is a powerful and elegant adaptation of Deep Learning to time-series.
From a theoretical perspective, we need to (1) master the Neural Networks framework, (2) understand the optimization factors of the Neural Networks autoregression. I think the intuition is simple, and I hope that I manage to communicate it effectively so that you find it simple too.
In the programming videos, the difficulty level is easy peezy lemon squezzy. We have built everything, and we just need to adapt to Neural Networks.
We learn about the characteristics behind Neural networks, our fifth forecasting model.
Learn how neural networks model time series with autoregression by transforming inputs through a hidden layer of neurons into outputs using sigmoid activation and addressing overfitting.
set the working directory, load the forecast library in R, transform the data, rename the variable, and visualize to prepare for forecasting models and time series.
Prepare training and test sets, transform the time series, and extract regressors in R for forecasting, with automated frequency options and neural networks for regression.
We learn how Neural Networks minimize overfitting.
We learn about the optimization factors for the Neural Networks autoregression forecasting model for time series.
We create the Neural Networks autoregression forecasting model.
We plot the neural network autoregression predictions and measure the accuracy of our model.
We look at the pros and cons of Neural Networks Autoregression.
Predict employment rate with a neural networks model by splitting the dataset into training and four-period test sets, building a regressive matrix, and using fpp3 in R to assess accuracy.
Explore neural networks for forecasting in R by building test sets, transforming data, and fitting a forecast model; evaluate accuracy with mean absolute error and root mean square error.
Explore parameter tuning of a deep learning time series model, adding a cross-validation loop to the existing tuning process, with emphasis on debugging via code templates and managing programming difficulty.
Explore tuning parameters: p, P, size, and decay for time series forecasting in neural networks, considering non-seasonal and seasonal lags, inputs, and external regressors.
Build a custom cross-validation pipeline and parameter tuning for time series forecasting in R. Prepare data, train-test split, and use neural networks and autoregression to measure accuracy.
Generate a cross-validation date sequence to split training and test sets for forecasting, using 31-day test windows and a 200-day lookback, and implement a repeatable date-based validation pipeline.
Create a results vector to store model outputs, using vector() with mode numeric and length equal to the number of dates (25 forecasts) for cross-validation.
Implement a practical cross-validation pipeline in R for forecasting time series. Build training and test sets, create time series objects with regressors, forecast, and assess RMSE accuracy.
Prepare parameter tuning by building a comprehensive search grid in R, using expand.grid for four parameters, and setting up cross-validation for neural networks to compare results.
Tune forecasting models in R by performing grid search, fetching parameters, and evaluating with cross-validation, then store and summarize the mean results.
Fetch the best parameters in R via a grid search, inspect the results grid for the minimum, and identify decay and size for seasonal forecasts.
Learn to perform cross-validation and hyperparameter tuning on an employment rate prediction case study in R, using a focused script and the Neural Networks Challenge template.
Explore time series forecasting with cross validation and grid search in R, tuning AR and seasonal parameters to optimize mean absolute error and identify best parameter settings.
How many times have you wanted to predict the future?
Welcome to the most exciting online course about Forecasting Models and Time Series in R. I will show everything you need to know to understand the now and predict the future.
Forecasting is always sexy - knowing what will happen usually drops jaws and earns admiration. On top, it is fundamental in the business world. Companies always provide Revenue growth and EBIT estimates, which are based on forecasts. Who is doing them? Well, that could be you!
WHY SHOULD YOU ENROLL IN THIS COURSE?
1 | YOU WILL LEARN THE INTUITION BEHIND THE TIME SERIES MODELS WITHOUT FOCUSING TOO MUCH ON THE MATH
It is crucial that you know why a model makes sense and the underlying assumptions behind it. I will explain to you each model using words, graphs, and metaphors, leaving math and the Greek alphabet to a minimum.
2 | THOROUGH COURSE STRUCTURE OF MOST IMPACTFUL TIME SERIES FORECASTING MODEL TECHNIQUES
The techniques in this course are the ones I believe will be most impactful, up-to-date, and sought after:
Holt-Winters
Sarimax
Facebook Prophet
Neural Networks AutoRegression
Ensemble approach
3 | WE CODE TOGETHER LINE BY LINE
I will guide you through every step of the way in your journey to master time series and forecasting models. I will also explain all parameters and functions that you need to use, step by step.
4 | YOU APPLY WHAT YOU ARE LEARNING IMMEDIATELY
At the end of each section regarding forecasting techniques, you are shown an exercise to apply what you learn immediately. If you do not manage? Don't worry! We also code together line by line the solutions. The challenges range from predicting the interest in Churrasco (Brazilian BBQ) to the Wikipedia visitors of Udemy.
Did I spike your interest? Join me and learn how to predict the future!