• Aucun résultat trouvé

en fr it

N/A
N/A
Protected

Academic year: 2022

Partager "en fr it "

Copied!
54
0
0

Texte intégral

(1)

HAL Id: hal-02596122

https://hal.inrae.fr/hal-02596122

Submitted on 6 Jul 2020

HAL is a multi-disciplinary open access archive for the deposit and dissemination of sci- entific research documents, whether they are pub- lished or not. The documents may come from teaching and research institutions in France or abroad, or from public or private research centers.

L’archive ouverte pluridisciplinaire HAL, est destinée au dépôt et à la diffusion de documents scientifiques de niveau recherche, publiés ou non, émanant des établissements d’enseignement et de recherche français ou étrangers, des laboratoires publics ou privés.

Calibrating a complex social model

Maxime Lenormand, Guillaume Deffuant, S. Huet

To cite this version:

Maxime Lenormand, Guillaume Deffuant, S. Huet. Calibrating a complex social model. European

Conference on Complex Systems ECCS’11, Sep 2011, Vienne, Austria. �hal-02596122�

(2)

Calibrating a complex social model

Maxime Lenormand, Guillaume Deffuant & Sylvie Huet

Laboratory of Engineering for Complex Systems Cemagref of Clermont-Ferrand

ECCS’11 September 

th



This publication has been funded under the PRIMA (Prototypical policy impacts on multifunctional activities in rural municipalities) collaborative project, EU 7th Framework Programme (ENV 2007-1), contract no. 212345.

(3)

Motivation

Complex social model Individual-based model Stochastic

High dimensional parameter space High computational cost by simulation

Estimate the parameter values Calibrate the model

Understand the model behaviour Uncertainty analysis

Validation

(4)

Summary

1

Approximate Bayesian Computation (ABC)

2

Adaptive approximate Bayesian computation for complex models

3

The PRIMA model

(5)

Approximate Bayesian Computation

1

Sample θ ∼ π(θ).

2

Simulate x ∼ f (x |θ ).

3

If ρ(x , y ) ≤ , accept θ , otherwise reject.

4

Repeat until a sample of the desired size is obtained

Prior distribution π(θ)

Posterior distribution π(θ)P θ {f (x |θ) = y }

6

- Simulation

b

&%

'$

&%

'$

&%

'$

&%

'$

&%

'$

&%

'$

Target

(Pritchard et al., 1999) Derived from T. Toni 2011

(6)

Approximate Bayesian Computation

1

Sample θ ∼ π(θ).

2

Simulate x ∼ f (x |θ ).

3

If ρ(x , y ) ≤ , accept θ , otherwise reject.

4

Repeat until a sample of the desired size is obtained

Prior distribution π(θ)

Posterior distribution π(θ)P θ {f (x |θ) = y }

6

- Simulation

b

&%

'$

&%

'$

&%

'$

&%

'$

&%

'$

&%

'$

Target s

(Pritchard et al., 1999) Derived from T. Toni 2011

(7)

Approximate Bayesian Computation

1

Sample θ ∼ π(θ).

2

Simulate x ∼ f (x |θ ).

3

If ρ(x , y ) ≤ , accept θ , otherwise reject.

4

Repeat until a sample of the desired size is obtained

Prior distribution π(θ)

Posterior distribution π(θ)P θ {f (x |θ) = y }

6

- Simulation

b

&%

'$

&%

'$

&%

'$

&%

'$

&%

'$

&%

'$

Target s

s

(Pritchard et al., 1999) Derived from T. Toni 2011

(8)

Approximate Bayesian Computation

1

Sample θ ∼ π(θ).

2

Simulate x ∼ f (x |θ ).

3

If ρ(x , y ) ≤ , accept θ , otherwise reject.

4

Repeat until a sample of the desired size is obtained

Prior distribution π(θ)

Posterior distribution π(θ)P θ {f (x |θ) = y }

6

- Simulation

b

&%

'$

&%

'$

&%

'$

&%

'$

&%

'$

&%

'$

Target s

s

(Pritchard et al., 1999) Derived from T. Toni 2011

(9)

Approximate Bayesian Computation

1

Sample θ ∼ π(θ).

2

Simulate x ∼ f (x |θ ).

3

If ρ(x , y ) ≤ , accept θ , otherwise reject.

