# Composite Gaussians

**URL:** <https://uqworld.org/t/composite-gaussians/112>\
**Category:** Benchmarks\
**Tags:** 2-dimension, test-function, metamodeling, reliability\
**Created:** [February 12, 2019, 4:13pm UTC](https://uqworld.org/t/composite-gaussians/112 "2019-02-12T16:13:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![damarginal](https://uqworld.org/user_avatar/uqworld.org/damarginal/32/73_2.png) [@damarginal](https://uqworld.org/u/damarginal)\
**Post date:** [February 12, 2019, 4:13pm UTC](https://uqworld.org/t/composite-gaussians/112/1 "2019-02-12T16:13:00Z")

</div>

The composite Gaussians function is a two-dimensional test function used in metamodeling and reliability analysis exercises (Bichon et al., 2011).

## Description

The composite Gaussians function consists of the following components:

\begin{align} g\_1(\mathbf{x}) & = x\_1^2 + x\_2 - 8, \\ g\_2(\mathbf{x}) & = \frac{x\_1}{5} + x\_2 - 6, \end{align}

where \mathbf{x} = \{x\_1, x\_2\}​ are input variables.

The overall (_composite_) limit state function is defined as:

g(\mathbf{x}) = \max{(g\_1(\mathbf{x}), g\_2(\mathbf{x}))}.

Figure 1 and 2 show the surface and contour plots of the composite Gaussians function, respectively.

 ![compositeGaussiansSurface](https://uqworld.org/uploads/default/original/1X/ef60e70f38dbd6c6b8ec0af835d167eeba371f47.png)  
**Figure 1** : Surface plot of the two-dimensional composite Gaussians function.

 ![compositeGaussiansContour](https://uqworld.org/uploads/default/original/1X/beb974691611b094034ed35675120a618aa64f5a.png)  
**Figure 2** : Contour plot of the two-dimensional composite Gaussians function.

The failure event and the failure probability are defined as g(\mathbf{x}) \leq 0 and P\_f = \mathbb{P}[g(\mathbf{x}) \leq 0], respectively. Figure 3 shows the two limit state lines (g\_i(\mathbf{x}) = 0, \; i = 1,2) of the composite function and the corresponding failure domain.

 ![compositeGaussiansFailureDomain](https://uqworld.org/uploads/default/original/1X/05d895e8e1f853bfc4b939e6d6e6fe3b53dc899e.png)  
**Figure 3** : Limit state lines of the composite Gaussians function. The shaded area indicates the failure domain.

## Inputs

The input variables x\_1 and x\_2 are modeled as two independent Gaussian random variables.

| No | Variable | Distribution | Parameters |  
| :-: | :-: | :-: | :-: | :- |  
| 1 | x\_1 | Gaussian | \mu\_{x\_1} = 5.5,  
\sigma\_{x\_1} = 1.0 |  
| 2 | x\_2 | Gaussian | \mu\_{x\_2} = 5.0,  
\sigma\_{x\_2} = 1.0 |

> **Note** : These values are chosen such that the failure probability is small (\sim 10^{-4}). In Bichon et al. (2011), the function is not used as a test function for reliability analysis methods and therefore, the random inputs were not specified.

## Reference values

Some reference values for the failure probability are given in the table below.

| Method | N | \hat{P}\_f | \text{CoV}[\hat{P}\_f] | Source |
| --- | --- | --- | --- | --- |
| MCS | 10^{4} | 2.00 \times 10^{-4} | 70.7\% | UQLab v1.1 |
| MCS | 10^{5} | 1.00 \times 10^{-4} | 31.6\% | UQLab v1.1 |
| MCS | 10^{6} | 1.42 \times 10^{-4} | 8.4\% | UQLab v1.1 |
| MCS | 10^{7} | 1.26 \times 10^{-4} | 2.8\% | UQLab v1.1 |

## Resources

The vectorized implementation of the composite Gaussians function in MATLAB as well as the script file with the model and probabilistic inputs definitions for the function in UQLAB can be downloaded below:

[uq\_compositeGaussians.zip](https://uqworld.org/uploads/default/original/1X/0dad942077acc90b194ae1dad0415776baaa4258.zip) (2.3 KB)

The contents of the file are:

| Filename | Description |
| --- | --- |
| `uq_compositeGaussians.m` | vectorized implementation of the composite Gaussians function |
| `uq_Example_compositeGaussians.m` | definitions for the model and probabilistic inputs in UQLab |
| `LICENSE` | license for the function (BSD 3-Clause) |

## References

- B. J. Bichon, J. M. McFarland, and S. Mahadevan, “Efficient surrogate models for system reliability analysis of systems with multiple failure modes,” _Reliability Engineering and System Safety_, vol. 96, pp. 1386–1395, 2011. [DOI:10.1016/j.ress.2011.05.008](https://doi.org/10.1016/j.ress.2011.05.008)
