When
is a linear function of the parameters
, the method is called Linear Least Squares (LLS). The most common formulation is Ordinary Least Squares (OLS).
This function can be represented as a linear system:
 |
(4.13) |
where
is the vector of unknown parameters to be estimated and
is a zero-mean additive Gaussian noise term.
The parameters
are the regression coefficients: they measure the association between the variable
and the variable
.
Each observation provides a constraint, and all the individual constraints can be collected in matrix form:
 |
(4.14) |
is the vector of responses (dependent variables),
the matrix
containing the independent variables (explanatory variables) is called the design matrix, and
is the error vector, whose elements are assumed to be independent and zero-mean,
, with covariance matrix
.
The parameter vector
is called the Linear Projection Coefficient or Linear Predictor.
The random variable
therefore consists of a deterministic component and a stochastic component.
The goal is to estimate the parameter vector
that defines the regression hyperplane that best fits the data
.
The value
that minimizes the cost function defined in Equation (4.7), for zero-mean errors with constant variance, coincides with the Best Linear Unbiased Estimator (BLUE), that is, the unbiased linear estimator with minimum variance.
Definizione 11
The Best Linear Unbiased Estimator (BLUE) of a parameter
based on a data set
is
- a linear estimator of the observations
, so that it can be written as
;
- unbiased (
);
- the estimator with the lowest variance among all possible linear estimators.
The Gauss-Markov theorem shows that the ordinary least squares estimator is the BLUE (Best Linear Unbiased Estimator) when the errors are zero-mean, have constant variance (homoscedastic), and are uncorrelated.
The best least squares estimate
, which minimizes the sum of squared residuals (assuming that the matrix
has full column rank), is the solution to the problem
 |
(4.15) |
The same result was obtained in Section 1.1 on the pseudoinverse of a matrix: an SVD of the matrix
also yields the solution that is best in terms of error propagation.
The matrix
, defined as
 |
(4.16) |
is a projection matrix that maps the response vector
to its estimate
(the estimate of the noise-free observation):
 |
(4.17) |
Because of this property,
is called the hat matrix.
When the observed samples have nonconstant noise variance
(heteroscedastic noise), the Weighted Least Squares estimator is the BLUE.
 |
(4.18) |
where
is the standard deviation associated
with observation
and
is the corresponding weight.
Placing these weights in a diagonal matrix
 |
(4.19) |
gives a new linear system in which all observations have unit variance.
The solution can be written as
 |
(4.20) |
with
 |
(4.21) |
More generally, when the observed samples have nonconstant variance and are correlated, the best linear BLUE estimate must account for the noise covariance
:
 |
(4.22) |
This estimator is called Generalized Least Squares (GLS).
This system minimizes the variance
![\begin{displaymath}
Var[\hat{\boldsymbol\beta}_{GLS}] = (\mathbf{X}^{\top} \boldsymbol\Sigma^{-1} \mathbf{X})^{-1}
\end{displaymath}](img877.svg) |
(4.23) |
Paolo medici
2026-10-19