4

Repeat until a sample of the desired size is obtained

Prior distribution π(θ)

Posterior distribution π(θ)P θ {f (x |θ) = y }

6

- Simulation

b

&%

'$

&%

'$

&%

'$

&%

'$

&%

'$

&%

'$

Target s

s s

(Pritchard et al., 1999) Derived from T. Toni 2011

(10)

Approximate Bayesian Computation

1

Sample θ ∼ π(θ).

2

Simulate x ∼ f (x |θ ).

3

If ρ(x , y ) ≤ , accept θ , otherwise reject.

4

Repeat until a sample of the desired size is obtained

Prior distribution π(θ)

Posterior distribution π(θ)P θ {f (x |θ) = y }

6

- Simulation

b

&%

'$

&%

'$

&%

'$

&%

'$

&%

'$

&%

'$

Target

s s

s

(Pritchard et al., 1999) Derived from T. Toni 2011

(11)

Approximate Bayesian Computation

1

Sample θ ∼ π(θ).

2

Simulate x ∼ f (x |θ ).

3

If ρ(x , y ) ≤ , accept θ , otherwise reject.

4

Repeat until a sample of the desired size is obtained

Prior distribution π(θ)

Posterior distribution π(θ)P θ {f (x |θ) = y }

6

- Simulation

b

&%

'$

&%

'$

&%

'$

&%

'$

&%

'$

&%

'$

Target

s s

s

s

(Pritchard et al., 1999) Derived from T. Toni 2011

(12)

Approximate Bayesian Computation

1

Sample θ ∼ π(θ).

2

Simulate x ∼ f (x |θ ).

3

If ρ(x , y ) ≤ , accept θ , otherwise reject.

4

Repeat until a sample of the desired size is obtained

Prior distribution π(θ)

Posterior distribution π(θ)P θ {f (x |θ) = y }

6

- Simulation

b

&%

'$

&%

'$

&%

'$

&%

'$

&%

'$

&%

'$

Target

s s

s

s

(Pritchard et al., 1999) Derived from T. Toni 2011

(13)

Approximate Bayesian Computation

1

Sample θ ∼ π(θ).

2

Simulate x ∼ f (x |θ ).

3

If ρ(x , y ) ≤ , accept θ , otherwise reject.

4

Repeat until a sample of the desired size is obtained

Prior distribution π(θ)

Posterior distribution π(θ)P θ {f (x |θ) = y }

6

- Simulation

b

&%

'$

&%

'$

&%

'$

&%

'$

&%

'$

&%

'$

Target

s s

s s s s s

s s s

s s

s

(Pritchard et al., 1999) Derived from T. Toni 2011

(14)

Approximate Bayesian Computation

1

Sample θ ∼ π(θ).

2

Simulate x ∼ f (x |θ ).

3

If ρ(x , y ) ≤ , accept θ , otherwise reject.

4

Repeat until a sample of the desired size is obtained

Prior distribution π(θ)

Posterior distribution π(θ)P θ {f (x |θ) = y }

6

- Simulation

b

&%

'$

&%

'$

&%

'$

&%

'$

&%

'$

&%

'$

Target

s s

s s s s s

s s s

s s

s

sss sss ss

(Pritchard et al., 1999) Derived from T. Toni 2011

(15)

Approximate Bayesian Computation

1

Sample θ ∼ π(θ).

2

Simulate x ∼ f (x |θ ).

3

If ρ(x , y ) ≤ , accept θ , otherwise reject.

4

Repeat until a sample of the desired size is obtained

Prior distribution π(θ)

Posterior distribution π(θ)P θ {f (x |θ) = y }

6

- Simulation

b

&%

'$

&%

'$

&%

'$

&%

'$

&%

'$

&%

'$

Target

s s

s s s s s

s s s

s s

s

sss sss ss

(Pritchard et al., 1999) Derived from T. Toni 2011

(16)

ABC SMC (Sequential Monte-Carlo)

Algorithm

(Sisson et al., 2007)

(Beaumont et al., 2009) Derived from T. Toni 2011

Prior Posterior

(17)

ABC SMC (Sequential Monte-Carlo)

Algorithm

(Sisson et al., 2007)

(Beaumont et al., 2009) Derived from T. Toni 2011

Prior Posterior

T

(18)

