System Identification 6.435 SET 11 – Computation – Levinson Algorithm – Recursive Estimation Munther A. Dahleh Lecture 11 6.435, System Identification Prof. Munther A. Dahleh 1 Computation Least Squares: QR factorization Q is invertible and error Lecture 11 6.435, System Identification Prof. Munther A. Dahleh 2 Initial Conditions: Lecture 11 6.435, System Identification Prof. Munther A. Dahleh 3 What about initial conditions? Solution 1: sum starts appropriately shifted, assume data is available at (Covariance method) Solution 2: assume and augment the sum to (autocorrelation method). Lecture 11 6.435, System Identification Prof. Munther A. Dahleh 4 In the 2nd case only depends on Lecture 11 6.435, System Identification Prof. Munther A. Dahleh 5 Block Toeplitz. Structure allows for fast computations AR model of order n Lecture 11 6.435, System Identification Prof. Munther A. Dahleh 6 Levinson Algorithm definition Lecture 11 6.435, System Identification Prof. Munther A. Dahleh 7 def. of flip add Lecture 11 flip 1st + 2nd 6.435, System Identification Prof. Munther A. Dahleh 8 Flip: Clearly Lecture 11 6.435, System Identification Prof. Munther A. Dahleh 9 Initial conditions good reduction. Lecture 11 6.435, System Identification Prof. Munther A. Dahleh 10 Numerical Methods • Both have no analytical solutions in general • General Procedure step size Lecture 11 direction of the search depends on 6.435, System Identification Prof. Munther A. Dahleh 11 • Different Methods – f depends on – f depends on (Newton’s) – f depends on • Newton’s • Quasi – Newton: Approximate Lecture 11 6.435, System Identification Prof. Munther A. Dahleh 12 Special Schemes: Nonlinear Least Squares • • A family of Algorithms – Lecture 11 step size, chosen so that 6.435, System Identification Prof. Munther A. Dahleh 13 gradient steepest descent – Newton’s negligible around min. ⇒ Newton-Gauss, Newton-Raphson Lecture 11 6.435, System Identification Prof. Munther A. Dahleh 14 For instrumental method Newton-Raphson Computing the gradient: ARMAX: diff. with respect to Lecture 11 6.435, System Identification Prof. Munther A. Dahleh 15 diff. w. r. to diff. w. r. to Recall Lecture 11 6.435, System Identification Prof. Munther A. Dahleh 16 Re-arrange dep. on , however assumed stable Of course a special case for ARX: Exercise Jenkins Black-Box model State-space model Lecture 11 6.435, System Identification Prof. Munther A. Dahleh 17 Recursive Methods – Computational advantages – Carry the covariance matrix in the estimate. General form: Specific form: Lecture 11 6.435, System Identification Prof. Munther A. Dahleh 18 Least-square estimate as a recursive estimate Off line Lecture 11 6.435, System Identification Prof. Munther A. Dahleh 19 Recursive Identification (LS) • Assume Example exponential weight means in general Lecture 11 6.435, System Identification Prof. Munther A. Dahleh 20 Lecture 11 6.435, System Identification Prof. Munther A. Dahleh 21 ⇒ A recursive algorithm Normalized Gain estimate: Lecture 11 6.435, System Identification Prof. Munther A. Dahleh 22 Recursive Algorithm: Lecture 11 6.435, System Identification Prof. Munther A. Dahleh 23 Properties of Recursive Algorithms • Need to store estimate • and is the covariance (an estimate) of estimate of the accuracy of • to compute the next and hence gives an [Recall that ] is symmetric, so you only need to store the lower part of it. (Save on memory) Lecture 11 6.435, System Identification Prof. Munther A. Dahleh 24 Recursive Algorithms with Efficient Matrix Conversion • Define • Inversion formula • Consider the matrix Lecture 11 6.435, System Identification Prof. Munther A. Dahleh 25 Lecture 11 6.435, System Identification Prof. Munther A. Dahleh 26 Recursive Algorithm: Advantage: no need to compute at each iteration is iterated directly! • Kalman filter interpretation – is the gain – is the solution of the Riccati equation Lecture 11 6.435, System Identification Prof. Munther A. Dahleh 27 Recursive Instrumental Variable Method For a fixed, not model dependent Instrument, Lecture 11 6.435, System Identification Prof. Munther A. Dahleh 28 You can show: where Lecture 11 satisfies (by assumption) 6.435, System Identification Prof. Munther A. Dahleh 29 Adaptive Control P Estimator (recursive) Controller • r is a bdd input. • Estimator: Std least squares • Controller • ⇒ Lecture 11 : Condition is a stable time-varying system. is bold for any bdd 6.435, System Identification Prof. Munther A. Dahleh 30