25.10.2016 Views

SAP HANA Predictive Analysis Library (PAL)

sap_hana_predictive_analysis_library_pal_en

sap_hana_predictive_analysis_library_pal_en

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

The ARIMA (p,d,q) model is used to model non-seasonal data. To treat with seasonal data, a seasonal ARIMA<br />

(SARIMA) model, written as ARIMA (p,d,q)(P,D,Q) s , is introduced. The definition of SARIMA is as follows:<br />

Where<br />

CSS Estimation<br />

An ARMA (p, q) model can also be expressed as:<br />

Y t =φ 0 +φ 1 Y t-1 +φ 2 Y t-2 +…+φ p Y t-p +…+ε t +θ 1 ε t-1 +θ 2 ε t-2 +…+θ q ε t-q<br />

Where .<br />

Let r = max (p, q), y i , i = 1, 2, …, N denote the observed series data, with the length N,<br />

Y r+1 =φ 0 +φ 1 Y r +φ 2 Y r-1 +…+φ p Y r-p+1 +…+ε r+1 +θ 1 ε r +θ 2 ε r-1 +…+θ q ε r-q+1<br />

Conditional on Y r =y r , Y r-1 =y r-1 , …, Y r-p+1 =y r-p+1 , ε r =ε r-1 =…= ε r-q+1 =0 we have<br />

Y r+1 ~N((φ 0 +φ 1 Y r +φ 2 Y r-1 +…+φ p Y r-p+1 ), σ 2 )<br />

Where the sequence {ε r+1 , ε r+2 , …, ε N } can be calculated by iterations:<br />

ε t =Y t ‒ϕ 0 ‒ϕ 1 Y t-1 ‒ …‒ ϕ p Y t-p ‒θ 1 ε t-1 ‒θ 2 ε t-2 ‒…‒θ q ε t-q , t = r+1, r+2, …, N<br />

Therefore the log likelihood is<br />

L(φ,θ,σ 2 )=logf(Y N ,Y N-1 ,…,Y r+1 |y r ,…,y 1 ,ε r =ε r-1 =…=ε r-q+1 =0,φ,θ,σ 2 )<br />

MLE Estimation<br />

Kalman filtering is applied to calculate MLE. An ARMA (p, q) model can be expressed as a Kalman state space<br />

model.<br />

Where<br />

322 P U B L I C<br />

<strong>SAP</strong> <strong>HANA</strong> <strong>Predictive</strong> <strong>Analysis</strong> <strong>Library</strong> (<strong>PAL</strong>)<br />

<strong>PAL</strong> Functions

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!