Inferensys

Glossary

Least Squares (LS)

A batch estimation method that finds the optimal coefficient vector by minimizing the sum of squared errors between the observed and desired signals.
Engineer reviewing vector database search results on laptop, embeddings visualization on screen, home office coding session.
BATCH COEFFICIENT ESTIMATION

What is Least Squares (LS)?

Least Squares (LS) is a foundational batch estimation method that determines the optimal coefficient vector for a digital predistorter by minimizing the sum of squared errors between the observed output and the desired linear signal.

Least Squares (LS) is a deterministic parameter extraction algorithm that solves for the coefficient vector w by minimizing the cost function J(w) = ||d - Xw||², where d is the desired signal vector and X is the observation matrix. The closed-form solution, given by the Normal Equation w = (XᴴX)⁻¹Xᴴd, provides the optimal Wiener filter coefficients in a single batch computation without requiring iterative gradient descent steps.

In digital predistortion, LS estimation is typically performed during offline training phases using captured input-output data from the power amplifier. While computationally intensive due to the required matrix inversion, LS provides the minimum Mean Squared Error (MSE) solution for stationary systems. Its numerical stability depends on the condition number of the autocorrelation matrix XᴴX, often necessitating regularization parameters or decomposition methods like QR decomposition (QRD) to mitigate ill-conditioning in wideband or highly correlated signal environments.

FOUNDATIONAL ESTIMATION

Key Characteristics of Least Squares

The Least Squares (LS) method provides a closed-form, batch solution for identifying optimal predistorter coefficients by minimizing the sum of squared errors. It serves as the theoretical bedrock for more complex adaptive algorithms.

01

The Normal Equation

The LS solution is derived analytically by setting the gradient of the cost function to zero, resulting in the Normal Equation: w = (X^H X)^-1 X^H y. This provides the optimal coefficient vector w in a single computation, assuming the input correlation matrix X^H X is invertible.

02

Batch Processing Paradigm

LS operates on a complete block of captured data. This offline training approach is ideal for initial parameter extraction and system characterization where real-time adaptation is not required. It processes the entire dataset at once to compute the global minimum of the error surface.

03

Computational Complexity

The primary cost is the matrix inversion of (X^H X), a square matrix of size M x M (where M is the number of model coefficients). This has a complexity of O(M³). For large models, this cubic growth becomes a bottleneck, motivating the use of recursive methods like Recursive Least Squares (RLS).

04

Numerical Stability & Regularization

Ill-conditioned input signals can make the matrix (X^H X) nearly singular, leading to unstable solutions. Tikhonov regularization is applied by adding a small penalty term: w = (X^H X + λI)^-1 X^H y. The regularization parameter λ improves the condition number and prevents overfitting.

05

Gauss-Markov Assumptions

Under the assumption of zero-mean, uncorrelated noise with constant variance, the LS estimator is the Best Linear Unbiased Estimator (BLUE). This means it achieves the minimum possible variance among all linear unbiased estimators, a critical property for precise behavioral modeling.

COEFFICIENT ESTIMATION COMPARISON

Least Squares vs. Adaptive Estimation Methods

Comparison of batch least squares against recursive and iterative adaptive algorithms for digital predistortion coefficient extraction.

FeatureLeast Squares (LS)Recursive Least Squares (RLS)Least Mean Squares (LMS)

Estimation Mode

Batch (offline)

Recursive (online)

Iterative (online)

Computational Complexity

O(N³) for matrix inversion

O(N²) per iteration

O(N) per iteration

Convergence Rate

Instantaneous (one-shot)

Fast (typically < 50 samples)

Slow (signal-dependent)

Numerical Stability

Moderate; requires regularization for ill-conditioned matrices

High with QR decomposition variant

High; inherently stable

Memory Requirement

Stores full data matrix

Stores N×N correlation matrix

Stores coefficient vector only

Tracks Time-Varying Systems

Steady-State Misadjustment

0% (optimal for stationary data)

0.1-0.5%

1-5%

Suitable for FPGA Implementation

LEAST SQUARES ESTIMATION

Frequently Asked Questions

Clear, technically precise answers to the most common questions about the Least Squares method for digital predistortion coefficient estimation.

The Least Squares (LS) method is a batch estimation technique that finds the optimal coefficient vector by minimizing the sum of squared errors between the observed power amplifier output and the desired linear signal. It operates by constructing an overdetermined system of linear equations from a block of captured input-output data, then solving the Normal Equation to obtain the coefficient vector that minimizes the Euclidean norm of the error vector. The solution is given by w = (X^H X)^{-1} X^H y, where X is the regression matrix formed from basis functions of the input signal, y is the vector of observed outputs, and w is the predistorter coefficient vector. This closed-form solution provides the optimal estimate in a single computation step, making it ideal for offline training and initial coefficient extraction.

Prasad Kumkar

About the author

Prasad Kumkar

CEO & MD, Inference Systems

Prasad Kumkar is the CEO & MD of Inference Systems and writes about AI systems architecture, LLM infrastructure, model serving, evaluation, and production deployment. Over 5+ years, he has worked across computer vision models, L5 autonomous vehicle systems, and LLM research, with a focus on taking complex AI ideas into real-world engineering systems.

His work and writing cover AI systems, large language models, AI agents, multimodal systems, autonomous systems, inference optimization, RAG, evaluation, and production AI engineering.