96
Sensitivity analysis and computer code experiments Fabrice Gamboa IMT Toulouse 1th de June Workshop on Applied Statistics UTB Cartagena Fabrice Gamboa (IMT Toulouse) Sensitivity analysis and computer code experiments 1th de June 1 / 44

Sensitivity analysis and computer code experimentsgamboa/newwab/fichiers...Workshop on Applied Statistics UTB Cartagena Fabrice Gamboa (IMT Toulouse) Sensitivity analysis and computer

  • Upload
    others

  • View
    1

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Sensitivity analysis and computer code experimentsgamboa/newwab/fichiers...Workshop on Applied Statistics UTB Cartagena Fabrice Gamboa (IMT Toulouse) Sensitivity analysis and computer

Sensitivity analysis and computer code experiments

Fabrice Gamboa

IMT Toulouse

1th de June

Workshop on Applied Statistics UTB Cartagena

Fabrice Gamboa (IMT Toulouse) Sensitivity analysis and computer code experiments 1th de June 1 / 44

Page 2: Sensitivity analysis and computer code experimentsgamboa/newwab/fichiers...Workshop on Applied Statistics UTB Cartagena Fabrice Gamboa (IMT Toulouse) Sensitivity analysis and computer

Agenda1 Scientific context

What are we dealing with?

2 Some questions on the general model

3 IntroductionFrame: Black boxGains of stochastic methodsPresented techniquesSome linksA toy model

4 Sensivity analysisDeterministic methodsA first insight in probability theorySobol methodSobol indices estimation

5 Gaussian emulatorA short journey towards Gaussian fieldsKriging

Fabrice Gamboa (IMT Toulouse) Sensitivity analysis and computer code experiments 1th de June 2 / 44

Page 3: Sensitivity analysis and computer code experimentsgamboa/newwab/fichiers...Workshop on Applied Statistics UTB Cartagena Fabrice Gamboa (IMT Toulouse) Sensitivity analysis and computer

The small story

Early 2000, IMT Toulouse begin to work with many Labs :

CEA Cadarache. N. Devictor, B. Iooss. Nuclear safety (Ph D A.

Marrel-currently CEA-)

ONERA-DOTA Palaiseau. G. Durand, A. Roblin. infrared profile of

a plane (Ph D S. Varet )

IFP Lyon. P. Duchene, F. Wahl-Univ Grenoble. A Antoniadis.

Chemical cinetic problems ( Ph D S. Da Veiga-Currently IFP-)

⇒ Scientific meetings in Toulouse- Fevrier 2006 and in Lyon en2007 GDR CNRS borned

Fabrice Gamboa (IMT Toulouse) Sensitivity analysis and computer code experiments 1th de June 3 / 44

Page 4: Sensitivity analysis and computer code experimentsgamboa/newwab/fichiers...Workshop on Applied Statistics UTB Cartagena Fabrice Gamboa (IMT Toulouse) Sensitivity analysis and computer

What are we dealing with?

Big computer codes= F black box

Y = F (X )

Code inputs: X high dimension object (vectors or curves).

Code outputs Y (scalar or vectorial).

X complex structure and/or uncertain

⇒ seen as random

STOCHASTIC APPROACH

Fabrice Gamboa (IMT Toulouse) Sensitivity analysis and computer code experiments 1th de June 4 / 44

Page 5: Sensitivity analysis and computer code experimentsgamboa/newwab/fichiers...Workshop on Applied Statistics UTB Cartagena Fabrice Gamboa (IMT Toulouse) Sensitivity analysis and computer

Some questions on the general model

Sensitivity and uncertainty analysis= take informations on thejoint distribution (X ,Y )

F too complicated. Design a reduced model= Estimate aresponse surface

Optimise the run number= make an experimental design

Fabrice Gamboa (IMT Toulouse) Sensitivity analysis and computer code experiments 1th de June 5 / 44

Page 6: Sensitivity analysis and computer code experimentsgamboa/newwab/fichiers...Workshop on Applied Statistics UTB Cartagena Fabrice Gamboa (IMT Toulouse) Sensitivity analysis and computer

People working around this topic

GDR MASCOT NUM Annual meeting march 2012 : CEABruyeres le Chatel http://www.gdr-mascotnum.fr/

ANR project : OPUS EADS, CEA, EDF, ... (CEA)http://www.opus-project.fr/

ANR project : COSTA BRAVA CEA, IFP, Univ Toulouse, UnivGrenoble http://www.math.univ-toulouse.fr/COSTA BRAVA/doku.php?id=index

SIAM conference : Uncertainty quantification 2th-5Th April2012 http://www.siam.org/meetings/uq12

Fabrice Gamboa (IMT Toulouse) Sensitivity analysis and computer code experiments 1th de June 6 / 44

Page 7: Sensitivity analysis and computer code experimentsgamboa/newwab/fichiers...Workshop on Applied Statistics UTB Cartagena Fabrice Gamboa (IMT Toulouse) Sensitivity analysis and computer

Motivation-Examples

Main object : complicated computer simulation code

Examples: Meteo, Oceanography, Complex physical or chemicalprocess, Economics evolutions ....

Complexity:I Big Code: many different numerical methods elaborated during a large

time.I Many input: vectorial, functional, uncertain.I Many output: vectorial, functional.I Expensive: from some minutes up to several daysI Example functional code CERES from CEA CERES

Need methods to enlight.

Fabrice Gamboa (IMT Toulouse) Sensitivity analysis and computer code experiments 1th de June 7 / 44

Page 8: Sensitivity analysis and computer code experimentsgamboa/newwab/fichiers...Workshop on Applied Statistics UTB Cartagena Fabrice Gamboa (IMT Toulouse) Sensitivity analysis and computer

Motivation-Examples

Main object : complicated computer simulation code

Examples: Meteo, Oceanography, Complex physical or chemicalprocess, Economics evolutions ....

Complexity:I Big Code: many different numerical methods elaborated during a large

time.I Many input: vectorial, functional, uncertain.I Many output: vectorial, functional.I Expensive: from some minutes up to several daysI Example functional code CERES from CEA CERES

Need methods to enlight.

Fabrice Gamboa (IMT Toulouse) Sensitivity analysis and computer code experiments 1th de June 7 / 44

Page 9: Sensitivity analysis and computer code experimentsgamboa/newwab/fichiers...Workshop on Applied Statistics UTB Cartagena Fabrice Gamboa (IMT Toulouse) Sensitivity analysis and computer

Motivation-Examples

Main object : complicated computer simulation code

Examples: Meteo, Oceanography, Complex physical or chemicalprocess, Economics evolutions ....

Complexity:I Big Code: many different numerical methods elaborated during a large

time.I Many input: vectorial, functional, uncertain.I Many output: vectorial, functional.I Expensive: from some minutes up to several daysI Example functional code CERES from CEA CERES

Need methods to enlight.

Fabrice Gamboa (IMT Toulouse) Sensitivity analysis and computer code experiments 1th de June 7 / 44

Page 10: Sensitivity analysis and computer code experimentsgamboa/newwab/fichiers...Workshop on Applied Statistics UTB Cartagena Fabrice Gamboa (IMT Toulouse) Sensitivity analysis and computer

Motivation-Examples

Main object : complicated computer simulation code

Examples: Meteo, Oceanography, Complex physical or chemicalprocess, Economics evolutions ....

Complexity:

I Big Code: many different numerical methods elaborated during a largetime.

I Many input: vectorial, functional, uncertain.I Many output: vectorial, functional.I Expensive: from some minutes up to several daysI Example functional code CERES from CEA CERES

Need methods to enlight.

Fabrice Gamboa (IMT Toulouse) Sensitivity analysis and computer code experiments 1th de June 7 / 44

Page 11: Sensitivity analysis and computer code experimentsgamboa/newwab/fichiers...Workshop on Applied Statistics UTB Cartagena Fabrice Gamboa (IMT Toulouse) Sensitivity analysis and computer

Motivation-Examples

Main object : complicated computer simulation code

Examples: Meteo, Oceanography, Complex physical or chemicalprocess, Economics evolutions ....

Complexity:I Big Code: many different numerical methods elaborated during a large

time.

I Many input: vectorial, functional, uncertain.I Many output: vectorial, functional.I Expensive: from some minutes up to several daysI Example functional code CERES from CEA CERES

Need methods to enlight.

Fabrice Gamboa (IMT Toulouse) Sensitivity analysis and computer code experiments 1th de June 7 / 44

Page 12: Sensitivity analysis and computer code experimentsgamboa/newwab/fichiers...Workshop on Applied Statistics UTB Cartagena Fabrice Gamboa (IMT Toulouse) Sensitivity analysis and computer

Motivation-Examples

Main object : complicated computer simulation code

Examples: Meteo, Oceanography, Complex physical or chemicalprocess, Economics evolutions ....

Complexity:I Big Code: many different numerical methods elaborated during a large

time.I Many input: vectorial, functional, uncertain.

