screamer.js
    Preparing search index...

    Interface KalmanRegressionOptions

    The settings of KalmanRegression by name, for KalmanRegression({ ... }).

    interface KalmanRegressionOptions {
        delta?: number;
        huber?: number;
        obsVar?: number;
        priorVar?: number;
    }
    Index
    delta?: number

    How 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).

    1e-06

    huber?: number

    Outlier 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.

    Infinity

    obsVar?: number

    Variance of the spread (the regression error), in squared units of the first input. Must be positive.

    0.001

    priorVar?: number

    Starting variance of the intercept and slope, which both start at zero.

    1.0