ABC SMC (Sequential Monte-Carlo)

Algorithm

(Sisson et al., 2007)

(Beaumont et al., 2009) Derived from T. Toni 2011

Prior Posterior

T

1 2

· · ·

(19)

ABC SMC (Sequential Monte-Carlo)

Algorithm

(Sisson et al., 2007)

(Beaumont et al., 2009) Derived from T. Toni 2011

Prior Posterior

T

1 2

· · ·

s s s s

s s s

s s

s s

s s

s

s ss

(20)

ABC SMC (Sequential Monte-Carlo)

Algorithm

(Sisson et al., 2007)

(Beaumont et al., 2009) Derived from T. Toni 2011

Prior Posterior

T

1 2

· · ·

s s s s

s s s

s s

s s

s s s s ss

s

s

s

s

sss

s

s

s s

ss

(21)

ABC SMC (Sequential Monte-Carlo)

Algorithm

(Sisson et al., 2007)

(Beaumont et al., 2009) Derived from T. Toni 2011

Prior Posterior

T

1 2

· · ·

s s s s

s s s

s s

s s

s s s s ss

s s s s sss s s s s ss

-

w i (1) s

(22)

ABC SMC (Sequential Monte-Carlo)

Algorithm

(Sisson et al., 2007)

(Beaumont et al., 2009) Derived from T. Toni 2011

Prior Posterior

T

1 2

· · ·

s s s s

s s s

s s

s s

s s s s ss

s s s s sss s s s s ss

- w i (1) s 6 K 2

s

(23)

ABC SMC (Sequential Monte-Carlo)

Algorithm

(Sisson et al., 2007)

(Beaumont et al., 2009) Derived from T. Toni 2011

Prior Posterior

T

1 2

· · ·

s s s s

s s s

s s

s s

s s s s ss

s s s s sss s s s s ss

- w i (1) s 6 K 2

s -

ρ(x , y ) ≤ 2 s

(24)

ABC SMC (Sequential Monte-Carlo)

Algorithm

(Sisson et al., 2007)

(Beaumont et al., 2009) Derived from T. Toni 2011

Prior Posterior

T

1 2

· · ·

s s s s

s s s

s s

s s

s s s s ss

s s s s sss s s s s ss

- w i (1) s 6 K 2

s -

ρ(x , y ) ≤ 2 ss

s

s

s

ss

ss ss

sss s

(25)

ABC SMC (Sequential Monte-Carlo)

Algorithm

(Sisson et al., 2007)

(Beaumont et al., 2009) Derived from T. Toni 2011

Prior Posterior

T

1 2

· · ·

s s s s

s s s

s s

s s

s s s s ss

s s s s sss s s s s ss

- w i (1) s 6 K 2

s -

ρ(x , y ) ≤ 2 ss

s s s ss ss ss

sss s sss ssss

s

sss

(26)

ABC SMC (Sequential Monte-Carlo)

Issues related to the model complexity

How to control the number of simulations?

How to determine the sequence of tolerance levels { 1 , ..., T }?

When to stop the algorithm?

(27)

Summary

1

Approximate Bayesian Computation (ABC)

2

Adaptive approximate Bayesian computation for complex models

3

The PRIMA model

(28)

Adaptive ABC SMC for complex models

Algorithm

Prior

(Lenormand et al.)

(29)

Adaptive ABC SMC for complex models

Algorithm

Prior N particles

(LHS)

s s s s

s s s

s s

s s

s s s s ss

(Lenormand et al.)

(30)

Adaptive ABC SMC for complex models

Algorithm

Prior N particles

(LHS)

s s s s

s s s

s s

s s

s s s s ss

-

N α

1

s s s s

s s

s s

s s s

(Lenormand et al.)

(31)

Adaptive ABC SMC for complex models

Algorithm

Prior N particles

(LHS)

s s s s

s s s

s s

s s

s s s s ss

-

N α

1

s s s s

s s

s s

s s s

- w i (1)

(Lenormand et al.)

(32)

Adaptive ABC SMC for complex models

Algorithm

Prior N particles

(LHS)

s s s s

s s s

s s

s s

s s s s ss

-

N α

1

s s s s

s s

s s

s s s

- w i (1) 6

? K 1

(Lenormand et al.)

(33)

Adaptive ABC SMC for complex models