I Many output: vectorial, functional.I Expensive: from some minutes up to several daysI Example functional code CERES from CEA CERES

Need methods to enlight.

Fabrice Gamboa (IMT Toulouse) Sensitivity analysis and computer code experiments 1th de June 7 / 44

Page 13: Sensitivity analysis and computer code experimentsgamboa/newwab/fichiers...Workshop on Applied Statistics UTB Cartagena Fabrice Gamboa (IMT Toulouse) Sensitivity analysis and computer

Motivation-Examples

Main object : complicated computer simulation code

Examples: Meteo, Oceanography, Complex physical or chemicalprocess, Economics evolutions ....

Complexity:I Big Code: many different numerical methods elaborated during a large

time.I Many input: vectorial, functional, uncertain.I Many output: vectorial, functional.

I Expensive: from some minutes up to several daysI Example functional code CERES from CEA CERES

Need methods to enlight.

Fabrice Gamboa (IMT Toulouse) Sensitivity analysis and computer code experiments 1th de June 7 / 44

Page 14: Sensitivity analysis and computer code experimentsgamboa/newwab/fichiers...Workshop on Applied Statistics UTB Cartagena Fabrice Gamboa (IMT Toulouse) Sensitivity analysis and computer

Motivation-Examples

Main object : complicated computer simulation code

Examples: Meteo, Oceanography, Complex physical or chemicalprocess, Economics evolutions ....

Complexity:I Big Code: many different numerical methods elaborated during a large

time.I Many input: vectorial, functional, uncertain.I Many output: vectorial, functional.I Expensive: from some minutes up to several days

I Example functional code CERES from CEA CERES

Need methods to enlight.

Fabrice Gamboa (IMT Toulouse) Sensitivity analysis and computer code experiments 1th de June 7 / 44

Page 15: Sensitivity analysis and computer code experimentsgamboa/newwab/fichiers...Workshop on Applied Statistics UTB Cartagena Fabrice Gamboa (IMT Toulouse) Sensitivity analysis and computer

Motivation-Examples

Main object : complicated computer simulation code

Examples: Meteo, Oceanography, Complex physical or chemicalprocess, Economics evolutions ....

Complexity:I Big Code: many different numerical methods elaborated during a large

time.I Many input: vectorial, functional, uncertain.I Many output: vectorial, functional.I Expensive: from some minutes up to several daysI Example functional code CERES from CEA CERES

Need methods to enlight.

Fabrice Gamboa (IMT Toulouse) Sensitivity analysis and computer code experiments 1th de June 7 / 44

Page 16: Sensitivity analysis and computer code experimentsgamboa/newwab/fichiers...Workshop on Applied Statistics UTB Cartagena Fabrice Gamboa (IMT Toulouse) Sensitivity analysis and computer

Motivation-Examples

Main object : complicated computer simulation code

Examples: Meteo, Oceanography, Complex physical or chemicalprocess, Economics evolutions ....

Complexity:I Big Code: many different numerical methods elaborated during a large

time.I Many input: vectorial, functional, uncertain.I Many output: vectorial, functional.I Expensive: from some minutes up to several daysI Example functional code CERES from CEA CERES

Need methods to enlight.

Fabrice Gamboa (IMT Toulouse) Sensitivity analysis and computer code experiments 1th de June 7 / 44

Page 17: Sensitivity analysis and computer code experimentsgamboa/newwab/fichiers...Workshop on Applied Statistics UTB Cartagena Fabrice Gamboa (IMT Toulouse) Sensitivity analysis and computer

Frame: Black box

Today conference: vectorial input et scalar outputY =output is a number and X =input is a vector of numbers

Black box model

Sortie Y le cour du yen

Entrée X: les prix du café et de la main d'oeuvre, La météo

Non linear regression model

Y = f (X ).

The code is modeled as an abstract complicated function f

Fabrice Gamboa (IMT Toulouse) Sensitivity analysis and computer code experiments 1th de June 8 / 44

Page 18: Sensitivity analysis and computer code experimentsgamboa/newwab/fichiers...Workshop on Applied Statistics UTB Cartagena Fabrice Gamboa (IMT Toulouse) Sensitivity analysis and computer

Frame: Black box

Today conference: vectorial input et scalar outputY =output is a number and X =input is a vector of numbers

Black box model

Sortie Y le cour du yen

Entrée X: les prix du café et de la main d'oeuvre, La météo

Non linear regression model

Y = f (X ).

The code is modeled as an abstract complicated function f

Fabrice Gamboa (IMT Toulouse) Sensitivity analysis and computer code experiments 1th de June 8 / 44

Page 19: Sensitivity analysis and computer code experimentsgamboa/newwab/fichiers...Workshop on Applied Statistics UTB Cartagena Fabrice Gamboa (IMT Toulouse) Sensitivity analysis and computer

Frame: Black box

Today conference: vectorial input et scalar outputY =output is a number and X =input is a vector of numbers

Black box model

Sortie Y le cour du yen

Entrée X: les prix du café et de la main d'oeuvre, La météo

Non linear regression model

Y = f (X ).

The code is modeled as an abstract complicated function f

Fabrice Gamboa (IMT Toulouse) Sensitivity analysis and computer code experiments 1th de June 8 / 44

Page 20: Sensitivity analysis and computer code experimentsgamboa/newwab/fichiers...Workshop on Applied Statistics UTB Cartagena Fabrice Gamboa (IMT Toulouse) Sensitivity analysis and computer

Frame: Black box

Today conference: vectorial input et scalar outputY =output is a number and X =input is a vector of numbers

Black box model

Sortie Y le cour du yen

Entrée X: les prix du café et de la main d'oeuvre, La météo

Non linear regression model

Y = f (X ).

The code is modeled as an abstract complicated function f

Fabrice Gamboa (IMT Toulouse) Sensitivity analysis and computer code experiments 1th de June 8 / 44

Page 21: Sensitivity analysis and computer code experimentsgamboa/newwab/fichiers...Workshop on Applied Statistics UTB Cartagena Fabrice Gamboa (IMT Toulouse) Sensitivity analysis and computer

Frame: Black box

Today conference: vectorial input et scalar outputY =output is a number and X =input is a vector of numbers

Black box model

Sortie Y le cour du yen

Entrée X: les prix du café et de la main d'oeuvre, La météo

Non linear regression model

Y = f (X ).

The code is modeled as an abstract complicated function f

Fabrice Gamboa (IMT Toulouse) Sensitivity analysis and computer code experiments 1th de June 8 / 44

Page 22: Sensitivity analysis and computer code experimentsgamboa/newwab/fichiers...Workshop on Applied Statistics UTB Cartagena Fabrice Gamboa (IMT Toulouse) Sensitivity analysis and computer

Gains of stochastic methods

Take into account random characteristic of some components of XI Physical measures with error: Pressure, temperature...I unknown physical constants: wave in random media.I Allow to model multimodal distributions: double mode...

−3 −2 −1 0 1 2 30

0.05

0.1

0.15

0.2

0.25

0.3

0.35

0.4

−3 −2 −1 0 1 2 30

0.05

0.1

0.15

0.2

0.25

0.3

0.35

0.4

Method to choose good points: optimal design theory

Parametric and non parametric estimation methods

Fabrice Gamboa (IMT Toulouse) Sensitivity analysis and computer code experiments 1th de June 9 / 44

Page 23: Sensitivity analysis and computer code experimentsgamboa/newwab/fichiers...Workshop on Applied Statistics UTB Cartagena Fabrice Gamboa (IMT Toulouse) Sensitivity analysis and computer

Gains of stochastic methods

Take into account random characteristic of some componentsof X

I Physical measures with error: Pressure, temperature...I unknown physical constants: wave in random media.I Allow to model multimodal distributions: double mode...

−3 −2 −1 0 1 2 30

0.05

0.1

0.15

0.2

0.25

0.3

0.35

0.4

−3 −2 −1 0 1 2 30

0.05

0.1

0.15

0.2

0.25

0.3

0.35

0.4

Method to choose good points: optimal design theory

Parametric and non parametric estimation methods

Fabrice Gamboa (IMT Toulouse) Sensitivity analysis and computer code experiments 1th de June 9 / 44

Page 24: Sensitivity analysis and computer code experimentsgamboa/newwab/fichiers...Workshop on Applied Statistics UTB Cartagena Fabrice Gamboa (IMT Toulouse) Sensitivity analysis and computer

Gains of stochastic methods

Take into account random characteristic of some components of XI Physical measures with error: Pressure, temperature...I unknown physical constants: wave in random media.

I Allow to model multimodal distributions: double mode...

−3 −2 −1 0 1 2 30

0.05

0.1

0.15

0.2

0.25

0.3

0.35

0.4

−3 −2 −1 0 1 2 30

0.05

0.1

0.15

0.2

0.25

0.3

0.35

0.4

Method to choose good points: optimal design theory

Parametric and non parametric estimation methods

