Forecasting Product Demand in R
Course facts
- Payment: Free Preview (Paid Upgrade)
- Learning style: Self-paced, start anytime
- Format: Text & Interactive
- Video access: Streaming Only
- Before you start: Case Study: Analyzing City Time Series Data in R
DataCamp details
- Chapters: 4
| Course Details | ||||||||
|---|---|---|---|---|---|---|---|---|
|
||||||||
| Languages | ||||||||
|
||||||||
| Outcomes | ||||||||
|
||||||||
| Price & Terms | ||||||||
|
||||||||
| Technical | ||||||||
|
||||||||
| Specification | ||||||||
|
||||||||
Forecast product demand in R with ARIMA, price elasticity and promotion effects, then reconcile forecasts across a product hierarchy.
Predicting how much of a product will sell lets a company plan ahead of the market, and that depends on knowing what shapes demand. You build forecasts in R for a set of products using a real-world sales example, weighing price, seasonality, holidays and promotions alongside past sales. The forecasts then roll up through products, regions and a whole US state so the numbers agree at every level of the product hierarchy.
What You Will Achieve
- Fit an ARIMA model to sales history in R and score its forecast with MAPE and MAE
- Estimate how sensitive demand is to price and test whether a holiday or promotion really moved sales
- Forecast the residuals of a pricing regression and add them to sharpen a demand prediction
- Produce product forecasts that add up correctly to regional and statewide totals
Program Overview
Time Series Forecasting With ARIMA
Sets a baseline forecast for product sales by fitting ARIMA time series models in R and checking how far the predictions miss.
- Loading and plotting sales data as an xts object
- auto.arima() models and the forecast function
- Accuracy checks and confidence intervals
Price Elasticity, Promotional Effects and Blending Regression With Time Series
Adds the economic drivers of demand, then joins pricing regressions and time series models into a single forecast.
- Calculating and interpreting price elasticity
- Holiday and promotional effect variables in regression
- Forecasting regression residuals with ARIMA
- Transfer functions and forecast ensembling
Hierarchical Forecasting Across Products and Regions
Makes forecasts agree up and down a hierarchy in which products form regions and regions form a state.
- Bottom-up forecasts for a new product and a whole region
- Top-down forecasts using historical proportions
- Middle-out forecasting for a new region and the state
Certificate Awarded (Paid)
Complete the course to earn it.
Job Outlook
Demand forecasts like these feed decisions in operations, supply chain planning, sales and marketing, and pricing and merchandising analysis.
Good for: R users who want to forecast sales for a product line and combine time series models with price and promotion regressions.
Keep in mind: The lessons work through one sales example, products and regions within a single US state, and center on ARIMA models and pricing regressions.
Bottom line: A worked path that builds ARIMA, elasticity and blended forecasts for one product line, then makes them agree up a sales hierarchy.
Frequently Asked Questions
Which forecast accuracy measures does the course use?
Forecasts are scored with MAPE and MAE, first for the ARIMA baseline and again for the transfer function forecast, and ARIMA forecasts are shown with confidence intervals around them.
How are holidays and promotions handled in the models?
You create variables that mark holiday and promotional periods, add them to a regression, test whether their effects are significant, and build future values of those predictors to forecast demand ahead.
What is the difference between transfer functions and forecast ensembling here?
The transfer function approach forecasts the residuals of a pricing regression with ARIMA and combines them with the regression forecast, while ensembling brings the separate ARIMA and regression forecasts together into one.
Which sales hierarchy are the forecasts built for?
The exercises use sales data for products grouped into regions of one US state, imported into an xts object in R, and extend to forecasts for a new product and a new region.
User Reviews
No reviews yet. Be the first to review this course.
Write your review Cancel reply
You must be logged in to post a review.
Reviews can only be posted by registered learners. Log in, then you will return here to post.
Please log in to report a problem with this page.


There are no reviews yet.