4. Numerical Integration

Slides:



Advertisements
Similar presentations
Occupancy Problems m balls being randomly assigned to one of n bins. (Independently and uniformly) The questions: - what is the maximum number of balls.
Advertisements

1 Chapter 5 Numerical Integration. 2 A Review of the Definite Integral.
Terminology A statistic is a number calculated from a sample of data. For each different sample, the value of the statistic is a uniquely determined number.
Graduate School of Information Sciences, Tohoku University
Advanced Computer Graphics (Spring 2005) COMS 4162, Lectures 18, 19: Monte Carlo Integration Ravi Ramamoorthi Acknowledgements.
Sampling Distributions
Lecture 3: Integration. Integration of discrete functions
Machine Learning CUNY Graduate Center Lecture 7b: Sampling.
CISE-301: Numerical Methods Topic 1: Introduction to Numerical Methods and Taylor Series Lectures 1-4: KFUPM.
Monte Carlo Methods in Partial Differential Equations.
Space-Filling DOEs Design of experiments (DOE) for noisy data tend to place points on the boundary of the domain. When the error in the surrogate is due.
Monte Carlo Integration Digital Image Synthesis Yung-Yu Chuang with slides by Pat Hanrahan and Torsten Moller.
1 CE 530 Molecular Simulation Lecture 7 David A. Kofke Department of Chemical Engineering SUNY Buffalo
1 Chapter 5 Numerical Integration. 2 A Review of the Definite Integral.
Analysis of Monte Carlo Integration Fall 2012 By Yaohang Li, Ph.D.
Simulation of Random Walk How do we investigate this numerically? Choose the step length to be a=1 Use a computer to generate random numbers r i uniformly.
MAT 1235 Calculus II Section 7.7 Approximate (Numerical) Integration
1 Statistical Mechanics and Multi- Scale Simulation Methods ChBE Prof. C. Heath Turner Lecture 11 Some materials adapted from Prof. Keith E. Gubbins:
01/24/05© 2005 University of Wisconsin Last Time Raytracing and PBRT Structure Radiometric quantities.
CISE-301: Numerical Methods Topic 1: Introduction to Numerical Methods and Taylor Series Lectures 1-4: KFUPM CISE301_Topic1.
CISE301_Topic11 CISE-301: Numerical Methods Topic 1: Introduction to Numerical Methods and Taylor Series Lectures 1-4:
F.F. Assaad. MPI-Stuttgart. Universität-Stuttgart Numerical approaches to the correlated electron problem: Quantum Monte Carlo.  The Monte.
Machine Learning Lecture 23: Statistical Estimation with Sampling Iain Murray’s MLSS lecture on videolectures.net:
Normal Distributions Z Transformations Central Limit Theorem Standard Normal Distribution Z Distribution Table Confidence Intervals Levels of Significance.
Monte Carlo I Previous lecture Analytical illumination formula This lecture Numerical evaluation of illumination Review random variables and probability.
Lab 3b: Distribution of the mean
Distributions of the Sample Mean
8 Sampling Distribution of the Mean Chapter8 p Sampling Distributions Population mean and standard deviation,  and   unknown Maximal Likelihood.
4. Numerical Integration. Standard Quadrature We can find numerical value of a definite integral by the definition: where points x i are uniformly spaced.
An Efficient Sequential Design for Sensitivity Experiments Yubin Tian School of Science, Beijing Institute of Technology.
Quasi-Monte Carlo Methods Fall 2012 By Yaohang Li, Ph.D.
Expectation. Let X denote a discrete random variable with probability function p(x) (probability density function f(x) if X is continuous) then the expected.
1 Probability and Statistical Inference (9th Edition) Chapter 5 (Part 2/2) Distributions of Functions of Random Variables November 25, 2015.
1 Series Expansion in Nonequilibrium Statistical Mechanics Jian-Sheng Wang Dept of Computational Science, National University of Singapore.
Numerical quadrature for high-dimensional integrals László Szirmay-Kalos.
Sampling Theory and Some Important Sampling Distributions.
Jointly distributed Random variables Multivariate distributions.
The Unscented Particle Filter 2000/09/29 이 시은. Introduction Filtering –estimate the states(parameters or hidden variable) as a set of observations becomes.
Chebyshev’s Inequality Markov’s Inequality Proposition 2.1.
Introduction to Computer Simulation of Physical Systems (Lecture 10) Numerical and Monte Carlo Methods (CONTINUED) PHYS 3061.
Monte Carlo Integration Digital Image Synthesis Yung-Yu Chuang 12/3/2008 with slides by Pat Hanrahan and Torsten Moller.
Chapter 13 Wiener Processes and Itô’s Lemma 1. Stochastic Processes Describes the way in which a variable such as a stock price, exchange rate or interest.
ETHEM ALPAYDIN © The MIT Press, Lecture Slides for.
Basic statistics Usman Roshan.
Chapter 4, Integration of Functions
Introduction to Monte Carlo Method
Numerical Analysis Lecture 42.
Basic statistics Usman Roshan.
High Performance Computing and Monte Carlo Methods
Intro to Sampling Methods
The distribution function F(x)
Chapter 3 Component Reliability Analysis of Structures.
Clustering (3) Center-based algorithms Fuzzy k-means
3.1 Expectation Expectation Example
The Normal Distribution…
Monte-Carlo Techniques
Chapter 23.
Monte Carol Integration
Lecture 2 – Monte Carlo method in finance
Introduction to Probability & Statistics The Central Limit Theorem
Chapter 14 Wiener Processes and Itô’s Lemma
Monte Carlo I Previous lecture Analytical illumination formula
Monte Carlo Rendering Central theme is sampling:
Lecture 4 - Monte Carlo improvements via variance reduction techniques: antithetic sampling Antithetic variates: for any one path obtained by a gaussian.
Nonparametric density estimation and classification
Jaroslav Křivánek, MFF UK
CISE-301: Numerical Methods Topic 1: Introduction to Numerical Methods and Taylor Series Lectures 1-4: KFUPM CISE301_Topic1.
Numerical Integration
Chapter 4, Integration of Functions
Sampling Plans.
Presentation transcript:

