# Sensitivity analyses by Spearman’s correlation coefficient

**URL:** <https://uqworld.org/t/sensitivity-analyses-by-spearman-s-correlation-coefficient/1780>\
**Category:** Community Q&A and How To\
**Tags:** sensitivity\
**Created:** [January 21, 2023, 8:51am UTC](https://uqworld.org/t/sensitivity-analyses-by-spearman-s-correlation-coefficient/1780 "2023-01-21T08:51:42Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mohammad](https://uqworld.org/user_avatar/uqworld.org/mohammad/32/1150_2.png) [@Mohammad](https://uqworld.org/u/Mohammad)\
**Post date:** [January 21, 2023, 8:51am UTC](https://uqworld.org/t/sensitivity-analyses-by-spearman-s-correlation-coefficient/1780/1 "2023-01-21T08:51:42Z")

</div>

I want to perform a Latin Hypercube Sampling (LHS) to generate multivariate samples stochastically, then implement the sensitivity analyses by Spearman’s correlation coefficient. How can I implement this procedure using uqlab?  
Best regards,

---

<div class="post-metadata">

**Author:** ![styfen.schaer](https://uqworld.org/user_avatar/uqworld.org/styfen.schaer/32/849_2.png) [@styfen.schaer](https://uqworld.org/u/styfen.schaer)\
**Post date:** [January 23, 2023, 9:13am UTC](https://uqworld.org/t/sensitivity-analyses-by-spearman-s-correlation-coefficient/1780/2 "2023-01-23T09:13:41Z")

</div>

Dear @Mohammad

This is a very short and probably incomplete description of what you are trying to achieve. So it is difficult to provide direct help.

I think the best starting point is to read the Input and Sensitivity manuals to get a first overview of the methods implemented in UQLab:

> **[UQLab - Probabilistic input modeling user manual](https://www.uqlab.com/input-user-manual)**
>
> User manual for the probabilistic input modeling module of UQLab.

> **[UQLab - Sensitivity analysis user manual](https://www.uqlab.com/sensitivity-user-manual)**
>
> User manual for the Sensitivity analysis module of UQLab.

After that, you can look at the examples on sensitivity analysis:

> **[Examples | UQLab](https://www.uqlab.com/examples)**
>
> Overview of the available code examples for UQLab, the framework for uncertainty quantification.

The following example will probably be of particular interest to you because it shows the steps involved in a complete sensitivity analysis and how to perform them using UQLab.

> **[Sensitivity analysis - Methods overview | Examples | UQLab](https://www.uqlab.com/sensitivity-methods-overview)**
>
> Apply various sensitivity analysis techniques
> to a benchmark problem (the borehole function).

Let us know if you get stuck anywhere in this process.

Best regards  
Styfen

---

<div class="post-metadata">

**Author:** ![Mohammad](https://uqworld.org/user_avatar/uqworld.org/mohammad/32/1150_2.png) [@Mohammad](https://uqworld.org/u/Mohammad)\
**Post date:** [January 23, 2023, 10:29am UTC](https://uqworld.org/t/sensitivity-analyses-by-spearman-s-correlation-coefficient/1780/3 "2023-01-23T10:29:11Z")

</div>

Thanks @styfen.schaer

Actually, I had previously performed sensitivity analysis using uqlab. I just wanted to know if uqlab could generate a Spearman linear correlation coefficient matrix as well? like the picture uploaded.

![999](https://uqworld.org/uploads/default/original/2X/0/0514be37d3665a9bb354da0f03bc0900a0be7731.png)

All the best,  
Ayubirad
