Recursive least squares assumes the regressor is known exactly and only the output is noisy. When the regressor is itself measured — a derivative taken from two noisy samples, a current read through a noisy sensor — least squares reads the noise as a weaker dependence on that column and biases its coefficient toward zero. The effect is regression dilution, and it does not shrink with more data: the estimate converges, but to the wrong value.
The instrumental-variable method removes that bias without modelling the noise. It needs a second signal per observation, the instrument, that moves with the true regressor but not with its noise. A known excitation is the usual choice: the reference a controller injects, a command, or a low-noise measurement of the same quantity. The recursive form updates the estimate sample by sample at the cost of recursive least squares.
The model is
For a single slope this is the attenuation
Given an instrument
The noise enters only through
With
-
Gain vector:
$\mathbf{g} = P \mathbf{z}$ -
Denominator:
$d = \lambda + \tilde{\mathbf{x}}^T P \mathbf{z}$ -
Innovation:
$e = y - \tilde{\mathbf{x}}^T \hat{\boldsymbol{\theta}}$ -
Parameter update:
$\hat{\boldsymbol{\theta}} \leftarrow \hat{\boldsymbol{\theta}} + \mathbf{g}, e / d$ -
Matrix update:
$P \leftarrow \frac{1}{\lambda}\left(P - \mathbf{g}, \tilde{\mathbf{x}}^T P / d\right)$
Steps 2 and 5 are the Sherman–Morrison update of a rank-one, non-symmetric term
The innovation, the post-update residual and the trace of
| Case | Time | Space | Notes |
|---|---|---|---|
| Average | Two matrix-vector products and one outer product |
The cost per update matches recursive least squares: one more matrix-vector product, for
A single slope,
| Step | Least squares |
Instrumental |
||||
|---|---|---|---|---|---|---|
| 1 | 1 | 0.5 | 1.5 | 2 | 1.333 | 1.332 |
| 2 | 1 | -0.5 | 0.5 | 2 | 1.599 | 1.999 |
| 3 | 2 | 0.5 | 2.5 | 4 | 1.600 | 1.714 |
| 4 | 2 | -0.5 | 1.5 | 4 | 1.818 | 2.000 |
After the four samples least squares holds
-
Weak instrument: if
$\mathbf{z}$ is barely correlated with$\mathbf{x}$ , the cross-moment is near-singular and the estimate's variance grows without bound. The instrument must excite every parameter. -
Instrument shares the noise: any correlation between
$\mathbf{z}$ and$\mathbf{v}$ , or between$\mathbf{z}$ and$\epsilon$ (a closed loop that feeds measured noise back into the instrument), brings the bias back in proportion. -
Zero instrument: an observation whose instrument is zero leaves
$\hat{\boldsymbol{\theta}}$ untouched but still divides$P$ by$\lambda$ ; with forgetting, a long run of such observations grows$P$ as in under-excited least squares. Skip those observations. - Variance: the method trades bias for variance. For the same data its estimates scatter more than least squares, most of all when the instrument explains only part of the regressor.
- Batch IV: the closed-form estimate above, solved once.
- Two-stage least squares: regress the regressor on the instruments first, then regress the output on the fitted regressor; with as many instruments as regressors it equals IV.
- Bootstrap / refined IV: build the instrument from a model simulated with the current estimate, as in Young's refined instrumental-variable method for transfer functions.
- Columns as their own instruments: columns known without noise can serve as their own instruments, so only the noisy columns need an external one.
- Online identification of a winding's resistance and inductance from a derivative of measured current, with the injected current reference as the instrument
- Closed-loop system identification, where the reference is independent of the measurement noise
- Calibration of one sensor against another, both noisy
- Econometrics and errors-in-variables regression in general
-
Recursive Least Squares: the special case
$\mathbf{z} = \tilde{\mathbf{x}}$ ; same cost, same forgetting factor and diagnostics. - Total Least Squares: also removes errors-in-variables bias, but needs the noise ratio between channels and a batch SVD; IV needs an instrument instead and runs recursively.
- Kalman filter: a Kalman filter with the regressor noise in its model is the optimal alternative when that noise's covariance is known.
- Söderström, T. and Stoica, P., Instrumental Variable Methods for System Identification, Springer, 1983.
- Ljung, L., System Identification: Theory for the User, 2nd ed., Prentice Hall, 1999 — §7.6 and §11.3.
- Young, P.C., Recursive Estimation and Time-Series Analysis, 2nd ed., Springer, 2011 — Chapter 6.