# Benchmark case - Ishigami function

**URL:** <https://uqworld.org/t/benchmark-case-ishigami-function/3739>\
**Category:** Benchmarks\
**Created:** [July 8, 2024, 10:16am UTC](https://uqworld.org/t/benchmark-case-ishigami-function/3739 "2024-07-08T10:16:55Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Adela](https://uqworld.org/user_avatar/uqworld.org/adela/32/2301_2.png) [@Adela](https://uqworld.org/u/Adela)\
**Post date:** [July 8, 2024, 10:16am UTC](https://uqworld.org/t/benchmark-case-ishigami-function/3739/1 "2024-07-08T10:16:55Z")

</div>

The original post can be found [here](https://uqworld.org/t/ishigami-function/55).

 

# Ishigami Function

The Ishigami function is commonly used as a test function to benchmark global sensitivity analysis methods (Ishigami and Homma, 1990; Sobol’ and Levitan, 1999; Marrel et al., 2009).

## Description

The analytic expression of the Ishigami function is given as:

f(\mathbf{x}) = \sin{x\_1} + a \sin^2{x\_2} + b x\_3^4 \sin{x\_1}

where \mathbf{x} = \{x\_1, x\_2,x\_3\} \in [-\pi, \pi]^3 are input variables; while a and b are parameters.

 ![ishigamiHistogram](https://uqworld.org/uploads/default/original/1X/932c24c24e69c945df8f2757807153b40095ce9e.png)  
**Figure 1** : The histogram of the Ishigami function output when using uniform input distributions (see details below) based on 10^6 sample points.

## Inputs

For computer experiment purposes, the inputs x\_1, x\_2, x\_3 are modeled as three independent uniform random variables.

| No | Variable | Distribution | Parameters |
| --- | --- | --- | --- |
| 1 | X\_1 | Uniform | [-\pi, \pi] |
| 2 | X\_2 | Uniform | [-\pi, \pi] |
| 3 | X\_3 | Uniform | [-\pi, \pi] |

## Parameters

The parameters of the Ishigami function differ according to the literature, as shown in the table below.

| No | Value | Source |
| --- | --- | --- |
| 1 | a = 7, \; b = 0.1 | Marrel et al. (2009) |
| 2 | a = 7, \; b = 0.05 | Sobol’ and Levitan (1999) |

## Reference values

### First-order Sobol’ indices

The analytical solution for the first-order Sobol’ indices of the Ishigami function as described above is:

- S\_1 = \frac{V\_1}{\mathbb{V}[Y]}
- S\_2 = \frac{V\_2}{\mathbb{V}[Y]}
- S\_3 = \frac{V\_3}{\mathbb{V}[Y]} = 0

where:

- \mathbb{V}[Y] = \frac{a^2}{8} + \frac{b\pi^4}{5} + \frac{b^2\pi^8}{18} + \frac{1}{2}
- V\_1 = \frac{1}{2}(1 + \frac{b\pi^4}{5})^2
- V\_2 = \frac{a^2}{8}
- V\_3 = 0

### Total-effect Sobol’ indices

The analytical solution for the total-effect Sobol’ indices of the Ishigami function as described above is:

- S\_{T1} = \frac{V\_{T1}}{\mathbb{V}[Y]}
- S\_{T2} = \frac{V\_{T2}}{\mathbb{V}[Y]}
- S\_{T3} = \frac{V\_{T3}}{\mathbb{V}[Y]}

where:

- V\_{T1} = \frac{1}{2} (1 + \frac{b\pi^4}{5})^2 + \frac{8b^2\pi^8}{225}
- V\_{T2}= \frac{a^2}{8}
- V\_{T3} = \frac{8b^2\pi^8}{225}

## Resources

The vectorized implementation of the Ishigami 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\_ishigami.zip](https://uqworld.org/uploads/short-url/sRGSUji4BK6hkpPxx7JVkc7YK3Q.zip) (2.1 KB)

The contents of the file are:

| Filename | Description |
| --- | --- |
| `uq_ishigami.m` | vectorized implementation of the Ishigami function in MATLAB |
| `uq_Example_ishigami.m` | definitions for the model and probabilistic inputs in UQLab |
| `LICENSE` | license for the function (BSD 3-Clause) |

## Open-access repository

The dataset used in this benchmark study is titled “Benchmark case datasets - Ishigami function” and is authored by Adéla Hlobilová, Stefano Marelli, and Bruno Sudret. It was published in 2024 and is available on Zenodo. The dataset can be accessed directly via the following DOI link: [10.5281/zenodo.12684378](https://doi.org/10.5281/zenodo.12684378).

The experimental designs include datasets with 40, 80, 120, 160, and 200 samples, each generated using optimized Latin Hypercube Sampling (LHS) with 1,000 iterations to improve the maximin criterion. Each dataset is replicated 20 times. The validation set contains 100,000 samples generated by Monte Carlo simulation. Each dataset contains samples and responses of the computational model.

For citation purposes, please use the following format:  
Hlobilová, A., Marelli, S., and Sudret, B. (2024). Benchmark case datasets - Ishigami function. Zenodo. [https://doi.org/10.5281/zenodo.12684378](https://doi.org/10.5281/zenodo.12684378).

This project was supported by the Open Research Data Program of the ETH Board under Grant number EPFL SCR0902285.

## References

- T. Ishigami and T. Homma, “An importance quantification technique in uncertainty analysis for computer models,” In _the First International Symposium on Uncertainty Modeling and Analysis_, Maryland, USA, Dec. 3–5, 1990. [DOI:10.1109/SUMA.1990.151285](https://doi.org/10.1109/ISUMA.1990.151285)
- I. M. Sobol’ and Y. L. Levitan, “On the use of variance reducing multipliers in Monte Carlo computations of a global sensitivity index,” _Computer Physics Communications_, vol. 117, no. 1, pp. 52–61, 1999. [DOI:10.1016/S0010-4655(98)00156-8](https://doi.org/10.1016/S0010-4655(98)00156-8)
- A. Marrel, B. Iooss, B. Laurent, and O. Roustant, “Calculations of Sobol indices for the Gaussian process metamodel,” _Reliability Engineering & System Safety_, vol. 94, no. 3, pp. 742–751, 2009. [DOI:10.1016/j.ress.2008.07.008](https://doi.org/10.1016/j.ress.2008.07.008)
