1.3. High Dimensional Model Representation
1.3.1. Description
High-dimensional model representation (HDMR) is a method of representing complex systems in high-dimensional spaces. It is a technique to decompose a high-dimensional function into a sum of lower-dimensional functions. These lower-dimensional functions are called “HDMR components”.
The inputs \(\mathbf{x}=\left( x_{1},\dots ,x_{p}\right)\) are random and independent: \(x_{i}\) has density \(\rho_{i}\) on its domain \(\Omega_{i}\), the joint density is \(\rho\left( \mathbf{x}\right) =\prod_{i=1}^{p}\rho_{i}\left( x_{i}\right)\), and \(f\) is square integrable under \(\rho\). HDMR writes
where \(\mathbf{x}_{\sim i}\) collects all the inputs but \(x_{i}\); the higher-order components follow the same pattern. Every component but \(f_{0}\) has mean zero, and, the inputs being independent, the components are mutually orthogonal (uncorrelated). A constant function is all \(f_{0}\).
It is particularly useful in cases where the number of variables or parameters is large, making it difficult to understand the underlying relationships between the variables.
HDMR is commonly used in various fields such as engineering, physics, and chemistry, to model complex systems and predict their behavior. Here are an example/application to fix the ideas:
A Likelihood function: Conditional on a dataset, the likelihood function is a function of the parameters of the model. But the exact relationship between the likelihood and the parameters is unknown. The reason we may be interested in such a problem is that the likelihood might be very costly to evaluate. HDMR could be used in this case to decompose the likelihood into lower-dimensional components. The resulting metamodel could be far less costly to evaluate.
The HDMR components are chosen such that they capture the most important features of the system, while still being computationally tractable. HDMR can also be used to estimate the sensitivity of a system to changes in its inputs, which can be useful for optimization and design.
Variances
With independent inputs the variance splits over the components, \(D=\sum_{i}D_{i}+\sum_{i<j}D_{i,j}+\dots +D_{1,2,\dots ,p}\).
Sensitivities
They add up to one over all the components. With dependent inputs – posterior draws, for instance – the components are not orthogonal, the variance does not split this way, and the indices are no longer shares of the variance.
In RISE the distribution of the inputs is that of the draws given to
hdmr: \(f_{0}\) and \(D\) are sample averages over the draws, and
the components are expanded in orthonormal polynomials of the inputs rescaled
to \([0,1]\) by their bounds. With pol_optimal true (the default) each
input has its own polynomials, orthonormal under the law of its own draws: the
Gram-Schmidt orthonormalization of \(1,x,\ldots,x^{r}\) under the
empirical distribution, built exactly rather than fitted, so an input needs
more distinct draws than the polynomial order. Otherwise they are the shifted
Legendre polynomials, orthonormal under the uniform law on \([0,1]\). An
output that does not vary over the draws has no variance to share out: its
sensitivities are NaN, with the warning hdmr:zeroVariance.
HDMR is a powerful tool for understanding and predicting the behavior of complex systems, but it also requires large computational resources and can be difficult to implement in practice.
1.3.2. Quick-start examples
A known function of two inputs
Take two independent inputs, uniform on \([-1,1]\), and \(f(x_{1},x_{2})=x_{1}+x_{2}^{2}+x_{1}x_{2}\). The definitions above give \(f_{0}=1/3\), \(f_{1}(x_{1})=x_{1}\), \(f_{2}(x_{2})=x_{2}^{2}-1/3\) and \(f_{1,2}(x_{1},x_{2})=x_{1}x_{2}\), with variances \(D_{1}=1/3\), \(D_{2}=4/45\) and \(D_{1,2}=1/9\), which add up to \(D=8/15\); hence \(S_{1}=5/8\), \(S_{2}=1/6\) and \(S_{1,2}=5/24\). Each component depends on its own subset of the inputs. (Splitting a function of a single input into terms, \(x^{3}\), \(2x^{2}\), …, is not an HDMR: with one input there is only \(f_{0}\) and \(f_{1}=f-f_{0}\).) A check by simulation:
% the function and its HDMR components
f=@(x1,x2)x1+x2.^2+x1.*x2;
f0=1/3;
f1=@(x1)x1;
f2=@(x2)x2.^2-1/3;
f12=@(x1,x2)x1.*x2;
% variances of the components and sensitivities
D=[1/3,4/45,1/9];
S=D/sum(D) % 5/8, 1/6, 5/24
% draws of the two independent inputs
N=1e6;
x1=2*rand(N,1)-1;
x2=2*rand(N,1)-1;
y=f(x1,x2);
% the components add up to f; the means and variances match
max(abs(y-(f0+f1(x1)+f2(x2)+f12(x1,x2))))
[mean(y),f0;var(y),sum(D)]
[var(f1(x1)),var(f2(x2)),var(f12(x1,x2))]
The hdmr class below fits such components to sampled values of a
function whose decomposition is not known.
1.3.3. Details
Contents: