How to use this calculator
Estimate a stationary autoregressive predictor from a short signal using biased autocorrelation equations.
- Enter Uniform samples (signal units), Prediction order. Match the units shown beside each field and review the result together with the assumptions below.
- Read the worked example below to check the expected input format and result.
- Compare another scenario by changing one input at a time. Use Reset to return to the starting values.
Autocorrelation linear prediction coefficients explained
Linear prediction estimates each sample from a fixed number of preceding values; the reported weights follow the page’s stated Yule–Walker sign convention.
Inputs, symbols, and units
x— Uniform samples (signal units)- Chronological real samples; use a comma-separated list in the same signal units. Use comma-separated values in the stated order.
order— Prediction order- Number of past samples used; must be smaller than record length. Enter a whole number.
Formula and method
r[k]=Σn=k…N−1 x[n]x[n−k]/N; Toeplitz(r0…rp−1)a=(r1…rp); innovation variance=r0−aᵀr.
Mean is not removed automatically. Prediction uses xhat[n]=Σj aj x[n−j]; these weights have the opposite sign to denominator coefficients [1,−a1,…].
A worked scenario
Uniform samples (signal units) = [1, 0.6, 0.3, 0.1, -0.1, -0.2, -0.15, -0.1]; Prediction order = 3.
- Innovation variance: 0.127841 signal units²
- Prediction weight 1: 0.618548 ratio
- Prediction weight 2: -0.053294 ratio
- Prediction weight 3: -0.124667 ratio
An eight-point damped record is approximated with three prediction weights and a residual innovation variance.
Assumptions and edge cases
Assumes a stationary all-pole model; a zero-energy record is singular, and short records can misrepresent tonal signals.
Reading the outputs
Weights are dimensionless; variance is the Yule–Walker model residual, not a held-out forecast-error measurement.
Frequently asked questions
Should DC be removed first?
Usually, if the intended model describes fluctuations around a mean.
Why use the same divisor for every lag?
The biased autocorrelation sequence maintains a useful positive-semidefinite covariance structure.
Are these filter denominator signs?
No. Negate the prediction weights after leading one to form an all-pole denominator.
How do I use the Autocorrelation linear prediction coefficients calculator?
Enter Uniform samples (signal units), Prediction order. Match the units shown beside each field and review the result together with the assumptions below.
What is a worked example of Autocorrelation linear prediction coefficients?
Uniform samples (signal units) = [1, 0.6, 0.3, 0.1, -0.1, -0.2, -0.15, -0.1]; Prediction order = 3. Innovation variance: 0.127841 signal units² Prediction weight 1: 0.618548 ratio Prediction weight 2: -0.053294 ratio Prediction weight 3: -0.124667 ratio An eight-point damped record is approximated with three prediction weights and a residual innovation variance.
Background or definition reference: MathWorks autocorrelation linear prediction convention.
Read our calculation methodology.