|
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.cointegration.CointegrationMle
public class CointegrationMle
Two or more time series are cointegrated if they each share a common type of stochastic drift, that is, to a limited degree they share a certain type of behavior in terms of their long-term fluctuations, but they do not necessarily move together and may be otherwise unrelated.
This class implements the Johansen method to estimate the cointegrating factors.
The Johansen test, named after Søren Johansen, is a procedure for testing cointegration of several I(1) time series using MLE. This test permits more than one cointegrating relationship. It is more generally applicable than the Engle–Granger test.
| Field Summary | |
|---|---|
boolean |
intercept
indicate whether an intercept is included in the computation |
JohansenAsymptoticDistribution.Test |
test
the type of Johansen test |
| Constructor Summary | |
|---|---|
CointegrationMle(SimpleMultiVariateTimeSeries ts,
boolean intercept)
Perform the Johansen procedure on a multi-variate time series. |
|
CointegrationMle(SimpleMultiVariateTimeSeries ts,
boolean intercept,
int p)
Perform the Johansen procedure on a multi-variate time series, using the EIGEN test. |
|
CointegrationMle(SimpleMultiVariateTimeSeries ts,
boolean intercept,
int p,
Matrix D,
JohansenAsymptoticDistribution.Test test)
Perform the Johansen procedure on a multi-variate time series. |
|
| Method Summary | |
|---|---|
ImmutableMatrix |
alpha()
Get the set of adjusting coefficients. |
ImmutableMatrix |
beta()
Get the set of cointegrating factors. |
ImmutableVector |
beta(int r)
Get the r-th cointegrating factor, counting from 1. |
ImmutableVector |
eigenvalues()
Get the set of real eigenvalues. |
ImmutableVector |
getStats()
Get the set of likelihood ratio test statistics for testing H(r) in H(r+1). |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public final boolean intercept
public final JohansenAsymptoticDistribution.Test test
| Constructor Detail |
|---|
public CointegrationMle(SimpleMultiVariateTimeSeries ts,
boolean intercept,
int p,
Matrix D,
JohansenAsymptoticDistribution.Test test)
ts - a multi-variate time seriesintercept - indicate whether an intercept is included in the computationp - the number of lags, e.g., 2D - the exogenous factor matrixtest - the type of Johansen test
public CointegrationMle(SimpleMultiVariateTimeSeries ts,
boolean intercept,
int p)
ts - a multi-variate time seriesintercept - indicate whether an intercept is included in the computationp - the number of lags, e.g., 2
public CointegrationMle(SimpleMultiVariateTimeSeries ts,
boolean intercept)
ts - a multi-variate time seriesintercept - indicate whether an intercept is included in the computation| Method Detail |
|---|
public ImmutableMatrix alpha()
public ImmutableMatrix beta()
public ImmutableVector beta(int r)
public ImmutableVector eigenvalues()
public ImmutableVector getStats()
|
SuanShu, a Java numerical and statistical library | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||