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
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionfinal intThe degree of freedom.final doublep-valuefinal doubleBox-Pierce or Ljung-Box statistic.final BoxTest.TypeThe 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.
-