Inferensys

Glossary

Least Squares Estimation

A mathematical optimization technique that finds the best-fit model coefficients by minimizing the sum of the squares of the residuals between the model output and observed data.
Data scientist building training data pipeline on laptop, data preprocessing visible, technical workspace.
COEFFICIENT OPTIMIZATION

What is Least Squares Estimation?

Least squares estimation is a foundational mathematical optimization technique for extracting model parameters by minimizing the sum of squared residuals between observed data and model predictions.

Least squares estimation is a mathematical optimization technique that finds the best-fit model coefficients by minimizing the sum of the squares of the residuals—the differences between observed output data and the model's predicted output. In power amplifier behavioral modeling, this method solves for the complex coefficients of models like the Memory Polynomial or Generalized Memory Polynomial by constructing a least-squares problem from the input-output measurement data matrix.

The solution is typically obtained via the pseudo-inverse of the regression matrix, providing a closed-form estimate that minimizes the Normalized Mean Square Error. While computationally efficient for offline model extraction, its sensitivity to measurement noise and ill-conditioned data matrices often necessitates regularization techniques to ensure numerical stability and prevent overfitting to training data.

FOUNDATIONAL ESTIMATOR

Key Properties of Least Squares Estimation

Least Squares Estimation forms the mathematical backbone of power amplifier behavioral modeling, providing a closed-form solution for extracting model coefficients from measured input-output data.

01

The Gauss-Markov Theorem

Under the classical assumptions of linear regression, the Ordinary Least Squares (OLS) estimator is the Best Linear Unbiased Estimator (BLUE). This means that among all estimators that are both linear functions of the observed data and unbiased, OLS achieves the minimum possible variance. For PA modeling, this guarantees that coefficient estimates extracted via least squares are the most precise achievable using linear methods, assuming the noise on measurements is white and uncorrelated. The theorem does not require the errors to be normally distributed; it only requires zero mean, constant variance (homoscedasticity), and zero correlation.

BLUE
Optimality Class
02

Closed-Form Normal Equations

The least squares solution is obtained by solving the normal equations: θ̂ = (XᵀX)⁻¹Xᵀy, where X is the regression matrix of basis functions evaluated at the input signal samples, and y is the vector of measured output samples. This closed-form expression is derived by setting the gradient of the sum of squared residuals to zero. The matrix XᵀX is the autocorrelation matrix of the basis functions, and its invertibility requires that the input signal is persistently exciting—containing sufficient spectral content to probe all model dynamics.

θ̂ = (XᵀX)⁻¹Xᵀy
Normal Equation
03

Residual Sum of Squares Minimization

The cost function minimized is the Residual Sum of Squares (RSS): J(θ) = Σᵢ(yᵢ - ŷᵢ)² = ||y - Xθ||²₂. This L2-norm penalty heavily weights large errors, making the estimator sensitive to outliers in measurement data. In PA modeling, minimizing RSS directly minimizes the Normalized Mean Square Error (NMSE) between the model output and the measured amplifier output. The quadratic nature of the cost function guarantees a single global minimum, avoiding the local minima problems encountered in iterative optimization methods.

L2 Norm
Error Metric
04

Numerical Conditioning and Stability

The condition number of the XᵀX matrix critically affects solution accuracy. When basis functions are highly correlated—common in polynomial models with high nonlinear orders—the matrix becomes ill-conditioned, amplifying measurement noise into large coefficient errors. Techniques to improve stability include:

  • Tikhonov Regularization (Ridge Regression): Adds a penalty λ||θ||² to the cost function, improving conditioning at the cost of slight bias
  • Orthogonal Basis Functions: Using orthogonal polynomials instead of standard monomials reduces correlation between columns of X
  • Double-Precision Arithmetic: Essential for solving systems with condition numbers exceeding 10⁶
κ(XᵀX)
Condition Number
05

Batch vs. Recursive Formulations

Least squares estimation can be implemented in two modes for PA modeling:

Batch Least Squares: Processes the entire captured data record at once using the normal equations. Provides the optimal estimate for stationary conditions but requires matrix inversion of size equal to the number of model coefficients.

Recursive Least Squares (RLS): Updates coefficient estimates sample-by-sample as new data arrives, enabling online adaptation to changing amplifier characteristics due to temperature drift or aging. RLS achieves convergence an order of magnitude faster than LMS algorithms by maintaining an estimate of the inverse autocorrelation matrix.

O(N³)
Batch Complexity
O(N²)
RLS per Sample
06

Weighted Least Squares Extension

When measurement noise is not uniform across the data record, Weighted Least Squares (WLS) improves estimation accuracy by assigning different importance to each residual. The cost function becomes J(θ) = Σᵢ wᵢ(yᵢ - ŷᵢ)², where weights wᵢ are typically chosen inversely proportional to the noise variance at each sample. In PA modeling, WLS is particularly useful for:

  • Emphasizing high-power regions where amplifier nonlinearity is most pronounced
  • De-weighting low-SNR regions near the noise floor
  • Compensating for non-uniform signal statistics in the training data
wᵢ ∝ 1/σᵢ²
Optimal Weighting
LEAST SQUARES ESTIMATION

Frequently Asked Questions

Clear, technically precise answers to the most common questions about applying least squares estimation to power amplifier behavioral modeling and digital predistortion coefficient extraction.

Least squares estimation is a mathematical optimization technique that finds the best-fit model coefficients by minimizing the sum of the squares of the residuals—the differences between the model's predicted output and the actual observed data. In the context of power amplifier behavioral modeling, the algorithm constructs a design matrix from the input signal's basis functions (such as polynomial terms or time-delayed samples) and solves for the coefficient vector that minimizes the squared error between the modeled and measured PA output. The closed-form solution is given by the normal equation: w = (X^H X)^(-1) X^H y, where X is the design matrix, y is the observed output vector, and w is the coefficient vector. This approach guarantees a global minimum for linear-in-parameters models like the memory polynomial, making it the foundational extraction method for digital predistortion systems.

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.