Fabrice Gamboa (IMT Toulouse) Sensitivity analysis and computer code experiments 1th de June 9 / 44

Page 25: Sensitivity analysis and computer code experimentsgamboa/newwab/fichiers...Workshop on Applied Statistics UTB Cartagena Fabrice Gamboa (IMT Toulouse) Sensitivity analysis and computer

Gains of stochastic methods

Take into account random characteristic of some components of XI Physical measures with error: Pressure, temperature...I unknown physical constants: wave in random media.I Allow to model multimodal distributions: double mode...

−3 −2 −1 0 1 2 30

0.05

0.1

0.15

0.2

0.25

0.3

0.35

0.4

−3 −2 −1 0 1 2 30

0.05

0.1

0.15

0.2

0.25

0.3

0.35

0.4

Method to choose good points: optimal design theory

Parametric and non parametric estimation methods

Fabrice Gamboa (IMT Toulouse) Sensitivity analysis and computer code experiments 1th de June 9 / 44

Page 26: Sensitivity analysis and computer code experimentsgamboa/newwab/fichiers...Workshop on Applied Statistics UTB Cartagena Fabrice Gamboa (IMT Toulouse) Sensitivity analysis and computer

Gains of stochastic methods

Take into account random characteristic of some components of XI Physical measures with error: Pressure, temperature...I unknown physical constants: wave in random media.I Allow to model multimodal distributions: double mode...

−3 −2 −1 0 1 2 30

0.05

0.1

0.15

0.2

0.25

0.3

0.35

0.4

−3 −2 −1 0 1 2 30

0.05

0.1

0.15

0.2

0.25

0.3

0.35

0.4

Method to choose good points: optimal design theory

Parametric and non parametric estimation methods

Fabrice Gamboa (IMT Toulouse) Sensitivity analysis and computer code experiments 1th de June 9 / 44

Page 27: Sensitivity analysis and computer code experimentsgamboa/newwab/fichiers...Workshop on Applied Statistics UTB Cartagena Fabrice Gamboa (IMT Toulouse) Sensitivity analysis and computer

Presented techniques

Sobol sensitivity analysisI Within the (random) components of the input (vector) X what are

those having most influence on the output?I ”influence” is quantified in terms of ”variability” induced by this

component.I Global analysis taking into account the whole distribution of the input.

Response surface methods (Reduced model)I Replace the complicated code by a simple one easy to build from a

short sample y cheap in CPU.I Goal: optimization, computation of a critical threshold, sensitivity

analysis...I Discussed method: come from geostatistics (KRIGING).

Fabrice Gamboa (IMT Toulouse) Sensitivity analysis and computer code experiments 1th de June 10 / 44

Page 28: Sensitivity analysis and computer code experimentsgamboa/newwab/fichiers...Workshop on Applied Statistics UTB Cartagena Fabrice Gamboa (IMT Toulouse) Sensitivity analysis and computer

Presented techniques

Sobol sensitivity analysis

I Within the (random) components of the input (vector) X what arethose having most influence on the output?

I ”influence” is quantified in terms of ”variability” induced by thiscomponent.

I Global analysis taking into account the whole distribution of the input.

Response surface methods (Reduced model)I Replace the complicated code by a simple one easy to build from a

short sample y cheap in CPU.I Goal: optimization, computation of a critical threshold, sensitivity

analysis...I Discussed method: come from geostatistics (KRIGING).

Fabrice Gamboa (IMT Toulouse) Sensitivity analysis and computer code experiments 1th de June 10 / 44

Page 29: Sensitivity analysis and computer code experimentsgamboa/newwab/fichiers...Workshop on Applied Statistics UTB Cartagena Fabrice Gamboa (IMT Toulouse) Sensitivity analysis and computer

Presented techniques

Sobol sensitivity analysisI Within the (random) components of the input (vector) X what are

those having most influence on the output?I ”influence” is quantified in terms of ”variability” induced by this

component.I Global analysis taking into account the whole distribution of the input.

Response surface methods (Reduced model)

I Replace the complicated code by a simple one easy to build from ashort sample y cheap in CPU.

I Goal: optimization, computation of a critical threshold, sensitivityanalysis...

I Discussed method: come from geostatistics (KRIGING).

Fabrice Gamboa (IMT Toulouse) Sensitivity analysis and computer code experiments 1th de June 10 / 44

Page 30: Sensitivity analysis and computer code experimentsgamboa/newwab/fichiers...Workshop on Applied Statistics UTB Cartagena Fabrice Gamboa (IMT Toulouse) Sensitivity analysis and computer

Presented techniques

Sobol sensitivity analysisI Within the (random) components of the input (vector) X what are

those having most influence on the output?I ”influence” is quantified in terms of ”variability” induced by this

component.I Global analysis taking into account the whole distribution of the input.

Response surface methods (Reduced model)I Replace the complicated code by a simple one easy to build from a

short sample y cheap in CPU.I Goal: optimization, computation of a critical threshold, sensitivity

analysis...I Discussed method: come from geostatistics (KRIGING).

Fabrice Gamboa (IMT Toulouse) Sensitivity analysis and computer code experiments 1th de June 10 / 44

Page 31: Sensitivity analysis and computer code experimentsgamboa/newwab/fichiers...Workshop on Applied Statistics UTB Cartagena Fabrice Gamboa (IMT Toulouse) Sensitivity analysis and computer

Some links I

Research/DeveloppementI GDR CNRS MASCOT NUM http://www.gdr-mascotnum.fr/ ,I OPUS- ANR project big open source plateform including tools for

codes.I COSTA BRAVA- ANR project functional input or output coupling

random and deterministic methods.

SoftwaresI R package DICE (IRSN, EDF, Renault, ...).

http://crocus.emse.fr/diceI MATLAB Kriging package: DACE

http://www2.imm.dtu.dk/ hbn/dace/I Free software of O’ Oakley and O’ Hagan computation of sensitivity

indices: GEMhttp://www.tonyohagan.co.uk/academic/GEM/index.html

Fabrice Gamboa (IMT Toulouse) Sensitivity analysis and computer code experiments 1th de June 11 / 44

Page 32: Sensitivity analysis and computer code experimentsgamboa/newwab/fichiers...Workshop on Applied Statistics UTB Cartagena Fabrice Gamboa (IMT Toulouse) Sensitivity analysis and computer

Some links I

Research/Developpement

I GDR CNRS MASCOT NUM http://www.gdr-mascotnum.fr/ ,I OPUS- ANR project big open source plateform including tools for

codes.I COSTA BRAVA- ANR project functional input or output coupling

random and deterministic methods.

SoftwaresI R package DICE (IRSN, EDF, Renault, ...).

http://crocus.emse.fr/diceI MATLAB Kriging package: DACE

http://www2.imm.dtu.dk/ hbn/dace/I Free software of O’ Oakley and O’ Hagan computation of sensitivity

indices: GEMhttp://www.tonyohagan.co.uk/academic/GEM/index.html

Fabrice Gamboa (IMT Toulouse) Sensitivity analysis and computer code experiments 1th de June 11 / 44

Page 33: Sensitivity analysis and computer code experimentsgamboa/newwab/fichiers...Workshop on Applied Statistics UTB Cartagena Fabrice Gamboa (IMT Toulouse) Sensitivity analysis and computer

Some links I

Research/DeveloppementI GDR CNRS MASCOT NUM http://www.gdr-mascotnum.fr/ ,I OPUS- ANR project big open source plateform including tools for

codes.I COSTA BRAVA- ANR project functional input or output coupling

random and deterministic methods.

Softwares

I R package DICE (IRSN, EDF, Renault, ...).http://crocus.emse.fr/dice

I MATLAB Kriging package: DACEhttp://www2.imm.dtu.dk/ hbn/dace/

I Free software of O’ Oakley and O’ Hagan computation of sensitivityindices: GEMhttp://www.tonyohagan.co.uk/academic/GEM/index.html

Fabrice Gamboa (IMT Toulouse) Sensitivity analysis and computer code experiments 1th de June 11 / 44

Page 34: Sensitivity analysis and computer code experimentsgamboa/newwab/fichiers...Workshop on Applied Statistics UTB Cartagena Fabrice Gamboa (IMT Toulouse) Sensitivity analysis and computer

Some links I

Research/DeveloppementI GDR CNRS MASCOT NUM http://www.gdr-mascotnum.fr/ ,I OPUS- ANR project big open source plateform including tools for

codes.I COSTA BRAVA- ANR project functional input or output coupling

random and deterministic methods.

SoftwaresI R package DICE (IRSN, EDF, Renault, ...).

http://crocus.emse.fr/diceI MATLAB Kriging package: DACE

http://www2.imm.dtu.dk/ hbn/dace/I Free software of O’ Oakley and O’ Hagan computation of sensitivity

indices: GEMhttp://www.tonyohagan.co.uk/academic/GEM/index.html

Fabrice Gamboa (IMT Toulouse) Sensitivity analysis and computer code experiments 1th de June 11 / 44

