On the mathematical theory of splitting and Russian roulette - - PowerPoint PPT Presentation

on the mathematical theory of splitting and russian
SMART_READER_LITE
LIVE PREVIEW

On the mathematical theory of splitting and Russian roulette - - PowerPoint PPT Presentation

7th International Workshop on Rare Event Simulation On the mathematical theory of splitting and Russian roulette techniques Viatcheslav B. Melas St.Petersburg State University, Russia Viatcheslav B. Melas On the mathematical theory of splitting


slide-1
SLIDE 1

7th International Workshop on Rare Event Simulation

On the mathematical theory of splitting and Russian roulette techniques

Viatcheslav B. Melas St.Petersburg State University, Russia

Viatcheslav B. Melas On the mathematical theory of splitting and Russian roulette

slide-2
SLIDE 2

7th International Workshop on Rare Event Simulation

  • 1. Introduction
  • Splitting is an universal and potentially very powerful

technique for increasing efficiency of simulation

  • studies. The idea of this technique goes back to von

Neumann (see [Kan and Harris,1951]). A theory of multilevel splitting is rather well developed (see e.g.[L’Ecuryer et al.2006] ). However, in the most of papers strongly restrictive assumptions on transition probabilities are imposed.

  • In [Melas, 1993, 1997, 2002] and [Ermakov and

Melas, 1995] a more general theory is developed. It is based on the introduction of a probability measure governing the procedures of splitting and Russian

  • roulette. In the present talk we will describe basic

ideas and results of this theory.

Viatcheslav B. Melas On the mathematical theory of splitting and Russian roulette

slide-3
SLIDE 3

7th International Workshop on Rare Event Simulation

  • 2. Formulation of the problem

Let random variables X1, X2, . . . are defined on probability space (X, A, P) and form a homogenous Markov chaim with transition function P(x, dy) = P{X1 ∈ dy|X0 = x} measurable in the forst argument and such that

  • X P(x, dy) = 1. We will consider Harris

positively recurrent Markov chains (see, f.e., (Nummelin, 1984) for definitions). In fact, we need only a mild restrictions that secure existence of the stationary distribution (denote it by π(dx) ) and asymptotic unbiasedness of usual Monte Carlo estimators.

Viatcheslav B. Melas On the mathematical theory of splitting and Russian roulette

slide-4
SLIDE 4

7th International Workshop on Rare Event Simulation

It is required to estimate one or several functionals of the form Ji =

  • X

hi(x) π(dx), i = 1, 2, . . . , l with respect to simulation results. In case of chains with finite state space these functionals have the form Ji =

m

  • x=0

hi(x) πx, i = 1, 2, . . . , l.

Viatcheslav B. Melas On the mathematical theory of splitting and Russian roulette

slide-5
SLIDE 5

7th International Workshop on Rare Event Simulation

  • 3. Branching technique

Let {Xn} be a Markov chain of the general form described above. Let ηn chains {Xn} be simulated at the n–th step. A procedure for regulating ηn can be introduced in the following way.

  • Definition. A measurable function β(x) on (X, A) with the

following properties:

1 β(x) ≥ 0,

x ∈ Ω,

2

B β(x)π(dx) > 0, if π(B) > 0

is called a branching density.

Viatcheslav B. Melas On the mathematical theory of splitting and Russian roulette

slide-6
SLIDE 6

7th International Workshop on Rare Event Simulation

Introduce the random variable r(x, y) = ⌊β(y)/β(x)⌋, with probability 1 − β(y)/β(x) and r(x, y) = ⌊β(y)/β(x)⌋ + 1, with probability β(y)/β(x), where ⌊a⌋, with a = β(y)/β(x), means the integer part of a and a means the whole part of a. At step zero, set η0 = 1. At each following step (n + 1 = 1, 2, . . .) if X γ

n = x, X γ n+1 = y, then when β(y)/β(x) < 1 the simulation of

path γ discontinues with probability 1 − β(y)/β(x). When β(y)/β(x) ≥ 1 we simulate r(x, y) − 1 additional paths, beginning from point x, where k-th steps of these chains will be denoted by index n + k.

Viatcheslav B. Melas On the mathematical theory of splitting and Russian roulette

slide-7
SLIDE 7

7th International Workshop on Rare Event Simulation

