OptionaldeltaHow fast the intercept and slope may move. The state noise variance is delta / (1 - delta) per step; smaller values give steadier estimates and a spread that keeps its mean reversion. The right value scales with the bar frequency, from about 1e-10 on one-minute log prices to 1e-8 to 1e-6 on daily ones. Must be in (0, 1).
OptionalhuberOutlier threshold, in standard deviations of the spread. A step whose spread is further out than this updates the intercept and slope with a weight that falls with its distance, so one bad print cannot jerk the hedge ratio. 2 to 3 is typical. inf, the default, is the ordinary Kalman update. The spread and spread_std outputs are not changed by it. Must be positive.
OptionalobsVariance of the spread (the regression error), in squared units of the first input. Must be positive.
OptionalpriorStarting variance of the intercept and slope, which both start at zero.
The settings of KalmanRegression by name, for
KalmanRegression({ ... }).