Lesson 9: Basic Monte Carlo integration

Slides:



Advertisements
Similar presentations
Lectures 6&7: Variance Reduction Techniques
Advertisements

Lecture 3 Linear Programming: Tutorial Simplex Method
Monte Carlo Methods and Statistical Physics
TECHNIQUES OF INTEGRATION
1 12. Principles of Parameter Estimation The purpose of this lecture is to illustrate the usefulness of the various concepts introduced and studied in.
Solving Linear Equations
Section 3.4 Systems of Equations in 3 Variables
Resampling techniques Why resampling? Jacknife Cross-validation Bootstrap Examples of application of bootstrap.
INFINITE SEQUENCES AND SERIES
Linear Equations with Different Kinds of Solutions
Please open your laptops, log in to the MyMathLab course web site, and open Daily Quiz 18. You will have 10 minutes for today’s quiz. The second problem.
Solving Linear Equations – Part 2 A Linear Equation in One Variable is any equation that can be written in the form It is assumed that you have already.
Monte Carlo Methods in Partial Differential Equations.
Solving Algebraic Equations
8 Indefinite Integrals Case Study 8.1 Concepts of Indefinite Integrals
Please open your laptops, log in to the MyMathLab course web site, and open Quiz 4.1/4.2. IMPORTANT NOTE: If you have time left after you finish this quiz,
Solving a System of Equations using Multiplication
Ch 8.1 Numerical Methods: The Euler or Tangent Line Method
1 CE 530 Molecular Simulation Lecture 7 David A. Kofke Department of Chemical Engineering SUNY Buffalo
1 Statistical Mechanics and Multi- Scale Simulation Methods ChBE Prof. C. Heath Turner Lecture 11 Some materials adapted from Prof. Keith E. Gubbins:
Key Stone Problem… Key Stone Problem… next Set 22 © 2007 Herbert I. Gross.
1 Lesson 9: Solution of Integral Equations & Integral Boltzmann Transport Eqn Neumann self-linked equations Neumann self-linked equations Attacking the.
1 Lesson 3: Choosing from distributions Theory: LLN and Central Limit Theorem Theory: LLN and Central Limit Theorem Choosing from distributions Choosing.
Module 1: Statistical Issues in Micro simulation Paul Sousa.
1 EEE 431 Computational Methods in Electrodynamics Lecture 4 By Dr. Rasime Uyguroglu
1 Lesson 8: Basic Monte Carlo integration We begin the 2 nd phase of our course: Study of general mathematics of MC We begin the 2 nd phase of our course:
ALGEBRA II HONORS ARITHMETIC and GEOMETRIC SERIES.
In section 11.9, we were able to find power series representations for a certain restricted class of functions. Here, we investigate more general problems.
PROBABILITY AND STATISTICS FOR ENGINEERING Hossein Sameti Department of Computer Engineering Sharif University of Technology Principles of Parameter Estimation.
Section 8.5 – Partial Fractions. White Board Challenge Find a common denominator:
5-1 Lesson 5 Objectives Finishing up Chapter 1 Finishing up Chapter 1 Development of adjoint B.E. Development of adjoint B.E. Mathematical elements of.
TECHNIQUES OF INTEGRATION Due to the Fundamental Theorem of Calculus (FTC), we can integrate a function if we know an antiderivative, that is, an indefinite.
Lecture 19 Spherical Polar Coordinates Remember Phils Problems and your notes = everything Come to see me before.
SEM Basics 2 Byrne Chapter 2 Kline pg 7-15, 50-51, ,
Solving Linear Equations. Example 1 It’s obvious what the answer is. However, we need to start with the basics and work our way up because we need to.
Definition Section 4.1: Indefinite Integrals. The process of finding the indefinite integral of f(x) is called integration of f(x) or integrating f(x).
Bell Work: Simplify: √500,000,000. Answer: 10,000√5.
8 TECHNIQUES OF INTEGRATION. Due to the Fundamental Theorem of Calculus (FTC), we can integrate a function if we know an antiderivative, that is, an indefinite.
Boyce/DiPrima 9 th ed, Ch 11.3: Non- Homogeneous Boundary Value Problems Elementary Differential Equations and Boundary Value Problems, 9 th edition, by.
R. Kass/W03 P416 Lecture 5 l Suppose we are trying to measure the true value of some quantity (x T ). u We make repeated measurements of this quantity.
Representations of Functions as Power Series INFINITE SEQUENCES AND SERIES In this section, we will learn: How to represent certain functions as sums of.
Algebra 2 Solving Systems Algebraically Lesson 3-2 Part 2.
Straight Line Graph.
Lesson 8: Basic Monte Carlo integration
Development of adjoint B.E.
The Maximum Likelihood Method
12. Principles of Parameter Estimation
Solving Systems of Equations
10.3 Solving Linear Systems
MTH1170 Integration by Partial Fractions
Chapter 3 Techniques of Differentiation
Differential Equations
The Maximum Likelihood Method
Warm Up Simplify each expression. 1. 3x + 2y – 5x – 2y
The Maximum Likelihood Method
Integration The Explanation of integration techniques.
First Order Linear Equations
Integration The Explanation of integration techniques.
Lesson 7-4 part 2 Solving Systems by Elimination
Integral Rules; Integration by Substitution
Solving Linear Equations
Equations of Straight Lines
Solving Linear Equations
Support Vector Machines
Solving Linear Equations
Tutorial 4 Techniques of Differentiation
12. Principles of Parameter Estimation
Lesson 4: Application to transport distributions
Chapter 3 Techniques of Differentiation
Solving Linear Equations
Presentation transcript:

