Identification: Least Squares & ARX
The linear half of system identification: the least-squares estimator and its normal equations, the disturbance-based taxonomy of model families, the predictive approach that turns "which model is best" into an optimisation, and the key result that an ARX predictor is a linear regression you solve in one shot.
01 · Base case
Least squares and the normal equations
Identification is an optimisation: pick the model in a chosen family that best predicts the data. When the predictor is linear in the parameters, that optimisation has a one-line closed-form answer — least squares.
A linear regression model writes the output as a known regressor vector times unknown parameters plus noise, . The least-squares estimate minimises the sum of squared prediction errors . Since is quadratic in , setting its gradient to zero gives the normal equations:
"Describe the least-squares estimation procedure"
This derivation is a recurring open-ended exam question (e.g. June 2026, July 2026 Problem 4.1). A full answer states the model, the quadratic cost, the normal equations, the uniqueness condition (below), and the consistency property. Write it as a self-contained derivation, not a sentence.
When the solution is unique
is unique iff is non-singular. A singular is not a numerical accident — it means the data are not informative enough to separate all parameters (no persistent excitation), and infinitely many give the same cost. Under persistent excitation and a residual uncorrelated with the regressors, is unbiased and consistent, with a covariance that shrinks as grows.
Aside What goes wrong if the disturbance is not white
Least squares is unbiased when the residual is uncorrelated with the regressor . For an ARX model the regressor is made of past data, so a white equation noise is uncorrelated with it and LS is consistent. But if the true disturbance is coloured (e.g. an output-error or ARMAX noise), the regressor and residual correlate, LS acquires a bias that never vanishes, and a different method is needed — the theme of the identifiability discussion and the next chapter.
02 · Taxonomy
Model families: where the disturbance enters
Dynamic models are classified by how the noise enters — and that choice decides which estimation algorithm you can use.
One summing junction moves; everything else about the estimation problem changes with it.
Output error (OE)
— noise added only at the output. All model error is measurement noise.
Equation error (AR / ARX)
— white noise in the equation itself. The predictor is linear in the parameters.
ARMAX
— an MA-shaped equation noise. Richer, but the predictor is nonlinear.
ARXAR / ARIMAX / FIR
AR-shaped residual (); a random-walk drift (ARIMA/CARIMA); or , the finite impulse response .
Choosing a family balances purpose, flexibility, parsimony, and algorithm complexity — a simpler model gives more robust estimates, a richer one fits more dynamics but may have local minima or be unidentifiable.
03 · Core
The predictive approach
How do you compare a stochastic model with numeric data? You cannot compare a random variable to a number — but you can compare its prediction to the datum. That is the predictive approach: a model is good if its one-step-ahead predictions are accurate.
The optimal model minimises over the admissible parameters. But is only a partial score: you must also check that the residual is white (Chapter 8) — otherwise predictable dynamics remain and the model is incomplete. Notice this is the same “make the residual white” criterion from Chapter 1, now driving identification.
04 · Key result
ARX is a linear regression → least squares
Here is the result that makes ARX the workhorse. Its one-step predictor is a linear combination of past data — no dependence on past predictions — so it is a linear regression and LS solves it in one shot:
The predictor is always stable (it is not recursive in its own output). Contrast the neighbours: an ARXAR predictor is bilinear — fix and it is linear in , fix and it is linear in — so you alternate least squares. An ARMAX predictor is genuinely nonlinear in the parameters, and needs the iterative method of the next chapter.
The model and data
with the single unknown , and outputs . Stationarity needs the pole inside the unit circle, so .
The regression
The predictor is linear in ; with the regressor is . So is the scalar least-squares ratio.
Compute the ratio
over . Numerator ; denominator ; so .
A known input
With a measured exogenous , subtract the known term from before regressing — the predictor stays linear in , so one-shot LS still applies. A richer only improves the conditioning of .
You want to identify an ARMAX(1,1,1) model. Can you use one-shot least squares?
Load-bearing ideas
- Least squares minimises the quadratic prediction-error cost; the normal equations give , unique iff is non-singular (persistent excitation).
- Model families are classified by where the disturbance enters — OE, ARX, ARMAX, ARXAR, FIR — and that choice sets the algorithm.
- The predictive approach scores a model by its one-step prediction error , then checks residual whiteness.
- ARX is a linear regression ⇒ one-shot LS, always-stable predictor. ARXAR ⇒ alternating LS; ARMAX ⇒ nonlinear, iterative (next chapter).
Exam radar. Be ready to (i) write the LS derivation as an open answer, (ii) set up and solve an ARX least-squares estimate from a short data table, and (iii) say why you can use LS for ARX but not for ARMAX. The linear/nonlinear split is the organising idea of identification.