Let us simulate k loops: {X γ

n (i); γ = 1, 2, . . . , ηn(i)},

i = 1, 2, . . . , k. Let us determine estimators of the functionals Jj (j = 1, 2, . . . , l) by the formula

  • Jk,β(j) = 1

k

k

  • i=1

Yβ(i, j) k

  • i=1
  • Yβ(i, j) ,

where Yβ(i, j) =

N(i)

  • n=0

ηn

  • γ=1

hj (X γ

n (i)) /β (X γ n (i)) ,

  • Yβ(i, j)

= Yβ(i, j) with hi(x) ≡ 1. Note that when β(x) ≡ 1 the process reduces to direct simulation

  • f the chain {Xn}, and the estimators

Ji,β become the known ratio estimators of the regeneration method (see Crane, Iglehart, 1974).

Viatcheslav B. Melas On the mathematical theory of splitting and Russian roulette

slide-8
SLIDE 8

7th International Workshop on Rare Event Simulation

Denote D(β) =

  • lim

k→∞ kCov

  • Jk,β(i),

Jk,β(j) l

i,j=1

, T(β) = lim

k→∞ k

  • i=1

Ti,β/k. By virtue of Law of Large Numbers, T(β) is the expectation of the number of steps for all chains in one loop. Set ˆ hj(x) = Jk,β(j), j = 1, 2, . . . , l, under the condition that all paths begin at x (X 1

0 (i) = x,

i = 1, . . . , k).

Viatcheslav B. Melas On the mathematical theory of splitting and Russian roulette

slide-9
SLIDE 9

7th International Workshop on Rare Event Simulation

  • 4. Expression for covariances

Theorem 1. When regularity conditions (see Melas(1993)) are valid for general Markov chains, estimators Jk,β(i) are asymptotically unbiased and D(β) =

  • β−1(x)π(dx) (dij(x) + rβ)

l

i,j=1

, T(β) =

  • β(x) π(dx),

where dij(x) = Eˆ hi(x) ˆ hj(x) − Eˆ hi(x) Eˆ hj(x), E is the expectation

  • perator, and rβ is a remainder term.

Viatcheslav B. Melas On the mathematical theory of splitting and Russian roulette

slide-10
SLIDE 10

7th International Workshop on Rare Event Simulation

Theorem 1 permits us to introduce optimality criteria for the choice of the branching measure. To simplify the notation let us consider that π(dx) = π(x) dx. Set τ(x) = π(x) β(x)

  • β(x) π(x) dx

(1) τx = πxβx

  • x

βxπx (finite chains). (2) Then T(τ) = 1 for any β. Dropping the remainder term, we

  • btain the matrix

D(τ) =

  • τ −1(x) dij(x) π2(x) dx
  • ,

D(τ) = m

  • x=0

τ −1

x π2 x dij(x)

  • (finite chains).

Viatcheslav B. Melas On the mathematical theory of splitting and Russian roulette

slide-11
SLIDE 11

7th International Workshop on Rare Event Simulation

As an estimation accuracy criterion let us take quantities trAD(τ), (3) det D(τ) (4) where A is an arbitrary nonnegative-definite matrix. Note that when A = I (where I is identity matrix) and l = 1, trAD(τ) is just the variance of the estimator J1. The probability measure τ(x) is called a design of the simulation experiment.

Viatcheslav B. Melas On the mathematical theory of splitting and Russian roulette

slide-12
SLIDE 12

7th International Workshop on Rare Event Simulation

  • 5. Optimal experimental designs

Consider the minimization problem for criteria (3) and (4) in the class of probability measures τ induced by branching densities. The

  • ptimal design for criterion (3) can be found with the help of the

Schwarz inequality. The direct application of this inequality brings the following result. Theorem 2. Let the hypothesis of Theorem 1 be satisfied. Then the experimental design minimizing the value of tr AD(τ) is given by formula (1), where β(x) =

  • trAD(τ).

Viatcheslav B. Melas On the mathematical theory of splitting and Russian roulette

slide-13
SLIDE 13

7th International Workshop on Rare Event Simulation

Theorem 3. For finite regular Markov chains and functions hi(x)

  • f the form hi(x) = δix, i = 1, . . . , m, there exists an experiment

