hanaml.WhiteNoiseTest.Rdhanaml.WhiteNoiseTest is a R wrapper for SAP HANA PAL white noise test.
hanaml.WhiteNoiseTest( data, key = NULL, endog = NULL, lag = NULL, probability = NULL, thread.ratio = NULL )
| data |
|
|---|---|
| key |
|
| endog |
|
| lag |
|
| probability |
|
| thread.ratio |
|
DataFrame
Result of the forecast accuracy measurement, structured as follows:
STAT_NAME: name of the accuracy measures.
STAT_VALUE: values of the accuracy measures
WN: 1 for white noise, 0 for not white noise.
Q: Q statistics defined as above.
chi^2: chi-square distribution.
hanaml.WhiteNoiseTest is used to identify whether a time series is a white noise series. If white noise exists in the raw time series, the algorithm returns the value of 1. If not, the value of 0 will be returned.
Input DataFrame data:
> data$Collect() TIMESTAMP Y 1 0 1474 2 1 1356 3 2 826 4 3 1586 5 4 1010 6 5 1337 7 6 1415 8 7 1514
Invoke the function:
> wn <- hanaml.WhiteNoiseTest(data,
key = "TIMESTAMP",
endog = "Y",
lag = 3,
probability = 0.9,
thread.ratio = 0.2)
Output:
> wn$Collect() STAT_NAME STAT_VALUE 1 WN 1.000000 2 Q 2.469041 3 chi^2 6.251389