Documentation ¶
Overview ¶
Package adf implements the Augmented Dickey-Fuller test. This is a port of the implementation of adf given here: https://github.com/Netflix/Surus/blob/master/src/main/java/org/surus/math/AugmentedDickeyFuller.java.
Index ¶
Constants ¶
View Source
const ( LPenalty = 0.0001 // L penalty to pass to ridge regression DefaultPValue = -3.45 // Test p-value threshold )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ADF ¶
type ADF struct { Series []float64 // The time series to test PValueThreshold float64 // The p-value threshold for the test Statistic float64 // The test statistic Lag int // The lag to use when running the test }
An instance of an ADF test
func (ADF) IsStationary ¶
IsStationary returns true if the tested time series is stationary.
Click to show internal directories.
Click to hide internal directories.