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 difference-sign test counts the number S of times that x(t)−x(t−1) is positive, t=1,2,...,n. For an IID<br />

(Independent and Identically Distributed) series, the theoretical expectation of S is<br />

µ s =(n−1)/2,<br />

and the corresponding standard deviation is<br />

For a large n, S approximately behaves Gaussian distribution<br />

. Hence, a large positive or negative<br />

value of S−µ S indicates the presence of an increasing (or decreasing) trend. The data is considered to have a<br />

trend if |S−µ S |>σ S , otherwise no trend exists. Nevertheless, the difference-sign test must be used with great<br />

caution. In the case of large proportion of tie data, for example, it may give a result of negative trend, while in<br />

fact it has no trend.<br />

Rank Test<br />

The second solution is the rank test, which is usually known as Mann-Kendall (MK) Test (Mann 1945, Kendall<br />

1975, Gilbert 1987). It tests whether to reject the null hypothesis (H 0 ) and accept the alternative hypothesis<br />

(H α ), where<br />

H 0 : No monotonic trend,<br />

H α : Monotonic trend is present,<br />

α: the tolerance probability that falsely concludes a trend exists when there is none, 0

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

Saved successfully!

Ooh no, something went wrong!