Algorithm

Prior N particles

(LHS)

s s s s

s s s

s s

s s

s s s s ss

-

N α

1

s s s s

s s

s s

s s s

- w i (1) 6

? K 1 s s

s sss s N − N α particles

p acc = P N

k=N

α

+1 1 ρ(x,y)≤

1

N − N α

(Lenormand et al.)

(34)

Adaptive ABC SMC for complex models

Algorithm

Prior N particles

(LHS)

s s s s

s s s

s s

s s

s s s s ss

-

N α

1

s s s s

s s

s s

s s s

s s s sss s N − N α particles

p acc = P N

k =N

α

+1 1 ρ(x,y)≤

1

N − N α s s s sss s

s s s s

s s

s s

s s s N particles

(Lenormand et al.)

(35)

Adaptive ABC SMC for complex models

Algorithm

Prior N particles

(LHS)

s s s s

s s s

s s

s s

s s s s ss

-

N α

1

s s s s

s s

s s

s s s

s s s sss s N − N α particles

p acc = P N

k =N

α

+1 1 ρ(x,y)≤

1

N − N α s s s sss s

s s s s

s s

s s

s s s N particles

-

N α

2

s ss s s s ss ss s s

(Lenormand et al.)

(36)

Adaptive ABC SMC for complex models

Algorithm

Prior N particles

(LHS)

s s s s

s s s

s s

s s

s s s s ss

-

N α

1

s s s s

s s

s s

s s s

s s s sss s N − N α particles

p acc = P N

k =N

α

+1 1 ρ(x,y)≤

1

N − N α s s s sss s

s s s s

s s

s s

s s s N particles

-

N α

2

s ss s s s ss ss s s

· · · {p acc <p

accmin }

Posterior sss sss sss

(Lenormand et al.)

(37)

Adaptive ABC SMC for complex models

Issues related to the model complexity

How to control the number of simulations?

(38)

Adaptive ABC SMC for complex models

Issues related to the model complexity

How to control the number of simulations?

= ⇒ N − N α simulations at each iteration

(39)

Adaptive ABC SMC for complex models

Issues related to the model complexity

How to control the number of simulations?

= ⇒ N − N α simulations at each iteration

How to determine the sequence of tolerance levels

{ 1 , ..., T }?

(40)

Adaptive ABC SMC for complex models

Issues related to the model complexity

How to control the number of simulations?

= ⇒ N − N α simulations at each iteration

How to determine the sequence of tolerance levels { 1 , ..., T }?

= ⇒ t = α-quantile of the N distances to the data

(41)

Adaptive ABC SMC for complex models

Issues related to the model complexity

How to control the number of simulations?

= ⇒ N − N α simulations at each iteration

How to determine the sequence of tolerance levels { 1 , ..., T }?

= ⇒ t = α-quantile of the N distances to the data

When to stop the algorithm?

(42)

Adaptive ABC SMC for complex models

Issues related to the model complexity

How to control the number of simulations?

= ⇒ N − N α simulations at each iteration

How to determine the sequence of tolerance levels { 1 , ..., T }?

= ⇒ t = α-quantile of the N distances to the data When to stop the algorithm?

= ⇒ p acc < p acc

min

(43)

Adaptive ABC SMC for complex models

Toy example: Presentation

f (x |θ) ∼ 1 2 φ

θ, 1

100

+ 1

2 φ (θ, 1) and θ ∼ U [−10,10]

−3 −2 −1 0 1 2 3

0.00.51.01.52.02.5

Probability

−3 −2 −1 0 1 2 3

0.00.51.01.52.02.5

θ

−3 −2 −1 0 1 2 3

0.00.51.01.52.02.5

Probability

−3 −2 −1 0 1 2 3

0.00.51.01.52.02.5

θ

−3 −2 −1 0 1 2 3

0.00.51.01.52.02.5

Probability

−3 −2 −1 0 1 2 3

0.00.51.01.52.02.5

θ

(44)

Adaptive ABC SMC for complex models

Toy example: Parameters Study

N α = 5000; α from 0.9 to 0.1 corresponding to N = 5555 to 50000

1e+05 2e+05 3e+05 4e+05 5e+05

0.02 0.04 0.06 0.08 0.10 0.12 0.14

Number of simulations L

2

