Levinson–Durbin Recursion for Two Prediction Lags
2026-11-26

Levinson–Durbin Recursion for Two Prediction Lags

The Levinson–Durbin recursion solves successive prediction problems built from an autocorrelation sequence. It reuses the previous order’s coefficients and error variance. At second order, adding another lag can change both the new coefficient and the coefficient already present at first order. This worked example displays the update and verifies it against the original two-by-two equations.

Choose an autocovariance sequence and a sign convention

Take real lags r0 = 4, r1 = 2 and r2 = 0.5 as an invented sequence for a zero-mean stationary model. Here r0 is the variance and the lags use autocovariance units. The first two predictor coefficients at order two will be written φ1 and φ2. The predictor is φ1 times the most recent value plus φ2 times the value before it. This convention places the coefficients on the prediction side. A monic filter polynomial for the residual uses the negated coefficients after its initial one.

For the one-step prediction at order zero there is no lagged input, so its error variance E0 is r0 = 4. The autocovariance at the first lag is positive, and the one-lag coefficient is k1 = r1/r0 = 0.5. The first-order error variance is E1 = E0(1−k1²) = 3. This is also r0 − k1r1. These expressions use the same sign convention as the predictor.

Order zero has error variance four. Orders one and two give three and thirty-five twelfths.
Order two introduces a reflection of negative one sixth. Source: Zhilianhai editorial desk, original AI-assisted conceptual illustration.

Update the first coefficient when the second lag is added

At the next step subtract the first-order predicted contribution k1r1 from the supplied second lag r2. The numerator of the new reflection coefficient is 0.5 − 0.5×2 = −0.5. Dividing by E1 gives k2 = −1/6. In this convention the last predictor coefficient at order two is φ2 = k2. Update the earlier coefficient by taking k1 − k2k1 = 7/12. The change accounts for the dependence between the two lagged inputs.

The new error variance is E2 = E1(1−k2²) = 35/12, or about 2.91667. The decrement from order one is only 1/12, consistent with the squared reflection coefficient being 1/36. The negative sign of the reflection coefficient affects the predictor coefficients, while the error update depends on its square. The source documentation for filter coefficients may label the reflection coefficient with the opposite sign, so the mapping between the two coefficient sets should accompany an example.

Verify the two-lag prediction by direct substitution

The normal equations have first row (4, 2) and second row (2, 4), with right-hand side (2, 0.5). Each diagonal is r0, and the symmetric off-diagonal entries are r1. Plug in (7/12, −1/6). The first row gives 28/12 − 2/6 = 2. The second row gives 14/12 − 4/6 = 0.5. The right-hand values are recovered exactly, providing a check that does not depend on the recursion.

Compute E2 again from r0 − φ1r1 − φ2r2. The result is 4 − 14/12 + 1/12 = 35/12. For the filter polynomial convention the matching coefficients are (1, −7/12, +1/6). Writing both conventions beside the same pair of normal equations helps catch a sign reversal when comparing a prediction formula with a software array.

If the earlier coefficient were kept at one half while merely appending −1/6, the first normal equation would give 5/3 and the second would give 1/3. Both disagree with the supplied right-hand side. This comparison isolates the reason for updating the earlier coefficient even in a two-lag calculation. As an illustration with two separate, invented input values, take the most recent one to be three and the preceding one to be two. The order-one prediction is 1.5, while the order-two prediction is 17/12. This difference comes from the two updated weights applied to the same pair of lagged values.

Predictor values are plus seven twelfths and negative one sixth. The filter uses their negations.
Substitution gives the right-hand entries 2 and 0.5 exactly. Source: Zhilianhai editorial desk, original AI-assisted conceptual illustration.

Keep the variance scale and lag order in the saved calculation

If each supplied covariance is divided by four, the recursion produces the same φ values because numerator and denominator at each step scale together. The normalized error variance is then 35/48 instead of 35/12. This is the expected change when r0 is normalized from four to one. The scale and units should be visible before comparing prediction errors across different records.

A covariance check is possible for the toy input. The three-by-three matrix with first row (4, 2, 0.5) and symmetric constant diagonals has leading principal determinants 4, 12 and 35. They are all positive. Its last determinant divided by the second is 35/12, the same conditional error variance produced by the recurrence. This provides a third algebraic check with the invented inputs intact.

Positive definiteness here concerns the chosen covariance matrix. It says the three lag coordinates have strictly positive variance along every nonzero real combination. That check uses the supplied covariance entries before any coefficients are estimated.

The derivation uses positive preceding error variances. A zero or nearly zero value can make a later division undefined or poorly conditioned. Verify the lag indexing, normalization choice and assumptions used to estimate a covariance sequence before extending the fitted order. The site’s technical articles and equipment information include related signal interpretation examples.

Sources include the MathWorks documentation of the Toeplitz equations and prediction error and the gsignal documentation of the Durbin–Levinson recursion.

18028484626 CONTACT US

公司:智联海(惠州)科技有限公司

地址:惠州仲恺高新区陈江街道白云山工业大道 5 号六楼 601

Q Q:18028484626

Copyright © 2002-2026

粤xxx

咨询 在线留言 电话:18028484626
微信 微信扫码添加我