You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
dgsm.analyze: dgsm_conf is the bootstrap interval of vi, not of dgsm #698
so the returned interval is the interval of vi, without the (ub - lb)**2 / (D * pi**2) factor. An easy way to see it is that dgsm does not change when the output is multiplied by a constant, but dgsm_conf grows with the square of that constant.
Expected: dgsm_conf stays the same when Y is scaled, like dgsm. For reference, bootstrapping the dgsm value itself (recomputing vi and np.var(base) on each resample) gives half-widths of roughly [0.35 0.8 0.3] for the unscaled Ishigami case. For a term that is linear in its input, vi is the same in every resample, so dgsm_conf is 0 even though dgsm still varies through D.
A fix would be to compute vi * (ub - lb)**2 / (np.var(base[r_i]) * np.pi**2) inside the bootstrap loop, or at least scale the vi interval by the same factor as dgsm.
Versions: SALib 1.6.0 from PyPI and main at c8b2be5, numpy 2.5.3, scipy 1.18.1, Python 3.13, macOS arm64.
Activity