screamer.js
    Preparing search index...

    Function EwMultiRegression

    • Exponentially weighted least-squares fit of y on k regressors, with the one-step-ahead prediction made before each row enters, R-squared, and the coefficients.

      Parameters

      Returns ScreamerOp

    • Exponentially weighted least-squares fit of y on k regressors, with the one-step-ahead prediction made before each row enters, R-squared, and the coefficients.

      Parameters

      • nRegressors: number

        Number of regressors k. The operator takes k + 1 inputs, y first, and returns k + 3 outputs, plus 1 with an intercept.

      • Optionalintercept: boolean

        Fit an intercept b0. Without one, the line goes through the origin and r2 is the uncentered R-squared.

      • Optionalcom: number | null

        Center of mass c, giving alpha = 1 / (1 + c). Must be positive. Give exactly one of com, span, halflife and alpha.

      • Optionalspan: number | null

        Span s in rows, giving alpha = 2 / (s + 1). Must be greater than 1. Give exactly one of com, span, halflife and alpha.

      • Optionalhalflife: number | null

        Half-life h in rows, giving alpha = 1 - exp(-ln(2) / h). Must be positive. Give exactly one of com, span, halflife and alpha.

      • Optionalalpha: number | null

        Smoothing factor, with 0 < alpha < 1; a larger alpha gives recent rows more weight. Give exactly one of com, span, halflife and alpha.

      Returns ScreamerOp