design minimizing det D(τ) . This design is unique and satisfies the relation τ(x) =

  • tr BxB−1(τ ∗)

1/2 πx √m, where Bx = (pxyδyz − pxypxz)m

y,z=1 ,

x = 0, 1, . . . , m, B(τ) =

m

  • x=0
  • π2

x/τx

  • Bx.

The design described in Theorem 3 will be called D-optimal.

Viatcheslav B. Melas On the mathematical theory of splitting and Russian roulette

slide-14
SLIDE 14

7th International Workshop on Rare Event Simulation

In order to construct a D-optimal design the following iterative method can be used. Set τ0(y) = πy, y = 0, . . . , m, τk+1(y, α) = (1 − α) τk(y) + ατ(x)(y), k = 0, 1, 2, . . . where τ(x)(y) = δxy x = arg max

x

π2

x

τ 2

k (x) tr BxB−1(τk).

Viatcheslav B. Melas On the mathematical theory of splitting and Russian roulette

slide-15
SLIDE 15

7th International Workshop on Rare Event Simulation

Set αk = arg min

α∈[0,1] det B ({τk+1(y, α)}) ,

τk+1(y) = τk+1(y, αk), y = 0, 1, . . . , m. Theorem 4. Under the hypothesis of Theorem 3 for k → ∞ det D(τk) → det D(τ ∗), where det D(τ ∗) = min det D(τ).

Viatcheslav B. Melas On the mathematical theory of splitting and Russian roulette

slide-16
SLIDE 16

7th International Workshop on Rare Event Simulation

Consider a random walk process on a line S1 = 0, Sn+1 = Sn + Xn, k = 1, 2, . . . , where Xn, k = 1, 2, . . . are independent random variables with common density function f (x), and connect it with the waiting process W1 = 0, Wn+1 = max(0, Wn + Xn), n = 1, 2, . . . It is known (see Feller, 1970) that the quantities Wn and Mn = max{S1, . . . , Sn} have the same distribution. Under an additional condition on EX1, Mn → M and Wn → W in distribution, where M and W are random variables.

Viatcheslav B. Melas On the mathematical theory of splitting and Russian roulette

slide-17
SLIDE 17

7th International Workshop on Rare Event Simulation

Set π(0) = P{W = 0}, π(x) = W ′(x), W (x) = P{W < x}, π(x) = 0 for x < 0, Xn = Wn, S = {0}, π(dx) = af (x)dx, a = 1/(1 − F(0)), and 1−F(0) = ∞ f (t)dt, h1(x) = 0, x < v, h1(x) = 1, x ≥ v, l = 1. The problem is the estimation of the functional J = J1 =

  • h1(x)π(x)dx.

Suppose that f (x) satisfies the condition ∞

−∞

eλ0tf (t)dt = 1 for some positive λ0 and EX1 < 0. Set β(x) ≡ 1, β∗(t) = eλ0t, 0 < t < v, β∗(t) = eλ0v, t ≥ v.

Viatcheslav B. Melas On the mathematical theory of splitting and Russian roulette

slide-18
SLIDE 18

7th International Workshop on Rare Event Simulation

Define the relative efficiency by the formula R = Rv = Tβ∗D Jβ∗ TβD Jβ . It is known (see Feller, 1970) that as v → ∞ θ ∼ e−λ0t → 0. Theorem 5. Let the conditions formulated above be satisfied and for some ε > 0 ∞

−∞

e2(λ0+ε)tf (t) dt < ∞. Then for v → ∞ Rv = O

  • 1

θ ln2(1/θ)

  • ,

θ ∼ e−λ0v.

Viatcheslav B. Melas On the mathematical theory of splitting and Russian roulette

slide-19
SLIDE 19

7th International Workshop on Rare Event Simulation

  • 6. Numerical example

To compare the branching technique (BT) and the usual regeneration technique (RT) we simulated the corresponding random walk by both methods during 100,000 loops. The magnitude v was chosen so that θ = 10−2, 10−3, . . . , 10−6, a = 1/2. Denote by I the magnitude I = θ2/(ETD θ) where θ is the proper value of the estimated parameters, ET is the mean length of the simulated paths and D θ is the sample variance. We have obtained results presented in the following table: ln(1/θ) 2 3 4 5 6 I(RT) 0, 385 0, 026 0, 000 0, 000 0, 000 I(BT) 0, 686 0, 298 0, 185 0, 083 0, 041

