| hanaml.WhiteNoiseTest {hana.ml.r} | R Documentation |
hanaml.WhiteNoiseTest is a R wrapper for PAL white noise test.
hanaml.WhiteNoiseTest(conn.context,
data,
key = NULL,
endog = NULL,
lag = NULL,
probability = NULL,
thread.ratio = NULL)
conn.context |
|
data |
|
key |
|
endog |
|
lag |
|
probability |
|
thread.ratio |
|
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.
Returns a DataFrame:
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.
## Not run:
Input 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(conn,
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
## End(Not run)