Page 35: Sensitivity analysis and computer code experimentsgamboa/newwab/fichiers...Workshop on Applied Statistics UTB Cartagena Fabrice Gamboa (IMT Toulouse) Sensitivity analysis and computer

Some links II

Some references to begin withI Linear and non linear regression: Azais, Antoniadis et alI Computer code experiments : Santner et alI Sensitivity analysis: Tarantolla et al, pioneering papers of Sobol,

AntoniadisI Kriging: Stein, Cressie

Fabrice Gamboa (IMT Toulouse) Sensitivity analysis and computer code experiments 1th de June 12 / 44

Page 36: Sensitivity analysis and computer code experimentsgamboa/newwab/fichiers...Workshop on Applied Statistics UTB Cartagena Fabrice Gamboa (IMT Toulouse) Sensitivity analysis and computer

Some links II

Some references to begin with

I Linear and non linear regression: Azais, Antoniadis et alI Computer code experiments : Santner et alI Sensitivity analysis: Tarantolla et al, pioneering papers of Sobol,

AntoniadisI Kriging: Stein, Cressie

Fabrice Gamboa (IMT Toulouse) Sensitivity analysis and computer code experiments 1th de June 12 / 44

Page 37: Sensitivity analysis and computer code experimentsgamboa/newwab/fichiers...Workshop on Applied Statistics UTB Cartagena Fabrice Gamboa (IMT Toulouse) Sensitivity analysis and computer

Some links II

Some references to begin withI Linear and non linear regression: Azais, Antoniadis et alI Computer code experiments : Santner et alI Sensitivity analysis: Tarantolla et al, pioneering papers of Sobol,

AntoniadisI Kriging: Stein, Cressie

Fabrice Gamboa (IMT Toulouse) Sensitivity analysis and computer code experiments 1th de June 12 / 44

Page 38: Sensitivity analysis and computer code experimentsgamboa/newwab/fichiers...Workshop on Applied Statistics UTB Cartagena Fabrice Gamboa (IMT Toulouse) Sensitivity analysis and computer

A toy model

Rastrigin function

f (x) = f (x1, x2) = 8‖x‖2 − 10(cos(4πx1) + cos(8πx2))

See http://www.gdr-mascotnum.fr/doku.php?id=benchmarks

Fabrice Gamboa (IMT Toulouse) Sensitivity analysis and computer code experiments 1th de June 13 / 44

Page 39: Sensitivity analysis and computer code experimentsgamboa/newwab/fichiers...Workshop on Applied Statistics UTB Cartagena Fabrice Gamboa (IMT Toulouse) Sensitivity analysis and computer

Recall the goal

ModelY = f (X ).

Sortie Y le cour du yen

Entrée X: les prix du café et de la main d'oeuvre, La météo

X = (Xi )i=1...k input vector

Y output (real number).

Goal: Which of the components of X are more influent on Y ?

Fabrice Gamboa (IMT Toulouse) Sensitivity analysis and computer code experiments 1th de June 14 / 44

Page 40: Sensitivity analysis and computer code experimentsgamboa/newwab/fichiers...Workshop on Applied Statistics UTB Cartagena Fabrice Gamboa (IMT Toulouse) Sensitivity analysis and computer

Deterministic methods

Roughltly speaking are based on derivative of f :

x being a point where the code is usually used

the influence of Xj is quantified using ( ∂f∂Xj)(x).

Effective computation of the derivative

Finite differences

(∂f

∂Xj)(x) ≈ h−1

[f (x j ,h+)− f (x j ,h−)

]Adjoint methods: the derivative is directly computed by the code(PDE models).

Fabrice Gamboa (IMT Toulouse) Sensitivity analysis and computer code experiments 1th de June 15 / 44

Page 41: Sensitivity analysis and computer code experimentsgamboa/newwab/fichiers...Workshop on Applied Statistics UTB Cartagena Fabrice Gamboa (IMT Toulouse) Sensitivity analysis and computer

Deterministic methods

Roughltly speaking are based on derivative of f :

x being a point where the code is usually used

the influence of Xj is quantified using ( ∂f∂Xj)(x).

Effective computation of the derivative

Finite differences

(∂f

∂Xj)(x) ≈ h−1

[f (x j ,h+)− f (x j ,h−)

]Adjoint methods: the derivative is directly computed by the code(PDE models).

Fabrice Gamboa (IMT Toulouse) Sensitivity analysis and computer code experiments 1th de June 15 / 44

Page 42: Sensitivity analysis and computer code experimentsgamboa/newwab/fichiers...Workshop on Applied Statistics UTB Cartagena Fabrice Gamboa (IMT Toulouse) Sensitivity analysis and computer

Deterministic methods

Roughltly speaking are based on derivative of f :

x being a point where the code is usually used

the influence of Xj is quantified using ( ∂f∂Xj)(x).

Effective computation of the derivative

Finite differences

(∂f

∂Xj)(x) ≈ h−1

[f (x j ,h+)− f (x j ,h−)

]Adjoint methods: the derivative is directly computed by the code(PDE models).

Fabrice Gamboa (IMT Toulouse) Sensitivity analysis and computer code experiments 1th de June 15 / 44

Page 43: Sensitivity analysis and computer code experimentsgamboa/newwab/fichiers...Workshop on Applied Statistics UTB Cartagena Fabrice Gamboa (IMT Toulouse) Sensitivity analysis and computer

Deterministic methods

Roughltly speaking are based on derivative of f :

x being a point where the code is usually used

the influence of Xj is quantified using ( ∂f∂Xj)(x).

Effective computation of the derivative

Finite differences

(∂f

∂Xj)(x) ≈ h−1

[f (x j ,h+)− f (x j ,h−)

]

Adjoint methods: the derivative is directly computed by the code(PDE models).

Fabrice Gamboa (IMT Toulouse) Sensitivity analysis and computer code experiments 1th de June 15 / 44

Page 44: Sensitivity analysis and computer code experimentsgamboa/newwab/fichiers...Workshop on Applied Statistics UTB Cartagena Fabrice Gamboa (IMT Toulouse) Sensitivity analysis and computer

Deterministic methods

Roughltly speaking are based on derivative of f :

x being a point where the code is usually used

the influence of Xj is quantified using ( ∂f∂Xj)(x).

Effective computation of the derivative

Finite differences

(∂f

∂Xj)(x) ≈ h−1

[f (x j ,h+)− f (x j ,h−)

]Adjoint methods: the derivative is directly computed by the code(PDE models).

Fabrice Gamboa (IMT Toulouse) Sensitivity analysis and computer code experiments 1th de June 15 / 44

Page 45: Sensitivity analysis and computer code experimentsgamboa/newwab/fichiers...Workshop on Applied Statistics UTB Cartagena Fabrice Gamboa (IMT Toulouse) Sensitivity analysis and computer

Deterministic methods-toy model

Rastrigin function

f (x) = f (x1, x2) = 8‖x‖2 − 10(cos(4πx1) + cos(8πx2))

The derivative method is quite unstable.

Fabrice Gamboa (IMT Toulouse) Sensitivity analysis and computer code experiments 1th de June 16 / 44

Page 46: Sensitivity analysis and computer code experimentsgamboa/newwab/fichiers...Workshop on Applied Statistics UTB Cartagena Fabrice Gamboa (IMT Toulouse) Sensitivity analysis and computer

Deterministic methods-toy model

Rastrigin function

f (x) = f (x1, x2) = 8‖x‖2 − 10(cos(4πx1) + cos(8πx2))

The derivative method is quite unstable.

Fabrice Gamboa (IMT Toulouse) Sensitivity analysis and computer code experiments 1th de June 16 / 44

Page 47: Sensitivity analysis and computer code experimentsgamboa/newwab/fichiers...Workshop on Applied Statistics UTB Cartagena Fabrice Gamboa (IMT Toulouse) Sensitivity analysis and computer

A first insight in probability theory: Random variables

Probability distributionI Z random variable on R: most often with density. Repartition of Z is

described by a function, (”mass function ”).

I Random vector on R2

I Generalization: random vector on Rk . Example multivariate (centered)Gaussian distribution with density

1

(2π)k2

√det Γ

exp[1

2zTΓ−1z ].

Independence of random variables (Z1,Z2): observing Z1 give noinformation on the distribution of Z2.

Fabrice Gamboa (IMT Toulouse) Sensitivity analysis and computer code experiments 1th de June 17 / 44

Page 48: Sensitivity analysis and computer code experimentsgamboa/newwab/fichiers...Workshop on Applied Statistics UTB Cartagena Fabrice Gamboa (IMT Toulouse) Sensitivity analysis and computer

A first insight in probability theory: Expectation, Variance

Z a random variable having distribution F .

Expectation of a random variable: E(Z )I Gravity centerI Constant that explains the best the random variable.I Projection on constant random variables

Variance of a random variable: Var(Z )I Inertia momentI Magnitud of the fluctuactions around the meanI Squared norm of the random variable after having taken off the mean

