[SciPy-user] recursive least squares
Mon Oct 1 18:29:33 CDT 2007
The basic function is very easy to write. (It can get much more
complex, of course.) Here is a Matlab version from when I taught a
course in self-tuning control a dozen years ago. If I can find a little
time this evening, I'll translate it into Python, although it's probably
function [th,p] = rolsf(x,y,p,th,lam)
% function [th,p] = rolsf(x,y,p,th,lam)
% Recursive ordinary least squares for single output case,
% including the forgetting factor, lambda.
% Enter with x = input, y = output, p = covariance, th = estimate,
lam = forgetting factor
Alan G Isaac wrote:
> Recursive least squares
> is often used as a parameter instability diagnostic
> in time series applications.
> Is it available in SciPy?
> Thank you,
> Alan Isaac
> SciPy-user mailing list
More information about the SciPy-user