Lesson 9: Basic Monte Carlo integration MC evaluation of integral equations Generalization of this technique to solve general differential equation sets Linked equations Neumann technique for recurrent equations

Developing integral equations from differential equations: Simple We now know how to attack integrals with Monte Carlo We desire to be able to “solve” differential equations = estimate functionals (usually integrals or point values) of the function that solves a given equation Traditional solution: Convert them into integral equations and apply the MC integration rules to them Example: Find the value of f(4), given the differential equation and boundary condition:

Simple integral equations (2) Answer: We can integrate from 0 (the known value) to the desired value to get: Now we do our Dirac delta trick to the continuous variable u in the integral:

Simple integral equations (2)

Simple integral equations (3) The normal procedure for this method is to: Choose a value of between a and b using a probability distribution p(u) (of YOUR choosing). Score So, let’s do it. What PDF should we use? Lazy man’s PDF: uniform Optimum PDF: ? (You tell me…)

Linked equations When you are faced with linked equation sets, the principles are the same, put you have to be more careful: Putting in multiple boundary conditions Keeping up with multiple sampled variables (each equation will have one) Most tricky: Realizing and adapting to CHANGING LIMITS on the integrals (after the first) MUCH more difficult to optimize the choice of the PDFs used

Linked equation example Example: Find f(2) for the second order differential equation: In order to make it fit the category, we will start be re-writing as the linked set:

Linked equation example (2) Applying our tools to the second equation first, we begin by transforming it into an integral equation for the value at x=2: Using our MC integration approximation, we get: How do we get the ? Answer: We estimate it from the other equation.

Linked equation example (3) Applying our tools to the first equation first, we begin by transforming it into an integral equation for the value at : (Notice that I prefer to introduce wx “weights” when it starts to get complicated.) The resulting procedure is: Choose a value of using Score:

Linked equation example (4) Now let’s do it. What PDF’s to use? Flat Better than flat

Sampling from recurring equations: Neumann series Sampling from recurring equations introduces a complexity: We cannot use the above procedure because, the procedure requires that we sample from f(x) on the right-hand side in order to sample from f(x) on the left-hand side. However, for linear occurrences of f(x) on the right-hand side, we can "bootstrap" a solution by representing f(x) as an infinite Neumann series: on BOTH sides of the equation and properly lining up terms.

Neumann series (2) If we have the general linear recurring integral equation: with known “source” term q(x) and linear operator K(x’,x), we can substitute to get: We can “line up” the left hand and right hand terms in the following way:

Neumann series (3) Obviously, the sum of the solutions of these coupled equations obeys the original equation. We solve them sequentially, eliminating the circular dependence Of course, this procedure has an infinite number of steps for each sample of , so it will have to be truncated somehow, but -- before worrying about that -- let us first look at an example.

Neumann series (4) Example: Develop an infinite sampling procedure for the recurring equation: Answer: Integrating the differential equation over x from 0 to x (and applying the boundary condition) gives us the recurring integral equation:

Neumann series (5) If we insert the infinite Neumann series for the function on both sides, we get the following coupled equations:

Neumann series (6) Since the function f(x) is the infinite sum of these, the procedure to sample from is: 1. Sample from using: 2. Sample from using the above sample:

Neumann series (7) 3. Sample from using the above sample:

Neumann series (8) Observations: The procedure is infinite in theory, but not infinite in practice because as soon as we pick a value of x that is SMALLER than the one before it, then the weight will go to zero. Once this happens, of course, we can ignore the rest of the series because they will be zero as well. What else could we do to terminate the sequence? We must remember that it is not a single sample of f0(x) or f1(x) , etc., that constitutes our sample of the function, but ALL OF THEM together. Therefore, the i'th sample of f(x) is, formally: Note: We do NOT divide by the number of contributions to the ith sample

Neumann series (9) Observations: Therefore, if we improve our approximation by taking N samples, the combined best result would be: As a practical matter, point 2 means that our coding must collect data in "sample bins" -- i.e, which collect data from individual Neumann terms within a single sample -- and, at the end of the sample, contribute from the "sample bins" to the overall "solution bins".

Convergence of recurring equations You should be aware that there is a good possibility that a “straight-forward” application of the procedure for recurring equations will result in a divergent procedure Convergence is guaranteed only if the eigenvalues of the recurrence operator K in: have magnitude less than one.

HW

HW (2)