4. Numerical Integration

Standard Quadrature We can find numerical value of a definite integral by definition: where points xi are uniformly spaced. This is the rectangular rule.

Error in Quadrature Consider integral in d dimensions: The error with N sampling points is Proof the error bound! In each small box, we do a Taylor expansion of the function, and compute the difference between the estimate and Taylor series results. The Trapezoidal rule has a better error bound of O(N-2/d). The formula above is a rectangular rule.

More Accurate Methods Simpson’s rule Gaussian quadrature Non-uniform x points (abscissa) for higher accuracy. What is the global error (with respect to the number of sampling points N) if Simpson’s rule is used for 1D integration? See “Numerical Recipes” W H Press et al. for more information.

Monte Carlo Estimates of Integrals We sample the points not on regular grids, but at random (uniformly distributed), then Where we assume the integration domain is a regular box of V=Ld.

Monte Carlo Error From probability theory one can show that the Monte Carlo error decreases with sample size N as independent of dimension d.

Central Limit Theorem For large N, the sample mean <f> = (1/N) ∑ fi follow Gaussian distribution with true mean of f, E(f), and variance σ2 = var(f)/N where var(f) = E(f 2) – E(f )2. Law of large numbers: The sample mean converges almost surely to its expectation value. Chebychev inequality: P{ (E(f)-<f>) > (var(f)/d)1/2 } < d, deviation away from standard deviation is small. σ is called standard deviation.

Example, Monte Carlo Estimates of π Throw dots at random: x = ξ1, y = ξ2. Count the cases, n, that x2 + y2 < 1. Then n/N is an estimate of the value ¼π. (x,y) (1,0) How many dots do you need to throw to get a three-digit accuracy of ?

General Monte Carlo If the samples are not drawn uniformly but with some probability distribution P(X), we can compute by Monte Carlo: Why we do not need P(X) in the summation? Where P(X) is normalized,

Variance Reduction Since the error in Monte Carlo decreases slowly as 1/N½, the fundamental research in Monte Carlo method for improving efficiency is to reduce the pre-factor. The second problem is to develop methods for sampling X from a general distribution P(X). Markov chain Monte Carlo solved the second problem elegantly. Research for efficient sampling is still an active field of research.

Random Sequential Adsorption For a review in random sequential adsorption, including Monte Carlo simulations, see J S Wang, “Colloids and Surfaces”, 165 (2000) 325.

A Non-Trivial Example In the study of random sequential adsorption, we need to compute the coefficients of a series expansion: where D(x0) is a unit circle centered at (0,0), D(x0,x1) is the union of circles centered at x0 and x1, etc. See the original paper by R Dickman, J S Wang, and I Jensen, “J Chem Phys”, 94 (1991) 8252. Note that xi = (a,b) is two-dimensional.

RSA: Integral Domains D(x0) : |x| < 1 D(x0,x1) : |x|<1 or |x-x1| < 1, x1D(x0) D(x0,x1,x2): |x|<1 or |x-x1|< 1 or |x – x2| < 1, x1D(x0) x2D(x0,x1), etc. |x| is distance (2-norm).

Monte Carlo Estimates We sample x1 uniformly in a box of size 2; sample x2 uniformly in a box of size 4; and x3 in size 6, etc. If x1D(x0) and x2D(x0,x1), x3D(x0,x1,x2), etc, count 1, else count 0. Answer = count•Volume/N The Volume is actually the hyper-volume (2*4*6*…)2

Results of S(4) We found Monte Carlo estimates: Problem: implement a program to compute S(n).