Review: Basic MC Estimator

Size: px
Start display at page:

Download "Review: Basic MC Estimator"

Transcription

1 Overview Earlier lectures Monte Carlo I: Integration Signal processing and sampling Today: Monte Carlo II Noise and variance Efficiency Stratified sampling Importance sampling

2 Review: Basic MC Estimator " NX # Z E 1 f(x i ) = f(x)dx X i 2 [0, 1) n N i=1

3 High-Dimensional Integration Complete set of samples: The curse of dimensionality N = n n n {z } d = n d Random sampling error: E V 1/2 1 p N Numerical integration error: E 1 n = 1 N 1/d In high dimensions, Monte Carlo requires fewer samples than quadrature-based numerical integration for the same error

4 A Tale of Two Functions f(x) =e 20(x 1 2 )2 f(x) =e 5000(x 1 2 )2

5 Monte Carlo Estimates, n= f(x) =e 20(x 1 2 )2 f(x) =e 5000(x 1 2 )2 Z Z f(x)dx = f(x)dx =

6 Random Sampling Introduces Noise Center Random 1 shadow ray

7 Less Noise with More Rays 1 shadow ray 16 shadow rays

8 Variance Definition V [Y ] E[(Y E[Y ]) 2 ] = E[Y 2 ] E[Y ] 2 Variance decreases linearly with sample size V " 1 N NX i=1 Y i # = 1 N 2 NX i=1 V [Y i ]= 1 N 2 NV[Y ]= 1 N V [Y ] V [ay ]=a 2 V [Y ]

9 Comparing Different Techniques Efficiency measure E ciency / 1 Variance Cost Comparing two sampling techniques A and B If A has twice the variance as B, then it takes twice as many samples from A to achieve the same variance as B If A has twice the cost of B, then it takes twice as much time reduce the variance using A compared to using B The product of variance and cost is a constant independent of the number of samples Recall: Variance goes as 1/N, time goes as C*N

10 (Live Demo of Variance)

11 High Variance From Narrow Function Estimate of integral: Z f(x)dx =

12 Stratified Sampling Allocate samples per region Estimate each region separately F N 1 N = N i = 1 F i New variance 1 V[ F ] = V[ F ] N i N N 2 i = 1 If the variance in each region is the same, then total variance goes as 1/N

13 Stratified Sampling Sample a polygon N V F V F E 2 j N 1.5 i= 1 1 [ ] V[ F ] = [ ] = N N If the variance in some regions are smaller, then the overall variance will be reduced

14 Stratified Samples, n= Variance Uniform Stratified 3.99E E-04 Z f(x)dx =

15 Jittered Sampling Add uniform random jitter to each sample

16 Jittered vs. Uniform Supersampling 4x4 Jittered Sampling 4x4 Uniform

17 Theory: Analysis of Jitter Non-uniform sampling n= s( x) = δ ( x x ) n n= x = nt + j n n jn Jittered sampling j( x) ~ j( x) " $ 1 x 1/ 2 = % $& 0 x > 1/ 2 J( ω) = sincω 1 2 2π n= 2 2 π n S( ω) = & 1 J( ω) ' + J( ω) δ ( ω ) T ( ) T 2 T 1 & 1 sinc 2 ω' δ ( ω ) = + T ( ) n=

18 Poisson Disk Sampling Dart throwing algorithm Less energy near origin

19 Distribution of Extrafoveal Cones Monkey eye cone distribution Fourier transform Yellot

20 Fourier Radial Power Spectrum 2 Jitter Power Frequency Poisson Disk Power Frequency Pilleboue et al. [2015]

21 Fourier Radial Power Spectrum 2 Jitter Power Frequency Poisson Disk Power Frequency Pilleboue et al. [2015]

22 Theoretical Convergence Rates in 2D Sampler Worst Case Best Case Jitter O(N 1.5 ) O(N 2 ) Poisson Disk O(N 1 ) O(N 1 ) Random O(N 1 ) O(N 1 )

23 Measuring Power at a Pixel Lens Aperture p 0 r 2 0 Film Plane p Pixel area

24 Measuring Power at a Pixel Lens Aperture p 0 r 2 0 Film Plane p Pixel area ZAlens L(p 0! p) E(p) = cos cos 0 p 0 p 2 da0

25 Measuring Power at a Pixel Lens Aperture p 0 r 2 0 Film Plane p Pixel area ZAlens L(p 0! p) E(p) = cos cos 0 p 0 p 2 da0 Z W = A pixel ZAlens L(p 0! p) cos cos 0 p 0 p 2 da0 da

26 Lens Exit Pupils In Focus CS348b Lecture 11 Out of Focus Pat Hanrahan / Matt Pharr, Spring 2017

27 How to Stratify? n strata in d dimensions: O(n d ) 8 strata in 4 dimensions: 4096 samples!

28 How to Stratify? n strata in d dimensions: O(n d ) 8 strata in 4 dimensions: 4096 samples! Solution: padding Generate stratified lower dimensional point sets, randomly associate pairs of samples (p0, p1, p2, p3)

29 (Live Demo of Stratification)

30 Biased Sampling is Unbiased Probability X i ~ p( x) Estimator Y i = f ( X ) i p( X ) i Proof E[ Y i ] = E ' % & f ( x) p( x) $ " # f ( x) = p( x) dx p( x) = f ( x) dx

31 Importance Sampling Sample according to f p! ( x) = f ( x) E[ f ] f! ( x) = f ( x) p! ( x)

32 Importance Sampling Sample according to f p! ( x) = f ( x) E[ f ] f! ( x) = f ( x) p! ( x) Variance 2 2 V[ f ] = E[ f ] E [ f ]

