Tag Archives: Regression

Exponential Smoothing in q/KDB+

The formula for exponential smoothing is : S(1) = Y(0) S(t) = Alpha * Y(t) + (1-Alpha) S(t-1) 1) The corresponding solution in Q is : es:{{(x*z)+(1-x)*y}[x]\[y]} where, x is the smoothing factor(Alpha) and y is the list containing the … Continue reading

Posted in Pricing, Q, Regression, Time Series | Tagged , , | Leave a comment