effect

Pythagora’s Theorem

E(Z 2) = ‖Z‖2 = ‖E(Z )‖2 + ‖Z − E(Z )‖2 = E(Z )2 + Var(Z )

Var(Z ) = E(Z 2)− E(Z )2.

Fabrice Gamboa (IMT Toulouse) Sensitivity analysis and computer code experiments 1th de June 18 / 44

Page 49: Sensitivity analysis and computer code experimentsgamboa/newwab/fichiers...Workshop on Applied Statistics UTB Cartagena Fabrice Gamboa (IMT Toulouse) Sensitivity analysis and computer

Distribution examples : Expectation, Variance

The most popular: Gaussian distribution (m, σ2)I density on R

g(z) =1√2πσ

exp

[− (z −m)2

2σ2

].

I Expectation

E(Z ) =

∫ +∞

−∞zg(z)dz =

∫ +∞

−∞

z√2πσ

exp

[− (z −m)2

2σ2

]dz = m.

I Variance

Var(Z ) = E[(Z − E(Z )2)2] = E(Z 2)− [E(Z )]2 = σ2.

Fabrice Gamboa (IMT Toulouse) Sensitivity analysis and computer code experiments 1th de June 19 / 44

Page 50: Sensitivity analysis and computer code experimentsgamboa/newwab/fichiers...Workshop on Applied Statistics UTB Cartagena Fabrice Gamboa (IMT Toulouse) Sensitivity analysis and computer

The most random: Uniform on [zmin, zmax]I density on R

g(z) =1[zmin,zmax](z)

zmax − zmin.

I Expectation

E(Z ) =

∫ zmax

zmin

zg(z)dx =

∫ zmax

zmin

zdz =zmin + zmax

2

I Variance

Var(Z ) = E[(Z − E(Z )2)2] = E(Z 2)− [E(Z )]2 =(zmax − zmin)2

12.

Fabrice Gamboa (IMT Toulouse) Sensitivity analysis and computer code experiments 1th de June 20 / 44

Page 51: Sensitivity analysis and computer code experimentsgamboa/newwab/fichiers...Workshop on Applied Statistics UTB Cartagena Fabrice Gamboa (IMT Toulouse) Sensitivity analysis and computer

A first insight in probability theory: Conditionalexpectation

(Z1,Z2) a random vector

Conditional expectation of Z2 knowing Z1): E(Z2|Z1)I Z1 = z1 has been observed how one can predict the best Z2?I What is the best function of Z1 to explain Z2?I Projection of Z2 on functions of Z1.

ExamplesI E(Z2|Z1) = E(Z2) when (Z1,Z2) are independent random variablesI E(Z2|Z1) = ρZ1 for a centered Gaussian vector

Fabrice Gamboa (IMT Toulouse) Sensitivity analysis and computer code experiments 1th de June 21 / 44

Page 52: Sensitivity analysis and computer code experimentsgamboa/newwab/fichiers...Workshop on Applied Statistics UTB Cartagena Fabrice Gamboa (IMT Toulouse) Sensitivity analysis and computer

Some interesting facts for E(Z2|Z1)I E[E(Z2|Z1)] = E[Z2]I E[ψ(Z1)Z2|Z1] = ψ(Z1)E(Z2|Z1)I Pythagora’s Theorem

E[Z 22 ] = E[E(Z2|Z1)2] + E[(Z2 − E(Z2|Z1))2]

taking off [E(Z2)]2

Var(Z2) = Var[E(Z2|Z1)] + E[(Z2 − E(Z2|Z1))2].

Of course, it is possible to generalize the notion of conditional expectationfor a vector (Z1 is a random vector).

Fabrice Gamboa (IMT Toulouse) Sensitivity analysis and computer code experiments 1th de June 22 / 44

Page 53: Sensitivity analysis and computer code experimentsgamboa/newwab/fichiers...Workshop on Applied Statistics UTB Cartagena Fabrice Gamboa (IMT Toulouse) Sensitivity analysis and computer

Example toy model

Rastrigin function

Y = f (X ) = f (X1,X2) = 8‖X‖2 − 10(cos(4πX1) + cos(8πX2))

Fabrice Gamboa (IMT Toulouse) Sensitivity analysis and computer code experiments 1th de June 23 / 44

Page 54: Sensitivity analysis and computer code experimentsgamboa/newwab/fichiers...Workshop on Applied Statistics UTB Cartagena Fabrice Gamboa (IMT Toulouse) Sensitivity analysis and computer

Example toy model

Assume that X1 ∼ U([0, 1]) et X2 ∼ U([0, 2])

E(Y |X1) = 8X 21 − 10 cos(4πX1) +

32

3

E(Y |X2) = 8X 22 − 10 cos(8πX2) +

8

3

Fabrice Gamboa (IMT Toulouse) Sensitivity analysis and computer code experiments 1th de June 24 / 44

Page 55: Sensitivity analysis and computer code experimentsgamboa/newwab/fichiers...Workshop on Applied Statistics UTB Cartagena Fabrice Gamboa (IMT Toulouse) Sensitivity analysis and computer

An important example of vectorial conditioningCentered Gaussian model

ZT = (Z1,Z2)T = (Z 11 , . . .Z

l1,Z2)

Gaussian vector with density

1

(2π)k2

√det Γ

exp[1

2zTΓ−1z ].

Γ is the covariance matrix of the random vector Z (assumed to beinvertible):

Γ =

(ΓZ1 cT

Z1,Z2

cZ1,Z2 σ2Z2

)

ΓZ1 is the covariance matrix of the random vector Z1,

cZ1,Z2 is the covariance vector between Z1 and Z2 (row vector),

σ2Z2is the variance of Z2.

Fabrice Gamboa (IMT Toulouse) Sensitivity analysis and computer code experiments 1th de June 25 / 44

Page 56: Sensitivity analysis and computer code experimentsgamboa/newwab/fichiers...Workshop on Applied Statistics UTB Cartagena Fabrice Gamboa (IMT Toulouse) Sensitivity analysis and computer

Centered Gaussian model

Theorem

E(Z2|Z1) = cZ1,Z2Γ−1Z1Z1,

E[Z2 − E(Z2|Z1)]2 = σ2Z2− cZ1,Z2Γ−1Z1

cTZ1,Z2

.

Linear prediction,

1-d example E(Z2|Z1) = ρZ1,

Kalman filter=recursive formulation of the previous theorem

Fabrice Gamboa (IMT Toulouse) Sensitivity analysis and computer code experiments 1th de June 26 / 44

Page 57: Sensitivity analysis and computer code experimentsgamboa/newwab/fichiers...Workshop on Applied Statistics UTB Cartagena Fabrice Gamboa (IMT Toulouse) Sensitivity analysis and computer

Sobol methodModel

Y = f (X ).

We will quantify the stochastic influence of each input variables usingprevious projections:

Definition

Sobol indices for the output Y

First order indice for the input Xi

Si =Var(E[Y |Xi ])

Var(Y )

2nd order indice for the inputs Xi ,Xj)

Si ,j =Var(E[Y |Xi ,Xj ])

Var(Y )− Si − Sj

Si ,j Influence of the joint inputs Xi et Xj (marginal effects erased).Fabrice Gamboa (IMT Toulouse) Sensitivity analysis and computer code experiments 1th de June 27 / 44

Page 58: Sensitivity analysis and computer code experimentsgamboa/newwab/fichiers...Workshop on Applied Statistics UTB Cartagena Fabrice Gamboa (IMT Toulouse) Sensitivity analysis and computer

Sobol-Antoniadis (Hoeffding) Decomposition

Generalization: third order for the input Xi ,Xj ,Xl

Si ,j ,l =Var(E[Y |Xi ,Xj ,Xl ])

Var(Y )−

∑i1<i2∈{i ,j ,l}

Si1,i2 + Si + Sj + Sl

Si ,j ,l joint influence of Xi , Xj et Xk (marginal effects erased).

Theorem (Sobol-Antoniadis-Hoefding)

Assume that. X1,X2, . . . ,Xk are independent. then

1 =∑

Sijl ...

Fabrice Gamboa (IMT Toulouse) Sensitivity analysis and computer code experiments 1th de June 28 / 44

Page 59: Sensitivity analysis and computer code experimentsgamboa/newwab/fichiers...Workshop on Applied Statistics UTB Cartagena Fabrice Gamboa (IMT Toulouse) Sensitivity analysis and computer

Sobol indices estimation

Monte Carlo methods,

Quasi Monte Carlo methods: FAST,

Gaussian methods metamoddeling: Kriging O Oakley et al,

Mathematical Statistics ANR COSTA BRAVA,

Fabrice Gamboa (IMT Toulouse) Sensitivity analysis and computer code experiments 1th de June 29 / 44

Page 60: Sensitivity analysis and computer code experimentsgamboa/newwab/fichiers...Workshop on Applied Statistics UTB Cartagena Fabrice Gamboa (IMT Toulouse) Sensitivity analysis and computer

