Académique Documents
Professionnel Documents
Culture Documents
1
AgroParisTech, pierre.barbillon@agroparistech.fr
2
INRA MiAIGE, Herve.Monod@jouy.inra.fr
1 Introduction
2 Méthode de Morris
3 Plan d’expérience
6 Conclusions et Extensions
7 Modèle MEV
Plan
1 Introduction
2 Méthode de Morris
3 Plan d’expérience
6 Conclusions et Extensions
7 Modèle MEV
K
Yt = M(K , Y 0, a) =
1 + (K /Y0 − 1) exp(−a · t)
Domaine de variation :
var borne inf borne sup
K 100 1000
Y0 1 40
a 0.05 0.2
Contexte
Y = M(X1 , . . . , Xd )
avec
Xi facteur d’entrée continu (paramètre, variable d’entrée du modèle, valeur initiale,
etc.)
Objectif : mesurer l’importance globale sur Y des facteurs d’entrée Xi
sur toute une gamme de variation des Xi
avec le minimum d’hypothèses sur le modèle (“model-free”)
en intégrant les interactions
sous une possible contrainte d’un nombre limité d’appels au modèle
difficulté supplémentaire si le nombre d d’entrées est important
M : [0, 1]d → R .
Loi des entrées :
les variables d’entrées Xi sont indépendantes,
1 ≤ i ≤ n, Xi ∼ U [0, 1].
L’hypothèse Xi ∼ U [0, 1] n’est pas restrictive car
(−1)
Xi ∼ Fi (fonction de répartition), Fi (Xi ) ∼ U[0, 1] ,
(−1)
où Fi inverse généralisée de la fonction de répartition.
La corrélation des entrées est beaucoup plus délicate à gérer...
On fait varier les entrées suivant leur loi de probabilité pour mesurer l’effet sur
Y = M(X1 , . . . , Xd ).
Buts, questions ?
Plan
1 Introduction
2 Méthode de Morris
3 Plan d’expérience
6 Conclusions et Extensions
7 Modèle MEV
Méthode de Morris :
méthode d’analyse de sensibilité globale
objectifs principaux
identifier les facteurs influents
classer les facteurs selon leur influence
méthode de criblage / screening
limite : difficulté pour séparer les interactions des effets non linéaires
méthode relativement économe en nombre d’appels au modèle.
1.0
●
P_2=(x'_1,x'_2)
0.8
● ●
0.6
X2
0.4
● ●
P_0=(x_1,x_2) P_1=(x'_1,x_2)
0.2
●
0.0
X1
q
Paramètres sur la figure : r = 2, q = 6, δ = 2(q−1)
= 0.6
P. Barbillon, H. Monod (AgroParisTech, INRA) Analyse de sensibilité Formation ABIES 14 / 66
Méthode de Morris
Échantillonnage ⇒ N = r × (d + 1) simulations
grille régulière : D = {0, 1
, 2 , . . . , 1}d
q−1 q−1
“un facteur à la fois” (OAT) et pas de longueur fixe ±δ
(k)
(x1 , . . . , xi−1 , xi , xi+1 , . . . , xd ) −→ (x1 , . . . , xi−1 , x0i
(k) (k) (k) (k) (k) (k) (k) (k)
, xi+1 , . . . , xd )
(k) (k)
r trajectoires P0 , . . . , Pd où X1 , . . . , Xd varient successivement
randomisation : pour chaque trajectoire
(k)
1 point de départ P0 tiré au hasard dans la grille
2 ordre de modification des entrées Xj = permutation aléatoire π(j)
optimisation space-filling des trajectoires
X1 X2 X3 X4 X5 X6 X7 X8 X9 X10 Y ∆
1 0.75 0.25 0.62 0.00 0.38 0.50 0.88 0.25 0.25 0.38 2.38 .
2 0.75 0.25 0.62 0.00 0.38 0.50 0.88 0.25 0.00 0.38 2.19 -0.19
3 0.75 0.25 0.62 0.00 0.38 0.50 0.62 0.25 0.00 0.38 2.19 0.00
4 0.75 0.25 0.62 0.00 0.62 0.50 0.62 0.25 0.00 0.38 2.19 0.00
5 0.75 0.25 0.62 0.25 0.62 0.50 0.62 0.25 0.00 0.38 1.44 -0.75
6 0.75 0.25 0.38 0.25 0.62 0.50 0.62 0.25 0.00 0.38 1.44 0.00
7 0.75 0.25 0.38 0.25 0.62 0.25 0.62 0.25 0.00 0.38 1.44 0.00
8 0.75 0.25 0.38 0.25 0.62 0.25 0.62 0.25 0.00 0.12 1.44 0.00
9 1.00 0.25 0.38 0.25 0.62 0.25 0.62 0.25 0.00 0.12 1.69 0.25
10 1.00 0.25 0.38 0.25 0.62 0.25 0.62 0.50 0.00 0.12 1.50 -0.19
11 1.00 0.50 0.38 0.25 0.62 0.25 0.62 0.50 0.00 0.12 3.00 1.50
12 0.62 0.25 0.00 0.38 1.00 0.62 0.62 0.50 0.25 0.50 0.91 -2.09
···
110
X8
X1
1.5
1.0
X9
σ
0.5
0.0
X3
X7
X6
X5
X10 X4 X2
0 1 2 3 4 5 6
µ*
Plan
1 Introduction
2 Méthode de Morris
3 Plan d’expérience
6 Conclusions et Extensions
7 Modèle MEV
Appels au modèle
Exemples N = 25, d = 2
1.0
1.0
0.8
0.8
0.6
0.6
X2
X2
0.4
0.4
0.2
0.2
0.0
0.0
0.0 0.2 0.4 0.6 0.8 1.0 0.2 0.4 0.6 0.8 1.0
X1 X1
1.0
0.8
0.8
0.6
0.6
X2
X2
0.4
0.4
0.2
0.2
0.0
0.0 0.2 0.4 0.6 0.8 1.0 0.0 0.2 0.4 0.6 0.8 1.0
X1 X1
Plan
1 Introduction
2 Méthode de Morris
3 Plan d’expérience
6 Conclusions et Extensions
7 Modèle MEV
Plan
1 Introduction
2 Méthode de Morris
3 Plan d’expérience
6 Conclusions et Extensions
7 Modèle MEV
Y = M(X1 , X2 , X3 . . . , Xd )
coefficient de détermination
(Ŷk − Ȳ )2
P
2
R = SCM/SCT = Pk
k (Yk − Ȳ )
2
où
Ȳ = n1 k Yk ,
P
P
Ŷk = β̂0 + i β̂i Xi .
0 ≤ R 2 ≤ 1.
Choix des appels au modèle ?
Exemple
R 2 = 0.95
x=src(X,Y,nboot=100)
plot(x)
print(x)
Plan
1 Introduction
2 Méthode de Morris
3 Plan d’expérience
6 Conclusions et Extensions
7 Modèle MEV
Modèle d’ANOVA
Décomposition de la variance
Plan
1 Introduction
2 Méthode de Morris
3 Plan d’expérience
6 Conclusions et Extensions
7 Modèle MEV
Plan
1 Introduction
2 Méthode de Morris
3 Plan d’expérience
6 Conclusions et Extensions
7 Modèle MEV
Si E(Var(Y |Xi )) est faible, fixer Xi réduit la variabilité de Y donc Xi est influente !
Var(E(Y |Xi ))
Si =
Var(Y )
Généralisation
Pdes SRC,
si Y = β0 + i βi Xi ,
βi2 Var(Xi )
Si = SCRi2 = .
Var(Y )
i.i.d.
X1 , . . . , Xd ∼ U [0, 1]
Xd X
Y = M(X1 , . . . , Xd ) = M0 + Mi (Xi )+ Mi,j (Xi , Xj )+. . .+M1,...,d (X1 , . . . , Xd ) ,
i=1 1≤i,j≤d
M0 = E(Y ),
Mi (Xi ) = E(Y |Xi ) − E(Y ),
i 6= j, Mi,j (Xi , Xj ) = E(Y |Xi , Xj ) − Mi (Xi ) − Mj (Xj ) − M0
...
X X
Var(Y ) = Var(Mi (Xi )) + Mi,j (Xi , Xj ) + · · · + VarM1,...,d (X1 , . . . , Xd ) .
i i6=j
premier ordre :
Var(Mi (Xi )) E((E(Y |Xi ) − E(Y ))2 )
Si = =
Var(Y ) Var(Y )
second ordre
Var(Mi,j (Xi , Xj ))
Si,j =
Var(Y )
···
Propriété : X X
Si + Si,j + · · · + S1,...,d = 1
i i6=j
Indices totaux
X
i = 1, . . . , d, S Ti = Su ,
u∈P({1,...,d},i∈u
Plan
1 Introduction
2 Méthode de Morris
3 Plan d’expérience
6 Conclusions et Extensions
7 Modèle MEV
Calcul exact des indices de Sobol souvent impossible (intégrale de grande dimension,
forme non analytique du modèle...)
Méthode de Sobol
Monte-Carlo
xA,1;1 . . . xA,1;d Combinaisons
A = ... ... ... → Ci =
xA,N;1 . . . xA,N;d
xA,1;1 . . . xB,1;i . . . xA,1;d
... ... ... ... ...
Monte-Carlo xA,N;1 . . . xB,N;i . . . xA,N;d
xB,1;1 . . . xB,1;d
B = ... ... ... pour i = 1, . . . , d
xB,N;1 . . . xB,N;d
=⇒ N × (2 + d) appels à M()
=⇒ estimation de Si à partir de B et Ci
Estimation
N
1 X
V̂i = yB,k (yCi ,k − yA,k )
N
k=1
N
1 X
V̂−(i) = yA,k (yA,k − yCi ,k )
N
k=1
V̂i
Ŝi = ,
V̂
V̂−(i)
ŜTi = .
V̂
Exemple
Y = M(X1 , . . . , X10 ) = X1 + 6 · X2 − 3 · X4 + X1 · X9 − X8 2
1.0
main effect
total effect
0.8
0.6
0.4
0.2
0.0
X1 X2 X3 X4 X5 X6 X7 X8 X9 X10
Y = M(X1 , . . . , X10 ) = X1 + 6 · X2 − 3 · X4 + X1 · X9 − X8 2
Plan
1 Introduction
2 Méthode de Morris
3 Plan d’expérience
6 Conclusions et Extensions
7 Modèle MEV
Conclusions
différentes méthodes à utiliser dans des contextes différents, conclusions plus ou
moins fortes,
choix d’un échantillonnage en adéquation avec la méthode retenue,
Extensions
Modèle coûteux, utilisation d’un métamodèle (approximation rapide),
Modèle à sorties multidimensionnelles : temporel, spatial, ...
dépendance entre les entrées.
Références
Cukier R.I., Schaibly J.H. and Shuler K.E. (1975). Study of the sensitivity of coupled
reaction systems to uncertainties in rate coefficients. III. Analysis of the
approximations. The Journal of Chemical Physics, 63, 1140-1149. référence
historique sur FAST
Da Veiga S., Wahl F., Gamboa F. (2009). Local polynomial estimation for sensitivity
analysis for models with correlated inputs. Technometrics. méthode pour entrées
corrélées
Faivre R, Iooss B, Mahévas S, Makowski D, Monod H (éd.), 2013. Analyse de
sensibilité et exploration de modèles. Application aux sciences de la nature et de
l’environnement. Editions Quae, Versailles.
Ginot V., Gaba S., Beaudouin R., Aries F., Monod H. (2006). Combined use of local
and ANOVA-based global sensitivity analyses for the investigation of a stochastic
dynamic model : application to the case study of an individual-based model of a fish
population. Ecological Modelling 193, 479-491. application de méthodes d’AS
locales et globales
Hoeffding W. (1948). A class of statistics with asymptotically normal distribution.
Annals of Mathematical Statistics, 19, 293-325. référence historique sur la
décomposition d’une fonction de variables par espérances conditionnelles
Iooss B., Ribatet M. (2009). Global sensitivity analysis of computer models with
functional inputs. Reliability Engineering and System Safety, 94, 1194-1204. analyse
de sensibilité pour des facteurs d’entrée
P. Barbillon, H. Monod (AgroParisTech, INRA)
complexes
Analyse de sensibilité Formation ABIES 53 / 66
Conclusions et Extensions
Références
Références
Petropoulos G., Wooster M.J., Carlson T.N. Kennedy M.C., Scholze M. (2009). A
global Bayesian sensitivity analysis of the 1d SimSphere soil-vegetation-atmospheric
transfer (SVAT) model using Gaussian model emulation. Ecological Modelling, x.
analyse de sensibilité via un méta-modèle de processus gaussien et une approche
bayésienne-
Pujol G., Iooss B. (2008). The sensitivity package, v1.4-0. Documentation d’un
package R accessible sur le Web.
Saltelli A., Tarantola S., and Chan K. (1999). A quantitative model-independent
method for global sensitivity analysis of model output. Technometrics, 41, 39–56.
introduction de FAST étendue
Saltelli A. (2002). Making best use of model evaluations to compute sensitivity
indices. Computer Physics Communications, 145, 280-297. amélioration de la
méthode de Sobol
Saltelli A., Ratto M., Andres T., Campolongo F., Cariboni J., Gatelli D., Saisana M.,
Tarantola S. (2008). Global Sensitivity Analysis. The Primer. Wiley. ouvrage de
synthèse le plus récent
Saltelli A., Annoni P., Azzini I., Campolongo F., Ratto M., Tarantola S. (2010).
Variance based sensitivity analysis of model output. Design and estimator for the
total sensitivity index. Computer Physics Communications, 181, 259-270.
comparaison par simulations de variantes de la méthode de Sobol-Saltelli
P. Barbillon, H. Monod (AgroParisTech, INRA) Analyse de sensibilité Formation ABIES 55 / 66
Conclusions et Extensions
Références
Plan
1 Introduction
2 Méthode de Morris
3 Plan d’expérience
6 Conclusions et Extensions
7 Modèle MEV
K
Yt = M(K , Y 0, a) =
1 + (K /Y0 − 1) exp(−a · t)
Domaine de variation :
var borne inf borne sup
K 100 1000
Y0 1 40
a 0.05 0.2
400
300 K=400, Y0=20
ME
200
100
a=0.1
a=0.05
a=0.2
0 20 40 60 80 100
T
K
Yt = M(K , Y 0, a) =
1 + (K /Y0 − 1) exp(−a · t)
a
16
Y0
14
12
σ
10
8
6
4
10 20 30 40 50 60 70
µ*
K
Yt = M(K , Y 0, a) =
1 + (K /Y0 − 1) exp(−a · t)
K
350
a
300
250
σ
200
150
Y0
K
Yt = M(K , Y 0, a) =
1 + (K /Y0 − 1) exp(−a · t)
a
340
320
300
K
σ
280
260
240
Y0
220
K
Yt = M(K , Y 0, a) =
1 + (K /Y0 − 1) exp(−a · t)
SRC
2 K 0.10
t = 5, R = 0.91,
Y0 0.90
a 0.30
SRC
2 K 0.48
t = 30, R = 0.67,
Y0 0.38
a 0.54
SRC
2 K 0.84
t = 80, R = 0.80,
Y0 0.17
a 0.28
K
Yt = M(K , Y 0, a) =
1.0 1 + (K /Y0 − 1) exp(−a · t)
main effect
total effect
0.8
0.6
0.4
0.2
0.0
K Y0 a
K
Yt = M(K , Y 0, a) =
1.0 1 + (K /Y0 − 1) exp(−a · t)
main effect
total effect
0.8
0.6
0.4
0.2
0.0
K Y0 a
K
Yt = M(K , Y 0, a) =
1.0 1 + (K /Y0 − 1) exp(−a · t)
main effect
total effect
0.8
0.6
0.4
0.2
0.0
K Y0 a