8000 total_sensitivity_index in Sobol_G.py · Issue #461 · SALib/SALib · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

total_sensitivity_index in Sobol_G.py #461

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
jyangfsu opened this issue Aug 14, 2021 · 3 comments
Closed

total_sensitivity_index in Sobol_G.py #461

jyangfsu opened this issue Aug 14, 2021 · 3 comments
Assignees

Comments

@jyangfsu
Copy link
jyangfsu commented Aug 14, 2021

The total_sensitivity_index in Sobol_G is likely not correct.

sum_pv = pv.sum(axis=0)
# should be 
product_pv = np.product(1 + pv, axis=0)
return np.subtract(1, np.divide(np.subtract(sum_pv, pv.T), tv)) 
# should be 
return np.divide(pv * np.divide(product_pv, 1 + pv.T),  tv)
@ConnectedSystems
Copy link
Member

@jyangfsu Thanks for raising this issue.

@jdherman I've checked the paper and the suggested change seems to match. The implementation in gsa_module also seems to line up with the suggested change as well

I am running some comparisons now to confirm.

pinging @QianWanghhu as this is likely related to #335

@ConnectedSystems ConnectedSystems self-assigned this Aug 22, 2021
@ConnectedSystems
Copy link
Member

Confirmed that the new results line up with the analytic values provided by @QianWanghhu, will submit a PR

Original Suggested in #461 Results provided in Issue #335
0.789828 0.787144 0.787144
0.252684 0.242198 0.242198
0.097311 0.034317 0.034317
0.080798 0.010460 0.010460
0.073707 0.000105 0.000105
0.073707 0.000105 0.000105
0.073707 0.000105 0.000105
0.073707 0.000105 0.000105

ConnectedSystems added a commit to ConnectedSystems/SALib that referenced this issue Aug 22, 2021
ConnectedSystems added a commit that referenced this issue Aug 22, 2021
Update Sobol G-function analytic method (addresses #335 #461)
@ConnectedSystems
Copy link
Member

Closed by #464

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants
0