Package smile.timeseries
Class BoxTest
java.lang.Object
smile.timeseries.BoxTest
Portmanteau test jointly that several autocorrelations of time series
are zero.
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionfinal int
The degree of freedom.final double
p-valuefinal double
Box-Pierce or Ljung-Box statistic.final BoxTest.Type
The type of test. -
Method Summary
-
Field Details
-
type
The type of test. -
df
public final int dfThe degree of freedom. -
q
public final double qBox-Pierce or Ljung-Box statistic. -
pvalue
public final double pvaluep-value
-
-
Method Details
-
toString
-
pierce
Box-Pierce test.- Parameters:
x
- time serieslag
- the statistic will be based on lag autocorrelation coefficients.- Returns:
- the test results.
-
ljung
Box-Pierce test.- Parameters:
x
- time serieslag
- the statistic will be based on lag autocorrelation coefficients.- Returns:
- the test results.
-