KpssTest Class

Represents a Kwiatkowski-Phillips-Schmidt-Shin (KPSS) stationarity test.

Definition

Namespace: Numerics.NET.Statistics.TimeSeriesAnalysis
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 10.7.0
C#
public sealed class KpssTest : OneSampleTest<double>
Inheritance
Object  →  HypothesisTest  →  OneSampleTest<Double>  →  KpssTest

Remarks

Use the KpssTest class to test whether a time series is level-stationary or trend-stationary. The null hypothesis is stationarity: stationarity around a constant for Level, or stationarity around a deterministic linear trend for Trend.

The Augmented Dickey-Fuller test has the opposite null hypothesis: a unit root. KPSS and ADF tests are often used together because the KPSS null hypothesis is stationarity while the ADF null hypothesis is nonstationarity due to a unit root.

Large KPSS statistics reject the null hypothesis. P-values are obtained by linear interpolation in the standard KPSS critical-value table and may be reported as bounds; see PValueStatus.

Constructors

KpssTest(Vector<Double>) Initializes a new KPSS test for level stationarity using the short lag-selection rule.
KpssTest(Vector<Double>, KpssTestType, KpssLagSelection) Initializes a new KPSS test using the specified stationarity type and lag-selection rule.
KpssTest(Vector<Double>, KpssTestType, Int32) Initializes a new KPSS test using an explicit fixed lag count.

Properties

CriticalValues Gets the KPSS critical values keyed by upper-tail significance level.
Distribution Gets the probability distribution used in the hypothesis test.
(Inherited from HypothesisTest)
HypothesisType Gets or sets whether the test is one or two-tailed.
(Inherited from HypothesisTest)
LagCount Gets the number of lags used in the long-run variance estimate.
LagSelection Gets the lag-selection rule used for the long-run variance estimate.
LongRunVariance Gets the Newey-West/Bartlett long-run variance estimate used in the KPSS statistic.
Name Gets the name of the hypothesis test.
(Overrides HypothesisTest.Name)
PValue Gets the probability that the test statistic would take on the calculated value under the alternate hypothesis.
(Inherited from HypothesisTest)
PValueStatus Gets whether the reported p-value is computed by interpolation or is a table bound.
Sample Gets or sets the variable the test is to be applied to.
(Inherited from OneSampleTest<T>)
SignificanceLevel Gets the significance level used to test the null hypothesis.
(Inherited from HypothesisTest)
Statistic Gets the value of the test statistic.
(Inherited from HypothesisTest)
Type Gets the deterministic component in the KPSS stationarity null hypothesis.

Methods

EqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
GetConfidenceInterval() Returns the confidence interval for the test parameter for the default confidence level.
(Inherited from HypothesisTest)
GetConfidenceInterval(Double) Returns the confidence interval for the test parameter for the specified confidence level.
(Inherited from HypothesisTest)
GetHashCodeServes as the default hash function.
(Inherited from Object)
GetLowerCriticalValue() Gets the lower critical value for the hypothesis test's current significance level.
(Inherited from HypothesisTest)
GetLowerCriticalValue(Double) Gets the lower critical value for the hypothesis test at the specified significance level.
(Inherited from HypothesisTest)
GetPValue Gets the probability that the test statistic would take on the calculated value under the specified alternate hypothesis.
(Overrides HypothesisTest.GetPValue(HypothesisType))
GetTypeGets the Type of the current instance.
(Inherited from Object)
GetUpperCriticalValue() Gets the upper critical value for the test statistic at the hypothesis test's current significance level.
(Inherited from HypothesisTest)
GetUpperCriticalValue(Double) Gets the upper critical value for the test statistic at the specified significance level.
(Inherited from HypothesisTest)
Reject() Returns whether the null hypothesis is rejected using the default significance level.
(Inherited from HypothesisTest)
Reject(Double) Returns whether the null hypothesis is rejected using the specified significance level.
(Inherited from HypothesisTest)
Summarize() Returns a string containing a human-readable summary of the object.
(Inherited from HypothesisTest)
Summarize(SummaryOptions) Returns a string containing a human-readable summary of the object using the specified options.
(Inherited from OneSampleTest<T>)
ToStringReturns a string that represents the current object.
(Inherited from HypothesisTest)

See Also