Two Algorithms for Time Series Forecasting Danny Yuan Forecasting - - PowerPoint PPT Presentation

two algorithms for time series forecasting
SMART_READER_LITE
LIVE PREVIEW

Two Algorithms for Time Series Forecasting Danny Yuan Forecasting - - PowerPoint PPT Presentation

Two Algorithms for Time Series Forecasting Danny Yuan Forecasting with Fast Fourier Transformation Key Idea: Decomposition A reasonably continuous and periodic function can be expressed as the sum of a series of sine terms FFT Is Simple 1.


slide-1
SLIDE 1

Two Algorithms for Time Series Forecasting

Danny Yuan

slide-2
SLIDE 2

Forecasting with Fast Fourier Transformation

slide-3
SLIDE 3

Key Idea: Decomposition

slide-4
SLIDE 4
slide-5
SLIDE 5

A reasonably continuous and periodic function can be expressed as the sum of a series of sine terms

slide-6
SLIDE 6
slide-7
SLIDE 7
slide-8
SLIDE 8
slide-9
SLIDE 9
slide-10
SLIDE 10
slide-11
SLIDE 11
slide-12
SLIDE 12
slide-13
SLIDE 13

1. Run FFT on input data 2. Filter out low-amplitude, high-frequency components 3. Forecast on each individual component 4. Run inverse of FFT of filtered data 5. Profit!

FFT Is Simple

slide-14
SLIDE 14

FFT Is Simple

slide-15
SLIDE 15
slide-16
SLIDE 16
slide-17
SLIDE 17

Solution: Iteratively Compensate Input with Error

slide-18
SLIDE 18
slide-19
SLIDE 19
slide-20
SLIDE 20
slide-21
SLIDE 21

When Should We Use FFT?

slide-22
SLIDE 22

When There Is Periodicity

slide-23
SLIDE 23

When You Need a Quick Job

slide-24
SLIDE 24

Decomposition Is Powerful

Reference

slide-25
SLIDE 25

Decomposition Is Powerful

slide-26
SLIDE 26

Decomposition Is Powerful

slide-27
SLIDE 27

Decomposition Is Powerful

slide-28
SLIDE 28

Where Is The Bottleneck?

  • Not easy to combine new signals
  • E.g. events, weather
slide-29
SLIDE 29

Forecasting With Deep Learning

slide-30
SLIDE 30
slide-31
SLIDE 31
slide-32
SLIDE 32
  • Time series can be discretized into sequence
  • We can apply techniques of seq2seq

Key Idea: Time Series Are Sequences

slide-33
SLIDE 33

t

H_1

Input1

H_2

Input2

H_3

Input 3

H_n

Input n-1

H_0

Start Forecast 1 Forecast 2 Forecast 3 Forecast 4 Forecast n

T0 T1 T2 T3 Tn

slide-34
SLIDE 34

t

H_1

Input1

H_2

Input2

H_3

Input 3

H_n

Input n-1

H_0

Start Forecast 1 Forecast 2 Forecast 3 Forecast 4 Forecast n

[Forecast 1, Time of Week 1]

…... [F_(n-1), TOW_(n-1)]

slide-35
SLIDE 35

t

H_1

Input1

H_2

Input2

H_3

Input 3

H_n

Input n-1

H_0

Start Forecast 1 Forecast 2 Forecast 3 Forecast 4 Forecast n

…... [F_(n-1), TOW_(n-1), Weather_(n-1), X_(n-1)]

[Forecast 1, Time of Week 1, Weather 1]

[Temperature, Humidity, Precipitation, Wind, Weather Type]

slide-36
SLIDE 36

What About Recent Context?

slide-37
SLIDE 37

t t - 1 t - m + 2 t - m + 1 t - m

[F_1, TOW_1, Weather_1, X_1] …... [F_(n-1), TOW_(n-1), Weather_(n-1), X_(n-1)] h_1

Input 1

h_2

Input 2

h_3

Input 3

h_m

Input m

H_1

Input 1

H_2

Input 2

H_3

Input 3

H_n

Input n-1

H_0

Start Forecast 1 Forecast 2 Forecast 3 Forecast 4 Forecast n

slide-38
SLIDE 38

t t - 1 t - m + 2 t - m + 1 t - m

[F_1, TOW_1, Weather_1, X_1] …... [F_(n-1), TOW_(n-1), Weather_(n-1), X_(n-1)] h_1

Input 1

h_2

Input 2

h_3

Input 3

h_m

Input m

H_1

Input 1

H_2

Input 2

H_3

Input 3

H_n

Input n-1

H_0

Start Forecast 1 Forecast 2 Forecast 3 Forecast 4 Forecast n

Encoder Decoder

slide-39
SLIDE 39

Summary

  • Decomposition is a powerful tool in time series forecasting
  • Time series forecasting can be modeled as a seq2seq problem