Recall the goal

ModelY = f (X ).

Sortie Y le cour du yen

Entrée X: les prix du café et de la main d'oeuvre, La météo

X = (Xi )i=1...k is the input vector

Y is the output (real number).

Goal: Build a function f (cheap in terms of CPU) to emulate(approximate, estimate) f .

Fabrice Gamboa (IMT Toulouse) Sensitivity analysis and computer code experiments 1th de June 30 / 44

Page 61: Sensitivity analysis and computer code experimentsgamboa/newwab/fichiers...Workshop on Applied Statistics UTB Cartagena Fabrice Gamboa (IMT Toulouse) Sensitivity analysis and computer

Several approachesModel

Y = f (X ).

Sortie Y le cour du yen

Entrée X: les prix du café et de la main d'oeuvre, La météo

Goal: Build a function f (cheap in terms of CPU) to emulate(approximate, estimate) f .

Approximation of f by a linear combination of given functions (e.g.Fourier, chaos or orthogonal polynomials,...),

The same but non linear approximation (neural networks, nonparametric statistics...),

Discussed method: Bayesian approach using Gaussian processes(fields).

Fabrice Gamboa (IMT Toulouse) Sensitivity analysis and computer code experiments 1th de June 31 / 44

Page 62: Sensitivity analysis and computer code experimentsgamboa/newwab/fichiers...Workshop on Applied Statistics UTB Cartagena Fabrice Gamboa (IMT Toulouse) Sensitivity analysis and computer

A short journey towards Gaussian fields

Gaussian vector Z = (Zi )i=1...k : finite number of componentsRandom Gaussian field Z = (Zt)t∈T : many components as the elementsof T (T = Z,R,C,Rk).Gaussian vector: the probability density is

1

(2π)k2

√det Γ

exp[1

2(z −m)TΓ−1(z −m)].

The important parameters are:

The mean (expectation) m vector of Rk ,

The covariance matrix Γ (γi ,j = cov(Zi ,Zj))

Fabrice Gamboa (IMT Toulouse) Sensitivity analysis and computer code experiments 1th de June 32 / 44

Page 63: Sensitivity analysis and computer code experimentsgamboa/newwab/fichiers...Workshop on Applied Statistics UTB Cartagena Fabrice Gamboa (IMT Toulouse) Sensitivity analysis and computer

Random Gaussian field

Random Gaussian field: for any sample points t1, t2, . . . tp ∈ T , the vector

Z := (Zti )i=1...p

is a Gaussian vector. The important parameters are:

The mean function m(t) = E(Zt), t ∈ T ,

The covariance function γ(t, t ′) = cov(Zt ,Zt′), t, t′ ∈ T

Fabrice Gamboa (IMT Toulouse) Sensitivity analysis and computer code experiments 1th de June 33 / 44

Page 64: Sensitivity analysis and computer code experimentsgamboa/newwab/fichiers...Workshop on Applied Statistics UTB Cartagena Fabrice Gamboa (IMT Toulouse) Sensitivity analysis and computer

STATIONARY Gaussian field

STATIONARY Gaussian field: modeling an unmoving dynamic (in space ortime) phenomena Translation on the parameters:

The mean function is constant m(t) = m, t ∈ T ,

The covariance function only depends on t − t ′

γ(t, t ′) = cov(Zt ,Zt′) = r(t − t ′) .

Classical frame

Vanishing mean function m(t) = 0, t ∈ T ,

The covariance function r(u) depends on some parameter θ. Forexample, assuming isotropy r(u) = exp(h‖u‖α) u ∈ T . Here, theparameter is θ = (h, α) (h > 0, α ≥ 2).

Fabrice Gamboa (IMT Toulouse) Sensitivity analysis and computer code experiments 1th de June 34 / 44

Page 65: Sensitivity analysis and computer code experimentsgamboa/newwab/fichiers...Workshop on Applied Statistics UTB Cartagena Fabrice Gamboa (IMT Toulouse) Sensitivity analysis and computer

Example modeling the seaSTATIONARY Gaussian process on R2 with an ad hoc covariance function(See the excellent book of Azais-Wchebor)

Fabrice Gamboa (IMT Toulouse) Sensitivity analysis and computer code experiments 1th de June 35 / 44

Page 66: Sensitivity analysis and computer code experimentsgamboa/newwab/fichiers...Workshop on Applied Statistics UTB Cartagena Fabrice Gamboa (IMT Toulouse) Sensitivity analysis and computer

Kriging 0

Bayesian model in geostatistics

f (x) = αθ(x) + Zx(ν)(x ∈ T )

θ and ν are unknown vectorial parameters

αθ a simple mean function (trend): 〈θ, x〉(Zx)x∈T centered stationary Gaussian field rν(x), x ∈ T

Fabrice Gamboa (IMT Toulouse) Sensitivity analysis and computer code experiments 1th de June 36 / 44

Page 67: Sensitivity analysis and computer code experimentsgamboa/newwab/fichiers...Workshop on Applied Statistics UTB Cartagena Fabrice Gamboa (IMT Toulouse) Sensitivity analysis and computer

Kriging 0

Bayesian model in geostatistics

f (x) = αθ(x) + Zx(ν)(x ∈ T )

θ and ν are unknown vectorial parameters

αθ a simple mean function (trend): 〈θ, x〉(Zx)x∈T centered stationary Gaussian field rν(x), x ∈ T

Fabrice Gamboa (IMT Toulouse) Sensitivity analysis and computer code experiments 1th de June 36 / 44

Page 68: Sensitivity analysis and computer code experimentsgamboa/newwab/fichiers...Workshop on Applied Statistics UTB Cartagena Fabrice Gamboa (IMT Toulouse) Sensitivity analysis and computer

Kriging 0

Bayesian model in geostatistics

f (x) = αθ(x) + Zx(ν)(x ∈ T )

θ and ν are unknown vectorial parameters

αθ a simple mean function (trend): 〈θ, x〉(Zx)x∈T centered stationary Gaussian field rν(x), x ∈ T

Fabrice Gamboa (IMT Toulouse) Sensitivity analysis and computer code experiments 1th de June 36 / 44

Page 69: Sensitivity analysis and computer code experimentsgamboa/newwab/fichiers...Workshop on Applied Statistics UTB Cartagena Fabrice Gamboa (IMT Toulouse) Sensitivity analysis and computer

Kriging 0

Bayesian model in geostatistics

f (x) = αθ(x) + Zx(ν)(x ∈ T )

θ and ν are unknown vectorial parameters

αθ a simple mean function (trend): 〈θ, x〉

(Zx)x∈T centered stationary Gaussian field rν(x), x ∈ T

Fabrice Gamboa (IMT Toulouse) Sensitivity analysis and computer code experiments 1th de June 36 / 44

Page 70: Sensitivity analysis and computer code experimentsgamboa/newwab/fichiers...Workshop on Applied Statistics UTB Cartagena Fabrice Gamboa (IMT Toulouse) Sensitivity analysis and computer

Kriging 0

Bayesian model in geostatistics

f (x) = αθ(x) + Zx(ν)(x ∈ T )

θ and ν are unknown vectorial parameters

αθ a simple mean function (trend): 〈θ, x〉(Zx)x∈T centered stationary Gaussian field rν(x), x ∈ T

Fabrice Gamboa (IMT Toulouse) Sensitivity analysis and computer code experiments 1th de June 36 / 44

Page 71: Sensitivity analysis and computer code experimentsgamboa/newwab/fichiers...Workshop on Applied Statistics UTB Cartagena Fabrice Gamboa (IMT Toulouse) Sensitivity analysis and computer

Kriging I

Main idea=THE COMPUTER CODE IS THE REALIZATION OF AGAUSSIAN FIELD TRAJECTORY

The model has been played randomly

Y (x) = f (x)(x deterministic ∈ T )

Sortie Y le cour du yen

Entrée X: les prix du café et de la main d'oeuvre, La météo

Fabrice Gamboa (IMT Toulouse) Sensitivity analysis and computer code experiments 1th de June 37 / 44

Page 72: Sensitivity analysis and computer code experimentsgamboa/newwab/fichiers...Workshop on Applied Statistics UTB Cartagena Fabrice Gamboa (IMT Toulouse) Sensitivity analysis and computer

Kriging I

Main idea=THE COMPUTER CODE IS THE REALIZATION OF AGAUSSIAN FIELD TRAJECTORYThe model has been played randomly

Y (x) = f (x)(x deterministic ∈ T )

Sortie Y le cour du yen

Entrée X: les prix du café et de la main d'oeuvre, La météo

Fabrice Gamboa (IMT Toulouse) Sensitivity analysis and computer code experiments 1th de June 37 / 44

Page 73: Sensitivity analysis and computer code experimentsgamboa/newwab/fichiers...Workshop on Applied Statistics UTB Cartagena Fabrice Gamboa (IMT Toulouse) Sensitivity analysis and computer

