avatarRenee LIN

Free AI web copilot to create summaries, insights and extended knowledge, download it at here

2682

Abstract

utput. However, OAT requires a baseline (e.g. the features’ mean values)to calculate the variance, which can affect the resulting sensitivity index if different baselines are chosen.</p><p id="46a4">The <b>Morris </b>method was developed to address this issue, which uses multiple baselines and randomizes the OATs to calculate the average variance. These results consist of the mean and deviation of the system outputs.</p><p id="6669">The mean reflects the impact of the feature, while the deviation indicates the non-linearity of that feature.</p><figure id="f68b"><img src="https://cdn-images-1.readmedium.com/v2/resize:fit:800/1*NXPJjCJkk-xNtTW6ZZqF3g.png"><figcaption>A replication of the OAT design</figcaption></figure><figure id="b915"><img src="https://cdn-images-1.readmedium.com/v2/resize:fit:800/1*ykUKyLW2qDH0bl3OeECviQ.png"><figcaption>The scores consist of mean and deviation</figcaption></figure><h1 id="8295">2. What is Sobol</h1><p id="c975">Sobol is a type of global sensitivity analysis method that focuses on variance. Specifically, it looks at how the output variance can be explained by different input variables. This is done by measuring the variance of the conditional expectation of the output relative to the total output variance.</p><figure id="dac3"><img src="https://cdn-images-1.readmedium.com/v2/resize:fit:800/1*yc_CZ9WMqSPvzIYkjTLnhQ.png"><figcaption></figcaption></figure><figure id="e190"><img src="https://cdn-images-1.readmedium.com/v2/resize:fit:800/1*-5ZEggCM8fOSwjtTbkB81Q.png"><figcaption><a href="https://www.youtube.com/watch?v=vBuWB9WuFhA&amp;t=367s">https://www.youtube.com/watch?v=vBuWB9WuFhA&amp;t=367s</a></figcaption></figure><p id="21ed">One advantage of using Sobol over Morris is that Sobol can provide information about feature interactions. This means that in addition to analyzing individual features, Sobol can also show how different features interact with each other and affect the output. This can help understand the underlying relationships within the system being analyzed.</p><figure id="5b61"><img src="https://cdn-images-1.readmedium.com/v2/resize:fit:800/1*5dNj08QTE9hlEWNCRL0Evg.png"><figcaption>The interaction can be calculated in this way.</figcaption></figure><p id="7db5">So, from Sobol, we obtain the first-order index and total effect index(summing all n-order indices)</p><figure id="dfa9"><img src="https://cdn-images-1.readmedium.com/v2/resize:fit:800/1*UYWOvGtseB7d3kGpGMiyeg.png"><figcaption>The first one is the first-order index</figcaption></figure><h1 id="e627">3. How to read the results from SALib</h1><p id="1262">Based on the understanding above, the results can be explained in detail. Befo

Options

re jumping to the result, you might want to know how to use SALib to get the results <a href="https://readmedium.com/use-salib-to-conduct-sensitivity-analysis-feature-importance-on-the-boston-housing-price-project-e3f3fe000a6f">A Example on how to use SALib</a>.</p><p id="fff0">This is the Morris result from the example. Mu_star is the absolute value mentioned in the above formula, and sigma is the deviation. mu_star_conf refers to the confidence interval.</p><figure id="7259"><img src="https://cdn-images-1.readmedium.com/v2/resize:fit:800/0*8cqRrmN-SkGHT0ZW.png"><figcaption><a href="https://readmedium.com/use-salib-to-conduct-sensitivity-analysis-feature-importance-on-the-boston-housing-price-project-e3f3fe000a6f">https://readmedium.com/use-salib-to-conduct-sensitivity-analysis-feature-importance-on-the-boston-housing-price-project-e3f3fe000a6f</a></figcaption></figure><p id="256f">Take another result for Sobol from its documentation — <a href="https://salib.readthedocs.io/en/latest/user_guide/basics_with_interface.html">Ishigami Function Example</a>.</p><figure id="5a79"><img src="https://cdn-images-1.readmedium.com/v2/resize:fit:800/1*i3Xcti141BessY2mgza35Q.png"><figcaption>Sobol</figcaption></figure><p id="c02c">The closer the S1 to ST, the fewer interactions exist among the features.</p><p id="2bcb">Thanks for reading, if you found this post helpful, you could also read</p><ol><li><a href="https://reneelin2019.medium.com/calculating-feature-importance-with-permutation-to-explain-the-model-income-prediction-example-38a52e67441d">Calculating Feature Importance with Permutation to Explain the Model</a></li><li><a href="https://reneelin2019.medium.com/explainable-ai-with-shap-income-prediction-example-3050c19a261b">Explainable AI with SHAP — Income Prediction Example</a></li><li><a href="https://reneelin2019.medium.com/time-series-data-clustering-unsupervised-sequential-data-separation-with-tslean-48c845996945">Time Series Data Clustering — Unsupervised Sequential Data Separation with Tslean</a></li><li><a href="https://reneelin2019.medium.com/anomaly-detection-with-python-library-pyod-time-series-voltage-data-outlier-detection-example-255f1f3dacbf">Anomaly Detection with Python Library PyOD — Time Series Voltage Data Outlier Detection Example</a></li><li><a href="https://reneelin2019.medium.com/multi-dimensional-data-visualization-with-plotly-3d-7d-10f3c2d01e84">Multi-dimensional Data Visualization with Plotly (3D-7D)</a></li><li><a href="https://readmedium.com/how-to-tune-hyperparameters-with-weights-and-biases-w-b-sweeps-44bd126d2a23">How to Tune Hyperparameters with Weights and Biases(W&B Sweeps)</a></li></ol></article></body>

