|
SuanShu, a Java numerical and statistical library | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcom.numericalmethod.suanshu.stats.test.HypothesisTest
com.numericalmethod.suanshu.stats.test.timeseries.portmanteau.BoxPierce
LjungBox
@Deprecated public class BoxPierce
The Box-Pierce test (named for George E. P. Box and David A. Pierce) is a portmanteau test for autocorrelated errors. A portmanteau test tests whether any of a group of autocorrelations of a time series are different from zero. The Box-Pierce statistic is computed as the weighted sum of squares of a sequence of autocorrelations.
The R equivalent function isBox.test.
| Constructor Summary | |
|---|---|
BoxPierce(double[] x,
int lag,
int fitdf)
Deprecated. Perform the Box-Pierce test to check auto-correlation in a time series. |
|
| Method Summary | |
|---|---|
java.lang.String |
getAlternativeHypothesis()
Deprecated. Get the description of the alternative hypothesis. |
java.lang.String |
getNullHypothesis()
Deprecated. Get a description of the null hypothesis. |
double |
pValue()
Deprecated. Get the p-value for the test statistics. |
double |
statistics()
Deprecated. Get the test statistics. |
| Methods inherited from class com.numericalmethod.suanshu.stats.test.HypothesisTest |
|---|
isNullRejected, nGroups, nObs, oneSidedPvalue |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BoxPierce(double[] x,
int lag,
int fitdf)
x - a univariate time serieslag - the number of lags to checkfitdf - the degrees of freedom to be subtracted if x is a series of residuals| Method Detail |
|---|
public java.lang.String getNullHypothesis()
HypothesisTest
getNullHypothesis in class HypothesisTestpublic java.lang.String getAlternativeHypothesis()
HypothesisTest
getAlternativeHypothesis in class HypothesisTestpublic double statistics()
HypothesisTest
statistics in class HypothesisTestpublic double pValue()
HypothesisTest
pValue in class HypothesisTest
|
SuanShu, a Java numerical and statistical library | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||