Fraction of unexplained variance:
Daniel Bending
on 18 Aug 2024
Latest activity Reply by Florian Augustin
on 20 Aug 2024
Hi All,
I'm currently verifying a global sensitivity analysis done in SimBiology and I'm a touch confused. This analysis was run with every parameter and compartment volume in the model. To my understanding the fraction of unexplained variance is 1 - the sum of the first order variances, therefore if the model dynamics are dominated by interparameter effects you might see a higher fraction of unexplained variance. In this analysis however, as the attached figure shows (with input at t=20 minutes), the most sensitive four parameters seem to sum, in first order sensitivities to roughly one at each time point and the total order sensitivies appear nearly identical. So how is the fraction of unexplained variance near one?
Thank you for your help!

3 Comments
Time DescendingHi Daniel,
Thank you for reporting this! Your expectation about the first order indices and the unexplained variance is correct. This looks like a bug in the plot of the "unexplained variance". Could you confirm that you only see this issue when you specify the Parameters name-value argument?
Dependent on the release of MATLAB you are working with, you can easily fix the issue to unblock your work. You can make the following change (e.g. in ... R2023a, R2023b, R2024a). In the MATLAB Command Window type
edit SimBiology.gsa.Sobol.plot
to open the plotting code in the MATLAB Editor. Navigate to line 673 and replace
obj.SobolIndices(i,observableIndex(j)).FirstOrder
with
obj.SobolIndices(parameterIndex(i),observableIndex(j)).FirstOrder
The reported Sobol indices are unaffected by this issue. We will fix this as soon as possible in the product.
Thank you.
-Florian
Sign in to participate