Kriging I

Main idea=THE COMPUTER CODE IS THE REALIZATION OF AGAUSSIAN FIELD TRAJECTORYThe model has been played randomly

Y (x) = f (x)(x deterministic ∈ T )

Sortie Y le cour du yen

Entrée X: les prix du café et de la main d'oeuvre, La météo

Fabrice Gamboa (IMT Toulouse) Sensitivity analysis and computer code experiments 1th de June 37 / 44

Page 74: Sensitivity analysis and computer code experimentsgamboa/newwab/fichiers...Workshop on Applied Statistics UTB Cartagena Fabrice Gamboa (IMT Toulouse) Sensitivity analysis and computer

Kriging II

Bayesian model for the black box

The model is running on a design x1, . . . xN we have at handf (x1), . . . , f (xN). Model

Y (x) = αθ(x) + Zx(ν)(x ∈ T )

One uses f (x1), . . . , f (xN) to estimate the parameters θ et ν

Maximum likelihood method

Roughtly speaking : least square fit of the parameters with weightfunctions depending on the parameters

Fabrice Gamboa (IMT Toulouse) Sensitivity analysis and computer code experiments 1th de June 38 / 44

Page 75: Sensitivity analysis and computer code experimentsgamboa/newwab/fichiers...Workshop on Applied Statistics UTB Cartagena Fabrice Gamboa (IMT Toulouse) Sensitivity analysis and computer

Kriging II

Bayesian model for the black boxThe model is running on a design x1, . . . xN we have at handf (x1), . . . , f (xN).

Model

Y (x) = αθ(x) + Zx(ν)(x ∈ T )

One uses f (x1), . . . , f (xN) to estimate the parameters θ et ν

Maximum likelihood method

Roughtly speaking : least square fit of the parameters with weightfunctions depending on the parameters

Fabrice Gamboa (IMT Toulouse) Sensitivity analysis and computer code experiments 1th de June 38 / 44

Page 76: Sensitivity analysis and computer code experimentsgamboa/newwab/fichiers...Workshop on Applied Statistics UTB Cartagena Fabrice Gamboa (IMT Toulouse) Sensitivity analysis and computer

Kriging II

Bayesian model for the black boxThe model is running on a design x1, . . . xN we have at handf (x1), . . . , f (xN). Model

Y (x) = αθ(x) + Zx(ν)(x ∈ T )

One uses f (x1), . . . , f (xN) to estimate the parameters θ et ν

Maximum likelihood method

Roughtly speaking : least square fit of the parameters with weightfunctions depending on the parameters

Fabrice Gamboa (IMT Toulouse) Sensitivity analysis and computer code experiments 1th de June 38 / 44

Page 77: Sensitivity analysis and computer code experimentsgamboa/newwab/fichiers...Workshop on Applied Statistics UTB Cartagena Fabrice Gamboa (IMT Toulouse) Sensitivity analysis and computer

Kriging II

Bayesian model for the black boxThe model is running on a design x1, . . . xN we have at handf (x1), . . . , f (xN). Model

Y (x) = αθ(x) + Zx(ν)(x ∈ T )

One uses f (x1), . . . , f (xN) to estimate the parameters θ et ν

Maximum likelihood method

Roughtly speaking : least square fit of the parameters with weightfunctions depending on the parameters

Fabrice Gamboa (IMT Toulouse) Sensitivity analysis and computer code experiments 1th de June 38 / 44

Page 78: Sensitivity analysis and computer code experimentsgamboa/newwab/fichiers...Workshop on Applied Statistics UTB Cartagena Fabrice Gamboa (IMT Toulouse) Sensitivity analysis and computer

Kriging II

Bayesian model for the black boxThe model is running on a design x1, . . . xN we have at handf (x1), . . . , f (xN). Model

Y (x) = αθ(x) + Zx(ν)(x ∈ T )

One uses f (x1), . . . , f (xN) to estimate the parameters θ et ν

Maximum likelihood method

Roughtly speaking : least square fit of the parameters with weightfunctions depending on the parameters

Fabrice Gamboa (IMT Toulouse) Sensitivity analysis and computer code experiments 1th de June 38 / 44

Page 79: Sensitivity analysis and computer code experimentsgamboa/newwab/fichiers...Workshop on Applied Statistics UTB Cartagena Fabrice Gamboa (IMT Toulouse) Sensitivity analysis and computer

Kriging II

Bayesian model for the black boxThe model is running on a design x1, . . . xN we have at handf (x1), . . . , f (xN). Model

Y (x) = αθ(x) + Zx(ν)(x ∈ T )

One uses f (x1), . . . , f (xN) to estimate the parameters θ et ν

Maximum likelihood method

Roughtly speaking : least square fit of the parameters with weightfunctions depending on the parameters

Fabrice Gamboa (IMT Toulouse) Sensitivity analysis and computer code experiments 1th de June 38 / 44

Page 80: Sensitivity analysis and computer code experimentsgamboa/newwab/fichiers...Workshop on Applied Statistics UTB Cartagena Fabrice Gamboa (IMT Toulouse) Sensitivity analysis and computer

Kriging IIIBayesian approach

One have at hand f (x1), . . . , f (xN). Valeurs modeled by parY (x1), . . .Y (xN).

Parameters θ and ν has been previously identified

Gaussian emulator

f (x) = Y (x) = E[Y (x)|Y (x1), . . .Y (xN)]

Very simple formula

Y (x) = αθ(x) + E[Zx |Zx1 , . . .ZxN ]

= αθ(x) + cTx Γ−1N ZN

cx covariance vector of Zx and Zx1 , . . . ,ZxN ,

ΓN covariance matrix between ZN := (Zx1 , . . . ,ZxN )T .

Fabrice Gamboa (IMT Toulouse) Sensitivity analysis and computer code experiments 1th de June 39 / 44

Page 81: Sensitivity analysis and computer code experimentsgamboa/newwab/fichiers...Workshop on Applied Statistics UTB Cartagena Fabrice Gamboa (IMT Toulouse) Sensitivity analysis and computer

Kriging IIIBayesian approach

One have at hand f (x1), . . . , f (xN). Valeurs modeled by parY (x1), . . .Y (xN).

Parameters θ and ν has been previously identified

Gaussian emulator

f (x) = Y (x) = E[Y (x)|Y (x1), . . .Y (xN)]

Very simple formula

Y (x) = αθ(x) + E[Zx |Zx1 , . . .ZxN ]

= αθ(x) + cTx Γ−1N ZN

cx covariance vector of Zx and Zx1 , . . . ,ZxN ,

ΓN covariance matrix between ZN := (Zx1 , . . . ,ZxN )T .

Fabrice Gamboa (IMT Toulouse) Sensitivity analysis and computer code experiments 1th de June 39 / 44

Page 82: Sensitivity analysis and computer code experimentsgamboa/newwab/fichiers...Workshop on Applied Statistics UTB Cartagena Fabrice Gamboa (IMT Toulouse) Sensitivity analysis and computer

Kriging IIIBayesian approach

One have at hand f (x1), . . . , f (xN). Valeurs modeled by parY (x1), . . .Y (xN).

Parameters θ and ν has been previously identified

Gaussian emulator

f (x) = Y (x) = E[Y (x)|Y (x1), . . .Y (xN)]

Very simple formula

Y (x) = αθ(x) + E[Zx |Zx1 , . . .ZxN ]

= αθ(x) + cTx Γ−1N ZN

cx covariance vector of Zx and Zx1 , . . . ,ZxN ,

ΓN covariance matrix between ZN := (Zx1 , . . . ,ZxN )T .

Fabrice Gamboa (IMT Toulouse) Sensitivity analysis and computer code experiments 1th de June 39 / 44

Page 83: Sensitivity analysis and computer code experimentsgamboa/newwab/fichiers...Workshop on Applied Statistics UTB Cartagena Fabrice Gamboa (IMT Toulouse) Sensitivity analysis and computer

Kriging IIIBayesian approach

One have at hand f (x1), . . . , f (xN). Valeurs modeled by parY (x1), . . .Y (xN).

Parameters θ and ν has been previously identified

Gaussian emulator

f (x) = Y (x) = E[Y (x)|Y (x1), . . .Y (xN)]

Very simple formula

Y (x) = αθ(x) + E[Zx |Zx1 , . . .ZxN ]

= αθ(x) + cTx Γ−1N ZN

cx covariance vector of Zx and Zx1 , . . . ,ZxN ,

ΓN covariance matrix between ZN := (Zx1 , . . . ,ZxN )T .

Fabrice Gamboa (IMT Toulouse) Sensitivity analysis and computer code experiments 1th de June 39 / 44

Page 84: Sensitivity analysis and computer code experimentsgamboa/newwab/fichiers...Workshop on Applied Statistics UTB Cartagena Fabrice Gamboa (IMT Toulouse) Sensitivity analysis and computer