33 Importance Sampling Sample according to f p! ( x) = f ( x) E[ f ] f ( x) E[ f!! " 2 ] = # $ p! ( x) dx % p! ( x) & 2 f ( x) f! ( x) = p! ( x) Variance 2 2 V[ f ] = E[ f ] E [ f ]! f ( x) " f ( x) = # $ dx % f ( x) / E[ f ]& E[ f ] = = E E[ f ] f ( x) dx 2 [ f ] 2

34 Importance Sampling Sample according to f p! ( x) = f ( x) E[ f ] f ( x) E[ f!! " 2 ] = # $ p! ( x) dx % p! ( x) & 2 f ( x) f! ( x) = p! ( x) Variance 2 2 V[ f ] = E[ f ] E [ f ]! f ( x) " f ( x) = # $ dx % f ( x) / E[ f ]& E[ f ] = = E E[ f ] f ( x) dx 2 [ f ] 2 Zero variance! V[ f! 2 ] = 0

35 Importance Sampling Sample according to f p! ( x) = f ( x) E[ f ] f ( x) E[ f!! " 2 ] = # $ p! ( x) dx % p! ( x) & 2 f ( x) f! ( x) = p! ( x) Variance 2 2 V[ f ] = E[ f ] E [ f ]! f ( x) " f ( x) = # $ dx % f ( x) / E[ f ]& E[ f ] = = E E[ f ] f ( x) dx 2 [ f ] 2 Zero variance! V[ f! 2 ] = 0 Gotcha?

36 Importance Sampling Sample distribution f(x) =e 5000(x 1 2 )2

37 Importance Sampling Sample distribution f(x) =e 5000(x 1 2 )2

38 Importance Sampling 8 6 MC Estimates, n= Sample distribution Z f(x)dx = f(x) =e 5000(x 1 2 )2

39 Importance Sampling Sample distribution Variance Uniform Stratified Importance 3.99E E E f(x) =e 5000(x 1 2 )2

40 Importance Sampling Sample distribution? f(x) =e 5000(x 1 2 )2

41 Importance Sampling Sample distribution? f(x) =e 5000(x 1 2 )2

42 Importance Sampling: Area Solid Angle Area 100 shadow rays 100 shadow rays

43 Ambient Occlusion Landis, McGaugh, ILM Z V (!) cos d!

44 Importance Sampling Uniform hemisphere sampling: f(!) =L i (!) cos p(!) = 1 2 q q q ( 1, 2 )! ( cos(2 2), sin(2 2), )

45 Importance Sampling Uniform hemisphere sampling: f(!) =L i (!) cos p(!) = 1 2 Z NX NX NX f(!)d! 1 N i f(! i ) p(! i ) = 1 N i L i (! i ) cos o 1/2 = 2 N i L i (! i ) cos

46 Importance Sampling Cosine-weighted hemisphere sampling: f(!) =L i (!) cos p(!) = cos Z NX NX NX f(! i ) L i (! i ) cos i = N L i (! i ) f(!)d! 1 N i p(! i ) = 1 N i cos i / i

47 Ambient Occlusion Z V (!) cos d!

48 Reference: 4096 samples

49 Uniform, 32 samples Variance

50 Cosine, 32 samples Variance

51 Uniform, 72 samples Variance

52 Sampling a Circle Equi-Areal θ r = = 2πU U 2 1

53 Shirley s Mapping: Better Strata r = U 1 θ = π U 2 4 U 1

54 Views of Sampling 1. Numerical integration Quadrature/Integration rules Efficient for smooth functions Curse of dimensionality 2. Statistical sampling (Monte Carlo integration) Unbiased estimate of integral High dimensional sampling: 1/N 1/2 3. Signal processing Sampling and reconstruction Aliasing and antialiasing Blue noise good 4. Quasi Monte Carlo Bound error using discrepancy Asymptotic efficiency in high dimensions

Quality Improves with More Rays

Quality Improves with More Rays Recap Quality Improves with More Rays Area Area 1 shadow ray 16 shadow rays CS348b Lecture 8 Pat Hanrahan / Matt Pharr, Spring 2018 pixelsamples = 1 jaggies pixelsamples = 16 anti-aliased Sampling and

More information

Monte Carlo Integration. Computer Graphics CMU /15-662, Fall 2016

Monte Carlo Integration. Computer Graphics CMU /15-662, Fall 2016 Monte Carlo Integration Computer Graphics CMU 15-462/15-662, Fall 2016 Talk Announcement Jovan Popovic, Senior Principal Scientist at Adobe Research will be giving a seminar on Character Animator -- Monday

More information

Monte Carlo Integration I

Monte Carlo Integration I Monte Carlo Integration I Digital Image Synthesis Yung-Yu Chuang with slides by Pat Hanrahan and Torsten Moller Introduction L o p,ωo L e p,ωo s f p,ωo,ω i L p,ω i cosθ i i d The integral equations generally

More information

A Frequency Analysis of Monte-Carlo and other Numerical Integration Schemes Fredo Durand

A Frequency Analysis of Monte-Carlo and other Numerical Integration Schemes Fredo Durand Computer cience and Artificial Intelligence Laboratory Technical Report MIT-CAIL-TR-2011-052 December 14, 2011 A Frequency Analysis of Monte-Carlo and other Numerical Integration chemes Fredo Durand massachusetts

More information

Monte Carlo Convergence Analysis for Anisotropic Sampling Power Spectra

Monte Carlo Convergence Analysis for Anisotropic Sampling Power Spectra Monte Carlo Convergence Analysis for Anisotropic Sampling Spectra Gurprit Singh Wojciech Jarosz Dartmouth College Dartmouth Computer Science Technical Report TR6-86 3 4 3 4 3 4 3 4 3 4 3 4 (a) n-roos (D

More information

Monte Carlo Techniques Basic Concepts

Monte Carlo Techniques Basic Concepts Monte Carlo Techniques Basic Concepts Image Synthesis Torsten Möller Reading Chapter 12, 13, 14.1 14.3 of Physically Based Rendering by Pharr&Humphreys Chapter 7 in Principles of Digital Image Synthesis,

More information

Introduction to Rare Event Simulation

Introduction to Rare Event Simulation Introduction to Rare Event Simulation Brown University: Summer School on Rare Event Simulation Jose Blanchet Columbia University. Department of Statistics, Department of IEOR. Blanchet (Columbia) 1 / 31

More information

SEISMIC WAVE PROPAGATION. Lecture 2: Fourier Analysis

SEISMIC WAVE PROPAGATION. Lecture 2: Fourier Analysis SEISMIC WAVE PROPAGATION Lecture 2: Fourier Analysis Fourier Series & Fourier Transforms Fourier Series Review of trigonometric identities Analysing the square wave Fourier Transform Transforms of some

More information

Monte Carlo Integration II & Sampling from PDFs

Monte Carlo Integration II & Sampling from PDFs Monte Carlo Integration II & Sampling from PDFs CS295, Spring 2017 Shuang Zhao Computer Science Department University of California, Irvine CS295, Spring 2017 Shuang Zhao 1 Last Lecture Direct illumination

More information

Lecture 21: Counting and Sampling Problems

Lecture 21: Counting and Sampling Problems princeton univ. F 14 cos 521: Advanced Algorithm Design Lecture 21: Counting and Sampling Problems Lecturer: Sanjeev Arora Scribe: Today s topic of counting and sampling problems is motivated by computational

More information

Lecture 11: Probability, Order Statistics and Sampling

Lecture 11: Probability, Order Statistics and Sampling 5-75: Graduate Algorithms February, 7 Lecture : Probability, Order tatistics and ampling Lecturer: David Whitmer cribes: Ilai Deutel, C.J. Argue Exponential Distributions Definition.. Given sample space

More information

Notes on the point spread function and resolution for projection lens/corf. 22 April 2009 Dr. Raymond Browning

Notes on the point spread function and resolution for projection lens/corf. 22 April 2009 Dr. Raymond Browning Notes on the point spread function and resolution for projection lens/corf Abstract April 009 Dr. Raymond Browning R. Browning Consultants, 4 John Street, Shoreham, NY 786 Tel: (63) 8 348 This is a calculation

More information

Modern Methods of Data Analysis - WS 07/08

Modern Methods of Data Analysis - WS 07/08 Modern Methods of Data Analysis Lecture VII (26.11.07) Contents: Maximum Likelihood (II) Exercise: Quality of Estimators Assume hight of students is Gaussian distributed. You measure the size of N students.

More information

Today s lecture. The Fourier transform. Sampling, aliasing, interpolation The Fast Fourier Transform (FFT) algorithm

Today s lecture. The Fourier transform. Sampling, aliasing, interpolation The Fast Fourier Transform (FFT) algorithm Today s lecture The Fourier transform What is it? What is it useful for? What are its properties? Sampling, aliasing, interpolation The Fast Fourier Transform (FFT) algorithm Jean Baptiste Joseph Fourier

More information

6.435, System Identification

6.435, System Identification System Identification 6.435 SET 3 Nonparametric Identification Munther A. Dahleh 1 Nonparametric Methods for System ID Time domain methods Impulse response Step response Correlation analysis / time Frequency

More information

Scientific Computing: Monte Carlo

Scientific Computing: Monte Carlo Scientific Computing: Monte Carlo Aleksandar Donev Courant Institute, NYU 1 donev@courant.nyu.edu 1 Course MATH-GA.2043 or CSCI-GA.2112, Spring 2012 April 5th and 12th, 2012 A. Donev (Courant Institute)

More information

EE 4372 Tomography. Carlos E. Davila, Dept. of Electrical Engineering Southern Methodist University

EE 4372 Tomography. Carlos E. Davila, Dept. of Electrical Engineering Southern Methodist University EE 4372 Tomography Carlos E. Davila, Dept. of Electrical Engineering Southern Methodist University EE 4372, SMU Department of Electrical Engineering 86 Tomography: Background 1-D Fourier Transform: F(

More information

Differentiation and Integration

Differentiation and Integration Differentiation and Integration (Lectures on Numerical Analysis for Economists II) Jesús Fernández-Villaverde 1 and Pablo Guerrón 2 February 12, 2018 1 University of Pennsylvania 2 Boston College Motivation

More information

Monte Carlo Methods. Geoff Gordon February 9, 2006

Monte Carlo Methods. Geoff Gordon February 9, 2006 Monte Carlo Methods Geoff Gordon ggordon@cs.cmu.edu February 9, 2006 Numerical integration problem 5 4 3 f(x,y) 2 1 1 0 0.5 0 X 0.5 1 1 0.8 0.6 0.4 Y 0.2 0 0.2 0.4 0.6 0.8 1 x X f(x)dx Used for: function

More information

Exercise 11. Isao Sasano

Exercise 11. Isao Sasano Exercise Isao Sasano Exercise Calculate the value of the following series by using the Parseval s equality for the Fourier series of f(x) x on the range [, π] following the steps ()-(5). () Calculate the

More information

Compensation. June 29, Arizona State University. Edge Detection from Nonuniform Data via. Convolutional Gridding with Density.

Compensation. June 29, Arizona State University. Edge Detection from Nonuniform Data via. Convolutional Gridding with Density. Arizona State University June 29, 2012 Overview gridding with density compensation is a common method for function reconstruction nonuniform Fourier data. It is computationally inexpensive compared with

More information

Numerical Methods in Economics MIT Press, Chapter 9 Notes Quasi-Monte Carlo Methods. Kenneth L. Judd Hoover Institution.

Numerical Methods in Economics MIT Press, Chapter 9 Notes Quasi-Monte Carlo Methods. Kenneth L. Judd Hoover Institution. 1 Numerical Methods in Economics MIT Press, 1998 Chapter 9 Notes Quasi-Monte Carlo Methods Kenneth L. Judd Hoover Institution October 26, 2002 2 Quasi-Monte Carlo Methods Observation: MC uses random sequences

More information

Monte Carlo. Lecture 15 4/9/18. Harvard SEAS AP 275 Atomistic Modeling of Materials Boris Kozinsky

Monte Carlo. Lecture 15 4/9/18. Harvard SEAS AP 275 Atomistic Modeling of Materials Boris Kozinsky Monte Carlo Lecture 15 4/9/18 1 Sampling with dynamics In Molecular Dynamics we simulate evolution of a system over time according to Newton s equations, conserving energy Averages (thermodynamic properties)

More information

Astronomy 114. Lecture 26: Telescopes. Martin D. Weinberg. UMass/Astronomy Department

Astronomy 114. Lecture 26: Telescopes. Martin D. Weinberg. UMass/Astronomy Department Astronomy 114 Lecture 26: Telescopes Martin D. Weinberg weinberg@astro.umass.edu UMass/Astronomy Department A114: Lecture 26 17 Apr 2007 Read: Ch. 6,26 Astronomy 114 1/17 Announcements Quiz #2: we re aiming

More information

Hochdimensionale Integration

Hochdimensionale Integration Oliver Ernst Institut für Numerische Mathematik und Optimierung Hochdimensionale Integration 14-tägige Vorlesung im Wintersemester 2010/11 im Rahmen des Moduls Ausgewählte Kapitel der Numerik Contents

More information

Massachusetts Institute of Technology Department of Electrical Engineering and Computer Science : Discrete-Time Signal Processing

Massachusetts Institute of Technology Department of Electrical Engineering and Computer Science : Discrete-Time Signal Processing Massachusetts Institute of Technology Department of Electrical Engineering and Computer Science 6.34: Discrete-Time Signal Processing OpenCourseWare 006 ecture 8 Periodogram Reading: Sections 0.6 and 0.7

More information

Stochastic Simulation Variance reduction methods Bo Friis Nielsen

Stochastic Simulation Variance reduction methods Bo Friis Nielsen Stochastic Simulation Variance reduction methods Bo Friis Nielsen Applied Mathematics and Computer Science Technical University of Denmark 2800 Kgs. Lyngby Denmark Email: bfni@dtu.dk Variance reduction

More information

PH 222-3A Spring 2010

PH 222-3A Spring 2010 PH -3A Spring 010 Interference Lecture 6-7 Chapter 35 (Halliday/Resnick/Walker, Fundamentals of Physics 8 th edition) 1 Chapter 35 Interference The concept of optical interference is critical to understanding

More information

Review for the Midterm Exam

Review for the Midterm Exam Review for the Midterm Exam 1 Three Questions of the Computational Science Prelim scaled speedup network topologies work stealing 2 The in-class Spring 2012 Midterm Exam pleasingly parallel computations

More information

PHYS 211 Lecture 21 - Moments of inertia 21-1

PHYS 211 Lecture 21 - Moments of inertia 21-1 PHYS 211 Lecture 21 - Moments of inertia 21-1 Lecture 21 - Moments of inertia Text: similar to Fowles and Cassiday, Chap. 8 As discussed previously, the moment of inertia I f a single mass m executing

More information

Lecture 1: Interpolation and approximation

Lecture 1: Interpolation and approximation ecture notes on Variational and Approximate Methods in Applied Mathematics - A Peirce UBC ecture : Interpolation and approximation (Compiled 6 August 207 In this lecture we introduce the concept of approximation

More information

Jim Lambers ENERGY 281 Spring Quarter Lecture 5 Notes

Jim Lambers ENERGY 281 Spring Quarter Lecture 5 Notes Jim ambers ENERGY 28 Spring Quarter 27-8 ecture 5 Notes These notes are based on Rosalind Archer s PE28 lecture notes, with some revisions by Jim ambers. Fourier Series Recall that in ecture 2, when we

More information

G52IVG, School of Computer Science, University of Nottingham

G52IVG, School of Computer Science, University of Nottingham Image Transforms Fourier Transform Basic idea 1 Image Transforms Fourier transform theory Let f(x) be a continuous function of a real variable x. The Fourier transform of f(x) is F ( u) f ( x)exp[ j2πux]

More information

Sequential Monte Carlo Samplers for Applications in High Dimensions

Sequential Monte Carlo Samplers for Applications in High Dimensions Sequential Monte Carlo Samplers for Applications in High Dimensions Alexandros Beskos National University of Singapore KAUST, 26th February 2014 Joint work with: Dan Crisan, Ajay Jasra, Nik Kantas, Alex

More information

Analysis II: Fourier Series

Analysis II: Fourier Series .... Analysis II: Fourier Series Kenichi Maruno Department of Mathematics, The University of Texas - Pan American May 3, 011 K.Maruno (UT-Pan American) Analysis II May 3, 011 1 / 16 Fourier series were

More information

Partial Differential Equations and Random Walks

Partial Differential Equations and Random Walks Partial Differential Equations and Random Walks with Emphasis on the Heat Equation Kevin Hu January 7, 2014 Kevin Hu PDE and Random Walks January 7, 2014 1 / 28 Agenda 1 Introduction Overview 2 Random

More information

Green s Theorem. MATH 311, Calculus III. J. Robert Buchanan. Fall Department of Mathematics. J. Robert Buchanan Green s Theorem

Green s Theorem. MATH 311, Calculus III. J. Robert Buchanan. Fall Department of Mathematics. J. Robert Buchanan Green s Theorem Green s Theorem MATH 311, alculus III J. obert Buchanan Department of Mathematics Fall 2011 Main Idea Main idea: the line integral around a positively oriented, simple closed curve is related to a double

More information

Practice Problems for the Final Exam

Practice Problems for the Final Exam Math 114 Spring 2017 Practice Problems for the Final Exam 1. The planes 3x + 2y + z = 6 and x + y = 2 intersect in a line l. Find the distance from the origin to l. (Answer: 24 3 ) 2. Find the area of

More information

Introduction to Discrepancy Theory

Introduction to Discrepancy Theory Introduction to Discrepancy Theory Aleksandar (Sasho) Nikolov University of Toronto Sasho Nikolov (U of T) Discrepancy 1 / 23 Outline 1 Monte Carlo 2 Discrepancy and Quasi MC 3 Combinatorial Discrepancy

More information

EE16B - Spring 17 - Lecture 11B Notes 1

EE16B - Spring 17 - Lecture 11B Notes 1 EE6B - Spring 7 - Lecture B Notes Murat Arcak 6 April 207 Licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License. Interpolation with Basis Functions Recall that

More information

Variance Reduction. in Statistics, we deal with estimators or statistics all the time

Variance Reduction. in Statistics, we deal with estimators or statistics all the time Variance Reduction in Statistics, we deal with estiators or statistics all the tie perforance of an estiator is easured by MSE for biased estiators and by variance for unbiased ones hence it s useful to

More information

Fourier Series Example

Fourier Series Example Fourier Series Example Let us compute the Fourier series for the function on the interval [ π,π]. f(x) = x f is an odd function, so the a n are zero, and thus the Fourier series will be of the form f(x)

More information

Computer Intensive Methods in Mathematical Statistics

Computer Intensive Methods in Mathematical Statistics Computer Intensive Methods in Mathematical Statistics Department of mathematics johawes@kth.se Lecture 7 Sequential Monte Carlo methods III 7 April 2017 Computer Intensive Methods (1) Plan of today s lecture

More information

Monte Carlo and Empirical Methods for Stochastic Inference (MASM11/FMS091)

Monte Carlo and Empirical Methods for Stochastic Inference (MASM11/FMS091) Monte Carlo and Empirical Methods for Stochastic Inference (MASM11/FMS091) Magnus Wiktorsson Centre for Mathematical Sciences Lund University, Sweden Lecture 4 Variance reduction for MC methods January

More information

Computer Intensive Methods in Mathematical Statistics

Computer Intensive Methods in Mathematical Statistics Computer Intensive Methods in Mathematical Statistics Department of mathematics johawes@kth.se Lecture 16 Advanced topics in computational statistics 18 May 2017 Computer Intensive Methods (1) Plan of

More information

Page Max. Possible Points Total 100

Page Max. Possible Points Total 100 Math 3215 Exam 2 Summer 2014 Instructor: Sal Barone Name: GT username: 1. No books or notes are allowed. 2. You may use ONLY NON-GRAPHING and NON-PROGRAMABLE scientific calculators. All other electronic

More information

There are two basic kinds of random variables continuous and discrete.

There are two basic kinds of random variables continuous and discrete. Summary of Lectures 5 and 6 Random Variables The random variable is usually represented by an upper case letter, say X. A measured value of the random variable is denoted by the corresponding lower case

More information

Computer Problems for Fourier Series and Transforms

Computer Problems for Fourier Series and Transforms Computer Problems for Fourier Series and Transforms 1. Square waves are frequently used in electronics and signal processing. An example is shown below. 1 π < x < 0 1 0 < x < π y(x) = 1 π < x < 2π... and

More information

Lecture 9 February 2, 2016

Lecture 9 February 2, 2016 MATH 262/CME 372: Applied Fourier Analysis and Winter 26 Elements of Modern Signal Processing Lecture 9 February 2, 26 Prof. Emmanuel Candes Scribe: Carlos A. Sing-Long, Edited by E. Bates Outline Agenda:

More information

Today: Fundamentals of Monte Carlo

Today: Fundamentals of Monte Carlo Today: Fundamentals of Monte Carlo What is Monte Carlo? Named at Los Alamos in 940 s after the casino. Any method which uses (pseudo)random numbers as an essential part of the algorithm. Stochastic - not

More information

Finite Frames and Sigma Delta Quantization

Finite Frames and Sigma Delta Quantization Finite Frames and Sigma Delta Quantization with Matt Fickus Alex Powell and Özgür Yilmaz Aram Tangboondouangjit Finite Frames and Sigma Delta Quantization p.1/57 Frames Frames F = {e n } N n=1 for d-dimensional

More information

Quasi- Monte Carlo Multiple Integration

Quasi- Monte Carlo Multiple Integration Chapter 6 Quasi- Monte Carlo Multiple Integration Introduction In some sense, this chapter fits within Chapter 4 on variance reduction; in some sense it is stratification run wild. Quasi-Monte Carlo methods

More information

HOMEWORK SOLUTIONS MATH 1910 Sections 6.4, 6.5, 7.1 Fall 2016

HOMEWORK SOLUTIONS MATH 1910 Sections 6.4, 6.5, 7.1 Fall 2016 HOMEWORK SOLUTIONS MATH 9 Sections 6.4, 6.5, 7. Fall 6 Problem 6.4. Sketch the region enclosed by x = 4 y +, x = 4y, and y =. Use the Shell Method to calculate the volume of rotation about the x-axis SOLUTION.

More information

Improved predictive sampling using quasi-monte Carlo with application to neutron-cross-section evaluation

Improved predictive sampling using quasi-monte Carlo with application to neutron-cross-section evaluation Improved predictive sampling using quasi-monte Carlo with application to neutron-cross-section evaluation Ken Hanson T-16, Nuclear Physics; Theoretical Division Los Alamos National Laboratory This presentation

More information

If we want to analyze experimental or simulated data we might encounter the following tasks:

If we want to analyze experimental or simulated data we might encounter the following tasks: Chapter 1 Introduction If we want to analyze experimental or simulated data we might encounter the following tasks: Characterization of the source of the signal and diagnosis Studying dependencies Prediction

More information

Answers and expectations

Answers and expectations Answers and expectations For a function f(x) and distribution P(x), the expectation of f with respect to P is The expectation is the average of f, when x is drawn from the probability distribution P E

More information

Examples of the Fourier Theorem (Sect. 10.3). The Fourier Theorem: Continuous case.

Examples of the Fourier Theorem (Sect. 10.3). The Fourier Theorem: Continuous case. s of the Fourier Theorem (Sect. 1.3. The Fourier Theorem: Continuous case. : Using the Fourier Theorem. The Fourier Theorem: Piecewise continuous case. : Using the Fourier Theorem. The Fourier Theorem:

More information

Lecture 2: From Linear Regression to Kalman Filter and Beyond

Lecture 2: From Linear Regression to Kalman Filter and Beyond Lecture 2: From Linear Regression to Kalman Filter and Beyond Department of Biomedical Engineering and Computational Science Aalto University January 26, 2012 Contents 1 Batch and Recursive Estimation

More information

Introduction to aberrations OPTI518 Lecture 5

Introduction to aberrations OPTI518 Lecture 5 Introduction to aberrations OPTI518 Lecture 5 Second-order terms 1 Second-order terms W H W W H W H W, cos 2 2 000 200 111 020 Piston Change of image location Change of magnification 2 Reference for OPD

More information

Today: Fundamentals of Monte Carlo

Today: Fundamentals of Monte Carlo Today: Fundamentals of Monte Carlo What is Monte Carlo? Named at Los Alamos in 1940 s after the casino. Any method which uses (pseudo)random numbers as an essential part of the algorithm. Stochastic -

More information

This paper is about a new method for analyzing the distribution property of nonuniform stochastic samples.

This paper is about a new method for analyzing the distribution property of nonuniform stochastic samples. This paper is about a new method for analyzing the distribution property of nonuniform stochastic samples. Stochastic sampling is a fundamental component in many graphics applications. Examples include

More information

Note: Each problem is worth 14 points except numbers 5 and 6 which are 15 points. = 3 2

Note: Each problem is worth 14 points except numbers 5 and 6 which are 15 points. = 3 2 Math Prelim II Solutions Spring Note: Each problem is worth points except numbers 5 and 6 which are 5 points. x. Compute x da where is the region in the second quadrant between the + y circles x + y and

More information

Tutorial on quasi-monte Carlo methods

Tutorial on quasi-monte Carlo methods Tutorial on quasi-monte Carlo methods Josef Dick School of Mathematics and Statistics, UNSW, Sydney, Australia josef.dick@unsw.edu.au Comparison: MCMC, MC, QMC Roughly speaking: Markov chain Monte Carlo

More information

Week 7: Integration: Special Coordinates

Week 7: Integration: Special Coordinates Week 7: Integration: Special Coordinates Introduction Many problems naturally involve symmetry. One should exploit it where possible and this often means using coordinate systems other than Cartesian coordinates.

More information

Topics. View Aliasing. CT Sampling Requirements. Sampling Requirements in CT Sampling Theory Aliasing

Topics. View Aliasing. CT Sampling Requirements. Sampling Requirements in CT Sampling Theory Aliasing Topics Bioengineering 280A Principles of Biomedical Imaging Sampling Requirements in CT Sampling Theory Aliasing Fall Quarter 2007 CT/Fourier Lecture 4 CT Sampling Requirements View Aliasing What should

More information

Computer Intensive Methods in Mathematical Statistics

Computer Intensive Methods in Mathematical Statistics Computer Intensive Methods in Mathematical Statistics Department of mathematics KTH Royal Institute of Technology jimmyol@kth.se Lecture 2 Random number generation 27 March 2014 Computer Intensive Methods

More information

CS Sampling and Aliasing. Analog vs Digital

CS Sampling and Aliasing. Analog vs Digital CS 112 - Sampling and Aliasing Aditi Majumder, CS 112, Winter 2007 Slide 1 Analog vs Digital God has created the world analog Man has created digital world Aditi Majumder, CS 112, Winter 2007 Slide 2 1

More information

Today: Fundamentals of Monte Carlo

Today: Fundamentals of Monte Carlo Today: Fundamentals of Monte Carlo What is Monte Carlo? Named at Los Alamos in 1940 s after the casino. Any method which uses (pseudo)random numbers as an essential part of the algorithm. Stochastic -

More information

In general, the formula is S f ds = D f(φ(u, v)) Φ u Φ v da. To compute surface area, we choose f = 1. We compute

In general, the formula is S f ds = D f(φ(u, v)) Φ u Φ v da. To compute surface area, we choose f = 1. We compute alculus III Test 3 ample Problem Answers/olutions 1. Express the area of the surface Φ(u, v) u cosv, u sinv, 2v, with domain u 1, v 2π, as a double integral in u and v. o not evaluate the integral. In

More information

Brandon C. Kelly (Harvard Smithsonian Center for Astrophysics)

Brandon C. Kelly (Harvard Smithsonian Center for Astrophysics) Brandon C. Kelly (Harvard Smithsonian Center for Astrophysics) Probability quantifies randomness and uncertainty How do I estimate the normalization and logarithmic slope of a X ray continuum, assuming

More information

Lecture 5 - Fundamental Theorem for Line Integrals and Green s Theorem

Lecture 5 - Fundamental Theorem for Line Integrals and Green s Theorem Lecture 5 - Fundamental Theorem for Line Integrals and Green s Theorem Math 392, section C September 14, 2016 392, section C Lect 5 September 14, 2016 1 / 22 Last Time: Fundamental Theorem for Line Integrals:

More information

Today s lecture. Local neighbourhood processing. The convolution. Removing uncorrelated noise from an image The Fourier transform

Today s lecture. Local neighbourhood processing. The convolution. Removing uncorrelated noise from an image The Fourier transform Cris Luengo TD396 fall 4 cris@cbuuse Today s lecture Local neighbourhood processing smoothing an image sharpening an image The convolution What is it? What is it useful for? How can I compute it? Removing

More information

FILTERING IN THE FREQUENCY DOMAIN

FILTERING IN THE FREQUENCY DOMAIN 1 FILTERING IN THE FREQUENCY DOMAIN Lecture 4 Spatial Vs Frequency domain 2 Spatial Domain (I) Normal image space Changes in pixel positions correspond to changes in the scene Distances in I correspond

More information

Discrete-Time David Johns and Ken Martin University of Toronto

Discrete-Time David Johns and Ken Martin University of Toronto Discrete-Time David Johns and Ken Martin University of Toronto (johns@eecg.toronto.edu) (martin@eecg.toronto.edu) University of Toronto 1 of 40 Overview of Some Signal Spectra x c () t st () x s () t xn

More information

Data Integration for Big Data Analysis for finite population inference

Data Integration for Big Data Analysis for finite population inference for Big Data Analysis for finite population inference Jae-kwang Kim ISU January 23, 2018 1 / 36 What is big data? 2 / 36 Data do not speak for themselves Knowledge Reproducibility Information Intepretation

More information

CSCI-6971 Lecture Notes: Monte Carlo integration

CSCI-6971 Lecture Notes: Monte Carlo integration CSCI-6971 Lecture otes: Monte Carlo integration Kristopher R. Beevers Department of Computer Science Rensselaer Polytechnic Institute beevek@cs.rpi.edu February 21, 2006 1 Overview Consider the following

More information

ELEG 3124 SYSTEMS AND SIGNALS Ch. 5 Fourier Transform

ELEG 3124 SYSTEMS AND SIGNALS Ch. 5 Fourier Transform Department of Electrical Engineering University of Arkansas ELEG 3124 SYSTEMS AND SIGNALS Ch. 5 Fourier Transform Dr. Jingxian Wu wuj@uark.edu OUTLINE 2 Introduction Fourier Transform Properties of Fourier

More information

Fourier Analysis of Signals Using the DFT

Fourier Analysis of Signals Using the DFT Fourier Analysis of Signals Using the DFT ECE 535 Lecture April 29, 23 Overview: Motivation Many applications require analyzing the frequency content of signals Speech processing study resonances of vocal

More information

Lecture 19 Optical MEMS (1)

Lecture 19 Optical MEMS (1) EEL6935 Advanced MEMS (Spring 5) Instructor: Dr. Huikai Xie Lecture 19 Optical MEMS (1) Agenda: Optics Review EEL6935 Advanced MEMS 5 H. Xie 3/8/5 1 Optics Review Nature of Light Reflection and Refraction

More information

6.003: Signals and Systems. Sampling and Quantization

6.003: Signals and Systems. Sampling and Quantization 6.003: Signals and Systems Sampling and Quantization December 1, 2009 Last Time: Sampling and Reconstruction Uniform sampling (sampling interval T ): x[n] = x(nt ) t n Impulse reconstruction: x p (t) =

More information

Monte Carlo-based statistical methods (MASM11/FMS091)

Monte Carlo-based statistical methods (MASM11/FMS091) Monte Carlo-based statistical methods (MASM11/FMS091) Jimmy Olsson Centre for Mathematical Sciences Lund University, Sweden Lecture 4 Variance reduction for MC methods February 1, 2013 J. Olsson Monte

More information

Stokes Theorem. MATH 311, Calculus III. J. Robert Buchanan. Summer Department of Mathematics. J. Robert Buchanan Stokes Theorem

Stokes Theorem. MATH 311, Calculus III. J. Robert Buchanan. Summer Department of Mathematics. J. Robert Buchanan Stokes Theorem tokes Theorem MATH 311, alculus III J. Robert Buchanan Department of Mathematics ummer 2011 Background (1 of 2) Recall: Green s Theorem, M(x, y) dx + N(x, y) dy = R ( N x M ) da y where is a piecewise

More information

d` = 1+( dy , which is part of the cone.

d` = 1+( dy , which is part of the cone. 7.5 Surface area When we did areas, the basic slices were rectangles, with A = h x or h y. When we did volumes of revolution, the basic slices came from revolving rectangles around an axis. Depending on

More information

Monte Carlo Sampling

Monte Carlo Sampling Monte Carlo Sampling Sampling from PDFs: given F(x) in analytic or tabulated form, generate a random number ξ in the range (0,1) and solve the equation to get the randomly sampled value X X ξ = F(x)dx

More information

3 rd class Mech. Eng. Dept. hamdiahmed.weebly.com Fourier Series

3 rd class Mech. Eng. Dept. hamdiahmed.weebly.com Fourier Series Definition 1 Fourier Series A function f is said to be piecewise continuous on [a, b] if there exists finitely many points a = x 1 < x 2

More information

Monte Carlo Methods for Statistical Inference: Variance Reduction Techniques

Monte Carlo Methods for Statistical Inference: Variance Reduction Techniques Monte Carlo Methods for Statistical Inference: Variance Reduction Techniques Hung Chen hchen@math.ntu.edu.tw Department of Mathematics National Taiwan University 3rd March 2004 Meet at NS 104 On Wednesday

More information

O Combining cross-validation and plug-in methods - for kernel density bandwidth selection O

O Combining cross-validation and plug-in methods - for kernel density bandwidth selection O O Combining cross-validation and plug-in methods - for kernel density selection O Carlos Tenreiro CMUC and DMUC, University of Coimbra PhD Program UC UP February 18, 2011 1 Overview The nonparametric problem

More information

Periodic functions: simple harmonic oscillator

Periodic functions: simple harmonic oscillator Periodic functions: simple harmonic oscillator Recall the simple harmonic oscillator (e.g. mass-spring system) d 2 y dt 2 + ω2 0y = 0 Solution can be written in various ways: y(t) = Ae iω 0t y(t) = A cos

More information

Light as a Transverse Wave.

Light as a Transverse Wave. Waves and Superposition (Keating Chapter 21) The ray model for light (i.e. light travels in straight lines) can be used to explain a lot of phenomena (like basic object and image formation and even aberrations)

More information

ECE531 Lecture 8: Non-Random Parameter Estimation

ECE531 Lecture 8: Non-Random Parameter Estimation ECE531 Lecture 8: Non-Random Parameter Estimation D. Richard Brown III Worcester Polytechnic Institute 19-March-2009 Worcester Polytechnic Institute D. Richard Brown III 19-March-2009 1 / 25 Introduction

More information

Monte Carlo Methods for Stochastic Programming

Monte Carlo Methods for Stochastic Programming IE 495 Lecture 16 Monte Carlo Methods for Stochastic Programming Prof. Jeff Linderoth March 17, 2003 March 17, 2003 Stochastic Programming Lecture 16 Slide 1 Outline Review Jensen's Inequality Edmundson-Madansky

More information

Lecture 2: From Linear Regression to Kalman Filter and Beyond

Lecture 2: From Linear Regression to Kalman Filter and Beyond Lecture 2: From Linear Regression to Kalman Filter and Beyond January 18, 2017 Contents 1 Batch and Recursive Estimation 2 Towards Bayesian Filtering 3 Kalman Filter and Bayesian Filtering and Smoothing

More information

CS 4495 Computer Vision. Frequency and Fourier Transforms. Aaron Bobick School of Interactive Computing. Frequency and Fourier Transform

CS 4495 Computer Vision. Frequency and Fourier Transforms. Aaron Bobick School of Interactive Computing. Frequency and Fourier Transform CS 4495 Computer Vision Frequency and Fourier Transforms Aaron Bobick School of Interactive Computing Administrivia Project 1 is (still) on line get started now! Readings for this week: FP Chapter 4 (which

More information

on t0 t T, how can one compute the value E[g(X(T ))]? The Monte-Carlo method is based on the

on t0 t T, how can one compute the value E[g(X(T ))]? The Monte-Carlo method is based on the SPRING 2008, CSC KTH - Numerical methods for SDEs, Szepessy, Tempone 203 Monte Carlo Euler for SDEs Consider the stochastic differential equation dx(t) = a(t, X(t))dt + b(t, X(t))dW (t) on t0 t T, how

More information

Poisson summation and the discrete Fourier transform John Kerl University of Arizona, Math 523B April 14, 2006

Poisson summation and the discrete Fourier transform John Kerl University of Arizona, Math 523B April 14, 2006 Poisson summation and the discrete Fourier transform John Kerl University of Arizona, Math 523B April 4, 2006 In Euclidean space, given a vector,... 2 ... we can put down a coordinate frame (say an orthonormal

More information

14 Fourier analysis. Read: Boas Ch. 7.

14 Fourier analysis. Read: Boas Ch. 7. 14 Fourier analysis Read: Boas Ch. 7. 14.1 Function spaces A function can be thought of as an element of a kind of vector space. After all, a function f(x) is merely a set of numbers, one for each point

More information

UNIVERSITY of LIMERICK OLLSCOIL LUIMNIGH

UNIVERSITY of LIMERICK OLLSCOIL LUIMNIGH UNIVERSITY of LIMERICK OLLSCOIL LUIMNIGH Faculty of Science and Engineering Department of Mathematics and Statistics END OF SEMESTER ASSESSMENT PAPER MODULE CODE: MA4006 SEMESTER: Spring 2011 MODULE TITLE:

More information

Minimax Number of Strata for Online Stratified Sampling given Noisy Samples

Minimax Number of Strata for Online Stratified Sampling given Noisy Samples Minimax Number of Strata for Online Stratified Sampling given Noisy Samples Alexandra Carpentier and Rémi Munos INRIA Lille Nord-Europe, 40 avenue Halley, 59650 Villeneuve d Ascq, France {alexandra.carpentier,remi.munos}@inria.fr

More information

Applicability of Quasi-Monte Carlo for lattice systems

Applicability of Quasi-Monte Carlo for lattice systems Applicability of Quasi-Monte Carlo for lattice systems Andreas Ammon 1,2, Tobias Hartung 1,2,Karl Jansen 2, Hernan Leovey 3, Andreas Griewank 3, Michael Müller-Preussker 1 1 Humboldt-University Berlin,

More information