Skip to content

Latest commit

 

History

History
43 lines (20 loc) · 765 Bytes

085-sales-forecasting.knit.md

File metadata and controls

43 lines (20 loc) · 765 Bytes

Sales Forecasting {#chapter_sales-forecasting}

This chapter demonstrates how to:

  • Use tidyverts packages to explore and forecast sales data.

Setup

The following packages are used in this chapter:

library(tidyverse)
library(DBI)
library(RPostgres)
require(knitr)
library(bookdown)
library(sqlpetr)
library(tsibble)
library(fable)
library(zoo)
library(connections)

Analyzing sales time series, in particular determining seasonality and forecasting future sales, is a common activty in business management. A collection of packages called tidyverst is designed to do this in a tidy data framework.

First, we make sure the Docker container is ready and connect to the adventureworks database.