Variance reduction and Brownian Simulation Methods

43
Variance reduction and Brownian Simulation Methods Yossi Shamai Raz Kupferman The Hebrew University

description

Variance reduction and Brownian Simulation Methods. Yossi Shamai Raz Kupferman The Hebrew University. . Dumbbell models. All (incompressible) fluids are governed by mass-momentum conservation equations. u ( x,t ) = velocity  ( x,t ) = polymeric stress. q. Dumbbell models. - PowerPoint PPT Presentation

Transcript of Variance reduction and Brownian Simulation Methods

Page 1: Variance reduction and Brownian Simulation Methods

Variance reduction and Brownian Simulation Methods

Yossi Shamai

Raz Kupferman

The Hebrew University

Page 2: Variance reduction and Brownian Simulation Methods
Page 3: Variance reduction and Brownian Simulation Methods

All (incompressible) fluids are governed by mass-momentum conservation equations

u(x,t) = velocity

(x,t) = polymeric stress

QuickTime™ and a decompressor

are needed to see this picture.

QuickTime™ and a decompressor

are needed to see this picture.

QuickTime™ and a decompressor

are needed to see this picture.

Dumbbell models

Page 4: Variance reduction and Brownian Simulation Methods

Dumbbell models

(q,x,t) = pdf.

The polymers are modeled by two beads connected by a spring (dumbbell) . The conformation is modeled by an end-to-end vector q.

less affect

more affect

q

Page 5: Variance reduction and Brownian Simulation Methods

The (random) conformations are distributed according to a density function (q,x,t), which satisfies an evolution equation

advection deformation diffusion

The stress is an ensemble average of polymeric conformations,

QuickTime™ and a decompressor

are needed to see this picture.

q

g(q) = qF(q)

Page 6: Variance reduction and Brownian Simulation Methods

The stress

Conservation laws (macroscopic dynamics)

Polymeric density distribution (microscopic dynamics)

• Problem: high dimensionality

QuickTime™ and a decompressor

are needed to see this picture.

QuickTime™ and a decompressor

are needed to see this picture.

• Assumption: 1-D

Page 7: Variance reduction and Brownian Simulation Methods

Closable systemsIn certain cases, a PDE for (x,t) can be derived, yielding a closed-form system for u(x,t), (x,t).

QuickTime™ and a decompressor

are needed to see this picture.

• Closable systems can be solved by standard methods.• Brownian simulations can be used for non-closable systems.

Example (Semi-linear systems): if g(q) = q2, and b(q,u) = b(u) q then (x,t) satisfies the PDE

QuickTime™ and a decompressor

are needed to see this picture.

Page 8: Variance reduction and Brownian Simulation Methods

Outline

1. Brownian simulation methods

2. Some mathematical preliminaries on spatial correlations

3. A variance reduction mechanism in Brownian simulations

4. Examples

Page 9: Variance reduction and Brownian Simulation Methods

QuickTime™ and a decompressor

are needed to see this picture.

Brownian simulationsThe average stress (x,t) is an expectation with respect to a stochastic process q(x,t) with PDF (q,x,t)

q(x,t) is simulated by a collection of realizations qi(x,t).

The stress is approximated by an empirical mean QuickTime™ and a

decompressorare needed to see this picture.

PDE SPDE

Page 10: Variance reduction and Brownian Simulation Methods

A reminder: real-valued Brownian motion

1. B(t) is a random function of time.

2. Almost surely continues.

3. Independent increments.

4. B(t)-B(s) ~ N(0,t-s).L2-valued Brownian motion

1. B(x,t) is a random function of time and space.

2. For fixed x, B(x,t) is a real-valued Brownian motion.

3. Finite normQuickTime™ and a

decompressorare needed to see this picture.

Page 11: Variance reduction and Brownian Simulation Methods

Spatial correlationsB(x,t) is characterized by the spatial correlation function

QuickTime™ and a decompressor

are needed to see this picture.

1. Symmetry: c(x,y) = c(y,x).

2. c(x,x) = 1.

3. L2 - function:

QuickTime™ and a decompressor

are needed to see this picture.

Page 12: Variance reduction and Brownian Simulation Methods

Spatial correlations (cont.)An L2 - function is a correlation function iff

a. c(x,x) = 1.

b. It has a “square root” in L2

QuickTime™ and a decompressor

are needed to see this picture.

Oscillatory

Discretization QuickTime™ and a decompressor

are needed to see this picture.

UniformQuickTime™ and a

decompressorare needed to see this picture.

Piecewise constant uncorrelated

QuickTime™ and a decompressor

are needed to see this picture.

QuickTime™ and a decompressor

are needed to see this picture.

Page 13: Variance reduction and Brownian Simulation Methods

• No spatially uncorrelated L2-valued Brownian motion.

• Spatially uncorrelated noise has meaning only in a discrete setting. It is a sequence of piecewise constant standard Brownian motions, uncorrelated at any two distinct steps, that converges to 0.

QuickTime™ and a decompressor

are needed to see this picture.

Spatial correlations (cont.)

Page 14: Variance reduction and Brownian Simulation Methods

Spatial correlations (cont.)Spatial correlations can be alternatively

described by Correlation operators

QuickTime™ and a decompressor

are needed to see this picture.

QuickTime™ and a decompressorare needed to see this picture. QuickTime™ and a decompressorare needed to see this picture.

• C is nonnegative, symmetric and trace class.

QuickTime™ and a decompressor

are needed to see this picture.

• For any f,g in L2

• No Id-correlated Brownian motion (trace Id = ∞ ).

Page 15: Variance reduction and Brownian Simulation Methods

QuickTime™ and a decompressor

are needed to see this picture.

SDEs versus SPDEs

QuickTime™ and a decompressor

are needed to see this picture.

SDEs (Stochastic Differential Equations)

QuickTime™ and a decompressor

are needed to see this picture.

QuickTime™ and a decompressor

are needed to see this picture.

• F,G are operators

SPDEs (Stochastic Partial Differential Equations)

Ito’s integral

Ito’s integral

Page 16: Variance reduction and Brownian Simulation Methods

QuickTime™ and a decompressor

are needed to see this picture.

QuickTime™ and a decompressor

are needed to see this picture.QuickTime™ and a decompressorare needed to see this picture.

• q(x,t) has spatial correlation.

PDE (Fokker-Plank)

SDE

SDEs

QuickTime™ and a decompressor

are needed to see this picture.

QuickTime™ and a decompressor

are needed to see this picture.

PDE (Fokker-Plank)

SPDE

SPDEsQuickTime™ and a

decompressorare needed to see this picture.

SDEs versus SPDEs

Page 17: Variance reduction and Brownian Simulation Methods

Brownian simulationsunifying approach

• Equivalence class insensitive to spatial correlations.

QuickTime™ and a decompressor

are needed to see this picture.

• Consistency: for every x, q(x,0) ~ (q,x,0).

QuickTime™ and a decompressor

are needed to see this picture.

Lemma: Let (u,,q) be a solution for the stochastic system on some time interval [0,T]. Let (q,x,t) be the PDF corresponding to q(x,t). Then (u,,) is a solution for the deterministic system on [0,T].

Page 18: Variance reduction and Brownian Simulation Methods

QuickTime™ and a decompressor

are needed to see this picture.

Brownian simulation methodsThe stochastic process q is simulated by n “realizations” driven by i.i.d Brownian motions. Expectation is approximated by an empirical mean with respect to the realizations: QuickTime™ and a

decompressorare needed to see this picture.

QuickTime™ and a decompressor

are needed to see this picture.

Advantages: 1. No Fokker-plank equation.

2. Easy to simulate.

Disadvantages:1. No error

analysis.2. Variance is

O(n-1).

Page 19: Variance reduction and Brownian Simulation Methods

QuickTime™ and a decompressor

are needed to see this picture.

Brownian simulation methodsThe approximation The system

CONNFFESSIT (Calculations of Non Newtonian Fluids Finite Elements and Stochastic Simulation Techniques) - Piecewise constant uncorrelated noise (Ottinger et al. 1993)

BCF - Spatially uniform noise (Hulsen et al. 1997)

QuickTime™ and a decompressor

are needed to see this picture.

Correlation affects approximation but not the exact solution

Error reduction ?

Page 20: Variance reduction and Brownian Simulation Methods

1. Prove that e(n,t)0.

2. Reduce the error by choosing the spatial correlation of the Brownian noise:

Step 1. Express e(n,t) as a function F(c).

Step 2. Minimize F(c).

The error of the Brownian simulations is

Goals

QuickTime™ and a decompressor

are needed to see this picture.

The idea of adapting correlation to minimize variance first proposed by Jourdain et al. (2004) in the context of shear flow with a specific FEM scheme.

Page 21: Variance reduction and Brownian Simulation Methods

An “integral-type” system

QuickTime™ and a decompressor

are needed to see this picture.

The Brownian simulation is

QuickTime™ and a decompressor

are needed to see this picture.

Example

Page 22: Variance reduction and Brownian Simulation Methods

Results:

Brownian simulation

The stress

n = 2000 with spatially uniform noise ( c(x,y) = 1 ).

The (normalized) error as a function of time

Large error (1.47)

QuickTime™ and a decompressor

are needed to see this picture.

QuickTime™ and a decompressor

are needed to see this picture.

“smooth” simulation

The Brownian simulation at t=20

(dotted curve)

Brownian simulation

Stress

Page 23: Variance reduction and Brownian Simulation Methods

Results:

The Brownian simulation at t=20

(dotted curve)

“noisy” simulations

n = 2000 with piecewise constant uncorrelated noise.

The (normalized) error as a function of time

reduced error (1.06)

QuickTime™ and a decompressor

are needed to see this picture.

QuickTime™ and a decompressor

are needed to see this picture.

Page 24: Variance reduction and Brownian Simulation Methods

Error analysisWe want to analyze the error of the Brownian simulations

QuickTime™ and a decompressor

are needed to see this picture.

Lets demonstrate the analysis for semi-linear system…

Page 25: Variance reduction and Brownian Simulation Methods

Closable systemsIn certain cases, a PDE for (x,t) can be derived, yielding a closed-form system for u(x,t), (x,t).

QuickTime™ and a decompressor

are needed to see this picture.

• Closable systems can be solved by standard methods.• Brownian simulations can be used for non-closable systems.

Example (Semi-linear systems): if g(q) = q2, and b(q,u) = b(u) q then (x,t) satisfies the PDE

QuickTime™ and a decompressor

are needed to see this picture.

Page 26: Variance reduction and Brownian Simulation Methods

Error analysis for Semi-linear systems

• Linearize (properly)

In semi-linear systems, the stress field (x,t) satisfies a PDE

We want to estimate the error of the Brownian simulations QuickTime™ and a

decompressorare needed to see this picture.

QuickTime™ and a decompressor

are needed to see this picture.

An analogous evolution equation for T(x,t) is derived

QuickTime™ and a decompressor

are needed to see this picture.

QuickTime™ and a decompressor

are needed to see this picture.

QuickTime™ and a decompressor

are needed to see this picture.

Page 27: Variance reduction and Brownian Simulation Methods

Linearized system

QuickTime™ and a decompressor

are needed to see this picture.

andQuickTime™ and a

decompressorare needed to see this picture.

Page 28: Variance reduction and Brownian Simulation Methods

Theorem 1. To leading order:

QuickTime™ and a decompressor

are needed to see this picture.

and k is a kernel function determined by the parameters.

QuickTime™ and a decompressor

are needed to see this picture.

where

QuickTime™ and a decompressor

are needed to see this picture.

The function F can be also expressed in terms of the correlation operator C,

Page 29: Variance reduction and Brownian Simulation Methods

• F is convex

• In principle, the analysis is the same

• Proof is restricted to closable systems

Theorem 1. To leading order in n,

QuickTime™ and a decompressor

are needed to see this picture.

Error analysis for Closable systems

Page 30: Variance reduction and Brownian Simulation Methods

The optimization problem

Minimize F(c) over the domain:

S = {c(x,y) : c has a root in L2, c(x,x) = 1}

Difficulties:

A. Infinite dimensional optimization problem.

B. S is not compact.

• In general, there is no minimizer

Find a sequence of correlations cn S such that F(cn)

converge toQuickTime™ and a

decompressorare needed to see this picture.

Page 31: Variance reduction and Brownian Simulation Methods

Finite dimensional approximations

1. Set a natural k.

2. Discretize the problem to a k-point mesh

QuickTime™ and a decompressor

are needed to see this picture.

QuickTime™ and a decompressor

are needed to see this picture.

Theorem 2. The sequence of errors

converges (as k∞ ) to the optimal error

QuickTime™ and a decompressor

are needed to see this picture.

QuickTime™ and a decompressor

are needed to see this picture.

Page 32: Variance reduction and Brownian Simulation Methods

The F-D optimization problem

The F-D optimization problem is:

Minimize F(A), A is k-by-k symmetric PSD

Subject to Aii = 1, i=1,…,k

We want to minimize F(ck) over Sk.

• ck(x,y) is indexed by k2 mesh points (xi ,xj) (matrix).

• Symmetric Positive-Semi-Definite.

• ck (xi ,xi) = 1.

F is convex SDP algorithms (Semi-Definite Programming)

Page 33: Variance reduction and Brownian Simulation Methods

So what did we do?

Developed a unifying approach for a variance reduction mechanism in Brownian simulations.

Formulated an optimization problem (in infinite dimensions).

Showed that it is amenable to a standard algorithm (SDP).

Page 34: Variance reduction and Brownian Simulation Methods

Example 1

A linear advection-dissipation equation in [0,1].

QuickTime™ and a decompressor

are needed to see this picture.

QuickTime™ and a decompressor

are needed to see this picture.

QuickTime™ and a decompressor

are needed to see this picture.

In stochastic formulation,

QuickTime™ and a decompressor

are needed to see this picture.

The Brownian simulation is

QuickTime™ and a decompressor

are needed to see this picture.

Page 35: Variance reduction and Brownian Simulation Methods

The error is

Variance independent of correlations (no reduction)

Insights: the dynamics (advection and dissipation) do not mix different points in space. Thus, the error only ‘sees’ diagonal elements of the correlations, which are fixed by the constraints.

QuickTime™ and a decompressor

are needed to see this picture.

Page 36: Variance reduction and Brownian Simulation Methods

An “integral-type” system (x[0,1]):

QuickTime™ and a decompressor

are needed to see this picture.

Closable:

Example 2

QuickTime™ and a decompressor

are needed to see this picture.

Page 37: Variance reduction and Brownian Simulation Methods

Results:

Brownian simulation

The stress

n = 2000 with spatially uniform noise ( c(x,y) = 1 ).(BCF)

The (normalized) error as a function of time

Large error (1.47)

QuickTime™ and a decompressor

are needed to see this picture.

QuickTime™ and a decompressor

are needed to see this picture.

“smooth” simulation

The Brownian simulation at t=20

(dotted curve)

Brownian simulation

Stress

Page 38: Variance reduction and Brownian Simulation Methods

Results:

The Brownian simulation at t=20

(dotted curve)

“noisy” simulations

n = 2000 with piecewise constant uncorrelated noise (CONNFFESSIT).

The (normalized) error as a function of time

optimal error (1.06)

QuickTime™ and a decompressor

are needed to see this picture.

QuickTime™ and a decompressor

are needed to see this picture.

Page 39: Variance reduction and Brownian Simulation Methods

Why?…

the optimal error is obtained by taking c 0 (CONNFESSIT).

QuickTime™ and a decompressor

are needed to see this picture.

• g(x,y,t) is singular on the diagonal (x=y), and a smooth positive function off the diagonal.

• c(x,x) = 1

The error is

Page 40: Variance reduction and Brownian Simulation Methods

Example 3: 1-D planar Shear flow model. (Jourdain et al. 2004)

The system:

QuickTime™ and a decompressor

are needed to see this picture.

QuickTime™ and a decompressor

are needed to see this picture.

QuickTime™ and a decompressor

are needed to see this picture.

Closable: set QuickTime™ and a

decompressorare needed to see this picture.

QuickTime™ and a decompressor

are needed to see this picture.

Page 41: Variance reduction and Brownian Simulation Methods

To leading order, the error of the Brownian simulations is

• C - the spatial correlation operator.

QuickTime™ and a decompressor

are needed to see this picture.

• K(t) - a nonnegative bounded operator.

QuickTime™ and a decompressor

are needed to see this picture.

• Any sequence ck 0 yields the optimal error (e.g, spatially constant uncorrelated)

QuickTime™ and a decompressor

are needed to see this picture.

Page 42: Variance reduction and Brownian Simulation Methods

So is CONFFESSIT always optimal?

• No!

We can construct a problem for which e(n,t) = n-1(const + Tr[K(t)C]) for K(t) bounded and not PSD.

Theorem. If the semi-groups are Hilbert-Schmidt (they have L2-kernels) then CONNFFESSIT is optimal.

Page 43: Variance reduction and Brownian Simulation Methods

Some further thoughts…

• The spatial correlation of the initial data q(x,0) may also be considered.

• Non-closable systems?

• Gain insights about the optimal correlation by understand relations between type of equation and optimal correlation.