Kpss Test Class
Definition
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 10.7.0
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
| Kpss | Initializes a new KPSS test for level stationarity using the short lag-selection rule. |
| Kpss | Initializes a new KPSS test using the specified stationarity type and lag-selection rule. |
| Kpss | Initializes a new KPSS test using an explicit fixed lag count. |
Properties
| Critical | Gets the KPSS critical values keyed by upper-tail significance level. |
| Distribution |
Gets the probability distribution used in the hypothesis test.
(Inherited from HypothesisTest) |
| Hypothesis |
Gets or sets whether the test is one or two-tailed.
(Inherited from HypothesisTest) |
| Lag | Gets the number of lags used in the long-run variance estimate. |
| Lag | Gets the lag-selection rule used for the long-run variance estimate. |
| Long | 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) |
| PValue | 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>) |
| Significance |
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
| Equals | Determines whether the specified object is equal to the current object. (Inherited from Object) |
| Get |
Returns the confidence interval for the test parameter for the default confidence level.
(Inherited from HypothesisTest) |
| Get |
Returns the confidence interval for the test parameter for the specified confidence level.
(Inherited from HypothesisTest) |
| Get | Serves as the default hash function. (Inherited from Object) |
| Get |
Gets the lower critical value for the hypothesis test's current significance level.
(Inherited from HypothesisTest) |
| Get |
Gets the lower critical value for the hypothesis test at the specified significance level.
(Inherited from HypothesisTest) |
| Get |
Gets the probability that the test statistic would take on the calculated value under the specified alternate hypothesis.
(Overrides HypothesisTest.GetPValue(HypothesisType)) |
| Get | Gets the Type of the current instance. (Inherited from Object) |
| Get |
Gets the upper critical value for the test statistic at the hypothesis test's current significance level.
(Inherited from HypothesisTest) |
| Get |
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( |
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( |
Returns a string containing a human-readable summary of the object
using the specified options.
(Inherited from OneSampleTest<T>) |
| ToString | Returns a string that represents the current object. (Inherited from HypothesisTest) |