Least squares meta models¶
A least squares meta model provides an approximation of the model which is valid over its whole domain of definition.
Let . The objective is to create a meta model
defined by:
(1)¶
where, for ,
and
with
.
The functional basis is specified and the objective it to determine the
coefficients
.
Let and
be defined by:
(2)¶
Then the meta model (1) can be written as:
(3)¶
Let be an experimental design of size
, that is, a set of observations of
the input vector defined by:
as well as the corresponding output vectors:
where .
We define the objective function by:
(4)¶
Then we search that minimizes the objective function (4):
(5)¶
Let the matrices and
be defined by:
Then is solution of the linear system:
(6)¶
The library relies on the method dgelsy of LAPACK: refer to its documentation to get
information on the resolution of (6), in particular when the problem is
underdetermined (which means when ) or overdetermined
(which means when
).
The Gram matrix can be
ill-conditionned. Hence, the best method is not necessarily to invert the Gram matrix,
because the solution may be particularly sensitive to rounding errors.
The least-squares problem is rather solved using more robust numerical methods
such as the singular value decomposition (SVD) or the QR-decomposition.
Particular case 1: The functional basis is composed of polynomials with degree less or equal to 1¶
In this particular case, the functional basis is defined by linear functions:
with is the empirical mean vector of the experimental design, defined
by:
(7)¶
The resulting meta model can be written as:
(8)¶
where the matrix is
equal to the matrix
defined in (2) except its first line.
More precisely, we have:
(9)¶
The vector is the first line of
defined in
(2).
Particular case 2: The functional basis is composed of of polynomials with degree less or equal to 2¶
In this particular case, the functional basis is defined by polynomials functions of maximal degree 2:
where is still defined by (7). The coefficients are denoted as follows:
(10)¶
The resulting meta model can be written as:
(11)¶
where:
is equal to the matrix
defined in (2) except its first line,
,
is a
symmetric tensor: the sheet
is the matrix
, for
and
is the component
of the vector
.
OpenTURNS