Viatcheslav B. Melas On the mathematical theory of splitting and Russian roulette

slide-20
SLIDE 20

7th International Workshop on Rare Event Simulation

  • 7. Example of D-optimal design

Consider a particular case of Markov chain imbedded into the random process, corresponding to the length of queue with one server and m places for waiting. We will consider the simplest case when the input stream is a simplest stream and the time of service is an exponentially distributed random value.

Viatcheslav B. Melas On the mathematical theory of splitting and Russian roulette

slide-21
SLIDE 21

7th International Workshop on Rare Event Simulation

Let ρ be the load of the system. Then the matrix P is of the form P =          1 . . . 1 − ∆ ∆ 1 − ∆ ∆ . . . 1 − ∆ ∆ 1 − ∆ ∆          , ∆ = ρ/(1 + ρ), π1 = ∆π0, πi+1 = ρi∆π0, i = 1, . . . , m − 1, π0 = 1/(1 + ∆ + ∆ρ + . . . + ∆ρm−1). We can calculate by induction that detB(τ) = m

  • i=1

π2

i

τi

  • ∆m(1 − ∆)m.

Viatcheslav B. Melas On the mathematical theory of splitting and Russian roulette

slide-22
SLIDE 22

7th International Workshop on Rare Event Simulation

From here we found that D-optimal design is τ ∗ =

  • 0, 1

m, . . . , 1 m

  • and

I(τ) = detB(π) detB(τ) 1/m = m

  • i=1

πi −1/m m with τ = τ ∗. Note that I(τ) is a natural measure of efficiency of design τ. It means the ratio of the number of steps needed by immediate simulation for obtaining results with a given accurancy to the same number for the splitting and roulette approach. In table 1 values of the efficiency are given. m 5 5 5 10 10 10 ρ 1/2 1/3 1/4 1/2 1/3 1/4 I 2.0 4.0 6.8 6.0 31.6 109

Viatcheslav B. Melas On the mathematical theory of splitting and Russian roulette

slide-23
SLIDE 23

7th International Workshop on Rare Event Simulation

  • 8. Concluding remarks
  • In fact, any immediate simulation method can be

improved by including the branching technique

  • A representation for the variance-covariance matrix

derived here allows to find an optimal branching measure

  • The full explanation of the theory can be found in

the book (Ermakov, Melas, 1995) and in the papers (Melas, 1993, 1997, 2002)

Viatcheslav B. Melas On the mathematical theory of splitting and Russian roulette

slide-24
SLIDE 24

7th International Workshop on Rare Event Simulation

References

Crane, A. M., and D. L. Iglehart. 1974. Simulating stable stochastic systems. 2: Markov chains. Journal of Association of Computing Machinery 21 (1): 114-123. L’Ecuyer, P., Demers, V., and B.Tuffin (2006). Splitting for rare-event simulation.In: Proceedings of the 2006 Winter Simulation Conference, 137–148,California Monterey. Ermakov, S. M., and V. B. Melas. 1995. Design and analysis of simulation experiments. Dordrecht, London: Kluwer Academic Publishers. Feller, W. 1970. An introduction to probability theory and its applications, vol. 2. 2nd ed. New York: Wiley. Kahn, H., and T. E. Harris. (1951). Estimation of particle transmission by random sampling. National Bureau os Standards Applied Mathematical Series 12:27–30.

Viatcheslav B. Melas On the mathematical theory of splitting and Russian roulette

slide-25
SLIDE 25

7th International Workshop on Rare Event Simulation

Melas, V. B. 1993. Optimal simulation design by branching

  • technique. Model Oriented Data Analysis, ed. W. G. Muller, H. P.

Wynn, and A. A., Zhigljavsky. Heidelberg: Physica-Verlag, 113-127. Melas, V.B. 2002. On simulating finite Markov chains by the splitting and roulette approach. Information processes. vol 2, issue 2, pp. 228-230. Nummelin, E. 1984. General irreducible Markov chains and non-negative operators. Cambridge: Cambridge University Press. Sigman, K. 1988. Queues as Harris recurrent Markov chains. Queueing systems 3: 179-198.

Viatcheslav B. Melas On the mathematical theory of splitting and Russian roulette