1e+05 2e+05 3e+05 4e+05 5e+05

0.02 0.04 0.06 0.08 0.10 0.12 0.14

Number of simulations

L

2

(45)

Adaptive ABC SMC for complex models

Toy example: Parameters Study

N α = 5000; α from 0.9 to 0.1 corresponding to N = 5555 to 50000

1e+05 2e+05 3e+05 4e+05 5e+05

0.02 0.04 0.06 0.08 0.10 0.12 0.14

Number of simulations L

2

1e+05 2e+05 3e+05 4e+05 5e+05

0.02 0.04 0.06 0.08 0.10 0.12 0.14

Number of simulations

L

2

(46)

Adaptive ABC SMC for complex models

Toy example: Parameters Study

N α = 5000; α from 0.9 to 0.1 corresponding to N = 5555 to 50000

1e+05 2e+05 3e+05 4e+05 5e+05

0.02 0.04 0.06 0.08 0.10 0.12 0.14

Number of simulations L

2

1e+05 2e+05 3e+05 4e+05 5e+05

0.02 0.04 0.06 0.08 0.10 0.12 0.14

Number of simulations

L

2

(47)

Adaptive ABC SMC for complex models

Toy example: Parameters Study

N α = 5000; α from 0.9 to 0.1 corresponding to N = 5555 to 50000

1e+05 2e+05 3e+05 4e+05 5e+05

0.02 0.04 0.06 0.08 0.10 0.12 0.14

Number of simulations L

2

1e+05 2e+05 3e+05 4e+05 5e+05

0.02 0.04 0.06 0.08 0.10 0.12 0.14

Number of simulations

L

2

(48)

Adaptive ABC SMC for complex models

Toy example: Model comparison

●●

●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●

0e+00 2e+05 4e+05 6e+05 8e+05 1e+06

0.000.050.100.150.20

Number of simulations L2

(49)

Summary

1

Approximate Bayesian Computation (ABC)

2

Adaptive approximate Bayesian computation for complex models

3

The PRIMA model

(50)

The PRIMA model

Parameters and summary statistics

4 parameters

8 summary statistics k(ρ m (S m , S

0

m )) 1≤m≤M k

∞ = sup 1≤m≤Mm (S m , S

0

m )|

(51)

The PRIMA model

Acceptance rate and threshold evolution

0 20 40 60 80 100 120

0.00.10.20.30.40.50.6

Number of iterations

Acceptance rate

0 20 40 60 80 100 120

−1.5−1.0−0.50.00.51.0

Number of iterations

Tolerance threshold

(52)

The PRIMA model

Posterior density of a parameter

1.0 1.5 2.0 2.5 3.0 3.5

0.0 0.2 0.4 0.6 0.8 1.0 1.2 1.4

θ

1

Density

(53)

The PRIMA model

Concrete results

1.4 second by simulations 400,000 simulations 6 days

Age pyramid

050100150200

(54)

Conclusion

We have answered the three research questions Comparison with a well-known method

Calibration of a complex social model

Références

Documents relatifs

Using the Fo¨rster formulation of FRET and combining the PM3 calculations of the dipole moments of the aromatic portions of the chromophores, docking process via BiGGER software,

Later in the clinical course, measurement of newly established indicators of erythropoiesis disclosed in 2 patients with persistent anemia inappropriately low

Households’ livelihood and adaptive capacity in peri- urban interfaces : A case study on the city of Khon Kaen, Thailand.. Architecture,

3 Assez logiquement, cette double caractéristique se retrouve également chez la plupart des hommes peuplant la maison d’arrêt étudiée. 111-113) qu’est la surreprésentation

Et si, d’un côté, nous avons chez Carrier des contes plus construits, plus « littéraires », tendant vers la nouvelle (le titre le dit : jolis deuils. L’auteur fait d’une

la RCP n’est pas forcément utilisée comme elle devrait l’être, c'est-à-dire un lieu de coordination et de concertation mais elle peut être utilisée par certains comme un lieu

The change of sound attenuation at the separation line between the two zones, to- gether with the sound attenuation slopes, are equally well predicted by the room-acoustic diffusion

Si certains travaux ont abordé le sujet des dermatoses à l’officine sur un plan théorique, aucun n’a concerné, à notre connaissance, les demandes d’avis