Docsity

Control Variates in Simulation: Speeding Convergence for Stochastic Systems - Prof. Sean P, Study notes of Electrical and Electronics Engineering

Toggle sidebar
bg1
ECE 555 Control of Stochastic Systems Fall 2005
Handout: Control Variates in Simulation
In the past few lectures we have considered the general stochastic approximation recursion,
θ(k+ 1) = θ(k) + ak[g(θ(k)) + ∆(k+ 1)], k ≥0.
Under general conditions, verified by considering various ODEs, it is known that {θ(k)}converges to
the set of zeros of g.
The remaining problem is that convergence can be very slow. These notes summarize the control
variate method for speeding convergence in simulation. It is highly likely that this technique can be
generalized to other recursive algorithms.
nn
0
20
40
60
80
100
0
5
10
15
20
25
30
0 1 2
x 104
0 1 2
x 104
σ2
D=25 σ2
D=125
ηn
η+
n
η−
n
ηn
η+
n
η−
n
Figure 1: Simulation using the standard estimator, and the two controlled estimators. The plot at left shows results
with σ2
D= 25, and at right the variance is increased to σ2
D= 125. In each case the estimates obtained from the standard
Monte-Carlo estimator are significantly larger than those obtained using the controlled estimator, and the bound η−
n< η+
n
holds for all large n.
Simulating a Markov Chain Suppose that Xis a Markov chain on a state space Xwith invariant
distribution π. For background see [8] (as well as [10, 3, 8, 4].)
For a given function F:X→Rwe denote,
Ln(F) := 1
n
n
−
1
X
k=0
F(X(k)) n≥1.
One can hope to establish the following limit theorems,
The Strong Law of Large Numbers, or SLLN : For each initial condition,
Ln(F)→π(F), a.s., n → ∞.(1)
The Central Limit Theorem, or CLT: For some σ≥0 and each initial condition,
√n[Ln(F)−η]w
−→ σW, n → ∞,(2)
where Wis a standard normal random variable, and the convergence is in distribution.
pf3
pf4
pf5

Partial preview of the text

Download Control Variates in Simulation: Speeding Convergence for Stochastic Systems - Prof. Sean P and more Study notes Electrical and Electronics Engineering in PDF only on Docsity!

ECE 555 Control of Stochastic Systems Fall 2005

Handout: Control Variates in Simulation

In the past few lectures we have considered the general stochastic approximation recursion,

θ(k + 1) = θ(k) + ak[g(θ(k)) + ∆(k + 1)], k ≥ 0.

Under general conditions, verified by considering various ODEs, it is known that {θ(k)} converges to the set of zeros of g. The remaining problem is that convergence can be very slow. These notes summarize the control variate method for speeding convergence in simulation. It is highly likely that this technique can be generalized to other recursive algorithms.

n n 0

20

40

60

80

100

0

5

10

15

20

25

30

(^0 1 2) x 10 (^40 1 2) x 10 4

σ^2 D = 25 σ^2 D = 125

ηn η n+ η n−

ηn η+ n η− n

Figure 1: Simulation using the standard estimator, and the two controlled estimators. The plot at left shows results with σ^2 D = 25, and at right the variance is increased to σ^2 D = 125. In each case the estimates obtained from the standard Monte-Carlo estimator are significantly larger than those obtained using the controlled estimator, and the bound η− n < η n+ holds for all large n.

Simulating a Markov Chain Suppose that X is a Markov chain on a state space X with invariant distribution π. For background see [8] (as well as [10, 3, 8, 4].) For a given function F : X → R we denote,

Ln(F ) :=

n

n∑− 1

k=

F (X(k)) n ≥ 1.

One can hope to establish the following limit theorems,

The Strong Law of Large Numbers, or SLLN : For each initial condition,

Ln(F ) → π(F ), a.s., n → ∞. (1)

The Central Limit Theorem, or CLT : For some σ ≥ 0 and each initial condition,

√ n[Ln(F ) − η] −→w σW, n → ∞, (2)

where W is a standard normal random variable, and the convergence is in distribution.

It is assumed here that the chain is ergodic, which means that the SLLN holds for any bounded function F : X → R. Suppose that F : X → R is a π-integrable function. Under ergodicity the SLLN can be generalized to any such function. Our interest is to efficiently estimate the finite mean η = π(F ). The standard estimator is the sample path average,

ηn = Ln(F ) n ≥ 1. (3)

Its performance is typically gauged by the associated asymptotic variance σ^2 used in (2). Below are two well known representations in terms of the centered function F˜ := F − η.

Limiting variance:

σ^2 = lim n→∞ nVar (^) x(Ln(F )) := lim n→∞ Ex

[

Ln(F ˜ )^2

]

Sum of the correlation function:

σ^2 =

∑^ ∞

k=−∞

Eπ

[ ˜

F (X(k)) F˜ (X(0))

]

The following operator-theoretic representation holds more generally. Let Z denote a version of the fundamental kernel, defined so that F̂ = ZF solves Poisson’s equation for some class of functions F ,

P F̂ = F̂ − F + η. (6)

It will be convenient to apply the following bilinear and quadratic forms, defined for measurable functions F, G : X → R,