Understanding the Sensitivity Analysis Results in Detail (Morris&Sobol from SALib)

https://stock.adobe.com/au/search/images?k=%22sensitivity%20analysis%22

Last year I posted an article about using the SALib to analyse the sensitivity: Sensitivity Analysis(Feature Importance) with SALib on the Boston Housing Price Project. It’s a simple toy example that only gives Morris analysis results and roughly indicates the most important features. However, the results can be explained in much more detail.

  1. What is Morris
  2. What is Sobol
  3. How to read the results from SALib

0. Terminology

(1) Sensitivity index

When we’re trying to figure out how much each thing we put into a system affects the output, we use something called a sensitivity index. There are a few different types of sensitivity indices:

First-order indices: these tell us how much one thing we put in affects the output all by itself. Second-order indices: these tell us how much two things we put in together affect the output. Total-order index: this one considers how much one thing affects the output on its own, as well as how much it affects the output when combined with other things.

(2) Local & Global sensitivity analysis

Local sensitivity analysis is used to measure the sensitivity of the system output to small perturbations in the input variables around a specific point. It provides information about how changes in input variables affect the system's output in the immediate vicinity of that point.

Global sensitivity analysis, on the other hand, considers the entire range of values that the input variables can take and evaluates how changes in these variables impact the system output over the entire range. It is used to identify the most important input variables and their relative importance in contributing to the output.

1. What is Morris

It is a local sensitivity analysis method based on once-at-a-time(OAT). The OAT method involves varying one feature while holding the others constant and observing the resulting changes in output. However, OAT requires a baseline (e.g. the features’ mean values)to calculate the variance, which can affect the resulting sensitivity index if different baselines are chosen.

The Morris method was developed to address this issue, which uses multiple baselines and randomizes the OATs to calculate the average variance. These results consist of the mean and deviation of the system outputs.

The mean reflects the impact of the feature, while the deviation indicates the non-linearity of that feature.

A replication of the OAT design
The scores consist of mean and deviation

2. What is Sobol

Sobol is a type of global sensitivity analysis method that focuses on variance. Specifically, it looks at how the output variance can be explained by different input variables. This is done by measuring the variance of the conditional expectation of the output relative to the total output variance.

https://www.youtube.com/watch?v=vBuWB9WuFhA&t=367s

One advantage of using Sobol over Morris is that Sobol can provide information about feature interactions. This means that in addition to analyzing individual features, Sobol can also show how different features interact with each other and affect the output. This can help understand the underlying relationships within the system being analyzed.

The interaction can be calculated in this way.

So, from Sobol, we obtain the first-order index and total effect index(summing all n-order indices)

The first one is the first-order index

3. How to read the results from SALib

Based on the understanding above, the results can be explained in detail. Before jumping to the result, you might want to know how to use SALib to get the results A Example on how to use SALib.

This is the Morris result from the example. Mu_star is the absolute value mentioned in the above formula, and sigma is the deviation. mu_star_conf refers to the confidence interval.

https://readmedium.com/use-salib-to-conduct-sensitivity-analysis-feature-importance-on-the-boston-housing-price-project-e3f3fe000a6f

Take another result for Sobol from its documentation — Ishigami Function Example.

Sobol

The closer the S1 to ST, the fewer interactions exist among the features.

Thanks for reading, if you found this post helpful, you could also read

  1. Calculating Feature Importance with Permutation to Explain the Model
  2. Explainable AI with SHAP — Income Prediction Example
  3. Time Series Data Clustering — Unsupervised Sequential Data Separation with Tslean
  4. Anomaly Detection with Python Library PyOD — Time Series Voltage Data Outlier Detection Example
  5. Multi-dimensional Data Visualization with Plotly (3D-7D)
  6. How to Tune Hyperparameters with Weights and Biases(W&B Sweeps)
Sensitivity
Sensitivity Analysis
Machine Learning
Feature Importance
Feature Engineering
Recommended from ReadMedium