Kriging IIIBayesian approach

One have at hand f (x1), . . . , f (xN). Valeurs modeled by parY (x1), . . .Y (xN).

Parameters θ and ν has been previously identified

Gaussian emulator

f (x) = Y (x) = E[Y (x)|Y (x1), . . .Y (xN)]

Very simple formula

Y (x) = αθ(x) + E[Zx |Zx1 , . . .ZxN ]

= αθ(x) + cTx Γ−1N ZN

cx covariance vector of Zx and Zx1 , . . . ,ZxN ,

ΓN covariance matrix between ZN := (Zx1 , . . . ,ZxN )T .

Fabrice Gamboa (IMT Toulouse) Sensitivity analysis and computer code experiments 1th de June 39 / 44

Page 85: Sensitivity analysis and computer code experimentsgamboa/newwab/fichiers...Workshop on Applied Statistics UTB Cartagena Fabrice Gamboa (IMT Toulouse) Sensitivity analysis and computer

Kriging IIIBayesian approach

One have at hand f (x1), . . . , f (xN). Valeurs modeled by parY (x1), . . .Y (xN).

Parameters θ and ν has been previously identified

Gaussian emulator

f (x) = Y (x) = E[Y (x)|Y (x1), . . .Y (xN)]

Very simple formula

Y (x) = αθ(x) + E[Zx |Zx1 , . . .ZxN ]

= αθ(x) + cTx Γ−1N ZN

cx covariance vector of Zx and Zx1 , . . . ,ZxN ,

ΓN covariance matrix between ZN := (Zx1 , . . . ,ZxN )T .

Fabrice Gamboa (IMT Toulouse) Sensitivity analysis and computer code experiments 1th de June 39 / 44

Page 86: Sensitivity analysis and computer code experimentsgamboa/newwab/fichiers...Workshop on Applied Statistics UTB Cartagena Fabrice Gamboa (IMT Toulouse) Sensitivity analysis and computer

Kriging IIIBayesian approach

One have at hand f (x1), . . . , f (xN). Valeurs modeled by parY (x1), . . .Y (xN).

Parameters θ and ν has been previously identified

Gaussian emulator

f (x) = Y (x) = E[Y (x)|Y (x1), . . .Y (xN)]

Very simple formula

Y (x) = αθ(x) + E[Zx |Zx1 , . . .ZxN ]

= αθ(x) + cTx Γ−1N ZN

cx covariance vector of Zx and Zx1 , . . . ,ZxN ,

ΓN covariance matrix between ZN := (Zx1 , . . . ,ZxN )T .

Fabrice Gamboa (IMT Toulouse) Sensitivity analysis and computer code experiments 1th de June 39 / 44

Page 87: Sensitivity analysis and computer code experimentsgamboa/newwab/fichiers...Workshop on Applied Statistics UTB Cartagena Fabrice Gamboa (IMT Toulouse) Sensitivity analysis and computer

Kriging IV

Bayesian method in a functional space

Emulation method by linear regression

Y (x) = αθ(x) + cTx Γ−1N ZN

Prediction error of Gaussian du model (if the parameter of the modelare known)

E[(Y (x)− Y (x))2] = rν(0)− cTx Γ−1N cx

Fabrice Gamboa (IMT Toulouse) Sensitivity analysis and computer code experiments 1th de June 40 / 44

Page 88: Sensitivity analysis and computer code experimentsgamboa/newwab/fichiers...Workshop on Applied Statistics UTB Cartagena Fabrice Gamboa (IMT Toulouse) Sensitivity analysis and computer

Kriging IV

Bayesian method in a functional space

Emulation method by linear regression

Y (x) = αθ(x) + cTx Γ−1N ZN

Prediction error of Gaussian du model (if the parameter of the modelare known)

E[(Y (x)− Y (x))2] = rν(0)− cTx Γ−1N cx

Fabrice Gamboa (IMT Toulouse) Sensitivity analysis and computer code experiments 1th de June 40 / 44

Page 89: Sensitivity analysis and computer code experimentsgamboa/newwab/fichiers...Workshop on Applied Statistics UTB Cartagena Fabrice Gamboa (IMT Toulouse) Sensitivity analysis and computer

Kriging IV

Bayesian method in a functional space

Emulation method by linear regression

Y (x) = αθ(x) + cTx Γ−1N ZN

Prediction error of Gaussian du model (if the parameter of the modelare known)

E[(Y (x)− Y (x))2] = rν(0)− cTx Γ−1N cx

Fabrice Gamboa (IMT Toulouse) Sensitivity analysis and computer code experiments 1th de June 40 / 44

Page 90: Sensitivity analysis and computer code experimentsgamboa/newwab/fichiers...Workshop on Applied Statistics UTB Cartagena Fabrice Gamboa (IMT Toulouse) Sensitivity analysis and computer

Kriging IV

Bayesian method in a functional space

Emulation method by linear regression

Y (x) = αθ(x) + cTx Γ−1N ZN

Prediction error of Gaussian du model (if the parameter of the modelare known)

E[(Y (x)− Y (x))2] = rν(0)− cTx Γ−1N cx

Fabrice Gamboa (IMT Toulouse) Sensitivity analysis and computer code experiments 1th de June 40 / 44

Page 91: Sensitivity analysis and computer code experimentsgamboa/newwab/fichiers...Workshop on Applied Statistics UTB Cartagena Fabrice Gamboa (IMT Toulouse) Sensitivity analysis and computer

One examplefrom :http://www2.imm.dtu.dk/ hbn/dace/

Introduction

Given f : IRn 7→ IR. May be a black-box (and

“expensive”) function.

Know values yi = f(si) at design sites

S = {s1, . . . , sm}. How does the function

behave in between?

−5

0

5

−5−4

−3−2

−10

12

34

5

0

50

100

150

200

250

300

ISMP 2003 3

Gauss model

−5

0

5

−5−4

−3−2

−10

12

34

5

0

50

100

150

200

250

300

ISMP 2003 4

Fabrice Gamboa (IMT Toulouse) Sensitivity analysis and computer code experiments 1th de June 41 / 44

Page 92: Sensitivity analysis and computer code experimentsgamboa/newwab/fichiers...Workshop on Applied Statistics UTB Cartagena Fabrice Gamboa (IMT Toulouse) Sensitivity analysis and computer

One examplefrom :http://www2.imm.dtu.dk/ hbn/dace/

Introduction

Given f : IRn 7→ IR. May be a black-box (and

“expensive”) function.

Know values yi = f(si) at design sites

S = {s1, . . . , sm}. How does the function

behave in between?

−5

0

5

−5−4

−3−2

−10

12

34

5

0

50

100

150

200

250

300

ISMP 2003 3

Gauss model

−5

0

5

−5−4

−3−2

−10

12

34

5

0

50

100

150

200

250

300

ISMP 2003 4

Fabrice Gamboa (IMT Toulouse) Sensitivity analysis and computer code experiments 1th de June 41 / 44

Page 93: Sensitivity analysis and computer code experimentsgamboa/newwab/fichiers...Workshop on Applied Statistics UTB Cartagena Fabrice Gamboa (IMT Toulouse) Sensitivity analysis and computer

One examplefrom :http://www2.imm.dtu.dk/ hbn/dace/

Introduction

Given f : IRn 7→ IR. May be a black-box (and

“expensive”) function.

Know values yi = f(si) at design sites

S = {s1, . . . , sm}. How does the function

behave in between?

−5

0

5

−5−4

−3−2

−10

12

34

5

0

50

100

150

200

250

300

ISMP 2003 3

Gauss model

−5

0

5

−5−4

−3−2

−10

12

34

5

0

50

100

150

200

250

300

ISMP 2003 4

Fabrice Gamboa (IMT Toulouse) Sensitivity analysis and computer code experiments 1th de June 41 / 44

Page 94: Sensitivity analysis and computer code experimentsgamboa/newwab/fichiers...Workshop on Applied Statistics UTB Cartagena Fabrice Gamboa (IMT Toulouse) Sensitivity analysis and computer

End

Gracias por su atencionThanks for your attentionMerciObrigadoDankeGrazie

Fabrice Gamboa (IMT Toulouse) Sensitivity analysis and computer code experiments 1th de June 42 / 44

Page 95: Sensitivity analysis and computer code experimentsgamboa/newwab/fichiers...Workshop on Applied Statistics UTB Cartagena Fabrice Gamboa (IMT Toulouse) Sensitivity analysis and computer

Le code CERES

Fabrice Gamboa (IMT Toulouse) Sensitivity analysis and computer code experiments 1th de June 43 / 44

Page 96: Sensitivity analysis and computer code experimentsgamboa/newwab/fichiers...Workshop on Applied Statistics UTB Cartagena Fabrice Gamboa (IMT Toulouse) Sensitivity analysis and computer

Le code CERES(bis)

back

Fabrice Gamboa (IMT Toulouse) Sensitivity analysis and computer code experiments 1th de June 44 / 44