〈〈F, G〉〉 := P (F G) − (P F )(P G), Q(F ) := 〈〈F, F 〉〉.

Using this notation we have the following representation for the asymptotic variance,

σ^2 (F ) = π(Q(F̂ )). (7)

Recall that the resolvent is expressed R :=

−n− 1 P n. The function s : X → (0, 1] and the

probability measure ν are called small if the minorization condition holds,

R(x, A) ≥ s(x)ν(A), x ∈ X, A ∈ B(X).

The following is the general state space version of Condition (V3):

For functions V : X → (0, ∞], f : X → [1, ∞), a small function s, a small measure ν, and a constant b < ∞, DV ≤ −f + bs (V3)

The following result is taken from [8, 6]: Proposition. Suppose that X satisfies (V3) with π(V 2 ) < ∞. Then, the SLLN and CLT hold for any F ∈ Lf ∞, and the asymptotic variance σ^2 (F ) exists, and can be expressed as (4), (5), or (7) above. ⊓⊔

The simulation results shown use μ = 4 and α = 3, so that δ = 1. Two estimators {ηn− , η+ n }

were constructed based on the parameter values ϑ−= 1.05 and ϑ+ = 1. The plot at left in Figure 1

illustrates the resulting performance with κ = 2 (σ D^2 = 25), and the plot at right shows the controlled and uncontrolled estimators with κ = 5, and hence σ D^2 = 125.

Note that the bounds η−n < η n+ < ηn hold for all large n, even though all three estimators are

asymptotically unbiased.

A network model The Kumar-Seidman-Rybko-Stolyar (KSRS) network shown in Figure 2 is de- scribed in Chapter 1 of the course notes.

Station 1

μ 1

μ 4

Q 1 (t)

Q 4 (t) Station 2

μ 2

μ 3

Q 2 (t)

Q 3 (t)

α 1

α 3

Figure 2: The Kumar-Seidman-Rybko-Stolyar (KSRS) network.

Consider the following policy based on a vector w¯ ∈ R^2 + of safety-stock values: Serve Q 1 ≥ 1 at Station I if and only if Q 4 = 0, or

μ

2 Q^2 +^ μ

3 Q^3 ≤^ w¯^2.^ (9)

An analogous condition holds at Station II. A simulation experiment was conducted to estimate the steady-state mean customer population. So, with X = Z^4 +, we let F : X → R+ denote the ℓ 1 norm on R^4. A CRW network model was constructed in which the elements of (A, S) were taken Bernoulli (see course lecture notes.) Details can be found in [5].

Performance as a function of safety stocks

(i) Simulation using smoothed estimator (ii) Simulation using standard estimator

w 2 w (^1) w 1 w 2

Figure 3: Estimates of the steady-state customer population in the KSRS model as a function of 100 different safety-stock levels using the policy (9). Two simulation experiments are shown, where in each case the simulation runlength consisted of N = 200, 000 steps. The left hand side shows the results obtained using the smoothed estimator; the right hand side shows results with the standard estimator.

Shown in Figure 3 are estimates of the steady-state customer population in Case I for the family of policies (9), indexed by the safety-stock level ¯w ∈ R^2 +. Shown at left are estimates obtained using the “smoothed estimator” based on a fluid value function. The plot at right shows estimates obtained using the standard estimator.

References

[1] P. Glasserman. Monte Carlo methods in financial engineering. Applications of Mathematics, 53. Springer, York, NY, 2004.

[2] P. Glynn and R. Szechtman. Some new perspectives on the method of control variates. In K.T. Fang, F.J. Hickernell, and H. Niederreiter, editors, Monte Carlo and Quasi-Monte Carlo Methods 2000: Proceedings of a Conference held at Hong Kong Baptist University, Hong Kong SAR, China, pages 27–49, Berlin, 2002. Springer-Verlag.

[3] P. W. Glynn and S. P. Meyn. A Liapounov bound for solutions of the Poisson equation. Ann. Probab., 24(2):916–931, 1996.

[4] P. W. Glynn and W. Whitt. Necessary conditions for limit theorems in cumulative processes. Stoch. Proc. Applns., 98:199–209, 2002.

[5] S. G. Henderson, S. P. Meyn, and V. B. Tadi´c. Performance evaluation and policy selection in multiclass networks. Discrete Event Dynamic Systems: Theory and Applications, 13(1-2):149– 189, 2003. Special issue on learning, optimization and decision making (invited).

[6] I. Kontoyiannis and S. P. Meyn. Spectral theory and limit theorems for geometrically ergodic Markov processes. Ann. Appl. Probab., 13:304–362, 2003. Presented at the INFORMS Applied Probability Conference, NYC, July, 2001.

[7] A. M. Law and W. D. Kelton. Simulation Modeling and Analysis. McGraw-Hill, New York, 3rd edition, 2000.

[8] S. P. Meyn and R. L. Tweedie. Markov Chains and Stochastic Stability. Springer-Verlag, London,

  1. online: http://black.csl.uiuc.edu/~meyn/pages/book.html.

[9] B. L. Nelson. Control-variate remedies. Operations Res., 38(4):974–992, 1990.

[10] E. Nummelin. General Irreducible Markov Chains and Nonnegative Operators. Cambridge Uni- versity Press, Cambridge, 1984.