"매 input 변동이 output 의 어디에 얼마나 영향?". 매 Sobol indices (variance decomposition), Morris elementary effects (screening), 그리고 ML interpretability (SHAP, permutation importance) 모두 매 sensitivity analysis 의 family. 매 2026 default: SALib (classic SA) + SHAP (ML model).
매 핵심
매 Local vs Global
Local: gradient at one point (∂y/∂x). 매 빠르지만 nonlinear 모델 misleading.
Global: full input space sample. 매 Sobol/Morris/FAST. 매 정직.
매 Method 분류
Screening (Morris): 매 cheap, identify important factors among many. r·(k+1) runs.
Variance-based (Sobol): S1 (first-order), ST (total). 매 N·(2k+2) Saltelli sample.
ML feature importance: permutation, SHAP, integrated gradients.
매 응용
Engineering tolerance — 매 어느 parameter 가 yield drop.
Climate/epidemiology model — input uncertainty propagation.
ML model debug — 매 feature 가 prediction drive.
Hyperparameter search prior — 매 important hp 만 tune.
💻 패턴
Sobol indices (SALib)
fromSALib.sampleimportsaltellifromSALib.analyzeimportsobolimportnumpyasnpproblem={'num_vars':3,'names':['x1','x2','x3'],'bounds':[[0,1]]*3,}param_values=saltelli.sample(problem,1024)Y=np.array([model(*row)forrowinparam_values])Si=sobol.analyze(problem,Y)print(Si['S1'],Si['ST'])# first-order + total
importshapexplainer=shap.TreeExplainer(xgb_model)# or shap.Explainer for generalsv=explainer(X_val)shap.plots.beeswarm(sv)# globalshap.plots.waterfall(sv[0])# local